/* OnlineCasinoRM 3.0 — Neutral Grey + Forest Emerald, 19 November 2026.
   Presentation only. No data, markup, search, date, language or URL changes.
   Loaded after the retained 2.0.2 compatibility layer. */
:root:root:root:root {
  color-scheme: light;
  --ocrm-ui-page: #F4F5F3;
  --ocrm-ui-surface: #FFFFFF;
  --ocrm-ui-raised: #E8E8E8;
  --ocrm-ui-hover: #DEDEDE;
  --ocrm-ui-text: #222222;
  --ocrm-ui-text-muted: #626262;
  --ocrm-ui-action: #145E42;
  --ocrm-ui-action-text: #FFFFFF;
  --ocrm-ui-link: #145E42;
  --ocrm-ui-selected: #E8E8E8;
  --ocrm-ui-selected-text: #145E42;
  --ocrm-ui-divider: #D4D4D4;
  --ocrm-ui-control: #D4D4D4;
  --ocrm-ui-focus: #145E42;
  --ocrm-ui-brand: #FFFFFF;
  --ocrm-ui-on-brand: #145E42;
  --ocrm-ui-shadow: rgba(0, 0, 0, .12);
  --ocrm-directory-canvas: #F4F5F3;
  --ocrm-directory-row: #FFFFFF;
  --ocrm-directory-divider: #D4D4D4;
  --ocrm-company-text: #222222;
  --ocrm-company-muted: #626262;
  --theme-palette-color-1: #145E42;
  --theme-palette-color-2: #104B35;
  --theme-palette-color-3: #626262;
  --theme-palette-color-4: #222222;
  --theme-palette-color-5: #D4D4D4;
  --theme-palette-color-6: #E8E8E8;
  --theme-palette-color-7: #F4F5F3;
  --theme-palette-color-8: #FFFFFF;
}
:root:root:root:root[data-ocrm-theme="dark"] {
  color-scheme: dark;
  --ocrm-ui-page: #181818;
  --ocrm-ui-surface: #252525;
  --ocrm-ui-raised: #303030;
  --ocrm-ui-hover: #383838;
  --ocrm-ui-text: #EDEDED;
  --ocrm-ui-text-muted: #AAAAAA;
  --ocrm-ui-action: #145E42;
  --ocrm-ui-action-text: #FFFFFF;
  --ocrm-ui-link: #A5DBC1;
  --ocrm-ui-selected: #383838;
  --ocrm-ui-selected-text: #A5DBC1;
  --ocrm-ui-divider: #484848;
  --ocrm-ui-control: #484848;
  --ocrm-ui-focus: #A5DBC1;
  --ocrm-ui-brand: #252525;
  --ocrm-ui-on-brand: #A5DBC1;
  --ocrm-ui-shadow: rgba(0, 0, 0, .42);
  --ocrm-directory-canvas: #181818;
  --ocrm-directory-row: #252525;
  --ocrm-directory-divider: #484848;
  --ocrm-company-text: #EDEDED;
  --ocrm-company-muted: #AAAAAA;
  --theme-palette-color-1: #145E42;
  --theme-palette-color-2: #A5DBC1;
  --theme-palette-color-3: #AAAAAA;
  --theme-palette-color-4: #EDEDED;
  --theme-palette-color-5: #484848;
  --theme-palette-color-6: #303030;
  --theme-palette-color-7: #181818;
  --theme-palette-color-8: #252525;
}

/* Search keeps its own flat neutral surface in every expanded state. */
html body .nrf-directory.nrf-bonus-ready .nrf-bonus-panel {
  background: var(--ocrm-ui-page) !important;
  color: var(--ocrm-ui-text);
}
html body .nrf-directory.nrf-bonus-ready .nrf-bonus-advanced {
  background: var(--ocrm-ui-surface) !important;
  border-color: var(--ocrm-ui-divider) !important;
}
html body .nrf-directory :is(.nrf-bonus-search, .nrf-public-search, .nrf-menu-search) input,
html body .nrf-directory.nrf-bonus-ready :is(.nrf-bonus-controls, .nrf-bonus-fields) :is(input, select) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  background: var(--ocrm-ui-raised) !important;
  border: 1px solid var(--ocrm-ui-divider) !important;
  color: var(--ocrm-ui-text) !important;
  font-size: 16px;
}
html body .nrf-directory :is(input, select)::placeholder {
  color: var(--ocrm-ui-text-muted);
  opacity: 1;
}
html body .nrf-directory .nrf-public-search {
  background: var(--ocrm-ui-surface) !important;
}
html body .nrf-directory :is(.nrf-store, .nrf-store-body, .nrf-store-main, .nrf-search-start) {
  background: transparent !important;
}

/* Shared secondary controls, including company-card actions. Keep the
   card grid, button placement, names, offers and links exactly as before. */
html body .nrf-directory :is(.nrf-pill, .nrf-filters-toggle, .nrf-filter),
html body .nrf-directory .nrf-search-suggestions button[data-id],
html body .nrf-directory .nrf-company-actions a:not(.nrf-claim-link),
html body .nrf-content-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--ocrm-ui-divider) !important;
  border-radius: 12px;
  background: var(--ocrm-ui-raised) !important;
  color: var(--ocrm-ui-selected-text) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}
html body .nrf-directory :is(.nrf-pill, .nrf-filters-toggle, .nrf-filter):hover,
html body .nrf-directory .nrf-search-suggestions button[data-id]:hover,
html body .nrf-content-button:hover {
  background: var(--ocrm-ui-hover) !important;
}
html body .nrf-directory :is(.nrf-filter.is-selected, .nrf-filters-toggle.is-active),
html body .nrf-directory .nrf-filter[aria-pressed="true"] {
  background: var(--ocrm-ui-hover) !important;
  border-color: var(--ocrm-ui-focus) !important;
  box-shadow: inset 0 0 0 1px var(--ocrm-ui-focus);
  color: var(--ocrm-ui-selected-text) !important;
}
html body .nrf-directory :is(button, a, input, select, summary):focus-visible,
html body :is(.ocfc, .ocrm-editorial) :is(a, summary):focus-visible {
  outline: 2px solid var(--ocrm-ui-focus) !important;
  outline-offset: 3px;
}
html body .nrf-directory.nrf-bonus-ready :is(.nrf-bonus-controls, .nrf-bonus-fields) :is(input, select):focus {
  border-color: var(--ocrm-ui-focus) !important;
  outline: 2px solid var(--ocrm-ui-focus) !important;
  outline-offset: 2px;
}
html body .nrf-directory.nrf-bonus-ready .nrf-bonus-apply,
html body .nrf-directory .nrf-company-actions .nrf-claim-link,
html body .nrf-company-detail .nrf-detail-primary-action a {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #145E42;
  background: #145E42 !important;
  color: #FFFFFF !important;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body .nrf-directory .nrf-bonus-apply:hover,
html body .nrf-directory .nrf-company-actions .nrf-claim-link:hover,
html body .nrf-company-detail .nrf-detail-primary-action a:hover {
  background: #104B35 !important;
}
html body .nrf-directory :is(.nrf-browse-primary, .nrf-bonus-fields, .nrf-bonus-range) > * {
  min-width: 0;
}
html body .nrf-directory .nrf-bonus-chips { flex-wrap: wrap; }
html body .nrf-directory.nrf-bonus-ready .nrf-bonus-chips .nrf-filter {
  font-size: 14px !important;
  line-height: 1.35;
  padding: 10px 14px;
  white-space: normal;
}
html body .nrf-directory .nrf-filters-toggle span { max-width: none; }

/* Company-card text density: keep the primary offer readable on one line and
   arrange secondary promotion labels as two balanced items per row. Long
   translations may still truncate safely instead of widening the card. */
html body .nrf-directory .nrf-app-copy {
  display: block;
  min-width: 0;
  width: 100%;
}
html body .nrf-directory .nrf-app-copy .nrf-main-promotion {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}
html body .nrf-directory .nrf-app-copy .nrf-secondary-promotions {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 5px 6px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
html body .nrf-directory .nrf-app-copy .nrf-secondary-promotions b {
  box-sizing: border-box;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: clamp(10px, 2.7vw, 12px) !important;
  line-height: 1.25;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}
html body .nrf-directory .nrf-app-copy .nrf-secondary-promotions:is(.nrf-tags-single, .nrf-tags-stacked) {
  flex-direction: column;
}
html body .nrf-directory .nrf-app-copy .nrf-secondary-promotions:is(.nrf-tags-single, .nrf-tags-stacked) b {
  flex: 1 1 auto;
  width: 100%;
  white-space: normal;
}

/* Individual listings sit on their own compact surface. The surrounding
   directory/search canvas stays transparent so it does not form one large
   white rectangle. */
html body .nrf-directory :is(.nrf-company-grid, .nrf-top-grid) {
  gap: 10px 12px;
}
html body .nrf-directory .nrf-app-row {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--ocrm-ui-divider) !important;
  border-radius: 14px;
  background: var(--ocrm-ui-surface) !important;
}

/* Compact section headings; only related actions share their geometry. */
html body .nrf-directory .nrf-section-heading {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 16px;
  margin-bottom: 10px;
}
html body .nrf-directory .nrf-section-heading > div:first-child {
  min-width: 0;
  flex: 1 1 240px;
}
html body .nrf-directory .nrf-section-heading h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(20px, 1.65vw, 26px);
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: wrap;
}
html body .nrf-directory .nrf-section-heading p { margin: 4px 0 0; }
html body .nrf-directory .nrf-section-heading > .nrf-pill {
  min-width: 88px;
  flex: 0 1 auto;
}

/* The existing 780px outer body also contains the TOC. Remove that double
   restriction only for the two known article systems, not arbitrary pages. */
html body .nrf-content-body:has(> .ocfc),
html body .nrf-content-body:has(> .ocrm-editorial) {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}
html body .nrf-content-body > .ocfc {
  width: 100%;
  max-width: 1160px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}
html body .ocfc .ocfc-layout {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
}
html body .ocfc .ocfc-sections { min-width: 0; max-width: 72ch; }
html body .ocfc .ocfc-section > :is(p, ul, ol, dl) { max-width: 68ch; }
html body .ocfc .ocfc-section h2 { font-size: clamp(23px, 2vw, 30px); }
html body .ocfc .ocfc-contents a {
  margin-left: 0;
  padding-inline: 10px;
}
html body :is(.ocfc, .ocrm-editorial) { text-align: left; }
html body .ocfc .ocfc-table thead th {
  background: var(--ocrm-ui-raised);
  color: var(--ocrm-ui-text);
}
@media (min-width: 768px) and (max-width: 1180px) {
  html body .ocfc .ocfc-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  html body .nrf-directory .nrf-section-heading > div:first-child { flex: 1 1 190px; }
  html body .nrf-directory .nrf-section-heading h2 { font-size: 21px; }
  html body .nrf-directory .nrf-section-heading > .nrf-pill { min-width: 76px; padding-inline: 12px; }
  html body .nrf-directory .nrf-bonus-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .nrf-directory .nrf-bonus-apply { grid-column: 1 / -1; }
  html body .nrf-directory .nrf-app-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body .nrf-content-body > .ocfc,
  html body .nrf-content-body,
  html body .ocrm-editorial :is(.ocrm-prose, .ocrm-prose p, .ocrm-deck) {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
  }
  html body .ocfc .ocfc-layout { display: block; }
  html body .ocfc .ocfc-sections { max-width: 100%; }
  html body .ocfc .ocfc-contents {
    position: static;
    background: var(--ocrm-ui-raised);
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 16px;
  }
  html body .ocfc .ocfc-contents ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
  html body .ocfc .ocfc-contents a { padding: 10px 0; min-height: 44px; }
  html body .ocfc .ocfc-section { margin-bottom: 40px; }
  html body .ocfc .ocfc-section > h2 { margin-bottom: 16px; }
  html body .ocfc .ocfc-definition { font-size: 16px; line-height: 1.65; font-weight: 400; }
}
@media (prefers-reduced-motion: reduce) {
  html body .nrf-directory :is(button, a) { transition: none; }
}
