/* Alternate dark palette for all preserved page families. */
html[data-theme="dark"]{color-scheme:dark;--bg:#101922;--surface:#192733;--surface2:#233744;--ink:#e4edf3;--muted:#b4c5d0;--dim:#a7bdcb;--line:#354b5b;--accent:#a9cfe5}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 15% 0%,#182a39,#101922 55%);color:var(--ink)}
html[data-theme="dark"] .item-stage,
html[data-theme="dark"] .btn.light,
html[data-theme="dark"] .avatar-mark,
html[data-theme="dark"] .hero-photo,
html[data-theme="dark"] .hero-image,
html[data-theme="dark"] .card-photo,
html[data-theme="dark"] .learn-band,
html[data-theme="dark"] .guide-row:hover,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .note,
html[data-theme="dark"] .thumbnail,
html[data-theme="dark"] .shop-inline,
html[data-theme="dark"] .social-card,
html[data-theme="dark"] .category-feature,
html[data-theme="dark"] .store-note,
html[data-theme="dark"] .noscript-nav,
html[data-theme="dark"] .nav-links,
html[data-theme="dark"] .discovery-image,
html[data-theme="dark"] .maker-art,
html[data-theme="dark"] .discovery-card:nth-child(4) .maker-art,
html[data-theme="dark"] .discovery-notice,
html[data-theme="dark"] .discovery-custom,
html[data-theme="dark"] .market-search input,
html[data-theme="dark"] .buyer-checklist,
html[data-theme="dark"] .interactive-tool,
html[data-theme="dark"] .clue-result,
html[data-theme="dark"] .quiz-options button,
html[data-theme="dark"] .battery-tabs button,
html[data-theme="dark"] .prose #quiz-feedback,
html[data-theme="dark"] .component-description,
html[data-theme="dark"] .scenario-outputs>div,
html[data-theme="dark"] .commerce-hero-art,
html[data-theme="dark"] .commerce-search,
html[data-theme="dark"] .reviewed-card,
html[data-theme="dark"] .edition-note,
html[data-theme="dark"] .process-diagram,
html[data-theme="dark"] .story-filter,
html[data-theme="dark"] ::selection,
html[data-theme="dark"] .article-figure,
html[data-theme="dark"] .article-visual{background:#192733;border-color:#354b5b}
html[data-theme="dark"] .header{background:rgba(14,24,33,.97);border-color:#354b5b}html[data-theme="dark"] .legacy-navigation{background:#14212c;border-color:#354b5b}html[data-theme="dark"] .brand-header img{filter:brightness(0) invert(1)}html[data-theme="dark"] .nav-dropdown{background:#1b2d3b;border-color:#425b6c;box-shadow:0 14px 35px #0008}html[data-theme="dark"] .nav-links{color:var(--ink)}html[data-theme="dark"] .nav-links a,html[data-theme="dark"] .discovery-nav a{color:#c9dbe7}html[data-theme="dark"] .nav-links a[aria-current=page]{color:#fff}html[data-theme="dark"] .nav-links a[aria-current=page]:after{background:#a4cbe2}html[data-theme="dark"] .commerce-hero h1 em{background:linear-gradient(115deg,#9fbdd1,#f3faff 40%,#7ca2bb 75%,#d6e7f2);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4{color:var(--ink)}html[data-theme="dark"] p,html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .lede,html[data-theme="dark"] .breadcrumbs,html[data-theme="dark"] .card-meta,html[data-theme="dark"] .category-count,html[data-theme="dark"] .discovery-caption,html[data-theme="dark"] .article-nav a,html[data-theme="dark"] .source-note{color:var(--muted)}html[data-theme="dark"] .prose a:not(.btn){color:#a8d4ef}html[data-theme="dark"] .prose strong{color:var(--ink)}html[data-theme="dark"] .prose li{color:#c0d0da}html[data-theme="dark"] .reviewed-card{background:linear-gradient(135deg,#1b2d3b,#12212d);border-color:var(--line)}html[data-theme="dark"] .fact-card{background:#14232e}html[data-theme="dark"] .fact-card:hover{box-shadow:0 15px 35px #0006}html[data-theme="dark"] .fact-topic-tabs button[aria-pressed=true]{background:#bed9e9;color:#102332;border-color:#bed9e9}html[data-theme="dark"] .prose section#quick-fact{background:linear-gradient(125deg,#20394a,#172936);border-color:#496777;border-left-color:#a7cee4}html[data-theme="dark"] .prose section#quick-fact .fact-answer{color:#e8f2f8}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#10212d;color:#dbe9f2;border-color:#526d7d}html[data-theme="dark"] input::placeholder{color:#97aebb}html[data-theme="dark"] .btn.secondary{color:#d6e6ef;background:transparent;border-color:#6f8999}html[data-theme="dark"] .icon-button{color:#dbeaf4;border-color:#506c7e}html[data-theme="dark"] .icon-button:hover{background:#293e4d}html[data-theme="dark"] table,html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:#425b6b;color:#d0e0e9}html[data-theme="dark"] .article-visual{background:#1a2b37;border-color:#435e70}html[data-theme="dark"] .maker-art,html[data-theme="dark"] .discovery-card:nth-child(4) .maker-art{background:linear-gradient(130deg,#223d50,#506b7c 45%,#293f4e 72%,#182b3a);color:#edf5fa}html[data-theme="dark"] .maker-art b{text-shadow:0 1px 0 #fff4,0 2px 8px #0007}html[data-theme="dark"] .commerce-art-label{color:#253d4a}html[data-theme="dark"] .commerce-hero-art{outline-color:#647e90}html[data-theme="dark"] .footer{background:#0b151e}html[data-theme="dark"] .footer p,html[data-theme="dark"] .footer .eyebrow{color:#c9dae5}html[data-theme="dark"] .search-dialog,html[data-theme="dark"] .lightbox{background:#152633;color:#dceaf3}html[data-theme="dark"] .search-results a:hover{background:#284252}html[data-theme="dark"] .newsletter-preview{background:#1b2f3d}html[data-theme="dark"] .fact-page-number{color:#729bb5}html[data-theme="dark"] .section-top{border-color:#3c5565}
@media(max-width:1050px){html[data-theme="dark"] .nav-links.open,html[data-theme="dark"] .nav-links.is-open{background:#152633}}
@media(prefers-reduced-motion:reduce){.fact-card,.fact-card-art>img,.fact-card-art:after,.fact-peek summary span{transition:none!important;transform:none!important}.fact-card-art:after{display:none}}
/* Explicit legible tool states; inherited green palettes were light-theme only. */
html[data-theme="dark"] ::selection{background:#547b94;color:#fff}
html[data-theme="dark"] .interactive-tool h3,html[data-theme="dark"] .interactive-tool h4,html[data-theme="dark"] .clue-checks legend,html[data-theme="dark"] .clue-checks small,html[data-theme="dark"] .clue-result>span,html[data-theme="dark"] .clue-result output,html[data-theme="dark"] .tool-reset,html[data-theme="dark"] .prose .interactive-tool .tool-caution,html[data-theme="dark"] .battery-scenario label,html[data-theme="dark"] .scenario-outputs span,html[data-theme="dark"] .scenario-outputs output,html[data-theme="dark"] .scenario-assumptions summary{color:#d2e4ef}
html[data-theme="dark"] .quiz-options button,html[data-theme="dark"] .battery-tabs button{color:#d2e4ef;border-color:#7893a5}
html[data-theme="dark"] .quiz-options button[aria-pressed=true],html[data-theme="dark"] .battery-tabs button[aria-pressed=true]{background:#bad5e6;color:#122533;border-color:#bad5e6}

/* Match the more specific article-link selector, and cover every checker label. */
html[data-theme="dark"] .prose a:not(.btn):not(.text-link){color:#a8d4ef}
html[data-theme="dark"] .clue-checks label,html[data-theme="dark"] .clue-checks label span{color:#d2e4ef}
html[data-theme="dark"] .prose a:not(.btn):not(.text-link):hover{color:#e4f3ff}

/* Reading surfaces: cover inherited text without recoloring buttons or image labels. */
html[data-theme="dark"] .prose{color:var(--muted)}
html[data-theme="dark"] .prose .fact-answer{color:var(--ink)}

/* Discovery and shop templates share these disclosures, controls and checklists. */
html[data-theme="dark"] .affiliate-disclosure,
html[data-theme="dark"] .market-search .affiliate-disclosure,
html[data-theme="dark"] .market-search label,
html[data-theme="dark"] .market-search small,
html[data-theme="dark"] .buyer-checklist ul,
html[data-theme="dark"] .store-note ul,
html[data-theme="dark"] .store-mark{color:var(--muted)}
html[data-theme="dark"] .shop-band .affiliate-disclosure{color:#e2eadb}
html[data-theme="dark"] .ebay-search-action .text-link{color:#a8d4ef;border-color:#7893a5}
html[data-theme="dark"] .ebay-search-action .text-link:hover{color:#e4f3ff;border-color:currentColor}
html[data-theme="dark"] .market-search input{border-color:#7893a5}

/* Collection metadata and interactive states previously retained light-theme greens. */
html[data-theme="dark"] .hero-byline,
html[data-theme="dark"] .hero-byline small,
html[data-theme="dark"] .hero-caption small,
html[data-theme="dark"] .hero-index,
html[data-theme="dark"] .guide-row .num,
html[data-theme="dark"] .filter{color:var(--muted)}
html[data-theme="dark"] .filter:hover,
html[data-theme="dark"] .filter[aria-pressed=true]{color:var(--ink)}
html[data-theme="dark"] .clue-checks input,
html[data-theme="dark"] .battery-scenario input[type=range]{accent-color:var(--accent)}
html[data-theme="dark"] .filter[aria-pressed=true]:after{background:var(--accent)}
html[data-theme="dark"] .thumbnail[aria-pressed=true]{outline-color:var(--accent)}
html[data-theme="dark"] .hero h1 em,
html[data-theme="dark"] .category-strip a:hover{color:var(--accent)}
html[data-theme="dark"] .btn.light{color:var(--ink);border-color:#7893a5}
html[data-theme="dark"] .btn.light:hover{background:var(--surface2)}
html[data-theme="dark"] .zoom-button{background:var(--surface);color:var(--ink)}

/* The search input clears its normal outline; restore a keyboard-only focus ring. */
.search-top input:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:2px}
