/* ==========================================================================
   ris-contrast-v90.css — final contrast layer. Must load LAST.

   Why this file exists: four generations of "readability" stylesheets
   (article-reading v78, v79, fa-article-readability v80, persian-article v80)
   each re-polarised .sec.dark from dark to light, but each only re-coloured a
   partial list of descendants. Every element outside those lists kept its
   light text on a now-light surface and became invisible.

   Rule of this file: background and text colour are always declared together,
   so polarity is never ambiguous. Selectors carry :not(#_) so this layer
   reliably wins over the older !important rules.
   All body text >= 4.5:1, display text >= 3:1 (WCAG 2.1 AA).
   ========================================================================== */

:root{
  --c90-paper:#FBF9F4;
  --c90-white:#FFFFFF;
  --c90-navy:#0A1628;
  --c90-ink:#16202E;        /* on paper   14.9:1 */
  --c90-ink-mute:#54637A;   /* on paper    5.6:1 */
  --c90-link:#7A5A0C;       /* on paper    6.1:1 */
  --c90-ondark:#F2F6FA;     /* on navy    16.0:1 */
  --c90-ondark-soft:#D3DCE7;/* on navy    11.4:1 */
  --c90-gold-ondark:#E8C766;/* on navy     9.1:1 */
  --c90-gold-btn:#C9A84C;
  --c90-ongold:#1B1403;     /* on gold     9.6:1 */
}

/* -------------------------------------------------- A. LIGHT CARDS */
html:not(#_) body :is(.rlx-disc,.ris-disclaimer,.faq-item,.rlx-key,.rlx-check,.rlx-src,.rlx-author,.art-take,.art-check,.art-snippet,.keybox,.law-card,.case-box,.evidence-card){background:var(--c90-white)!important;background-color:var(--c90-white)!important}
html:not(#_) body :is(.rlx-disc,.ris-disclaimer,.faq-item,.rlx-key,.rlx-check,.rlx-src,.rlx-author,.art-take,.art-check,.art-snippet,.keybox,.law-card,.case-box,.evidence-card) :is(p,li,dd,dt,span,em,small,strong,td,th,h2,h3,h4,h5,h6,div,summary,figcaption,blockquote){color:var(--c90-ink)!important;opacity:1!important}
html:not(#_) body :is(.rlx-disc,.ris-disclaimer,.faq-item,.rlx-key,.rlx-check,.art-take) a:not(.btn){color:var(--c90-link)!important}

/* -------------------------------------------------- B. ARTICLE BODY (light) */
html:not(#_) body:is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) :is(.sec.dark,.art-body){background:var(--c90-paper)!important;background-color:var(--c90-paper)!important}
html:not(#_) body:is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) :is(.sec.dark,.art-body) :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote){color:var(--c90-ink)!important;opacity:1!important}
html:not(#_) body:is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) :is(.sec.dark,.art-body) :is(figcaption,.note-muted,.art-meta,.byline,.breadcrumbs,small){color:var(--c90-ink-mute)!important}
html:not(#_) body:is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) :is(.sec.dark,.art-body) a:not(.btn){color:var(--c90-link)!important}

/* -------------------------------------------------- C. DARK SURFACES */
html:not(#_) body :is(nav,footer,.site-footer,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.rasia-panel,.iranbox,.hero){background-color:var(--c90-navy)!important}
html:not(#_) body :is(.rlx-hero,.hero){background-image:linear-gradient(160deg,#0A1628 0%,#152C49 100%)!important}
html:not(#_) body :is(nav,footer,.site-footer,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.rasia-panel,.iranbox,.hero) :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote,label,figcaption){color:var(--c90-ondark)!important;opacity:1!important}
html:not(#_) body :is(nav,footer,.site-footer,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.rasia-panel,.hero) :is(p,li,.lead,.sec-sub,.nav-tagline,.footer-disclaimer,small,figcaption,.note-muted){color:var(--c90-ondark-soft)!important}
html:not(#_) body :is(nav,footer,.site-footer,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.rasia-panel,.hero) :is(.eyebrow,.sec-tag,.rlx-kicker,.cred-kicker,.kicker,.step-num,.cred-verify){color:var(--c90-gold-ondark)!important}
html:not(#_) body :is(nav,footer,.site-footer,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.hero) a:not(.btn){color:var(--c90-gold-ondark)!important}
html:not(#_) body nav :is(a,button,.nav-btn){color:var(--c90-ondark-soft)!important}
html:not(#_) body nav :is(.nav-btn.active,.nav-brand,.brand-name,.nav-btn:hover){color:var(--c90-ondark)!important}

/* -------------------------------------------------- D. BUTTONS */
html:not(#_) body :is(.btn-gold,.nav-cta,.nav-btn.cta,.rasia-panel__btn){background:var(--c90-gold-btn)!important;background-color:var(--c90-gold-btn)!important;background-image:none!important;color:var(--c90-ongold)!important;border:1px solid #B8963C!important;font-weight:700!important}
html:not(#_) body :is(.btn-gold,.nav-cta,.nav-btn.cta,.rasia-panel__btn) :is(span,strong,em){color:var(--c90-ongold)!important}
html:not(#_) body :is(nav,footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box) .btn-outline{background:rgba(255,255,255,.07)!important;background-color:rgba(255,255,255,.07)!important;color:var(--c90-ondark)!important;border:1px solid rgba(255,255,255,.55)!important}
html:not(#_) body :is(nav,footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box) .btn-outline :is(span,strong){color:var(--c90-ondark)!important}

/* -------------------------------------------------- E. ACCESSIBILITY FLOOR */
:focus-visible{outline:3px solid #E8C766;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* ========================= F. FINAL RESOLUTION LAYER =========================
   Declared last and with three id-weight tokens so it outranks every rule
   above, including the long :not() chains. Nothing after this file. */

/* F1. .sec.dark on pages with NO reading stylesheet stays genuinely dark */
html:not(#_1):not(#_2) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark{background:var(--c90-navy)!important;background-color:var(--c90-navy)!important}
html:not(#_1):not(#_2) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote,figcaption){color:var(--c90-ondark)!important;opacity:1!important}
html:not(#_1):not(#_2) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark :is(a:not(.btn),.sec-tag,.eyebrow,.kicker){color:var(--c90-gold-ondark)!important}

/* F2. cards sitting INSIDE a dark surface stay dark — no white islands */
html:not(#_1):not(#_2) body:not(#_3) :is(.sec.dark,nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box) :is(.faq-item,.rlx-disc,.ris-disclaimer,.art-snippet,.art-take,.art-check,.rlx-key,.rlx-check,.card,.keybox,.law-card,.case-box,.evidence-card){background:#13233C!important;background-color:#13233C!important;border-color:rgba(232,199,102,.28)!important;color:var(--c90-ondark)!important}
html:not(#_1):not(#_2) body:not(#_3) :is(.sec.dark,nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box) :is(.faq-item,.rlx-disc,.ris-disclaimer,.art-snippet,.art-take,.art-check,.rlx-key,.rlx-check,.card,.keybox,.law-card,.case-box,.evidence-card) :is(p,li,span,em,small,strong,td,th,h2,h3,h4,h5,h6,div,summary,figcaption,blockquote){color:var(--c90-ondark)!important;opacity:1!important}
html:not(#_1):not(#_2) body:not(#_3) :is(.sec.dark,nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box) :is(.faq-item,.rlx-disc,.ris-disclaimer,.art-snippet,.art-take,.rlx-key,.card) a:not(.btn){color:var(--c90-gold-ondark)!important}

/* F3. gold text never sits on a light surface */
html:not(#_1):not(#_2) body:not(#_3) .sec:not(.dark) :is(.sec-tag,.eyebrow,.kicker,.cred-kicker,strong){color:var(--c90-link)!important}
html:not(#_1):not(#_2) body:not(#_3) .sec:not(.dark) a:not(.btn){color:var(--c90-link)!important}

/* F4. every spelling of the gold CTA button */
html:not(#_1):not(#_2) body:not(#_3) :is(.btn-gold,.nav-cta,.nav-btn.cta,.nav-btn.nav-cta,.rasia-panel__btn,.cred-number,.badge,.chip,.tag-gold){background:var(--c90-gold-btn)!important;background-color:var(--c90-gold-btn)!important;background-image:none!important;color:var(--c90-ongold)!important;border:1px solid #B8963C!important}
html:not(#_1):not(#_2) body:not(#_3) :is(.btn-gold,.nav-cta,.nav-btn.cta,.nav-btn.nav-cta,.rasia-panel__btn,.cred-number,.badge,.chip,.tag-gold) :is(span,strong,em,small){color:var(--c90-ongold)!important}

/* F5. muted greys lifted to the 4.5:1 floor on dark */
html:not(#_1):not(#_2) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.sec.dark) :is(.note-muted,.hero-lic,.footer-disclaimer,.muted,.subtle,.eta-ircc){color:#AFBECE!important}

/* ============ ORDERED RESOLUTION ============
   light (3 ids) -> dark (4 ids) -> buttons (5 ids).
   .sec.dark is treated as LIGHT on pages carrying a reading stylesheet
   (those stylesheets repaint it) and as DARK everywhere else. */

/* G1 — light surfaces */
html:not(#_1):not(#_2) body:not(#_3) :is(.sec:not(.dark),body:is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) .art-body) :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote,figcaption,cite,code,time,label,.faq-q,.faq-a,.faq-a-inner){color:var(--c90-ink)!important;opacity:1!important}
html:not(#_1):not(#_2) body:not(#_3) :is(.sec:not(.dark),.art-body) :is(figcaption,small,.note-muted,.muted,.subtle,time){color:var(--c90-ink-mute)!important}
html:not(#_1):not(#_2) body:not(#_3) :is(.sec:not(.dark),.art-body) a:not(.btn):not(.nav-btn){color:var(--c90-link)!important}
html:not(#_1):not(#_2) body:not(#_3) :is(.sec:not(.dark),.art-body) :is(.sec-tag,.eyebrow,.kicker,.source-link){color:var(--c90-link)!important}
/* reading pages: .sec.dark is repainted light, so it belongs here */
html:not(#_1):not(#_2) body:not(#_3):is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) .sec.dark :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote,figcaption,cite,code,time,label,.faq-q,.faq-a,.faq-a-inner){color:var(--c90-ink)!important;opacity:1!important}
html:not(#_1):not(#_2) body:not(#_3):is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) .sec.dark :is(a:not(.btn),.source-link,.sec-tag,.eyebrow){color:var(--c90-link)!important}
html:not(#_1):not(#_2) body:not(#_3):is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) .sec.dark :is(figcaption,small,.note-muted,time){color:var(--c90-ink-mute)!important}

/* G2 — dark surfaces */
html:not(#_1):not(#_2):not(#_4) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel) :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote,figcaption,cite,code,time,label,.faq-q,.faq-a,.faq-a-inner):not(.btn,.btn-gold,.btn-outline,.nav-cta,.nav-btn,.cta,.rasia-panel__btn,.badge,.chip,.tag-gold,.cred-number){color:var(--c90-ondark)!important;opacity:1!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel) :is(figcaption,small,.note-muted,.hero-lic,.footer-disclaimer,.eta-ircc,time,.muted){color:#AFBECE!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel) :is(.sec-tag,.eyebrow,.kicker,.rlx-kicker,.cred-kicker,.source-link){color:var(--c90-gold-ondark)!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel) a:not(.btn):not(.nav-btn):not(.cta){color:var(--c90-gold-ondark)!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel) :is(.faq-item,.rlx-disc,.ris-disclaimer,.art-snippet,.art-take,.rlx-key,.card,.keybox,.law-card,.case-box){background:#13233C!important;background-color:#13233C!important;border-color:rgba(232,199,102,.28)!important}
/* non-reading pages: .sec.dark is genuinely dark */
html:not(#_1):not(#_2):not(#_4) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark{background:var(--c90-navy)!important;background-color:var(--c90-navy)!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark :is(p,li,dd,dt,span,em,small,strong,td,th,h1,h2,h3,h4,h5,h6,div,summary,blockquote,figcaption,cite,code,time,label,.faq-q,.faq-a,.faq-a-inner):not(.btn,.btn-gold,.btn-outline,.nav-cta,.nav-btn,.cta,.rasia-panel__btn,.badge,.chip,.tag-gold,.cred-number){color:var(--c90-ondark)!important;opacity:1!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark :is(a:not(.btn),.sec-tag,.eyebrow,.kicker,.source-link){color:var(--c90-gold-ondark)!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark :is(figcaption,small,.note-muted,.eta-ircc,time){color:#AFBECE!important}
html:not(#_1):not(#_2):not(#_4) body:not(#_3):not(.ris-article-reading):not(.ris-reading-v78):not(.ris-reading-v79):not(.ris-fa-article-v80) .sec.dark :is(.faq-item,.rlx-disc,.art-snippet,.art-take,.rlx-key,.card,.keybox){background:#13233C!important;background-color:#13233C!important;border-color:rgba(232,199,102,.28)!important}

/* G3 — buttons and gold chips: final word */
html:not(#_1):not(#_2):not(#_4):not(#_5) body:not(#_3) :is(.btn-gold,.nav-cta,.nav-btn.cta,.nav-btn.nav-cta,.rasia-panel__btn,.cred-number,.badge,.chip,.tag-gold){background:var(--c90-gold-btn)!important;background-color:var(--c90-gold-btn)!important;background-image:none!important;color:var(--c90-ongold)!important;border:1px solid #B8963C!important;font-weight:700!important}
html:not(#_1):not(#_2):not(#_4):not(#_5) body:not(#_3) :is(.btn-gold,.nav-cta,.nav-btn.cta,.nav-btn.nav-cta,.rasia-panel__btn,.cred-number,.badge,.chip,.tag-gold) :is(span,strong,em,small){color:var(--c90-ongold)!important}
html:not(#_1):not(#_2):not(#_4):not(#_5) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel) .btn-outline{background:rgba(255,255,255,.07)!important;background-color:rgba(255,255,255,.07)!important;color:var(--c90-ondark)!important;border:1px solid rgba(255,255,255,.55)!important}
html:not(#_1):not(#_2):not(#_4):not(#_5) body:not(#_3) .sec:not(.dark) .btn-outline{background:transparent!important;color:#22314A!important;border:1px solid rgba(34,49,74,.45)!important}

/* G4 — cards repainted dark by G2 must carry light text (6 id tiers: last word) */
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel,.sec.dark) :is(.faq-item,.rlx-disc,.ris-disclaimer,.art-snippet,.art-take,.art-check,.rlx-key,.rlx-check,.card,.keybox,.law-card,.case-box,.evidence-card,.step,.steps>div,.checks){background:#13233C!important;background-color:#13233C!important;border-color:rgba(232,199,102,.28)!important;color:#F2F6FA!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.ris-topic-cluster,.cta-box,.fa-market,.legal-note,.iranbox,.rasia-panel,.sec.dark) :is(.faq-item,.rlx-disc,.ris-disclaimer,.art-snippet,.art-take,.art-check,.rlx-key,.rlx-check,.card,.keybox,.law-card,.case-box,.evidence-card,.step,.steps>div,.checks) :is(p,li,dd,dt,span,em,small,strong,td,th,h2,h3,h4,h5,h6,div,summary,blockquote,figcaption,.faq-q,.faq-a,.faq-a-inner){color:#F2F6FA!important;opacity:1!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6) body:not(#_3) :is(nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box,.sec.dark) :is(.faq-item,.rlx-disc,.art-snippet,.art-take,.rlx-key,.card,.step) a:not(.btn){color:#E8C766!important}
/* G5 — gold-on-gold chips */
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6) body:not(#_3) :is(.eta-ircc,.tag-gold,.badge-gold){background:#0A1628!important;background-color:#0A1628!important;color:#E8C766!important;border:1px solid rgba(232,199,102,.45)!important}

/* G6 — remaining named containers (identified by audit) */
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7) body:not(#_3) .sec.dark :is(.risk-tags,.risk-tags>*,.eta-disclaimer,.eta-disclaimer>*,.feature,.feature>*){background:transparent!important;color:#F2F6FA!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7) body:not(#_3) .sec:not(.dark) :is(.eta-disclaimer,.eta-disclaimer>*,.risk-tags,.risk-tags>*){background:transparent!important;color:#16202E!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7) body:not(#_3) :is(.hero,.rlx-hero,nav,footer,.sec.dark) .hero-lic{color:#AFBECE!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7) body:not(#_3) .sec:not(.dark) a:not(.btn):not(.nav-btn){color:#7A5A0C!important}

/* G7 — closers */
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8) body:not(#_3) .sec:not(.dark) :is(.card,.step,.box){background:#FFFFFF!important;background-color:#FFFFFF!important;color:#16202E!important;border-color:#E4DFD2!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8) body:not(#_3) .sec:not(.dark) :is(.feature,.card,.step,.box) :is(p,li,span,strong,em,h2,h3,h4,h5,div,td,th,small){color:#16202E!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8) body:not(#_3) .sec:not(.dark) a:not(.btn):not(.nav-btn){color:#7A5A0C!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8) body:not(#_3) :is(.hero,.rlx-hero,nav,footer,.site-footer,.sec.dark,.cta-box,.rlx-cta,.ris-booking-cta,.legal-note) a:not(.btn):not(.nav-btn){color:#E8C766!important}

/* G8 — links on any dark surface, declared last */
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9) body:not(#_3) :is(.hero,.rlx-hero,nav,footer,.site-footer,.sec.dark,.cta-box,.rlx-cta,.ris-booking-cta,.legal-note,.fa-market,.ris-topic-cluster) :is(a:not(.btn):not(.nav-btn),.source-link,.eta-ircc,.eta-consult){color:#E8C766!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9) body:not(#_3):is(.ris-article-reading,.ris-reading-v78,.ris-reading-v79,.ris-fa-article-v80) .sec.dark :is(a:not(.btn):not(.nav-btn),.source-link,.eta-ircc,.eta-consult){color:#7A5A0C!important}

/* G9 — final closers: containers that are dark by design keep their background
   and receive light text; light surfaces keep ink. */
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) .feature{background:#132741!important;background-color:#132741!important;border:1px solid rgba(227,193,105,.24)!important;color:#F2F6FA!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) .feature :is(p,li,span,strong,em,small,h2,h3,h4,h5,td,th,div,dt,dd){color:#F2F6FA!important;opacity:1!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) .feature a:not(.btn){color:#E8C766!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) :is(.hero,.rlx-hero,nav,footer,.site-footer,.sec.dark) :is(.hero-lic,.lic,.licence-line){color:#C6D2DF!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) .sec:not(.dark) :is(details,summary,details p,details li,details span){background:transparent!important;color:#16202E!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) .sec:not(.dark) a:not(.btn):not(.nav-btn){color:#7A5A0C!important}
html:not(#_1):not(#_2):not(#_4):not(#_5):not(#_6):not(#_7):not(#_8):not(#_9):not(#_a) body:not(#_3) :is(.sec.dark,nav,footer,.site-footer,.hero,.rlx-hero,.rlx-cta,.ris-booking-cta,.cta-box,.legal-note,.fa-market,.ris-topic-cluster) a:not(.btn):not(.nav-btn){color:#E8C766!important}

/* v91 controlled contrast closure — 2026-09-04
   Purpose: correct residual cascade collisions from prior emergency overrides. */
:root{--v91-ink:#16202E;--v91-navy:#0A1628;--v91-card:#13233C;--v91-light:#F2F6FA;--v91-muted:#C6D2DF;--v91-gold:#E8C766;--v91-gold-light:#F0D77E;--v91-link:#705509;--v91-goldbtn:#D6B34E;--v91-ongold:#171104}

/* recurring dark heroes / nav / footer */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k) body :is(nav,footer,.site-footer,.hero,.rlx-hero,.sec.dark,.cta-box,.rlx-cta,.ris-booking-cta,.legal-note,.fa-market,.ris-topic-cluster,.iran-policy,.booking-hero) :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,span,strong,em,small,summary,label,th,td,blockquote,figcaption,div):not(.btn):not(.nav-btn):not(.badge):not(.chip):not(.tag-gold){color:var(--v91-light)!important;opacity:1!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k) body :is(nav,footer,.site-footer,.hero,.rlx-hero,.sec.dark,.cta-box,.rlx-cta,.ris-booking-cta,.legal-note,.fa-market,.ris-topic-cluster,.iran-policy,.booking-hero) :is(a:not(.btn):not(.nav-btn),.sec-tag,.eyebrow,.kicker,.source-link,.eta-consult){color:var(--v91-gold)!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k) body :is(.hero,.rlx-hero,.sec.dark,.booking-hero) :is(.hero-lic,.lic,.licence-line,.note-muted,time){color:var(--v91-muted)!important}

/* light surfaces */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k) body :is(.sec:not(.dark),.article-body,.rlx-body,.content,.content-wrap,.faq-section,.resource-section) :is(a:not(.btn):not(.nav-btn),.source-link){color:var(--v91-link)!important}

/* gold actions must use dark text */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.btn-gold,.nav-cta,.nav-btn.cta,.rasia-panel__btn,.form-submit,.agr-btn,.booking-start-cta,.btn.primary){color:var(--v91-ongold)!important;background-color:var(--v91-goldbtn)!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.btn-gold,.nav-cta,.nav-btn.cta,.rasia-panel__btn,.form-submit,.agr-btn,.booking-start-cta,.btn.primary) :is(span,strong,em){color:var(--v91-ongold)!important}

/* Booking page: preserve dark premium hero explicitly */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .booking-hero{background:#0D2038!important;background-image:radial-gradient(circle at 14% 20%,rgba(201,168,76,.18),transparent 34%),radial-gradient(circle at 88% 82%,rgba(79,118,153,.22),transparent 32%),linear-gradient(135deg,#071426 0%,#0d2038 58%,#132c48 100%)!important;color:#fff!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .booking-hero :is(h1,strong){color:#FFFFFF!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .booking-hero :is(.booking-hero-lead,.booking-start-note,.booking-trust-chip,.booking-credit-text,.booking-credit-fa){color:#E7EDF4!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .booking-hero :is(.booking-kicker,.booking-credit-text strong){color:#F0D77E!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .booking-credit{background:#10243D!important;background-color:#10243D!important}

/* Iran/Turkey/Brazil dark policy panels */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.iran-policy,.country-policy,.policy-box,.dark-card){color:var(--v91-light)!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.iran-policy,.country-policy,.policy-box,.dark-card) :is(h1,h2,h3,h4,p,li,span,strong,div){color:var(--v91-light)!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.iran-policy,.country-policy,.policy-box,.dark-card) a:not(.btn){color:var(--v91-gold)!important}

/* outlined buttons on dark surfaces */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.hero,.rlx-hero,.sec.dark,.iran-policy,.booking-hero,.cta-box) .btn-outline{color:#FFFFFF!important;border-color:rgba(255,255,255,.65)!important;background:rgba(255,255,255,.06)!important}

/* v91 page-specific closures for known mixed-theme sections */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .final-brazil-cta,
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .english-only-alert,
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .brazil-feature-card{color:#F2F6FA!important;background-color:#111!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.final-brazil-cta,.english-only-alert,.brazil-feature-card) :is(h1,h2,h3,h4,p,li,span,strong,em,small,div,.legal-pt,.sec-tag){color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.final-brazil-cta,.english-only-alert,.brazil-feature-card) a:not(.btn){color:#E8C766!important}

html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body.country-turkey .turkey-hero{background-color:#0A1628!important;color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body.country-turkey .turkey-hero :is(h1,h2,h3,p,strong,.lead){color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body.country-turkey .turkey-hero :is(.sec-tag,h1 span,.hero-lic){color:#E8C766!important}

html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .faq-hub-hero{background-color:#0D213A!important;color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .faq-hub-hero :is(h1,h2,h3,p,span,strong,div){color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body .faq-hub-hero :is(.accent,.hero-badge span){color:#E8C766!important}

/* frequently recurring form/support text on white */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l) body :is(.form-note,.booking-step small,.international-section-label){color:#596577!important}

/* v91 final container locks */
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body :is(.brazil-card,.language-box,.brazil-feature-card){background:#111!important;background-color:#111!important;color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body :is(.brazil-card,.language-box,.brazil-feature-card) :is(h2,h3,h4,p,li,strong,span,div){color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body :is(.brazil-card,.language-box,.brazil-feature-card) a:not(.btn){color:#E8C766!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .brazil-faq details :is(summary,p,strong,span){color:#16202E!important}

html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .faq-cta-box{background:#0A1628!important;background-color:#0A1628!important;color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .faq-cta-box :is(h2,h3,p,strong,span,div){color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .faq-cta-box .faq-price-chip{color:#F0D77E!important;background:#1A2A41!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .faq-cta-box .btn-outline-w{color:#FFFFFF!important;background:#13233C!important;border-color:#E8C766!important}

html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .svc-creds{background:#0A1628!important;background-color:#0A1628!important;color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body .svc-cred :is(dt,dd,span,strong){color:#F2F6FA!important}

html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body.country-international .turkey-hero{background:#0A1628!important;background-color:#0A1628!important;color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body.country-international .turkey-hero :is(h1,p,.lead,strong){color:#F2F6FA!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body.country-international .turkey-hero .sec-tag{color:#E8C766!important}

html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body.country-turkey .note{color:#F2F6FA!important;background:#233A55!important;background-color:#233A55!important}
html:not(#v91a):not(#v91b):not(#v91c):not(#v91d):not(#v91e):not(#v91f):not(#v91g):not(#v91h):not(#v91i):not(#v91j):not(#v91k):not(#v91l):not(#v91m) body.country-turkey .note :is(strong,span,p,div){color:#F2F6FA!important}


/* =========================================================
   v92 FINAL VISUAL LOCKS — 2026-09-04
   Screenshot-verified fixes for Iran/Turkey mixed surfaces.
   ========================================================= */
html body #iran-resources .resource-grid .resource-card.iran-resource-card,
html body #iran-resources .resource-grid .resource-card.iran-resource-card .iran-card-copy{
  background:#0D2844 !important; background-color:#0D2844 !important; color:#F7F9FC !important;
}
html body #iran-resources .resource-grid .resource-card.iran-resource-card .iran-card-copy h3{color:#FFFFFF !important;opacity:1 !important;}
html body #iran-resources .resource-grid .resource-card.iran-resource-card .iran-card-copy p{color:#E8EEF5 !important;opacity:1 !important;}
html body #iran-resources .resource-grid .resource-card.iran-resource-card .iran-card-copy a{color:#E9C557 !important;opacity:1 !important;text-decoration-color:#E9C557 !important;}

html body .iran-policy, html body .country-policy, html body .policy-box{
  background:#0D2844 !important; background-color:#0D2844 !important; color:#F7F9FC !important;
}
html body .iran-policy :is(.sec-tag,h1,h2,h3,h4,p,li,span,strong,div),
html body .country-policy :is(.sec-tag,h1,h2,h3,h4,p,li,span,strong,div),
html body .policy-box :is(.sec-tag,h1,h2,h3,h4,p,li,span,strong,div){color:#F7F9FC !important;opacity:1 !important;}
html body .iran-policy a:not(.btn), html body .country-policy a:not(.btn), html body .policy-box a:not(.btn){color:#E9C557 !important;}

html body.country-turkey .note.legal-small, html body.country-turkey .legal-small.note{
  background:#F3E7C7 !important; background-color:#F3E7C7 !important; color:#152235 !important; border-color:#C79E2D !important;
}
html body.country-turkey .note.legal-small :is(strong,span,p,div,a),
html body.country-turkey .legal-small.note :is(strong,span,p,div,a){color:#152235 !important;opacity:1 !important;}
html body.country-turkey .note.legal-small strong, html body.country-turkey .legal-small.note strong{color:#0B1626 !important;}
