/*
 * OnlineCasinoRM - Forest Emerald 2.0
 * Retains the previous responsive company-label alignment and applies the
 * latest neutral/semantic palette to Blocksy + NRF Directory Studio.
 * Verified source version: Blocksy 2.1.57 / Directory Studio 2.7.0.
 * No company data, logo, uploaded artwork, URL, or layout changes.
 */

/* 1. LIGHT MODE: Soft Sage. Double :root increases specificity over
   NRF appearance.css without modifying any plugin file. */
:root:root {
  color-scheme: light;
  --ocrm-ui-page: #F4F8F4;
  --ocrm-ui-surface: #FFFFFF;
  --ocrm-ui-raised: #EDF5EF;
  --ocrm-ui-text: #172B20;
  --ocrm-ui-text-muted: #506653;
  --ocrm-ui-action: #187A4D;
  --ocrm-ui-action-text: #FFFFFF;
  --ocrm-ui-link: #11613B;
  --ocrm-ui-selected: #E2F1E7;
  --ocrm-ui-selected-text: #17603E;
  --ocrm-ui-divider: #DAE8DE;
  --ocrm-ui-control: #60796A;
  --ocrm-ui-report: #B42318;
  --ocrm-ui-report-surface: #FEF3F2;
  --ocrm-ui-brand: #0B5537;
  --ocrm-ui-on-brand: #FFFFFF;
  --ocrm-ui-scrim: rgba(5, 15, 9, .62);
  --ocrm-ui-focus: #11613B;
  --ocrm-ui-shadow: rgba(10, 35, 20, .14);

  /* Blocksy theme palette. Native Blocksy primary buttons use white text.
     Therefore palette 1 must be a DARK green, not bright #28B66F. */
  --theme-palette-color-1: #187A4D;
  --theme-palette-color-2: #11613B;
  --theme-palette-color-3: #506653;
  --theme-palette-color-4: #172B20;
  --theme-palette-color-5: #DAE8DE;
  --theme-palette-color-6: #EDF5EF;
  --theme-palette-color-7: #F4F8F4;
  --theme-palette-color-8: #FFFFFF;
}

/* 2. DARK MODE: Forest Emerald. Honors the existing data-ocrm-theme
   switch implemented by Directory Studio. Does NOT replace its JavaScript. */
:root:root[data-ocrm-theme="dark"] {
  color-scheme: dark;
  --ocrm-ui-page: #101A14;
  --ocrm-ui-surface: #203126;
  --ocrm-ui-raised: #273B2E;
  --ocrm-ui-text: #F5F8F5;
  --ocrm-ui-text-muted: #B7C9BB;
  --ocrm-ui-action: #28B66F;
  --ocrm-ui-action-text: #0A2013;
  --ocrm-ui-link: #A1E6B9;
  --ocrm-ui-selected: #244A34;
  --ocrm-ui-selected-text: #D6F8E1;
  --ocrm-ui-divider: #34503C;
  --ocrm-ui-control: #9BB3A3;
  --ocrm-ui-report: #FDA29B;
  --ocrm-ui-report-surface: #3B1D24;
  --ocrm-ui-brand: #0B5537;
  --ocrm-ui-on-brand: #FFFFFF;
  --ocrm-ui-scrim: rgba(0, 0, 0, .72);
  --ocrm-ui-focus: #A1E6B9;
  --ocrm-ui-shadow: rgba(0, 0, 0, .42);

  /* Keep Blocksy native buttons readable with their default white labels. */
  --theme-palette-color-1: #187A4D;
  --theme-palette-color-2: #11613B;
  --theme-palette-color-3: #B7C9BB;
  --theme-palette-color-4: #F5F8F5;
  --theme-palette-color-5: #34503C;
  --theme-palette-color-6: #273B2E;
  --theme-palette-color-7: #101A14;
  --theme-palette-color-8: #203126;
}

/* 3. Directory Studio's search page currently outputs an inline
   --nrf-accent:#007aff. Override ONLY its accent, not any layout values. */
body .nrf-directory {
  --nrf-accent: var(--ocrm-ui-action) !important;
  --nrf-action: var(--ocrm-ui-action) !important;
}

/* 4. Known hard-coded blue areas in Directory Studio public.css. */
body .nrf-directory .nrf-store-sidebar {
  background-color: var(--ocrm-ui-raised);
  border-color: var(--ocrm-ui-divider);
}
body .nrf-directory .nrf-store-header,
body .nrf-directory .nrf-section-heading,
body .nrf-directory .nrf-app-row {
  border-color: var(--ocrm-ui-divider);
}
body .nrf-directory .nrf-public-search,
body .nrf-directory .nrf-tab:hover,
body .nrf-directory .nrf-partnership-tile {
  background-color: var(--ocrm-ui-raised);
}
body .nrf-directory .nrf-tab {
  color: var(--ocrm-ui-text-muted);
}
body .nrf-directory .nrf-tab.is-selected,
body .nrf-directory .nrf-filters-toggle.is-active,
body .nrf-directory .nrf-pill:hover {
  background-color: var(--ocrm-ui-selected);
  color: var(--ocrm-ui-selected-text);
  border-color: var(--ocrm-ui-divider);
}
body .nrf-directory .nrf-pill,
body .nrf-directory .nrf-company-actions a:not(.nrf-claim-link) {
  background-color: var(--ocrm-ui-selected);
  color: var(--ocrm-ui-selected-text);
}
body .nrf-directory .nrf-partnership-tile:hover {
  background-color: var(--ocrm-ui-selected);
}
body .nrf-directory .nrf-public-search input,
body .nrf-directory .nrf-bonus-search input,
body .nrf-directory .nrf-menu-search input {
  color: var(--ocrm-ui-text);
}
body .nrf-directory .nrf-bonus-search input,
body .nrf-directory .nrf-menu-search input {
  background-color: var(--ocrm-ui-surface);
  border-color: var(--ocrm-ui-control);
}
body .nrf-directory.nrf-bonus-ready .nrf-bonus-apply,
body .nrf-directory .nrf-company-actions .nrf-claim-link,
body .nrf-company-detail .nrf-claim-link {
  background-color: var(--ocrm-ui-action) !important;
  color: var(--ocrm-ui-action-text) !important;
}
body .nrf-directory :is(button, a, input, select, textarea, summary):focus-visible {
  outline-color: var(--ocrm-ui-focus) !important;
}
body .nrf-directory.nrf-bonus-ready .nrf-bonus-controls :is(input, select):focus {
  border-color: var(--ocrm-ui-focus);
  outline-color: var(--ocrm-ui-focus);
}
body #ocm-home .ocm-bonus-shortcuts a:hover {
  background-color: var(--ocrm-ui-selected);
  color: var(--ocrm-ui-selected-text);
}
body #ocm-home .ocm-bonus-shortcuts a > span {
  color: var(--ocrm-ui-link);
}

/* 5. Popup uses independent surface vars already, but earlier hard-coded
   popup colors can appear during fallback/loading states. */
body .nrf-company-detail {
  background-color: var(--ocrm-ui-surface);
  color: var(--ocrm-ui-text);
  border-color: var(--ocrm-ui-divider);
}
body .nrf-company-detail .nrf-detail-offer,
body .nrf-company-detail .nrf-detail-close {
  background-color: var(--ocrm-ui-raised);
  border-color: var(--ocrm-ui-divider);
}

/* 6. Editorial surfaces. Preserve content, typography, and image behavior. */
body .ocrm-editorial .ocrm-breadcrumb {
  color: var(--ocrm-ui-text-muted);
}

/* 7. Decorative CSS-made story panels only: banners/images remain intact. */
body .nrf-directory .nrf-story-blue {
  background: linear-gradient(130deg, var(--ocrm-ui-selected), var(--ocrm-ui-raised));
  color: var(--ocrm-ui-text);
}
body .nrf-directory .nrf-story-lilac {
  background: linear-gradient(130deg, var(--ocrm-ui-raised), var(--ocrm-ui-selected));
  color: var(--ocrm-ui-text);
}

/* Intentional exemptions:
 * - Do NOT recolor company logos, uploaded banners, promo images, badges.
 * - Keep report/safety actions red for unambiguous warnings.
 * - Do NOT touch JS, mobile gutters, 5-tab nav dimensions, header position,
 *   image aspect ratios, claim URLs, or language-switcher behavior.
 */


/* ===================================================================
 * v1.1.0 - Company list labels and readable typography (2026-11-18)
 * Limited scope: existing directory rows; do not move images or alter
 * the list data, company claims, page navigation, or native theme CSS.
 * =================================================================== */

/* Light: company headings, primary details and chips use true neutral
   black rather than the original green/cyan-toned text. Dark mode still
   needs light body text against dark cards for accessible contrast. */
:root:root {
  --ocrm-company-text: #111111;
  --ocrm-company-muted: #363636;
  --ocrm-company-chip-bg: #EAF2EC;
  --ocrm-company-chip-text: #111111;
  --ocrm-company-chip-border: #DAE8DE;
}
:root:root[data-ocrm-theme="dark"] {
  --ocrm-company-text: #F5F8F5;
  --ocrm-company-muted: #D8E4DB;
  --ocrm-company-chip-bg: #DBEBDF;
  --ocrm-company-chip-text: #111111;
  --ocrm-company-chip-border: #B5D0BB;
}

/* Company names, main promotion, dates and directory section heading. */
body .nrf-directory .nrf-app-copy strong,
body .nrf-directory .nrf-app-copy .nrf-main-promotion,
body .nrf-directory .nrf-app-copy .nrf-key-conditions,
body .nrf-directory .nrf-view-heading h1,
body .nrf-directory .nrf-today-heading h1,
body .nrf-directory .nrf-section-heading h2 {
  color: var(--ocrm-company-text) !important;
}
body .nrf-directory .nrf-app-copy small,
body .nrf-directory .nrf-app-copy > span:not(.nrf-main-promotion),
body .nrf-directory .nrf-view-heading > p,
body .nrf-directory .nrf-today-heading > p {
  color: var(--ocrm-company-muted) !important;
}

/* Promotion chips use a uniform flex-row with predictable spacing.
   The chips wrap as WHOLE chips rather than splitting their text. */
body .nrf-directory .nrf-secondary-promotions,
body .nrf-directory .nrf-bonus-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 6px !important;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  white-space: normal !important;
}
body .nrf-directory .nrf-secondary-promotions b,
body .nrf-directory .nrf-bonus-badges > :is(span, b, em) {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 27px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--ocrm-company-chip-border);
  border-radius: 8px;
  background: var(--ocrm-company-chip-bg);
  color: var(--ocrm-company-chip-text) !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

/* Partnership chips were previously starting below the logo instead of
   lining up under the company NAME. The card uses a 64px logo + 12px gap. */
body .nrf-directory .nrf-app-content > .nrf-company-partnerships {
  box-sizing: border-box;
  display: flex !important;
  width: 100%;
  max-width: 100% !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px !important;
  margin: 8px 0 0;
  padding-left: 61px;
}
body .nrf-directory .nrf-app-content > .nrf-company-partnerships .nrf-partnership-tag,
body .nrf-directory .nrf-app-copy .nrf-partnership-tag {
  box-sizing: border-box;
  display: inline-flex !important;
  min-height: 27px;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--ocrm-company-chip-border);
  border-radius: 8px;
  background: var(--ocrm-company-chip-bg);
  color: var(--ocrm-company-chip-text) !important;
  font-size: 11px !important;
  line-height: 1.25;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body .nrf-directory .nrf-app-row .nrf-partnership-tag > span:last-child {
  color: var(--ocrm-company-chip-text) !important;
}

/* The View details chip was green text; make the text black while the
   light-sage button surface remains green, in BOTH appearance modes. */
body .nrf-directory .nrf-app-row > .nrf-pill {
  background: var(--ocrm-company-chip-bg) !important;
  color: var(--ocrm-company-chip-text) !important;
  border-color: var(--ocrm-company-chip-border) !important;
}
body .nrf-directory .nrf-app-row > .nrf-pill:hover {
  background: #CEE6D4 !important;
  color: #111111 !important;
}

/* NEW label: legible black text on a gentle, recognizable green tag.
   No badge text or source information is changed. */
body .nrf-directory .nrf-app-copy .nrf-new-listing-tag {
  color: var(--ocrm-company-chip-text) !important;
}

/* Mobile logo is 58px wide and the existing main-row gap is 11px.
   Align the partnership tags with the company NAME, not the logo edge. */
@media (max-width: 767px) {
  body .nrf-directory .nrf-app-content > .nrf-company-partnerships {
    padding-left: 69px;
  }
}

/* Very narrow phones: keep ALL tags aligned with the company title,
   and allow their text to wrap inside the chip if space runs out. */
@media (max-width: 359px) {
  body .nrf-directory .nrf-secondary-promotions b,
  body .nrf-directory .nrf-bonus-badges > :is(span, b, em),
  body .nrf-directory .nrf-partnership-tag {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

/* ===================================================================
 * Forest Emerald 2.0: semantic colors over neutral reading surfaces.
 * The existing company-chip spacing and responsive alignment are kept.
 * Triple :root wins over the previously published sitewide color layer.
 * =================================================================== */
:root:root:root {
  color-scheme: light;
  --ocrm-ui-page: #F5F7F5;
  --ocrm-ui-surface: #FFFFFF;
  --ocrm-ui-raised: #EEF2EF;
  --ocrm-ui-text: #19261F;
  --ocrm-ui-text-muted: #526258;
  --ocrm-ui-action: #176A46;
  --ocrm-ui-action-text: #FFFFFF;
  --ocrm-ui-link: #155C9B;
  --ocrm-ui-selected: #E4F2E9;
  --ocrm-ui-selected-text: #0B5537;
  --ocrm-ui-divider: #DDE5DF;
  --ocrm-ui-control: #687B70;
  --ocrm-ui-report: #B42318;
  --ocrm-ui-report-surface: #FEF3F2;
  --ocrm-ui-brand: #0B5537;
  --ocrm-ui-on-brand: #FFFFFF;
  --ocrm-ui-focus: #155C9B;
  --ocrm-ui-shadow: rgba(18, 25, 28, .12);
  --ocrm-ui-scrim: rgba(7, 14, 12, .62);
  --theme-palette-color-1: #176A46;
  --theme-palette-color-2: #155C9B;
  --theme-palette-color-3: #526258;
  --theme-palette-color-4: #19261F;
  --theme-palette-color-5: #DDE5DF;
  --theme-palette-color-6: #EEF2EF;
  --theme-palette-color-7: #F5F7F5;
  --theme-palette-color-8: #FFFFFF;
  --ocrm-company-text: #19261F;
  --ocrm-company-muted: #526258;
  --ocrm-company-chip-bg: #EFF2F4;
  --ocrm-company-chip-text: #405463;
  --ocrm-company-chip-border: #D4DFE5;
  --ocrm-semantic-info-bg: #EAF3FF;
  --ocrm-semantic-info-text: #155C9B;
  --ocrm-semantic-info-border: #C7DFF4;
  --ocrm-semantic-category-bg: #F3EBFF;
  --ocrm-semantic-category-text: #684089;
  --ocrm-semantic-category-border: #DCC8EF;
  --ocrm-semantic-rebate-bg: #E5F6F5;
  --ocrm-semantic-rebate-text: #0C6C70;
  --ocrm-semantic-rebate-border: #B6DFDD;
  --ocrm-semantic-new-bg: #FFF1D6;
  --ocrm-semantic-new-text: #6E4A00;
  --ocrm-semantic-new-border: #E4C988;
  --ocrm-semantic-slate-bg: #EFF2F4;
  --ocrm-semantic-slate-text: #405463;
  --ocrm-semantic-slate-border: #D4DFE5;
}
:root:root:root[data-ocrm-theme="dark"] {
  color-scheme: dark;
  --ocrm-ui-page: #12191C;
  --ocrm-ui-surface: #1E2925;
  --ocrm-ui-raised: #26322F;
  --ocrm-ui-text: #F2F6F2;
  --ocrm-ui-text-muted: #B9C9BF;
  --ocrm-ui-action: #4FC79B;
  --ocrm-ui-action-text: #0C261C;
  --ocrm-ui-link: #9CCAFF;
  --ocrm-ui-selected: #254A3B;
  --ocrm-ui-selected-text: #DEF7E9;
  --ocrm-ui-divider: #3A4A43;
  --ocrm-ui-control: #9CAFA2;
  --ocrm-ui-report: #FFB6AF;
  --ocrm-ui-report-surface: #43292C;
  --ocrm-ui-brand: #0B5537;
  --ocrm-ui-on-brand: #FFFFFF;
  --ocrm-ui-focus: #9CCAFF;
  --ocrm-ui-shadow: rgba(0, 0, 0, .42);
  --ocrm-ui-scrim: rgba(0, 0, 0, .72);
  /* Native Blocksy buttons still use white labels. */
  --theme-palette-color-1: #176A46;
  --theme-palette-color-2: #9CCAFF;
  --theme-palette-color-3: #B9C9BF;
  --theme-palette-color-4: #F2F6F2;
  --theme-palette-color-5: #3A4A43;
  --theme-palette-color-6: #26322F;
  --theme-palette-color-7: #12191C;
  --theme-palette-color-8: #1E2925;
  --ocrm-company-text: #F2F6F2;
  --ocrm-company-muted: #B9C9BF;
  --ocrm-company-chip-bg: #2B3735;
  --ocrm-company-chip-text: #DDE7E0;
  --ocrm-company-chip-border: #485950;
  --ocrm-semantic-info-bg: #26394D;
  --ocrm-semantic-info-text: #9CCAFF;
  --ocrm-semantic-info-border: #45617F;
  --ocrm-semantic-category-bg: #3A2D48;
  --ocrm-semantic-category-text: #DEC7FF;
  --ocrm-semantic-category-border: #68547B;
  --ocrm-semantic-rebate-bg: #203B3D;
  --ocrm-semantic-rebate-text: #8CD9D5;
  --ocrm-semantic-rebate-border: #3C6868;
  --ocrm-semantic-new-bg: #443A25;
  --ocrm-semantic-new-text: #F0CC81;
  --ocrm-semantic-new-border: #7C6842;
  --ocrm-semantic-slate-bg: #2D393E;
  --ocrm-semantic-slate-text: #C6D2DA;
  --ocrm-semantic-slate-border: #526269;
}

/* Preserve primary-green actions, with neutral company names and details. */
html body .nrf-directory .nrf-app-copy strong,
html body .nrf-directory .nrf-app-copy .nrf-main-promotion,
html body .nrf-directory .nrf-app-copy .nrf-key-conditions,
html body .nrf-directory .nrf-view-heading h1,
html body .nrf-directory .nrf-today-heading h1,
html body .nrf-directory .nrf-section-heading h2 {
  color: var(--ocrm-company-text) !important;
}
html body .nrf-directory .nrf-app-copy small,
html body .nrf-directory .nrf-app-copy > span:not(.nrf-main-promotion),
html body .nrf-directory .nrf-view-heading > p,
html body .nrf-directory .nrf-today-heading > p {
  color: var(--ocrm-company-muted) !important;
}
html body .nrf-directory .nrf-app-row > .nrf-pill {
  background: var(--ocrm-ui-selected) !important;
  color: var(--ocrm-ui-selected-text) !important;
  border-color: var(--ocrm-ui-divider) !important;
}
html body .nrf-directory .nrf-app-row > .nrf-pill:hover {
  background: var(--ocrm-ui-raised) !important;
  color: var(--ocrm-ui-selected-text) !important;
}

/* Semantic promotion chips. The small script only marks existing labels
   with their existing offer category; unknown labels stay neutral. */
html body .nrf-directory :is(.nrf-secondary-promotions, .nrf-bonus-badges) b {
  background: var(--ocrm-company-chip-bg) !important;
  color: var(--ocrm-company-chip-text) !important;
  border-color: var(--ocrm-company-chip-border) !important;
}
html body .nrf-directory :is(.nrf-secondary-promotions, .nrf-bonus-badges) b[data-ocrm-color="free"],
html body .nrf-directory :is(.nrf-secondary-promotions, .nrf-bonus-badges) b[data-ocrm-color="daily"] {
  background: var(--ocrm-semantic-info-bg) !important;
  color: var(--ocrm-semantic-info-text) !important;
  border-color: var(--ocrm-semantic-info-border) !important;
}
html body .nrf-directory :is(.nrf-secondary-promotions, .nrf-bonus-badges) b[data-ocrm-color="welcome"] {
  background: var(--ocrm-semantic-category-bg) !important;
  color: var(--ocrm-semantic-category-text) !important;
  border-color: var(--ocrm-semantic-category-border) !important;
}
html body .nrf-directory :is(.nrf-secondary-promotions, .nrf-bonus-badges) b[data-ocrm-color="rebate"],
html body .nrf-directory :is(.nrf-secondary-promotions, .nrf-bonus-badges) b[data-ocrm-color="cashback"] {
  background: var(--ocrm-semantic-rebate-bg) !important;
  color: var(--ocrm-semantic-rebate-text) !important;
  border-color: var(--ocrm-semantic-rebate-border) !important;
}
html body .nrf-directory .nrf-new-listing-tag,
html body .nrf-directory .nrf-app-copy .nrf-new-listing-tag,
html body .nrf-company-detail .nrf-new-listing-tag {
  background: var(--ocrm-semantic-new-bg) !important;
  color: var(--ocrm-semantic-new-text) !important;
  border-color: var(--ocrm-semantic-new-border) !important;
}
html body .nrf-directory .nrf-partnership-tag,
html body .nrf-directory .nrf-app-content > .nrf-company-partnerships .nrf-partnership-tag,
html body .nrf-directory .nrf-app-row .nrf-partnership-tag > span:last-child {
  background-color: var(--ocrm-semantic-slate-bg) !important;
  color: var(--ocrm-semantic-slate-text) !important;
  border-color: var(--ocrm-semantic-slate-border) !important;
}

/* Search suggestion pills communicate the selected offer category. */
html body .nrf-directory .nrf-search-suggestions button[data-id="free-credit"],
html body .nrf-directory .nrf-search-suggestions button[data-id="daily"] {
  background: var(--ocrm-semantic-info-bg);
  color: var(--ocrm-semantic-info-text);
  border-color: var(--ocrm-semantic-info-border);
}
html body .nrf-directory .nrf-search-suggestions button[data-id="welcome"] {
  background: var(--ocrm-semantic-category-bg);
  color: var(--ocrm-semantic-category-text);
  border-color: var(--ocrm-semantic-category-border);
}

/* Popup offer rows remain neutral for scanning; label hues add meaning. */
html body .nrf-company-detail .nrf-detail-promotion-row[data-ocrm-color="free"] .nrf-detail-promotion-label,
html body .nrf-company-detail .nrf-detail-promotion-row[data-ocrm-color="daily"] .nrf-detail-promotion-label {
  color: var(--ocrm-semantic-info-text);
}
html body .nrf-company-detail .nrf-detail-promotion-row[data-ocrm-color="welcome"] .nrf-detail-promotion-label {
  color: var(--ocrm-semantic-category-text);
}
html body .nrf-company-detail .nrf-detail-promotion-row[data-ocrm-color="rebate"] .nrf-detail-promotion-label,
html body .nrf-company-detail .nrf-detail-promotion-row[data-ocrm-color="cashback"] .nrf-detail-promotion-label {
  color: var(--ocrm-semantic-rebate-text);
}
html body .nrf-company-detail .nrf-detail-primary-action a {
  background: var(--ocrm-ui-action) !important;
  color: var(--ocrm-ui-action-text) !important;
}
html body .nrf-company-detail .nrf-detail-report {
  background: var(--ocrm-ui-report-surface);
  color: var(--ocrm-ui-report);
}

/* Informational pages use blue links and neutral copy on both modes.
   Legacy article styles contain fixed light-blue panels and dark copy. */
html body .ocrm-editorial {
  background: var(--ocrm-ui-surface);
  color: var(--ocrm-ui-text);
}
html body .ocrm-editorial :is(.ocrm-prose p, .ocrm-content-types p, .ocrm-team dd, .ocrm-definitions dd,
  .ocrm-contact-card small, .ocrm-service-note, .ocrm-sources p, .ocrm-meta,
  .ocrm-breadcrumb, .ocrm-article-end, .ocrm-toc-inner > p, .ocrm-toc-foot,
  .ocrm-section-index, .ocrm-reading-card span > span, td, caption) {
  color: var(--ocrm-ui-text-muted);
}
html body .ocrm-editorial :is(.ocrm-deck, .ocrm-eyebrow, .ocrm-note strong, .ocrm-content-types h4,
  .ocrm-reading-card strong, .ocrm-next-grid strong, .ocrm-definitions dt, tbody th) {
  color: var(--ocrm-ui-text);
}
html body .ocrm-editorial :is(.ocrm-content-types, .ocrm-disclosure-inline, .ocrm-note,
  .ocrm-reading-card, .ocrm-support-note, .ocrm-contact-card, .ocrm-next-grid > a,
  caption, thead, .ocrm-avatar) {
  background: var(--ocrm-ui-raised);
  border-color: var(--ocrm-ui-divider);
  color: var(--ocrm-ui-text);
}
html body .ocrm-editorial :is(.ocrm-reading-card, .ocrm-contact-card, .ocrm-next-grid > a):hover {
  background: var(--ocrm-ui-selected);
  border-color: var(--ocrm-ui-control);
}
html body .ocrm-editorial a:not(.ocrm-report-link),
html body .ocrm-editorial .ocrm-toc li a[aria-current="location"],
html body .ocrm-editorial .ocrm-toc li a:hover {
  color: var(--ocrm-ui-link);
}
html body .ocrm-editorial .ocrm-toc li a[aria-current="location"] {
  border-left-color: var(--ocrm-ui-link);
}
html body .ocrm-editorial .ocrm-support-note {
  background: var(--ocrm-semantic-new-bg);
  border-color: var(--ocrm-semantic-new-border);
}
html body .ocrm-editorial .ocrm-support-note :is(strong, p) {
  color: var(--ocrm-semantic-new-text);
}
html body .ocrm-editorial .ocrm-report-link {
  color: var(--ocrm-ui-report);
}

/* The Free Credit long-form guide keeps its calm contents list, while
   inline source references use the informational link color. */
html body .ocfc .ocfc-section .ocfc-source-link a {
  color: var(--ocrm-ui-link) !important;
}

/* Carry forward v1.2.0's directory-canvas repair. Earlier public.css paints
   several nested wrappers literal white; tokens alone cannot reach them. */
:root:root:root {
  --ocrm-directory-canvas: #F5F7F5;
  --ocrm-directory-row: #FFFFFF;
  --ocrm-directory-divider: #DDE5DF;
}
:root:root:root[data-ocrm-theme="dark"] {
  --ocrm-directory-canvas: #12191C;
  --ocrm-directory-row: #1E2925;
  --ocrm-directory-divider: #3A4A43;
}
body .nrf-site-shell .nrf-directory,
body .nrf-site-shell .nrf-directory .nrf-store,
body .nrf-site-shell .nrf-directory .nrf-store.is-sidebar-collapsed {
  background-color: var(--ocrm-directory-canvas) !important;
}
body .nrf-site-shell .nrf-directory .nrf-store-body,
body .nrf-site-shell .nrf-directory .nrf-store-header,
body .nrf-site-shell .nrf-directory .nrf-store-main,
body .nrf-site-shell .nrf-directory .nrf-store-footer {
  background-color: transparent !important;
}
body .nrf-site-shell .nrf-directory .nrf-app-row {
  background-color: var(--ocrm-directory-row) !important;
  border-color: var(--ocrm-directory-divider) !important;
}
body .nrf-site-shell .nrf-directory .nrf-section-heading,
body .nrf-site-shell .nrf-directory .nrf-store-header,
body .nrf-site-shell .nrf-directory .nrf-store-footer {
  border-color: var(--ocrm-directory-divider) !important;
}
