/* Two usable, persistent modes; controls appear on each page without logo repetition. */
.io-global-controls{display:flex!important;flex:none;align-items:center;justify-content:center;gap:6px;margin-inline-start:9px;direction:ltr;z-index:10000;position:relative;isolation:isolate}
.io-global-controls button{font:800 11px system-ui,Tahoma,Arial,sans-serif;min-height:34px;border:1px solid #d9a35b;border-radius:10px;padding:4px 8px;white-space:nowrap;color:#ffe0ae;background:#251617;cursor:pointer}
.io-global-controls button:focus-visible{outline:3px solid #ffc95a;outline-offset:3px}
.io-lang-switch{display:flex;gap:2px;border:1px solid #b38a53;border-radius:11px;padding:2px;background:#211719}
.io-lang-choice[aria-pressed="true"]{background:linear-gradient(125deg,#f7bd4e,#e48d29)!important;color:#191319!important;box-shadow:0 0 10px #e6a74787}
.io-mode-switch{min-width:74px!important}
html[data-io-theme="light"] .io-global-controls button{background:#ffedce;color:#3b2419;border-color:#a5783f}
html[data-io-theme="light"] .io-lang-switch{background:#f7e7cc}
html[data-io-theme="light"] body{color-scheme:light}
html[data-io-theme="dark"] body{color-scheme:dark}
@media(max-width:1050px){.io-global-controls{gap:3px;margin-inline-start:4px}.io-global-controls button{padding:3px 6px;font-size:10px;min-height:32px}.io-mode-switch{min-width:61px!important}}
@media(max-width:700px){.io-global-controls{position:fixed;top:70px;inset-inline-end:10px;z-index:10000;border-radius:12px;background:#17101ee6;padding:5px;box-shadow:0 5px 22px #13070e8c}.io-global-controls button{font-size:10px;min-height:31px}.io-mode-switch{min-width:65px!important}}
/* Main official site: cream-and-gold light style, dark cinematic hero preserved. */
html[data-io-theme="light"] body:has(.xn-header),html[data-io-theme="light"] body:has(.site-header){background:#fff6e7!important;color:#352115!important}
html[data-io-theme="light"] .xn-header,html[data-io-theme="light"] .site-header{background:linear-gradient(120deg,#fbecd4,#e9d0ae)!important;color:#302018!important}
html[data-io-theme="light"] .xn-header a,html[data-io-theme="light"] .xn-header nav a,html[data-io-theme="light"] .site-header a{color:#302018!important}
html[data-io-theme="light"] .xn-header strong,html[data-io-theme="light"] .xn-header small{color:#402519!important}
html[data-io-theme="light"] .xn-section,html[data-io-theme="light"] .section,html[data-io-theme="light"] .news-deck,html[data-io-theme="light"] main:has(.inner-hero)>.section{background:linear-gradient(#fff5e5,#f6e5cf)!important;color:#3b2318!important}
html[data-io-theme="light"] .xn-service,html[data-io-theme="light"] .xn-media-grid>a,html[data-io-theme="light"] .news-card,html[data-io-theme="light"] .article-card,html[data-io-theme="light"] .pillar-card,html[data-io-theme="light"] .service-row,html[data-io-theme="light"] .press-card{background:linear-gradient(130deg,#fff7e9,#efd7b5)!important;color:#35231a!important;border-color:#bf945b!important}
html[data-io-theme="light"] .xn-service h3,html[data-io-theme="light"] .xn-service p,html[data-io-theme="light"] .xn-section .xn-heading h2,html[data-io-theme="light"] .xn-heading p,html[data-io-theme="light"] .news-card h3,html[data-io-theme="light"] .news-card p,html[data-io-theme="light"] .article-card h3,html[data-io-theme="light"] .article-card p,html[data-io-theme="light"] .section h2,html[data-io-theme="light"] .section p{color:#3b2618!important}
html[data-io-theme="light"] .xn-footer,html[data-io-theme="light"] .site-footer{background:#eed8b8!important;color:#342418!important}
html[data-io-theme="light"] .xn-footer a,html[data-io-theme="light"] .site-footer a{color:#54321c!important}
/* Qadah Plus: the owner-approved cinematic hero remains legible while content becomes ivory. */
html[data-io-theme="light"] body:has(.qp2-header),html[data-io-theme="light"] body:has(.q-header){background:#fff3df!important;color:#39281c!important}
html[data-io-theme="light"] .qp2-header,html[data-io-theme="light"] .q-header{background:#ffedd4!important;color:#38271c!important}
html[data-io-theme="light"] .qp2-header a,html[data-io-theme="light"] .qp2-header nav a,html[data-io-theme="light"] .q-header a{color:#342419!important}
html[data-io-theme="light"] .qp2-section,html[data-io-theme="light"] .qp2-platforms,html[data-io-theme="light"] .qp2-community,html[data-io-theme="light"] .q-section,html[data-io-theme="light"] .q-intro,html[data-io-theme="light"] .q-detail{background:#fcf0e0!important;color:#35251a!important}
html[data-io-theme="light"] .qp2-episode,html[data-io-theme="light"] .qp2-platform-card,html[data-io-theme="light"] .q-episode-card,html[data-io-theme="light"] .q-season-card,html[data-io-theme="light"] .q-guest-card{background:linear-gradient(#fff5e7,#ebd3ba)!important;color:#382316!important;border-color:#c48b4b!important}
html[data-io-theme="light"] .qp2-episode h3,html[data-io-theme="light"] .qp2-episode p,html[data-io-theme="light"] .qp2-heading h2,html[data-io-theme="light"] .qp2-heading p,html[data-io-theme="light"] .q-detail p,html[data-io-theme="light"] .q-detail h2{color:#352219!important}
/* Books: midnight navy becomes airy pearl and apricot. */
html[data-io-theme="light"] body.bn,html[data-io-theme="light"] body:has(.bn-header){background:#fff4e8!important;color:#2e2231!important}
html[data-io-theme="light"] .bn-header{background:linear-gradient(110deg,#fff4de,#eed6b8)!important}
html[data-io-theme="light"] .bn-header nav a{color:#2c2040!important}
html[data-io-theme="light"] .bn-topics,html[data-io-theme="light"] .bn-section,html[data-io-theme="light"] .bn-catalog,html[data-io-theme="light"] .bn-about,html[data-io-theme="light"] .bn-how,html[data-io-theme="light"] .bn-ecosystem{background:#fff7ed!important;color:#2a2540!important}
html[data-io-theme="light"] .bn-product-grid article,html[data-io-theme="light"] .bn-grid .product-card,html[data-io-theme="light"] .bn-mini-cart{background:linear-gradient(#fffaf4,#f1dfce)!important;color:#302343!important;border-color:#e7aa5f!important}
html[data-io-theme="light"] .bn-product-grid article h3,html[data-io-theme="light"] .bn-mini-cart h3,html[data-io-theme="light"] .bn-mini-cart p,html[data-io-theme="light"] .bn-heading h2,html[data-io-theme="light"] .bn-topics h2,html[data-io-theme="light"] .bn-product-grid article strong{color:#302540!important}
html[data-io-theme="light"] .bn-topics nav a{background:#fff4e8!important;color:#3c2a35!important}
html[data-io-theme="light"] .bn-footer{background:#f1d8b8!important;color:#39271c!important}
html[data-io-theme="light"] body:has(.cart-checkout-grid),html[data-io-theme="light"] body:has(.top),html[data-io-theme="light"] body:has(.panel){background:#fff5e8!important;color:#34221d!important}
html[data-io-theme="light"] .top,html[data-io-theme="light"] .panel{background:#fff9ef!important;color:#37261d!important;border-color:#c89553!important}
html[data-io-theme="light"] .panel p,html[data-io-theme="light"] .panel label,html[data-io-theme="light"] .panel span,html[data-io-theme="light"] .heading h1{color:#3f281c!important}
/* Mashrustan: light reference default, striking graphite + gold as the dark mode. */
html[data-io-theme="dark"] body:has(.msx-header){background:#101115!important;color:#ffecca!important}
html[data-io-theme="dark"] .msx-steps-section,html[data-io-theme="dark"] .msx-section,html[data-io-theme="dark"] .msx-topics-section,html[data-io-theme="dark"] .msx-chapters,html[data-io-theme="dark"] .msx-lab,html[data-io-theme="dark"] .msx-news,html[data-io-theme="dark"] .msx-faq{background:linear-gradient(135deg,#1f1c19,#100f12)!important;color:#fff2cb!important}
html[data-io-theme="dark"] .msx-heading h2,html[data-io-theme="dark"] .msx-steps-section h2,html[data-io-theme="dark"] .msx-news h2,html[data-io-theme="dark"] .msx-heading p{color:#ffebbd!important}
html[data-io-theme="dark"] .msx-footer{background:#100d0e!important;color:#ffe4b2!important}
html[data-io-lang="en"] .io-global-controls{direction:ltr}
@media(prefers-reduced-motion:reduce){.io-global-controls *,html[data-io-theme] *{scroll-behavior:auto!important}}


/* FINAL QA: color pairs have WCAG AA text contrast >= 4.5:1 in both modes. */
html[data-io-theme] .io-global-controls button{box-shadow:none!important;text-shadow:none!important}
html[data-io-theme] .io-global-controls button[aria-pressed="true"]{background:#ffcf6b!important;color:#221912!important;border-color:#99601e!important;font-weight:900!important}
html[data-io-theme] .io-global-controls button:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #ffbe4e!important;outline-offset:3px!important}
@media(prefers-reduced-motion:reduce){html[data-io-theme] *{animation-duration:.01ms!important;transition-duration:.01ms!important}}


html[data-io-theme="dark"] body:has(.xn-header),html[data-io-theme="dark"] body:has(.site-header){background:#241613!important;color:#fff4df!important}
html[data-io-theme="dark"] .xn-section,html[data-io-theme="dark"] .section,html[data-io-theme="dark"] .news-deck{background:#281a17!important;color:#fff4df!important}
html[data-io-theme="dark"] .xn-service,html[data-io-theme="dark"] .article-card,html[data-io-theme="dark"] .news-card,html[data-io-theme="dark"] .pillar-card{background:linear-gradient(120deg,#473026,#281a19)!important;color:#fff4df!important;border:1px solid #e5b374ad!important}
html[data-io-theme="dark"] .xn-service h3,html[data-io-theme="dark"] .xn-service p,html[data-io-theme="dark"] .section h2,html[data-io-theme="dark"] .section p,html[data-io-theme="dark"] .news-card h3,html[data-io-theme="dark"] .news-card p{color:#fff4df!important}
html[data-io-theme="light"] .xn-hero,html[data-io-theme="light"] .inner-hero{background:#241613!important;color:#fff4df!important}
html[data-io-theme="light"] .xn-hero h1,html[data-io-theme="light"] .xn-hero p,html[data-io-theme="light"] .inner-hero h1,html[data-io-theme="light"] .inner-hero p{color:#fff4df!important;text-shadow:0 2px 12px #080503!important}
html[data-io-theme="light"] .xn-section,html[data-io-theme="light"] .section,html[data-io-theme="light"] .news-deck,html[data-io-theme="light"] .section.surface-soft{background:#fff4e7!important;color:#2d2118!important}
html[data-io-theme="light"] .xn-service,html[data-io-theme="light"] .news-card,html[data-io-theme="light"] .pillar-card,html[data-io-theme="light"] .article-card{background:#fff9ed!important;color:#2d2118!important;border-color:#bf8b53!important}
html[data-io-theme="light"] .xn-section h2,html[data-io-theme="light"] .xn-service h3,html[data-io-theme="light"] .xn-service p,html[data-io-theme="light"] .news-card h3,html[data-io-theme="light"] .news-card p,html[data-io-theme="light"] .section h2,html[data-io-theme="light"] .section p{color:#2d2118!important;text-shadow:none!important}
html[data-io-theme] .xn-hero .xn-nav-cta,html[data-io-theme] .xn-hero .xn-button-primary{background:linear-gradient(110deg,#ffcf6b,#e5a44b)!important;color:#221912!important;border-color:#ffdb94!important}
