/* Text-only corrections verified against default theme surfaces. No layout/media changes. */
#app [data-sapphire-root] :is(.sp-card-controls,.sp-footer) :is(p,span){color:#536479}
#app [data-faith-root]:not([data-orbit-root]) .ff-faq :is(p,span){color:#4f636b}
#app [data-faith-root]:not([data-orbit-root]) figcaption>span{color:#163a47}
/* The studio page canvas makes the legacy ink section transparent: inherit its dark ink. */
#app [data-faith-root]:not([data-orbit-root]) .cms-section-frame:not([data-custom-text="1"]) section[class~="bg-[var(--brand-text)]"]{--tv-on-ink:#163a47;--tv-on-ink-muted:#4f636b;color:#163a47!important}
#app [data-faith-root]:not([data-orbit-root]) .cms-section-frame:not([data-custom-heading-color="1"]) section[class~="bg-[var(--brand-text)]"] :is(h2,h3,.cms-eyebrow-target){color:#163a47!important}
#app [data-faith-root]:not([data-orbit-root]) .cms-section-frame:not([data-custom-description-color="1"]) section[class~="bg-[var(--brand-text)]"] :is(p,.cms-description-target){color:#4f636b!important}
#app [data-emerald-root] .cms-section-frame:not([data-custom-heading-color="1"]) [class~="bg-[var(--brand-hero)]"] :is(h2,.cms-eyebrow-target){color:#fff!important}
#app [data-emerald-root] .cms-section-frame:not([data-custom-description-color="1"]) [class~="bg-[var(--brand-hero)]"] .cms-description-target{color:#e0eee7!important}
/* Small print needs stronger foregrounds than the original 45% white. */
#app .public-site:is([data-theme="heritage_gold_v2"],[data-theme="faith_flight_v2"],[data-theme="safar_make_v3"]) footer [class*="text-white/45"]{color:#bcc8bf!important}
#app .public-site:is([data-theme="heritage_gold_v2"],[data-theme="sacred_horizon"],[data-theme="amin_signature"]),#app [data-sapphire-root]{--contrast-card-ink:#3c4d3e}
#app :is(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="sacred_horizon"],.public-site[data-theme="amin_signature"],[data-sapphire-root]) .cms-section-frame:not([data-custom-text="1"]) :is(.package-browser-meta-card,.experience-kicker){color:var(--contrast-card-ink,#3c4d3e)!important}
#app :is(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="sacred_horizon"],.public-site[data-theme="amin_signature"],[data-sapphire-root]) .cms-section-frame:not([data-custom-text="1"]) .package-browser-meta-card span{color:var(--contrast-card-ink,#3c4d3e)!important}
#app :is(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="sacred_horizon"],.public-site[data-theme="amin_signature"],[data-sapphire-root]) .cms-section-frame:not([data-custom-text="1"]) a.mt-4[class~="text-[var(--brand-primary-dark)]"]{color:#3c4d3e!important}
#app .public-site[data-locked-theme="rihla_make_v4"] .r-page-hero .r-eyebrow{color:#e6d29c!important}
#app .public-site[data-locked-theme="rihla_make_v4"] [class~="shadow-xl"]>p.text-3xl{color:#edd9a8!important}
#app .public-site[data-locked-theme="rihla_make_v4"] .absolute.bottom-8>p{color:#edd9a8!important}
#app .noor-theme :is(label,.sample-note,.care>span,.footer-bottom>span,.note-box,.note-box p){color:#53665a}
#app .noor-theme .faq p{color:#53665a}
#app .hl-theme .hl-copy:not([style*="color:"]){color:#051c14!important}
#app .hl-theme[data-theme="dark"] :is(.more,.sample){color:#f7e6c7!important}
#app .hl-theme[data-theme="dark"] .result>p{color:#fff!important}
#app .ts-theme :is(.ts-market-tabs,.ts-market-note,.ts-agency){color:#665e54}
#app .qaf-theme footer :is(p,a){color:#304c42}
#app .public-site[data-theme="miqaat_make_v5"] :is(.eyebrow,.service-number,.package-meta,.section-count){color:#67551e}
#app .public-site[data-theme="miqaat_make_v5"] .final-cta .eyebrow-light{color:#f1dfb4}
#app .public-site[data-theme="miqaat_make_v5"] :is(label,.faq-intro p){color:#53665a}
#app .public-site[data-theme="amin_signature_v3_light"] .amin-catalog-tabs button.is-active{color:#fff!important}
#app .hij-theme .cms-section-frame:not([data-custom-text="1"]) .package-browser-actions a[class~="bg-[var(--brand-primary)]"]{color:#134d35!important}
#app .zz-theme .category-showcase__content-head .eyebrow{color:#705524}
#app .ms-theme .ms-page-hero .ms-eyebrow{color:#ecd59b!important}
/* Ref Flyaviation uses gold and ivory surfaces; dark foregrounds preserve its palette. */
#app .fv-theme:not(.fv-custom) :is(.fv-eyebrow,.fv-submenu a,.fv-links>a[aria-current="page"]){color:#715414}
#app .fv-theme:not(.fv-custom) :is(.fv-btn:not(.fv-btn--outline):not(.fv-btn--text):not(.fv-header-cta),.fv-languages button[aria-pressed="true"]){color:#211b10}
#app .fv-theme:not(.fv-custom) .fv-btn:not(.fv-btn--outline):not(.fv-btn--text):not(.fv-header-cta) span{color:inherit}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) [class~="bg-[var(--brand-primary)]"]{color:#211b10!important}
#app .fv-theme .cms-section-frame:not([data-custom-heading-color="1"]) .package-browser-card-head :is(h2,.package-browser-head-price){color:#352d1e!important}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) .package-browser-card-head :is(p,span){color:#514631!important}
#app .fv-theme .cms-section-frame:not([data-custom-heading-color="1"]) .cms-eyebrow-target{color:#715414!important}

/* Surface-specific exceptions: dark hero labels and active green controls. */
#app .ms-theme .cms-section-frame:not([data-custom-eyebrow-color="1"]) .ms-page-hero .ms-eyebrow{color:#ecd59b!important}
#app .public-site[data-locked-theme="rihla_make_v4"] header a[href^="tel:"]{color:#352e23!important}
#app .public-site[data-locked-theme="rihla_make_v4"] .cms-section-frame:not([data-custom-eyebrow-color="1"]) .r-page-hero .r-eyebrow{color:#edd9a8!important}
#app .qaf-theme footer :is(p,a){color:#304c42!important}
#app .public-site[data-theme="miqaat_make_v5"] .journey-intro .eyebrow-light{color:#f1dfb4!important}
#app .fv-theme:not(.fv-custom) .fv-header-cta{color:#fff!important}
#app .fv-theme:not(.fv-custom) .fv-btn--text{color:#715414}
#app .fv-theme:not(.fv-custom) .fv-hero .fv-btn--text{color:#f1dfb4}
#app .fv-theme .cms-section-frame:not([data-custom-heading-color="1"]) [class~="bg-[var(--brand-text)]"] .cms-eyebrow-target{color:#f0d99e!important}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) .package-browser-head-badge{color:#211b10!important}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) label[class~="text-[var(--brand-primary)]"]{color:#715414!important}
#app .fv-theme:not(.fv-custom) .fv-slides button{color:#211b10}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-text="1"]) :is(.experience-caption,label){color:#536550!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-eyebrow-color="1"]) [class~="bg-[var(--brand-text)]"] .cms-eyebrow-target{color:#efdba8!important}
#app .public-site[data-theme="amin_signature"] .testimonial-archive-button a{color:#30442f!important}
#app .public-site[data-theme="amin_signature"] .royal-sapphire-contact-socials a{color:#30442f!important}
#app :is(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="faith_flight_v2"]) .cms-section-frame:not([data-custom-eyebrow-color="1"]) [class~="bg-[var(--brand-hero)]"] .cms-eyebrow-target{color:#fff!important}
#app :is(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="sacred_horizon"],.public-site[data-theme="amin_signature"],[data-sapphire-root]) .cms-section-frame:not([data-custom-text="1"]) a[class~="text-[var(--brand-primary-dark)]"]{color:#3c4d3e!important}

/* Remaining small labels on default light/dark surfaces. */
#app [data-sapphire-root] .sp-inner-intro p{color:#536479}
#app .public-site[data-locked-theme="rihla_make_v4"][data-rihla-system] .r-page-hero .r-eyebrow{color:#edd9a8!important}
#app .noor-theme :is(.guide p,.contact-options span){color:#53665a}
#app .hl-theme[data-theme="dark"] .sample{color:#fff!important}
#app .ts-theme .ts-market-tabs button,#app .ts-theme .ts-market-tabs button span{color:#665e54}
#app .ts-theme .ts-agency small{color:#665e54}
#app .public-site[data-theme="jetway_ui"] .cms-section-frame:not([data-custom-eyebrow-color="1"]) .jetway-hero-kicker{color:#71560c!important}
#app .public-site[data-theme="jetway_ui"] .jetway-package-tabs button:not(.is-active){color:#626262}
#app .public-site[data-theme="jetway_ui"] :is(.jetway-contact-detail-grid dt,.jetway-benefit-grid p){color:#675b3e}
#app :is(.noor-theme,.ts-theme) .cms-section-frame:not([data-custom-text="1"]) [class~="bg-[var(--brand-hero)]"] .font-amiri{color:#efdba8!important}
#app .ts-theme .cms-section-frame:not([data-custom-eyebrow-color="1"]) [class~="bg-[var(--brand-hero)]"] .cms-eyebrow-target{color:#efdba8!important}
#app .noor-theme .cms-section-frame:not([data-custom-text="1"]) [class~="bg-[var(--brand-hero)]"] a[class~="text-white"][class~="border-white/35"]{color:#fff!important}

/* Shared CMS content keeps the foreground appropriate to each existing surface. */
#app [data-heritage-root] .cms-section-frame:not([data-custom-text="1"]) [class~="bg-[var(--brand-hero)]"] :is(.font-amiri,[class~="text-white/55"],a[class~="text-white"][class~="border-white/35"]){color:#fff!important}
#app :is(.public-site[data-theme="heritage_gold_v2"],.public-site[data-theme="sacred_horizon"],.public-site[data-theme="amin_signature"],[data-sapphire-root]) .cms-section-frame:not([data-custom-text="1"]) span[class~="text-[var(--brand-primary-dark)]"]{color:#3c4d3e!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-eyebrow-color="1"]) :is([class~="bg-[var(--brand-surface)]"],[class~="bg-[var(--brand-surface-alt)]"]) .cms-eyebrow-target{color:#74551a!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-text="1"]) :is(.testimonial-archive-button span,label span,.font-display>span){color:#30442f!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-eyebrow-color="1"]) .section-auto[class~="bg-[var(--brand-hero)]"] .cms-eyebrow-target{color:#74551a!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-description-color="1"]) .section-auto[class~="bg-[var(--brand-hero)]"] .cms-description-target{color:#655d4d!important}
#app .public-site[data-theme="miqaat_make_v5"] :is(.search-field small,.guide-card small,.page-nav span){color:#64541f}
#app .ts-theme .ts-market-tabs button[aria-pressed="true"],#app .ts-theme .ts-market-tabs button[aria-pressed="true"] span{color:#fff}
#app .ts-theme .ts-card-bottom small{color:#665e54}
#app .hij-theme .cms-section-frame:not([data-custom-text="1"]) button[class~="bg-[var(--brand-primary)]"]{color:#001008!important}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) .package-browser-card-head .package-browser-head-badge{color:#211b10!important}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) p[class~="text-[var(--brand-primary)]"][class~="text-[10px]"]{color:#715414!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-text="1"]) .testimonial-archive-button span{color:#253a24!important}
#app .public-site[data-theme="amin_signature"] .cms-section-frame:not([data-custom-eyebrow-color="1"]) .repair-photo-hero .cms-eyebrow-target{color:#efdba8!important}

#app .public-site[data-theme="miqaat_make_v5"] .landing-content aside>span{color:#64541f}
#app .public-site[data-theme="miqaat_make_v5"] .process-row span{color:#64541f}
#app .fv-theme .cms-section-frame:not([data-custom-text="1"]) .repair-photo-hero .font-amiri{color:#f1dfb4!important}
#app .fv-theme:not(.fv-custom) .fv-hero .fv-arabic span{color:#f1dfb4}
