/* Open Discussions v0.10.21: uniform white lettering for all dark palettes.
   Preserve light theme text and the dark lettering required for pale accent buttons. */
html:is([data-od-theme="midnight"],[data-od-theme="forest"],[data-od-theme="onyx"],[data-od-theme="plum"],[data-od-theme="wine"],[data-od-theme="teal"],[data-od-theme="ocean"],[data-od-theme="graphite"],[data-od-theme="copper"],[data-od-theme="orchid"],[data-od-theme="olive"]) {
  --od-text:#ffffff;
  --od-muted:#ffffff;
  --od-link:#ffffff;
  --od-title:#ffffff;
  --od-hint:#ffffff;
  --od-theme-text:#ffffff;
  --od-theme-muted:#ffffff;
  --od-theme-link:#ffffff;
  --od-theme-title:#ffffff;
  --od-theme-hint:#ffffff;
  --od-header-text:#ffffff;
  --od-button-text:#10202a;
  --od-theme-buttonText:#10202a;
  --od-on-accent:#10202a;
}
/* Legacy page skins sometimes specify colors directly instead of using the palette. */
html:is([data-od-theme="midnight"],[data-od-theme="forest"],[data-od-theme="onyx"],[data-od-theme="plum"],[data-od-theme="wine"],[data-od-theme="teal"],[data-od-theme="ocean"],[data-od-theme="graphite"],[data-od-theme="copper"],[data-od-theme="orchid"],[data-od-theme="olive"]) :is(
  .topic-title,.discussion-title,.post-title,.thread-title,.topic-link,.topic-title:hover,.topic-link:hover,.discussion-title:hover,
  .topic-meta,.topic-meta strong,.last-post,.last-post strong,.last-post time,.post-date,.post-meta,.post-topline,.post-user-detail,
  .side-helper,.profile-handle,.profile-joined,.member-since,.profile-about,.profile-role,.profile-role.patron,
  .settings-help,.field-hint,.field-note,.field-counter,.helper,.hint,.muted,.caption,.under-list,
  .settings-hero p,.friends-heading p,.od-messages-page-heading p,.od-messages-page-heading h1,
  .od-inbox-heading p,.od-inbox-status,.od-inbox-list-header,.od-inbox-result-count,.od-inbox-date-label,
  .od-inbox-count,.od-inbox-meta,.od-inbox-meta time,.od-inbox-row,.od-inbox-subject,.od-inbox-subject:hover,
  .od-inbox-bulk label,.od-inbox-empty p,.od-inbox-empty strong,.od-theme-option-description,
  .site-footer,.site-footer a,.site-footer span,.site-footer small
) { color:#ffffff; }
/* Keep accent-colored action buttons legible. White on a light accent fails contrast. */
html:is([data-od-theme="midnight"],[data-od-theme="forest"],[data-od-theme="onyx"],[data-od-theme="plum"],[data-od-theme="wine"],[data-od-theme="teal"],[data-od-theme="ocean"],[data-od-theme="graphite"],[data-od-theme="copper"],[data-od-theme="orchid"],[data-od-theme="olive"]) :is(
  .primary-btn,.od-inbox-compose,.signin-button,.join-button,.od-editor-link-dialog button[type="submit"]
) { color:#10202a !important; }
