/* User-selected palette. Loaded last; Navy is the default on every page. */
html[data-theme=navy]{color-scheme:dark;--theme-bg:#070d18;--theme-surface:#101c2d;--theme-ink:#edf3fb;--theme-muted:#b2c1d4;--theme-line:#2b384c;--theme-accent:#ff9a4d;--theme-link:#6edcf7}
html[data-theme=light]{color-scheme:light;--theme-bg:#f5f8fc;--theme-surface:#fff;--theme-ink:#203349;--theme-muted:#52677f;--theme-line:#ccd8e5;--theme-accent:#b55321;--theme-link:#087997}
html[data-theme] body{--bg:var(--theme-bg);--bg-soft:var(--theme-surface);--ink:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-line);--brand:var(--theme-accent);background:var(--theme-bg);color:var(--theme-ink)}
html[data-theme] nav.site-nav{background:var(--theme-bg);border-color:var(--theme-line)}
html[data-theme] .site-nav .logo,html[data-theme] .site-nav .links,html[data-theme] .site-nav .menu-toggle{color:var(--theme-ink)}
html[data-theme] .site-nav .menu-toggle{border-color:var(--theme-line)}
html[data-theme] .site-nav .links a:not(.nav-cta):hover,html[data-theme] .site-nav .links a:not(.nav-cta)[aria-current=page]{color:var(--theme-accent)}
html[data-theme] .site-nav .links .nav-cta{background:#ff9a4d;color:#251609}
html[data-theme] .site-nav .language-switch button{color:var(--theme-muted)}
html[data-theme] .site-nav .language-switch button[aria-pressed=true]{color:var(--theme-accent);background:#ff9a4d18}
.site-nav .theme-switch{display:flex;align-items:center;flex:none;gap:2px;padding:3px;border:1px solid var(--theme-line);border-radius:999px;background:var(--theme-surface)}
.site-nav .theme-switch button{border:0;border-radius:999px;background:transparent;color:var(--theme-muted);font-size:11px;font-weight:700;padding:6px 10px;min-height:34px;line-height:1.4;white-space:nowrap}
.site-nav .theme-switch button[aria-pressed=true]{background:var(--theme-ink);color:var(--theme-bg)}
html[data-theme] .site-footer{background:var(--theme-bg);color:var(--theme-muted);border-color:var(--theme-line)}
html[data-theme] .site-footer .footer-brand,html[data-theme] .footer-contact a,html[data-theme] .footer-policy-links a{color:var(--theme-ink)}
html[data-theme] .footer-bottom{border-color:var(--theme-line)}
html[data-theme] .site-footer .footer-disclaimer,html[data-theme] .site-footer .footer-copyright{color:var(--theme-muted)}
/* Documents use the selected palette without changing the supplied wording. */
html[data-theme] .guide-page .guide-main :is(h1,h2,h3,strong){color:var(--theme-ink)}
html[data-theme] .guide-page .guide-main :is(p,ul,ol){color:var(--theme-muted)}
html[data-theme] .guide-page .guide-main :is(.guide-eyebrow,.policy-chapter,.policy-document-title){color:var(--theme-accent)}
html[data-theme] .guide-page .guide-main a{color:var(--theme-link)}
html[data-theme] .guide-page :is(.guide-section,.usage-original,.policy-chapter,.policy-document-title){border-color:var(--theme-line)}
/* Form controls retain their intentional light surface, including native controls. */
html[data-theme] :is(.contact-entry,.demo-form-panel){color-scheme:light}
/* Light home: one continuous background beneath the eye and anatomy. */
html[data-theme=light] body{--amber:#b55321;--amber-deep:#a6471b;--scan:#087997;--focus:#1465c0}
html[data-theme=light] .home :is(#hero,#explode){background:transparent}
html[data-theme=light] .home h1,html[data-theme=light] .home :is(.hero-sub,.hero-note){text-shadow:none}
html[data-theme=light] .home :is(.hero-sub,.hero-note,.eye-title-detail,.layer-label small){color:var(--theme-muted)}
html[data-theme=light] .home :is(.explode-head h2,#cards h2,#cta h2){color:var(--theme-ink)}
html[data-theme=light] .home #news h2{color:var(--theme-accent)}
html[data-theme=light] .home :is(.explode-head p,#cards .lead,#news .lead,#cta p){color:var(--theme-muted)}
html[data-theme=light] .home .layer-label{background:#ffffffd9;box-shadow:0 8px 30px #2643680a}
html[data-theme=light] .home #process{background:linear-gradient(transparent,#f5f8fce8 14%,#f5f8fce8 86%,transparent)}
html[data-theme=light] .home :is(#cards,#news){background:#f5f8fcee}
html[data-theme=light] .home #cta{background:linear-gradient(150deg,#e8eff8,#f5f8fc)}
html[data-theme=light] .home :is(.pcard,.news-card){background:linear-gradient(145deg,#fff,#edf3fa);color:var(--theme-ink);box-shadow:0 14px 40px #2342630a}
html[data-theme=light] .home .news-more{color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme=light] .home .step.active .step-num{color:#fff;box-shadow:0 0 20px #08799720}
html[data-theme=light] :is(.btn-fill,.products-page .btn,.site-dark .btn){background:#ff9a4d;color:#251609}
/* Products */
html[data-theme=light] .product-hero-visual{box-shadow:0 24px 65px #324d7120}
html[data-theme=light] :is(.product-highlights,.product-highlights>div+div,.product-checks li){border-color:var(--theme-line)}
html[data-theme=light] :is(.product-highlights span,.product-small,.product-checks,.disease-index){color:var(--theme-muted)}
html[data-theme=light] .product-conditions{background:linear-gradient(135deg,#e8eff8,#f0f5fb)}
html[data-theme=light] .product-disease{background:#ffffffd9;border-color:var(--theme-line)}
html[data-theme=light] .product-disease:nth-child(2) strong{color:#26776c}
html[data-theme=light] .product-disease:nth-child(3) strong{color:#276ca9}
html[data-theme=light] .product-disease:nth-child(4) strong{color:#7950a4}
html[data-theme=light] .product-disease:nth-child(5) strong{color:#a64950}
html[data-theme=light] .product-demo{background:linear-gradient(135deg,#fff7ef,#eef3fa);border-color:#e0ccbb}
html[data-theme=light] .product-dialog{background:#f5f8fc;color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme=light] .product-dialog :is(p,.dialog-close){color:var(--theme-ink)}
/* News, including dynamically loaded articles and history. */
html[data-theme=light] :is(.news-page .news-card,.news-page .certification-details){background:#fff;border-color:var(--theme-line);box-shadow:0 10px 30px #2342630a}
html[data-theme=light] :is(.home,.news-page) .news-thumb{background:linear-gradient(135deg,#e3edf7,#f1f5fa)}
html[data-theme=light] .news-page :is(.news-title,.nt,#detail>h1,#detail .body h2,#detail .body h3,.certification-details dd){color:var(--theme-ink)}
html[data-theme=light] .news-page :is(.news-sum,.ns,.news-thumb.placeholder,#detail .body,.certification-details dt,.history-heading>p:last-child,.history-issuer){color:var(--theme-muted)}
html[data-theme=light] .news-page :is(.nd,.back,.pagination a,#detail .body a,.empty a,.certificate-files a){color:var(--theme-link)}
html[data-theme=light] .news-page .news-filters a{color:var(--theme-muted);border-color:var(--theme-line)}
html[data-theme=light] .news-page :is(.news-filters a[aria-current=page],.news-category){color:var(--theme-accent);background:#fff0e3;border-color:#d29f79}
html[data-theme=light] .news-page .empty{background:#ffffffb3;color:var(--theme-muted);border-color:var(--theme-line)}
html[data-theme=light] .news-page :is(#detail .body blockquote,#detail .body pre){background:#e9f0f8}
html[data-theme=light] .news-page :is(.certification-details h2,.history-eyebrow,.history-more,.history-card time,.history-heading h2){color:var(--theme-accent)}
html[data-theme=light] .news-page .certification-details dl>div{border-color:var(--theme-line)}
html[data-theme=light] .news-page .history-card{color:var(--theme-ink);background:#fff;border-color:var(--theme-line)}
html[data-theme=light] .news-page .history-event::after{box-shadow:0 0 0 5px #f5f8fc}
/* Contact and demo */
html[data-theme=light] .contact-page .contact-intro{color:var(--theme-muted)}
html[data-theme=light] .site-dark .contact-info-card{background:#fff;border-color:var(--theme-line);box-shadow:0 8px 26px #2342630a}
html[data-theme=light] .site-dark .contact-info-card h2{color:var(--theme-accent)}
html[data-theme=light] .site-dark .contact-info-card p{color:var(--theme-ink)}
html[data-theme=light] .site-dark :is(.contact-entry,.demo-form-panel){box-shadow:0 16px 45px #2342630d}
html[data-theme=light] .site-dark .demo-hero{background:radial-gradient(ellipse at 100% 0,#a0dce94d,transparent 60%),linear-gradient(135deg,#e9f1fa,#f8fbfe);border-color:var(--theme-line)}
html[data-theme=light] .site-dark .demo-hero :is(h1,strong){color:var(--theme-ink)}
html[data-theme=light] .site-dark .demo-hero :is(p,li){color:var(--theme-muted)}
html[data-theme=light] .site-dark .demo-hero :is(em,.demo-eyebrow){color:var(--theme-accent)}
html[data-theme=light] .site-dark :is(.demo-benefits>h2,.demo-locations>h2){color:var(--theme-accent)}
html[data-theme=light] .site-dark .demo-benefit-grid article{background:#fff;border-color:var(--theme-line)}
html[data-theme=light] .site-dark :is(.demo-step-number,.demo-location-grid h3){color:var(--theme-link)}
html[data-theme=light] .site-dark .demo-benefit-grid h3{color:var(--theme-ink)}
html[data-theme=light] .site-dark :is(.demo-benefit-grid p,.demo-location-grid p){color:var(--theme-muted)}
html[data-theme=light] .site-dark .demo-contact-panel{background:linear-gradient(140deg,#fff2e6,#f2f5fa);border-color:#e0ccbb}
html[data-theme=light] .site-dark .demo-contact-panel :is(.demo-eyebrow,a){color:var(--theme-accent)}
html[data-theme=light] .site-dark .demo-contact-panel h2{color:var(--theme-ink)}
html[data-theme=light] .site-dark .demo-contact-panel>p:not(.demo-eyebrow){color:var(--theme-muted)}
html[data-theme=light] .site-dark :is(.demo-contact-note,.demo-locations){border-color:var(--theme-line)}
/* Keep all controls reachable at tablet widths and in English. */
@media(max-width:1100px){
 html[data-theme] nav.site-nav{height:auto;min-height:68px;display:flex;flex-wrap:wrap;gap:0;padding:12px 18px}
 html[data-theme] .site-nav .logo{order:0;margin-right:auto}
 html[data-theme] .site-nav .language-switch{order:1;margin-left:4px;margin-right:6px}
 html[data-theme] .site-nav .menu-toggle{display:block;order:2}
 html[data-theme] .site-nav .links{display:none;order:3;flex-basis:100%;margin-left:0;padding:12px 0 4px;gap:4px;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 85px);overflow-y:auto}
 html[data-theme] .site-nav.is-open .links,html.no-js[data-theme] .site-nav .links{display:flex}
 html[data-theme] .site-nav .links a{padding:8px 12px}
 html[data-theme] .site-nav .links .nav-cta{justify-content:center;margin-top:6px}
 .site-nav .theme-switch{align-self:center;margin-top:10px}
 .site-nav .theme-switch button{min-height:40px;min-width:78px}
}
@media print{html[data-theme] .guide-page{background:white;color:#203349}html[data-theme] .guide-page .guide-main :is(h1,h2,h3,p,strong){color:#203349}}