/* Text contrast only. Explicit editor inline colors and CMS color overrides remain authoritative. */
:where(.public-site,[data-heritage-root],[data-emerald-root],[data-sapphire-root],[data-voyage-root],[data-faith-root],.noor-theme){--tv-on-primary:#fff;--tv-on-ink:#fff;--tv-on-ink-muted:#d6ded8}
:where(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="faith_flight_v2"],.public-site[data-theme="sacred_horizon"],.public-site[data-theme="amin_signature"]){--tv-on-primary:#172018}
/* Shared CMS cards and dark sections can appear under every theme. */
:where(.cms-section-frame:not([data-custom-text="1"])) [class~="bg-[var(--brand-primary)]"]{color:var(--brand-primary-text,var(--tv-on-primary,#fff))}
:where(.cms-section-frame:not([data-custom-text="1"])) [class~="bg-[var(--brand-primary)]"][data-brand-button="primary"]{color:var(--tv-on-primary,#fff)!important}
:where(.cms-section-frame:not([data-custom-text="1"])) [class~="bg-[var(--brand-primary)]"]>span{color:inherit}
:where(.cms-section-frame:not([data-custom-text="1"])) [class~="bg-[var(--brand-text)]"]{color:var(--tv-on-ink,#fff)}
:where(.cms-section-frame:not([data-custom-heading-color="1"])) [class~="bg-[var(--brand-text)]"] :is(h2,h3){color:var(--tv-on-ink,#fff)!important}
:where(.cms-section-frame:not([data-custom-eyebrow-color="1"])) [class~="bg-[var(--brand-text)]"] [class~="text-[var(--brand-primary)]"]{color:var(--tv-on-ink,#fff)!important}
:where(.cms-section-frame:not([data-custom-description-color="1"])) [class~="bg-[var(--brand-text)]"] :is([class*="text-white/"],.cms-description-target){color:var(--tv-on-ink-muted,#d6ded8)!important}
:where(.cms-section-frame:not([data-custom-text="1"])) [class~="bg-[var(--brand-text)]"]>div>[class~="text-[var(--brand-primary)]"]{color:var(--tv-on-ink,#fff)!important}
:where(.cms-section-frame:not([data-custom-text="1"])) a[class~="bg-[var(--brand-primary)]"]{color:var(--tv-on-primary,#fff)!important}
:where(.cms-section-frame:not([data-custom-text="1"])) [class~="bg-[var(--brand-text)]"] a:not([class~="bg-[var(--brand-primary)]"]){color:var(--tv-on-ink,#fff)}
/* Light studio surfaces: retain the hue while making secondary copy readable. */
[data-heritage-root] :is(.hg-invitation>div>p:not(.hg-eyebrow),.hg-bento article p,.hg-step p){color:color-mix(in srgb,var(--hg-muted) 88%,var(--hg-ink))}
[data-emerald-root] :is(.em-bento article p,.em-step p,.em-invitation p:not(.em-eyebrow)){color:color-mix(in srgb,var(--em-muted) 85%,var(--em-ink))}
[data-sapphire-root] :is(.sp-brand small,.sp-hero-description,.sp-block-title>p,.sp-card p,.sp-card span,.sp-path p,.sp-invitation p:not(.sp-eyebrow),.sp-bento article p){color:color-mix(in srgb,var(--sp-muted) 82%,var(--sp-ink))}
[data-voyage-root] :is(.sv-path p,.sv-invitation p:not(.sv-eyebrow)){color:color-mix(in srgb,var(--sv-muted) 85%,var(--sv-ink))}
[data-faith-root]:not([data-orbit-root]) :is(.ff-hero-description,.ff-block-title>p,.ff-path p,.ff-step p,.ff-invitation p:not(.ff-eyebrow)){color:color-mix(in srgb,var(--ff-muted) 85%,var(--ff-ink))}
[data-faith-root] .ff-bento-photo .ff-button{color:#fff!important}
/* Pilgrim Life preset badges and action text. */
.hl-theme[data-preset="ivory_emerald"] .hl-cc-tag{color:#17634e}
.hl-theme[data-preset="ivory_emerald"] .hl-copy{color:#fff}
.hl-theme .v31112-package-book{color:#172018!important}
/* Reference theme secondary copy and default badges. */
.ts-theme .text-muted-foreground{color:#776c60}
.ts-theme [data-ts-zone="footer"] [class~="bg-[var(--brand-primary)]"],.ts-theme footer [class~="bg-[var(--brand-primary)]"]{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.am-theme :is(.am-planner-tabs span,.am-planner-tabs b,.am-select-package small,.am-package dl dt,.am-package-bottom>span){color:#586751}
.am-theme .am-eyebrow{color:#76601c}
.am-theme .am-page-hero .am-eyebrow{color:#e7d7a4}
.am-theme .am-stats :is(h2,h2 span,.am-stats-grid span){color:#21452c}
.am-theme .am-title p,.am-theme .am-title p span{color:#5b6959}
.am-theme .am-notice-list article>span{color:#76601c}
.ms-theme .ms-eyebrow,.ms-theme .ms-links>a[aria-current="page"],.ms-theme .ms-rating{color:#80600c}
/* Brand text substitutes must stay readable when an agency has no logo image. */
.public-site footer span.inline-flex.font-display.font-bold,.glass-theme .public-site footer :is(span.inline-flex.font-display.font-bold,h3){color:inherit}
.public-site[data-theme="sacred_horizon"] footer span.inline-flex.font-display.font-bold{color:#fff}
.public-site[data-theme="jetway_ui"] .jetway-footer-brand span.font-display{color:#fff}
.public-site[data-theme="safar_make_v3"] :is(.safar-v3-header-logo,.safar-v3-footer-brand) span.font-display{color:inherit!important}
.public-site[data-theme="amin_signature"] .site-logo-wrap span.font-display{color:inherit}
.public-site[data-theme="amin_signature_v3_light"] header .amin-wordmark{color:#54401b!important}
.public-site[data-theme="amin_signature_v2"] .sc-c--dark :is(.sc-nm,.sc-rl,.sc-ul li){color:#fffaf0!important}
/* Foregrounds for the stock CMS primary fills; bright palettes retain dark ink. */
.cms-section-frame:not([data-custom-text="1"]) [class~="bg-[var(--brand-primary)]"]{color:var(--tv-on-primary,#fff)}
.cms-section-frame:not([data-custom-text="1"]) [class~="bg-[var(--brand-primary)]"] [class~="text-[var(--brand-primary)]"]{color:inherit!important}
[data-orbit-root] .cms-section-frame section[class~="bg-[var(--brand-text)]"]{--tv-on-ink:var(--ff-ink);--tv-on-ink-muted:var(--ff-muted)}
[data-heritage-root]{--tv-on-hero:#fff;--tv-on-hero-muted:#e1e8e2}
[data-emerald-root]{--tv-on-hero:var(--em-ink);--tv-on-hero-muted:color-mix(in srgb,var(--em-muted) 80%,var(--em-ink))}
[data-sapphire-root]{--tv-on-hero:var(--sp-ink);--tv-on-hero-muted:var(--sp-ink)}
.public-site[data-theme="miqaat_make_v5"],.public-site[data-theme="noor"]{--tv-on-hero:#fff;--tv-on-hero-muted:#d6ded8}
:where([data-heritage-root],[data-emerald-root],[data-sapphire-root],.public-site[data-theme="miqaat_make_v5"],.public-site[data-theme="noor"]) .cms-section-frame:not([data-custom-heading-color="1"]) [class~="bg-[var(--brand-hero)]"] :is(h2,.cms-eyebrow-target){color:var(--tv-on-hero)!important}
:where([data-heritage-root],[data-emerald-root],[data-sapphire-root],.public-site[data-theme="miqaat_make_v5"],.public-site[data-theme="noor"]) .cms-section-frame:not([data-custom-description-color="1"]) [class~="bg-[var(--brand-hero)]"] .cms-description-target{color:var(--tv-on-hero-muted)!important}
[data-emerald-root] .cms-section-frame [class~="bg-[var(--brand-surface-alt)]"]>.text-center,[data-emerald-root] .cms-section-frame [class~="bg-[var(--brand-surface-alt)]"]>div>article>div.text-center{color:color-mix(in srgb,var(--em-muted) 80%,var(--em-ink))}
[data-emerald-root] .cms-section-frame [class~="bg-[var(--brand-primary)]"] :is(p,span){color:#fff!important}
[data-sapphire-root] :is(.sp-slide-tabs button,.sp-card-controls,.sp-faq p,.sp-footer p){color:color-mix(in srgb,var(--sp-muted) 82%,var(--sp-ink))}
/* Legacy bright-gold labels are darkened, not their surfaces or layouts. */
.public-site[data-theme="heritage_gold_v2"] :is(.ffv2-eyebrow,.ffv2-search label>span,.ffv2-search button:not([class*="bg-"]),.ffv2-umrah-card [class*="text-[#F0A500]"],.ffv2-section a[class*="text-[#F0A500]"]){color:#805600!important}
.public-site[data-theme="heritage_gold_v2"] :is(.ffv2-search button[class*="bg-[#F0A500]"],.testimonial-archive-button,.ffv2-final-cta h2,.ffv2-final-cta a){color:#172018!important}
.public-site[data-theme="heritage_gold_v2"] .ffv2-care-panel a[class*="bg-[#2D2D2D]"]{color:#fff!important}
.public-site[data-theme="faith_flight_v2"] .ffv2-ref-eyebrow{color:#80601f!important}
.public-site[data-theme="faith_flight_v2"] .ffv2-search p{color:#51452d!important}
/* Safar reference sections keep dark surfaces across all presets. */
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section>div>div.mb-14.text-center :is(h2,p){color:var(--tv-safar-section-text,#e9e4d8)!important}
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section>div>div.mb-14.text-center>span{color:var(--tv-safar-section-kicker,#ebd499)!important}
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section>div>div.mb-14.text-center .safar-v3-shimmer-text{background-image:linear-gradient(90deg,var(--tv-safar-shimmer-1,#f3ddac),var(--tv-safar-shimmer-2,#cdb570),var(--tv-safar-shimmer-3,#fff1cc))!important}
/* Amin reference native rules have high specificity and can be injected after page load. */
#app .public-site[data-theme="amin_signature_v2"] .sc-c--dark :is(.sc-nm,.sc-rl,.sc-ul li){color:#fffaf0!important}
#app .public-site[data-theme="amin_signature_v2"] #agency-public-menu>li>a,#app .public-site[data-theme="amin_signature_v2"] #agency-public-menu>li>details>summary{color:#f3ead7!important}
#app .public-site[data-theme="amin_signature_v2"] :is(.s1,.arabic-blessing,.tt-st){color:#826925!important}
#app .public-site[data-theme="amin_signature_v2"] :is(.btn-text,.upage-table__price,.it-phase-head__label){color:#806a2c!important}
#app .public-site[data-theme="amin_signature_v3_light"] header .amin-wordmark{color:#54401b!important}
.hl-theme[data-preset="main"] #hl-announce b{color:#fff7e5}
.hl-theme .hl-h i{color:#113d2d}
.hl-theme[data-preset="main"] .hl-cbox :is(b,label,.hl-copy){color:#fff}
.hl-theme[data-preset="ivory_emerald"] .v31112-package-book{color:#101a11!important}
/* Only the active gold slider dot has a light fill; arrow controls remain dark. */
.nh-theme .nh-banner-controls button{color:#fff}
.nh-theme .nh-banner-controls button[aria-current="true"],.nh-theme .nh-banner-controls button[aria-pressed="true"]{color:#172018}
#app .nh-theme .nh-stats :is(h2,h2 span,p,p span,.nh-stats-grid span){color:#25492d}
#app .ts-theme .text-muted-foreground{color:#71665c}
.glass-theme .cms-section-frame:not([data-custom-description-color="1"]) .cms-description-target{color:#506157}

.hl-theme,.ms-theme{--tv-on-primary:#172018}
.hl-theme[data-theme="dark"]{--tv-on-ink:#173c30;--tv-on-ink-muted:#465c50}

.public-site[data-theme="heritage_gold_v2"] :is(.ffv2-hero,[class~="bg-[#2D2D2D]"],[class~="bg-[#1A1A1A]"]) .ffv2-eyebrow{color:#f0c66b!important}
.public-site[data-theme="heritage_gold_v2"] .ffv2-section a.block{color:#805600!important}
.public-site[data-theme="heritage_gold_v2"] .ffv2-section figure div[class~="bg-[#F0A500]"]{color:#172018}
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section :is(div.mb-14.text-center,div.mb-12.flex)>:is(h2,p),#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section div.mb-12.flex>div>:is(h2,p){color:var(--tv-safar-section-text,#e9e4d8)!important}
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section :is(div.mb-14.text-center,div.mb-12.flex)>span,#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section div.mb-12.flex>div>span{color:var(--tv-safar-section-kicker,#ebd499)!important}
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section div.mb-12.flex>a{color:var(--tv-safar-section-text,#e9e4d8)!important}
#app .public-site[data-theme="safar_make_v3"] .cms-section-frame:not([data-custom-text="1"]):not([data-custom-heading-color="1"]):not([data-custom-description-color="1"]):not([data-custom-eyebrow-color="1"])>.safar-v3-section div.mb-12 .safar-v3-shimmer-text{background-image:linear-gradient(90deg,var(--tv-safar-shimmer-1,#f3ddac),var(--tv-safar-shimmer-2,#cdb570),var(--tv-safar-shimmer-3,#fff1cc))!important}
#app .public-site[data-theme="amin_signature_v3_light"] footer .amin-wordmark{color:#f5e6c9!important}
.nh-theme .nh-cta .nh-title :is(h2,h2 span){color:#24462b}
/* Shared package details and downloads sit outside CMS section wrappers. */
:where(.public-site,[data-heritage-root],[data-emerald-root],[data-sapphire-root],[data-voyage-root],[data-faith-root],.noor-theme,.hl-theme,.ts-theme,.qaf-theme,.hij-theme,.zz-theme,.nh-theme,.sf-theme,.am-theme,.ms-theme) [class~="bg-[var(--brand-primary)]"]:not(.cms-section-frame *){color:var(--tv-on-primary,#fff)!important}
:where(.public-site,[data-heritage-root],[data-emerald-root],[data-sapphire-root],[data-voyage-root],[data-faith-root]) [class~="bg-[var(--brand-text)]"]:not(.cms-section-frame *) :is(p,h2,h3){color:#e9eee9!important}
[data-heritage-root] .smart-hero-controls button{color:#fff!important}
:where(.public-site,[data-heritage-root],[data-emerald-root],[data-sapphire-root],[data-voyage-root],[data-faith-root]) .hero-heading .brand-em{color:inherit}
:where(.public-site,[data-heritage-root],[data-emerald-root],[data-sapphire-root],[data-voyage-root],[data-faith-root]) main h1.cms-heading-target .brand-em{color:inherit}
[data-sapphire-root] :is(.sp-inner-intro p,[class~="bg-[var(--brand-hero)]"] p,.sp-footer p){color:color-mix(in srgb,var(--sp-muted) 82%,var(--sp-ink))}
:where([data-emerald-root],[data-faith-root]) :is(.contact-form label>span,[class~="text-[var(--brand-muted)]"]){color:color-mix(in srgb,var(--brand-muted) 82%,var(--brand-text))}
[data-faith-root] [class~="bg-[var(--brand-hero)]"] :is(h1,a[class~="border-white/30"]){color:var(--ff-ink)!important}
[data-faith-root] .ff-inner-intro p{color:color-mix(in srgb,var(--ff-muted) 80%,var(--ff-ink))}
[data-faith-root] :is([class~="bg-[#063d27]"],[class~="bg-[#063D27]"]) p{color:#e1e8dc!important}
/* Jetway's secondary gold was too pale on its cream cards. */
.public-site[data-theme="jetway_ui"] :is(.jetway-eyebrow,.jetway-package-price small,.jetway-testimonial-card strong){color:#7b6019}
.public-site[data-theme="jetway_ui"] :is(.jetway-heading-copy,.jetway-package-card-body>p,.jetway-review-badge-row small){color:#625b50}
.public-site[data-theme="jetway_ui"] .jetway-pillar-grid article>span{color:#806220}
/* Warm light themes: text-only gold shade corrections. */
.public-site[data-theme="sacred_horizon"] :is(.hero-search-shell label>span,.hero-search-shell button:not([class~="bg-[var(--brand-primary)]"]),.section-auto:not([class~="bg-[var(--brand-hero)]"]) .cms-eyebrow-target,.faq-toggle){color:#80500a!important}
.public-site[data-theme="sacred_horizon"] :is(.section-auto a[class~="text-[var(--brand-primary-dark)]"],.section-auto a[class~="text-[var(--brand-primary)]"]){color:#80500a}
.public-site[data-theme="sacred_horizon"] footer>div:first-child :is(h3,p){color:#172018!important}
.public-site[data-theme="amin_signature"] :is(.hero-search-shell label>span,.hero-search-shell button:not([class~="bg-[var(--brand-primary)]"]),.section-auto:not([class~="bg-[var(--brand-hero)]"]):not([class~="bg-[var(--brand-text)]"]) .cms-eyebrow-target){color:#796125!important}
.public-site[data-theme="amin_signature"] :is(.section-auto a[class~="text-[var(--brand-primary-dark)]"],.section-auto a[class~="text-[var(--brand-primary)]"]){color:#796125}
/* Rihla's default inline colors: exact stock colors only, preserving edited colors. */
#app .public-site[data-locked-theme="rihla_make_v4"] [style*="color: rgb(199, 141, 26)"]{color:#805a0c!important}
#app .public-site[data-locked-theme="rihla_make_v4"] [style*="background: rgb(14, 11, 7)"] [style*="color: rgb(199, 141, 26)"]{color:#ebcb91!important}
#app .public-site[data-locked-theme="rihla_make_v4"] :is([style*="color: rgba(245, 240, 228, 0.3)"],[style*="color: rgba(245, 240, 228, 0.35)"],[style*="color: rgba(245, 240, 228, 0.4)"],[style*="color: rgba(245, 240, 228, 0.45)"],[style*="color: rgba(245, 240, 228, 0.5)"]){color:#ded6c5!important}
#app .public-site[data-locked-theme="rihla_make_v4"] footer :is(p,a,button){color:#c7bfaf!important}
#app .public-site[data-locked-theme="rihla_make_v4"] footer button[aria-pressed="true"]{color:#f0d9a4!important}
#app .public-site[data-locked-theme="rihla_make_v4"] [style*="color: rgb(229, 170, 58)"]{color:#f6deb3!important}
#app .public-site[data-locked-theme="rihla_make_v4"] :is([style*="background: rgb(245, 240, 228)"],[style*="background: rgb(237, 229, 208)"]) [style*="color: rgb(229, 170, 58)"]{color:#805a0c!important}
/* Reference shells must provide the shared form components with their own palette. */
.ts-theme{--brand-primary:hsl(var(--primary));--brand-primary-dark:hsl(var(--primary));--brand-primary-text:hsl(var(--primary-foreground));--tv-on-primary:hsl(var(--primary-foreground));--brand-muted:#71665c}
#app .ts-theme .ts-system :is([class~="text-[var(--brand-muted)]"],.cms-description-target),#app .ts-theme .ts-package-detail :is(.ts-breadcrumb,.ts-back,.ts-inclusions,p,small){color:#71665c}
#app .ts-theme .ts-system main h1 .brand-em{color:inherit}
#app .ts-theme :is(.auth-login-form button[type="submit"],form button[class~="bg-[var(--brand-primary)]"]){background:hsl(var(--primary));color:hsl(var(--primary-foreground))!important}
/* Inherited dark package headers and availability cards. */
:where(.nh-theme,.sf-theme,.am-theme,.ms-theme,.qaf-theme,.hij-theme) [class~="bg-[var(--brand-text)]"]:not(.cms-section-frame *) :is(p,h2,h3){color:#e9eee9!important}
:where(.nh-theme,.sf-theme,.am-theme,.ms-theme,.qaf-theme,.hij-theme) [class~="bg-[var(--brand-hero)]"]:not(.cms-section-frame *) p{color:#e2e7e1!important}
#app .hl-theme .hl-h i{color:#113d2d}
#app .hl-theme .hl-copy{color:#000}
#app .hl-theme[data-preset="ivory_emerald"] .v31112-package-book{color:#050d08!important}
#app .hl-theme[data-theme="dark"] .hl-app :is(.stats b,.ppl .av,.dept h3){color:#a7d9bf}
#app .hl-theme .hl-app .wabig :is(b,small,em){color:#041a0b;opacity:1}
#app .hl-theme .hl-app .nb-list a{color:#173c30}
#app .hl-theme .hl-app .nb-list a small{color:#53675c}
#app .hl-theme .hl-app .nb-list .pin{color:#172018}
#app .hl-theme .hl-app .ch-feat .tp{color:#fff0cb}
#app .nh-theme :is(.nh-cta,.nh-stats) .nh-title p{color:#526950}
#app .nh-theme .nh-page-hero p{color:#526950}
#app .am-theme .am-estimate .am-eyebrow{color:#e9d69f}
#app .am-theme .am-contact-strip .am-title p{color:#e2eadf}
#app .am-theme .am-timeline li>span{color:#76601c}
#app .ms-theme .ms-title .ms-eyebrow{color:#80600c}
#app .zz-theme :is(.contact-card__head .eyebrow,.overview-card__label){color:#5a665c}
/* Bootstrap-era ribbons use brighter fills than their original white labels allow. */
#app .hij-theme .ribbon-box.standard .ribbon-text,#app .hij-theme .ribbon-box.royal .ribbon-text{color:#102018!important}
#app .hij-theme .ribbon-box.expired .ribbon-text{color:#120600}
#app .hij-theme :is(.auth-login-card p.text-center.text-xs,[class~="text-[var(--brand-primary)]"]){color:#06773b}
#app .qaf-theme span[class~="bg-gold-500"]{color:#172018}
#app .qaf-theme [class~="text-gold-600"]{color:#88601b}
#app .qaf-theme #start>div>p{color:#e2efe5}

.public-site[data-theme="sacred_horizon"] .cms-section-frame section[class~="bg-[var(--brand-text)]"]{--tv-on-ink:#171717;--tv-on-ink-muted:#525252}
#app .public-site[data-theme="sacred_horizon"] .v31112-package-book{color:#171717!important}
#app .public-site[data-theme="sacred_horizon"] [class~="text-[var(--brand-primary)]"]:not([class~="bg-[var(--brand-primary)]"]){color:#80500a}
#app .ts-theme .ts-system .hero-heading .brand-em{color:inherit!important}
#app .ts-theme .ts-system [class~="bg-[var(--brand-hero)]"] .cms-description-target{color:#e5eade!important}
#app .ms-theme .cms-section-frame:not([data-custom-eyebrow-color="1"]) .ms-eyebrow,#app .ms-theme .cms-section-frame[style*="--cms-eyebrow-color: #b48a18"] .ms-eyebrow{color:#80600c!important}
#app .public-site[data-theme="jetway_ui"] :is(.jetway-review-badge-row>div>span,.jetway-detail-long-card header>p,.jetway-detail-contact dt){color:#806220}
#app .public-site[data-theme="jetway_ui"] .jetway-detail-long-card :is(p,dt,dd){color:#666158}
#app .hij-theme :is(.hij-enquiry button,.auth-login-form button[type="submit"]){color:#081e11!important}
#app .hij-theme span[class~="bg-[var(--brand-primary)]"]{color:#081e11!important}
#app .am-theme :is(.am-chairman,.am-cta) .am-title p,#app .am-theme :is(.am-chairman,.am-cta) .am-title p span{color:#e2eadf}
#app .hij-theme :is(.hij-enquiry button,.auth-login-form button[type="submit"],span[class~="bg-[var(--brand-primary)]"]){color:#000!important}

body[data-theme-preset="horizon"] .public-site[data-theme="safar_make_v3"]{--tv-safar-section-text:#173b3c;--tv-safar-section-kicker:#00685e;--tv-safar-shimmer-1:#005348;--tv-safar-shimmer-2:#27685e;--tv-safar-shimmer-3:#00675b}
body[data-theme-preset="horizon"] #app .public-site[data-theme="safar_make_v3"] :is(.safar-v3-header-logo span.font-display,.safar-v3-footer-brand strong,.safar-v3-footer-brand span.font-display){color:#173b3c!important}
body[data-theme-preset="horizon"] .public-site[data-theme="safar_make_v3"] .safar-v31148-trust-text{color:#47615b!important}
.public-site[data-theme="faith_flight_v2"]{--tv-on-primary:#fff}
.public-site[data-theme="jetway_ui"]{--tv-on-primary:#172018}
.public-site[data-theme="heritage_gold_v2"] :is(.auth-login-card>p.text-center,[class~="text-[var(--brand-primary)]"]){color:#805600}
.public-site[data-theme="amin_signature"] :is(.auth-login-card>p.text-center,[class~="text-[var(--brand-primary)]"]){color:#796125}
:where([data-sapphire-root],[data-emerald-root][data-design-archive="royal_sapphire-v2"],[data-emerald-root][data-design-archive="faith_flight-v2"]) .cms-section-frame section[class~="bg-[var(--brand-hero)]"]{--tv-on-hero:#fff;--tv-on-hero-muted:#e5ebe5}
:where([data-sapphire-root],[data-emerald-root][data-design-archive="royal_sapphire-v2"],[data-emerald-root][data-design-archive="faith_flight-v2"]) .cms-section-frame:not([data-custom-heading-color="1"]) section[class~="bg-[var(--brand-hero)]"] :is(h2,.cms-eyebrow-target){color:var(--tv-on-hero)!important}
:where([data-sapphire-root],[data-emerald-root][data-design-archive="royal_sapphire-v2"],[data-emerald-root][data-design-archive="faith_flight-v2"]) .cms-section-frame:not([data-custom-description-color="1"]) section[class~="bg-[var(--brand-hero)]"] .cms-description-target{color:var(--tv-on-hero-muted)!important}

#app .public-site[data-theme="amin_signature_v2"] .sc-c:not(.sc-c--dark) :is(.sc-nm,.sc-rl,.sc-ul li){color:#364127!important}
#app .public-site[data-theme="amin_signature_v2"] .amin-contact-label{color:#826925!important}
#app .public-site[data-theme="amin_signature_v3_light"] nav .amin-wordmark{color:#54401b!important}
#app .public-site[data-theme="sacred_horizon"] .cms-section-frame a[class~="bg-white/[.04]"] :is(h3,p){color:#e7ebe5!important}
#app .public-site[data-theme="sacred_horizon"] .cms-section-frame [class~="bg-[var(--brand-hero)]"] :is(.cms-eyebrow-target,p.text-xs){color:#ead7a6!important}
#app .ms-theme .ms-page-hero .ms-eyebrow{color:#e2c577!important}
/* Rihla's light controls can be nested inside an otherwise dark hero. */
.public-site[data-locked-theme="rihla_make_v4"]{--brand-primary:var(--r-gold,#c78d1a);--brand-primary-text:#172018;--tv-on-primary:#172018}
#app .public-site[data-locked-theme="rihla_make_v4"] :is(.r-eyebrow,.r-enquiry label>span,.r-text-link,.auth-login-card>p.text-center,.auth-signup-button){color:#805a0c!important}
#app .public-site[data-locked-theme="rihla_make_v4"] .r-page-hero .r-eyebrow{color:#e3c17e!important}
#app .public-site[data-locked-theme="rihla_make_v4"] .r-hero-description{color:#cbc3b2!important}
#app .public-site[data-locked-theme="rihla_make_v4"] [style*="background: rgba(14, 11, 7, 0.04)"] [style*="color: rgb(199, 141, 26)"]{color:#805a0c!important}
#app .public-site[data-locked-theme="rihla_make_v4"] [class~="top-16"] p{color:#f6deb3!important}
#app .public-site[data-locked-theme="rihla_make_v4"] [style*="background: rgb(61, 105, 82)"] .inline-flex{color:#f6deb3!important}
#app .public-site[data-locked-theme="rihla_make_v4"] .auth-login-form button[class~="bg-[var(--brand-primary)]"]{background:var(--r-gold);color:#172018!important}
#app .noor-theme .cms-section-frame:not([data-custom-eyebrow-color="1"]) [class~="bg-[var(--brand-hero)]"] .cms-eyebrow-target{color:#e5dfca!important}
#app .noor-theme [class~="bg-[var(--brand-text)]"]:not(.cms-section-frame *) p{color:#e9eee9!important}

/* Amin reference cards become translucent dark surfaces on hover. */
#app .public-site[data-theme="amin_signature_v2"] .sc-c--dark:hover :is(.sc-nm,.sc-rl,.sc-ul li){color:#fffaf0!important}

/* Dark scholar cards belong to the dark Amin reference section, including rest state. */
#app .public-site[data-theme="amin_signature_v2"] .sc-c--dark{background:rgba(255,255,255,.04)!important}
#app .public-site[data-theme="amin_signature_v2"] .sc-c--dark:hover{background:rgba(255,255,255,.07)!important}
#app .public-site[data-theme="amin_signature_v2"] .sc-c--dark .sc-rl{color:#c9a84c!important}

/* v3.12.1 targeted contrast audit — text foregrounds only. No structural/theme fills. */
/* Rihla V4: the reference gold renders on ivory navigation and action controls. */
#app .public-site[data-theme="rihla_make_v4"] .rihla-v4-site-header .rihla-v4-nav-link:is(:hover,.is-active){color:#805a0c!important}
#app .public-site[data-theme="rihla_make_v4"] .rihla-v4-header-book{color:#201906!important}
#app .public-site[data-theme="rihla_make_v4"] .v31114-visa-directory__eyebrow{color:#805a0c!important}
#app .public-site[data-theme="rihla_make_v4"] :is(.v31114-visa-search button,.v31114-visa-filter.is-active){color:#201906!important}
/* Amin and Jetway: light surfaces need darker labels, not different surfaces. */
#app .public-site[data-theme="amin_signature_v2"] .amin-package-tabs button.is-active{color:#07170f!important}
#app .public-site[data-theme="amin_signature_v3_light"]>header .site-nav>div>a:hover{color:#6e5016!important}
#app .public-site[data-theme="jetway_ui"] .jetway-empty{color:#626262!important}
/* Hijaz reference: original bright button, ribbon and label fills are preserved. */
#app .hij-theme .ribbon-box.platinum .ribbon-text{color:#101a11!important}
#app .hij-theme :is(.btn-primary,.btn-success,.btn-info):not(:hover):not(:focus):not(:active):not(.active),
#app .hij-theme :is(.badge-primary,.badge-success,.badge-info),
#app .hij-theme :is(.btn-outline-primary:hover,.btn-outline-success:hover,.btn-outline-info:hover),
#app .hij-theme :is(.dropdown-item.active,.list-group-item.active,.nav-pills .nav-link.active,.page-item.active .page-link,.progress-bar){color:#06111c!important}
#app .hij-theme .btn-info:hover{color:#01070a!important}
#app .hij-theme .page-link{color:#005dbf!important}
#app .hij-theme :is(.list-group-item-light,.alert-light){color:#626269!important}
#app .hij-theme .inner-block-grid .inner-block span.number{color:#057039!important}
#app .hij-theme table.hours-location-table tbody tr .emergency span{color:#b00000!important}
/* Hajjlife's copy action sits on a translucent dark-green contact panel. */
#app .hl-theme .hl-cbox .hl-copy{color:#fff!important}
/* Safar Main fixes its active language-pill fill to gold independently of saved brand colors. */
html[data-theme-preset="main"] #app .public-site[data-theme="safar_make_v3"]>header .site-language-switcher .site-language-switcher-active{color:#07121c!important}


/* v3.12.2 contrast follow-up — foregrounds only; keep each theme surface, layout and motion unchanged. */
/* Light navigations: darken hover/active copy without changing the original hover fills. */
#app .public-site[data-theme="heritage_gold_v2"]>header :is(.site-nav>div>a:hover,.site-submenu-link:hover){color:#805600!important}
#app .public-site[data-theme="heritage_gold_v2"]>header .site-desktop-actions [data-brand-button="primary"]{color:#172018!important}
#app .public-site[data-theme="faith_flight"] .site-nav>div>a:hover{color:#805600!important}
#app .public-site[data-theme="sacred_horizon"] .site-nav>div>a:hover{color:#805010!important}
#app .public-site[data-theme="sacred_horizon"] .site-submenu-link:hover{color:#915110!important}
#app .public-site[data-theme="noor"] .site-nav>div>a:hover{color:#76541f!important}
#app .public-site[data-theme="hijaz"] .site-nav>div>a:hover{color:#78511b!important}
/* Safar's small footer credit needs a little more separation from its midnight background. */
#app .public-site[data-theme="safar_make_v3"] .theme-footer-credit-safar_make_v3{color:#8ca1b5!important}
/* Amin V2: number steps and initials are real small text on ivory/gold cards. */
#app .public-site[data-theme="amin_signature_v2"] .amin-ref-timeline-index,
#app .public-site[data-theme="amin_signature_v2"] .amin-v2-light .amin-ref-timeline-index{color:#735517!important}
#app .public-site[data-theme="amin_signature_v2"] .amin-ref-review-person>span{color:#65480a!important}
#app .public-site[data-theme="amin_signature_v2"] .amin-ref-feature-icon{color:#735517!important}
/* Legacy Hijaz contact/booking actions used white labels on very bright fills. */
#app .hij-theme .video-btn{color:#134d35!important}
#app .hij-theme .whatsapp-btn a{color:#072314!important}
#app .hij-theme .dvOnlineBooking a{color:#231706!important}
#app .hij-theme .list-group-item-light.list-group-item-action:is(:hover,:focus){color:#525561!important}
/* Pilgrim Life: bright WhatsApp shortcut needs sufficient contrast for its icon/text. */
#app .hl-theme :is(.hl-app-about,.hl-app-contact,.hl-app-services,.hl-app-reviews,.hl-app-content,.hl-app-archive,.hl-app-faq) .wabig{color:#083321!important}

/* Noor reference icons may contain short text initials; keep those legible on ivory. */
#app .public-site[data-theme="noor"] .panel-icon{color:#76541f!important}
