:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e6edf3;--muted:#b0bec9;--navy:#dbe9f1;--navy-2:#b1d3e5;--blue:#76bddf;--cyan:#8bd8e8;--ice:#182b36;--paper:#14232e;--bg:#0d1720;--line:#344754;--green:#7fd4ab;--amber:#efc677;--red:#f5a49c;--shadow:0 22px 55px #0004}
.theme-toggle{font:inherit;font-size:12px;font-weight:700;line-height:1.3;min-height:44px;padding:9px 12px;border:1px solid #647888;border-radius:9px;background:transparent;color:inherit;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.theme-toggle:focus-visible{outline:3px solid #76bddf;outline-offset:3px}
.backend-shell .backend-nav .theme-toggle{font-size:12px;padding:9px 12px}
:root[data-theme="dark"] body{background:#0d1720;color:#e6edf3}
:root[data-theme="dark"] .site-header,:root[data-theme="dark"] .backend-shell .backend-top{background:#14232ef5}
:root[data-theme="dark"] .backend-shell{color:#e6edf3;background:#0d1720}
:root[data-theme="dark"] .backend-shell .backend-brand,:root[data-theme="dark"] .backend-shell .backend-brand-text{color:#e6edf3}
:root[data-theme="dark"] .backend-brand small,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .help,:root[data-theme="dark"] .eyebrow{color:#b0bec9}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .analysis-box,:root[data-theme="dark"] .card,:root[data-theme="dark"] .side-card,:root[data-theme="dark"] .faq-item,:root[data-theme="dark"] .summary>div,:root[data-theme="dark"] .integration-grid article,:root[data-theme="dark"] .visual-card{background:#14232e;color:#e6edf3;border-color:#344754}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#0d1720;color:#e6edf3;border-color:#536b7b}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#a6b5c0}
:root[data-theme="dark"] fieldset,:root[data-theme="dark"] table,:root[data-theme="dark"] th,:root[data-theme="dark"] td{border-color:#344754}
:root[data-theme="dark"] th,:root[data-theme="dark"] pre,:root[data-theme="dark"] code,:root[data-theme="dark"] .version,:root[data-theme="dark"] .status-label{background:#203642;color:#e6edf3}
:root[data-theme="dark"] .backend-shell a,:root[data-theme="dark"] .backend-shell .backend-nav a{color:#a0d6ef}
:root[data-theme="dark"] .backend-shell .backend-nav a[aria-current="page"],:root[data-theme="dark"] .backend-shell .backend-nav a:hover,:root[data-theme="dark"] .backend-shell .backend-actions button{background:#263d4b;color:#e6edf3;border-color:#536b7b}
:root[data-theme="dark"] .notice.error,:root[data-theme="dark"] .notice.bad,:root[data-theme="dark"] .quota-notice{background:#392525;color:#ffc4ba}
:root[data-theme="dark"] .notice.success,:root[data-theme="dark"] .status-badge.good{background:#183a2e;color:#b6efd2}
:root[data-theme="dark"] .theme-toggle{color:#e6edf3;background:#203642;border-color:#536b7b}
:root[data-theme="dark"] .brand-dev-label{text-shadow:0 0 3px #14232e,0 0 6px #14232e;color:#ff9a90}
:root[data-theme="dark"] .site-header-live{border-bottom-color:#76bddf}
:root[data-theme="dark"] .primary-nav>a,:root[data-theme="dark"] .nav-faq>summary,:root[data-theme="dark"] .hero-lead,:root[data-theme="dark"] .article-lead{color:#c2d3de}
:root[data-theme="dark"] .nav-faq-menu,:root[data-theme="dark"] .primary-nav.open{background:#14232e;border-color:#344754;color:#e6edf3}
:root[data-theme="dark"] .primary-nav .nav-cta,:root[data-theme="dark"] .button:not(.secondary),:root[data-theme="dark"] .analysis-input-row button{color:#09131b;background:#e88a47;border-color:#e88a47}
:root[data-theme="dark"] .button.secondary:hover{background:#263d4b}
/* 5.0.11: coordinated dark surfaces and readable editorial text. */
:root[data-theme="dark"] .home-stats-section{background:linear-gradient(180deg,#0d1720,#14232e)}
:root[data-theme="dark"] .section.alt,:root[data-theme="dark"] .faq-answers-section{background:#182b36}
:root[data-theme="dark"] .about-hero,:root[data-theme="dark"] .faq-hero{background:linear-gradient(130deg,#14232e,#182b36)}
:root[data-theme="dark"] .stat-kpi,:root[data-theme="dark"] .stats-panel,:root[data-theme="dark"] .group-tld-card,:root[data-theme="dark"] .archive-fact,:root[data-theme="dark"] .archive-card,:root[data-theme="dark"] .archive-empty,:root[data-theme="dark"] .definition,:root[data-theme="dark"] .check-item,:root[data-theme="dark"] .knowledge-card,:root[data-theme="dark"] .source-card,:root[data-theme="dark"] .about-step,:root[data-theme="dark"] .about-aside,:root[data-theme="dark"] .about-contact,:root[data-theme="dark"] .faq-sources,:root[data-theme="dark"] .faq-topic,:root[data-theme="dark"] .badge-guide-card,:root[data-theme="dark"] .article-body .reporting-route{background:#14232e;color:#e6edf3;border-color:#344754}
:root[data-theme="dark"] .prose,:root[data-theme="dark"] .article-body p,:root[data-theme="dark"] .definition,:root[data-theme="dark"] .faq-intro,:root[data-theme="dark"] .faq-answer,:root[data-theme="dark"] .about-step p,:root[data-theme="dark"] .about-contact p,:root[data-theme="dark"] .stats-small-note,:root[data-theme="dark"] .archive-count,:root[data-theme="dark"] .simple-stat-list span{color:#c2d3de}
:root[data-theme="dark"] .stat-kpi span,:root[data-theme="dark"] .stat-kpi small,:root[data-theme="dark"] .archive-fact span,:root[data-theme="dark"] .archive-fact small,:root[data-theme="dark"] .archive-meta,:root[data-theme="dark"] .archive-card-head p,:root[data-theme="dark"] .archive-actions>span,:root[data-theme="dark"] .archive-summary-footer,:root[data-theme="dark"] .faq-short,:root[data-theme="dark"] .faq-sources p,:root[data-theme="dark"] .faq-topic>span{color:#b0bec9}
:root[data-theme="dark"] .stat-kpi strong,:root[data-theme="dark"] .archive-fact strong,:root[data-theme="dark"] .home-stats-header h2,:root[data-theme="dark"] .section-heading h2,:root[data-theme="dark"] .faq-topic strong{color:#e6edf3}
:root[data-theme="dark"] .cta-strip{background:linear-gradient(135deg,#183648,#204b60);color:#e6edf3}
:root[data-theme="dark"] .lookup-report-button,:root[data-theme="dark"] .lookup-report-button:hover,:root[data-theme="dark"] .faq-answer-note,:root[data-theme="dark"] .badge-guide-end,:root[data-theme="dark"] .archive-status,:root[data-theme="dark"] .tld-track{background:#203642;color:#dbe9f1;border-color:#536b7b}
:root[data-theme="dark"] .nav-knowledge-menu .nav-section-label{background:#203642;color:#c2d3de}
:root[data-theme="dark"] .faq-topic:hover,:root[data-theme="dark"] .faq-item>summary:hover,:root[data-theme="dark"] .faq-item>summary:focus-visible,:root[data-theme="dark"] .nav-faq-menu a:hover{background:#263d4b}
:root[data-theme="dark"] .marketing-alert,:root[data-theme="dark"] .archive-disclaimer{background:#392b21;color:#f3d7ba;border-color:#916d4c}
:root[data-theme="dark"] .quota-notice.quota-unlimited{background:#183a2e;color:#b6efd2;border-color:#477c61}
:root[data-theme="dark"] .analysis-input-row button:disabled{background:#344754;color:#c2d3de;border-color:#536b7b;cursor:not-allowed}
:root[data-theme="dark"] .archive-status-high,:root[data-theme="dark"] .archive-total-high{background:#442923;color:#ffd0c5;border-color:#ad7467}
:root[data-theme="dark"] .archive-status-medium,:root[data-theme="dark"] .archive-total-medium{background:#3f331b;color:#f8de9e;border-color:#a58a4e}
:root[data-theme="dark"] .archive-status-low,:root[data-theme="dark"] .archive-total-low{background:#183a2e;color:#b6efd2;border-color:#477c61}
:root[data-theme="dark"] .archive-status-unknown,:root[data-theme="dark"] .archive-total-unknown{background:#263743;color:#dbe9f1;border-color:#69808f}

/* 5.0.12: text and surface pairs stay readable in both themes. */
:root{--theme-accent:#a3440b;--theme-surface:#fff;--theme-inset:#f1f6f8;--theme-border:#c4d4dd;--theme-text:#17364a;--theme-muted:#496171}
:root[data-theme="dark"]{--surface:#14232e;--theme-accent:#ffb475;--theme-surface:#14232e;--theme-inset:#203642;--theme-border:#536b7b;--theme-text:#e6edf3;--theme-muted:#c2d3de}
.nav-faq>summary{color:var(--theme-accent)}
.nav-faq-icon,.nav-faq[open] .nav-faq-icon{background:var(--theme-inset);border-color:var(--theme-accent);color:var(--theme-accent)}
.faq-item>summary:after{color:var(--theme-accent)}
:root[data-theme="dark"] .nav-faq>summary,:root[data-theme="dark"] .nav-faq[open]>summary{color:var(--theme-accent)}
:root[data-theme="dark"] .prose,:root[data-theme="dark"] .article-body p,:root[data-theme="dark"] .article-body li,:root[data-theme="dark"] .check-item div{color:var(--theme-muted)}
:root[data-theme="dark"] .check-item,:root[data-theme="dark"] .definition,:root[data-theme="dark"] .evidence-card,:root[data-theme="dark"] .score,:root[data-theme="dark"] .techbox,:root[data-theme="dark"] .draft,:root[data-theme="dark"] .evidence-caution,:root[data-theme="dark"] .score-orbit>div{background:var(--theme-inset);color:var(--theme-text);border-color:var(--theme-border)}
:root[data-theme="dark"] .definition strong,:root[data-theme="dark"] .check-item strong,:root[data-theme="dark"] .scoretop,:root[data-theme="dark"] .archive-score-head,:root[data-theme="dark"] .score-orbit strong{color:var(--theme-text)}
:root[data-theme="dark"] .warningbox,:root[data-theme="dark"] .warning{background:#392e20;color:#ffe4b6;border-color:#96794a}
:root[data-theme="dark"] .warningbox p,:root[data-theme="dark"] .warning p{color:#ffe4b6}
:root[data-theme="dark"] .notice:not(.error):not(.bad){background:#183a2e;color:#c3f1d9;border-color:#507b65}
:root[data-theme="dark"] .alert{background:#442923;color:#ffd0c5;border-color:#ad7467}
:root[data-theme="dark"] .badge{background:#263743;color:#dbe9f1}
:root[data-theme="dark"] .badge.verified{background:#183a2e;color:#b6efd2}
:root[data-theme="dark"] .badge.probable{background:#3f331b;color:#f8de9e}
:root[data-theme="dark"] .badge.unverified{background:#263743;color:#dbe9f1}
:root[data-theme="dark"] .serious{color:#ffb1a6}
:root[data-theme="dark"] .risk-stamp{background:#203642;color:#dbe9f1;border-color:#69808f}
:root[data-theme="dark"] .risk-high{background:#442923;color:#ffd0c5;border-color:#ad7467}
:root[data-theme="dark"] .risk-medium{background:#3f331b;color:#f8de9e;border-color:#a58a4e}
:root[data-theme="dark"] .risk-low{background:#183a2e;color:#b6efd2;border-color:#477c61}
:root[data-theme="dark"] .bar,:root[data-theme="dark"] .archive-track,:root[data-theme="dark"] .dist-track{background:#3b5261}
:root[data-theme="dark"] .archive-track>span,:root[data-theme="dark"] .fill{background:#8bd8e8}
:root[data-theme="dark"] .scoreprogress{accent-color:#8bd8e8}
:root[data-theme="dark"] .scoreprogress::-webkit-progress-bar{background:#3b5261}
:root[data-theme="dark"] .scoreprogress::-webkit-progress-value{background:#8bd8e8}
:root[data-theme="dark"] .scoreprogress::-moz-progress-bar{background:#8bd8e8}
:root[data-theme="dark"] .side-card a,:root[data-theme="dark"] .button.secondary{background:#203642;color:#b8e2f5;border-color:#69808f}
:root[data-theme="dark"] .side-card a:hover,:root[data-theme="dark"] .button.secondary:hover{background:#2d495b;color:#f3f8fc}
:root[data-theme="dark"] .article-body a:not(.button),:root[data-theme="dark"] .report-page a:not(.btn):not(.button),:root[data-theme="dark"] .source-card,:root[data-theme="dark"] .source-card span{color:#a9dcf3}
:root[data-theme="dark"] .article-body .source-card strong{color:#e6edf3}
.source-card{min-width:0;flex-wrap:wrap;align-items:center}
.source-card span{white-space:normal;overflow-wrap:anywhere}
.badge-guide-grid{align-items:stretch}
.badge-guide-card{display:flex;flex-direction:column;min-width:0}
.badge-guide-card .risk-illustration{display:block;width:min(100%,300px);height:240px;object-fit:contain;align-self:center;margin:4px auto 22px}
.badge-guide-card .risk-level-number{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--theme-accent);margin:0 0 8px}
.badge-guide-card h2{line-height:1.25}
.badge-guide-card ul{margin:8px 0 0}
.badge-guide-elevated{border-color:#c98040}
.badge-guide-unavailable{margin-top:20px;border-color:#94a9b5;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;align-items:center}
.badge-guide-unavailable .risk-illustration{width:min(100%,360px);height:230px;margin:0 auto}
.badge-guide-unknown-note{margin-top:20px;padding:20px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-inset);color:var(--theme-text)}
@media(max-width:600px){.badge-guide-unavailable{grid-template-columns:1fr;gap:15px}.badge-guide-card .risk-illustration{height:215px}}
.faq-sign{color:var(--theme-accent);border-color:var(--theme-accent);background:var(--theme-inset)}
.primary-nav .nav-faq>summary:hover{color:var(--theme-accent)}
:root[data-theme="dark"] .badge-guide-low{border-color:#70bf97}
:root[data-theme="dark"] .badge-guide-medium{border-color:#d9b25d}
:root[data-theme="dark"] .badge-guide-elevated{border-color:#e89a58}
:root[data-theme="dark"] .badge-guide-high{border-color:#de847b}
:root[data-theme="dark"] .badge-guide-unavailable{border-color:#94a9b5}
