
/* Default: a low-glare, midnight-blue reading palette. Light theme remains optional. */
html[data-bm-theme="dark"]{color-scheme:dark;--ink:#e6edf5;--muted:#a9b8cb;--navy:#0b1524;--blue:#84baf7;--lime:#d5e97b;--line:#344257;--bg:#172538;--white:#18273a;background:#101b2b}
html[data-bm-theme="dark"] body{background:#101b2b!important;color:#e6edf5!important}
html[data-bm-theme="dark"] :is(.masthead,.site-header,.page-main,.bm-article-page,.market-main,.article,.bm-home,.archive-main){background:transparent;color:var(--ink)}
html[data-bm-theme="dark"] :is(h1,h2,h3,h4,.wordmark,.article-byline a,.news-card h3,.section-heading h2,.bm-side-story a){color:#eef4fa}
html[data-bm-theme="dark"] :is(p,.meta,.article-deck,.bm-article-spot,.breadcrumb-text,.archive-description,.news-card__excerpt){color:var(--muted)}
html[data-bm-theme="dark"] .article-content{color:#e0e9f4;line-height:1.82}
html[data-bm-theme="dark"] .article-content p{color:#dee7f2}
html[data-bm-theme="dark"] :is(.bm-side-section,.bm-market-explainer,.bm-price-tool,.market-source,.market-table-wrap,.bm-editorial-empty,.bm-market-discovery,.empty-state,.bm-fact,.bm-contact,.search-panel,.news-card__body){background:#19283b!important;border-color:#344257!important;color:#dfe8f3!important;box-shadow:none!important}
html[data-bm-theme="dark"] :is(.bm-market-explainer p,.empty-state p,.bm-editorial-empty p,.bm-market-discovery>p){color:#acbdd0!important}
html[data-bm-theme="dark"] :is(.market-table th,.market-table td,.article-content td,.article-content th){border-color:#344257;color:#e1eaf5;background:#19283b}
html[data-bm-theme="dark"] :is(.bm-market-navigation a,.market-crosslinks a,.page-numbers,.icon-button,.site-search input,.bm-contact input,.bm-contact textarea,.bm-price-tool input){background:#223349!important;border-color:#43546b!important;color:#eef4fa!important}
html[data-bm-theme="dark"] .wordmark{color:#f1f5fc}html[data-bm-theme="dark"] .wordmark span{color:#83baff}
html[data-bm-theme="dark"] :is(.article-content a,.section-heading>a,.bm-side-markets a span){color:#94c4ff}
html[data-bm-theme="dark"] :is(.article-content blockquote,.article-source){background:#1b3046;border-color:#82b9f9}
html[data-bm-theme="dark"] .site-footer{background:#091423;color:#c3d0df}
html[data-bm-theme="dark"] .site-footer h2{color:#eef4fa}
html[data-bm-theme="dark"] :is(.image-placeholder,.news-card__image){background-color:#20344a}
html[data-bm-theme="dark"] .bm-contact label{color:#e9f1f9}
html[data-bm-theme="dark"] a:focus-visible,html[data-bm-theme="light"] a:focus-visible, .bm-theme-toggle:focus-visible{outline:3px solid #8ec5ff;outline-offset:3px}
.bm-theme-toggle{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:10px;min-height:42px;padding:8px 12px;font:600 13px/1.3 system-ui;cursor:pointer}
html[data-bm-theme="dark"] .bm-theme-toggle{background:#26384e;border-color:#44566b;color:#f0f5fc}
@media(max-width:640px){.bm-theme-toggle{padding:8px;font-size:12px}.bm-article-primary .article-content{font-size:1.04rem;line-height:1.78}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Markets: legible news-style information hierarchy in dark mode. */
html[data-bm-theme="dark"] .market-main{max-width:1240px}
html[data-bm-theme="dark"] .market-heading{max-width:850px}
html[data-bm-theme="dark"] .market-table-wrap{border:1px solid #34465c;border-radius:16px;overflow-x:auto}
html[data-bm-theme="dark"] .market-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
html[data-bm-theme="dark"] .market-table thead th{background:#243a53;color:#f4f7fc}
html[data-bm-theme="dark"] .market-table tbody tr:nth-child(2n) td,html[data-bm-theme="dark"] .market-table tbody tr:nth-child(2n) th{background:#1d3046}
html[data-bm-theme="dark"] .market-table tbody tr:hover td,html[data-bm-theme="dark"] .market-table tbody tr:hover th{background:#29435e}
html[data-bm-theme="dark"] .market-table small{display:block;color:#a8bad0;font-weight:400}
html[data-bm-theme="dark"] .bm-change:not(.bm-neg){color:#a1e2c0}
html[data-bm-theme="dark"] .bm-change.bm-neg{color:#ff9f9f}
html[data-bm-theme="dark"] .market-status--stale{color:#f6c98e}
html[data-bm-theme="dark"] .market-status--fresh{color:#a1e2c0}
html[data-bm-theme="dark"] .empty-state{padding:32px 20px;border-radius:16px;text-align:center;border:1px dashed #415673}
html[data-bm-theme="dark"] .bm-history-chart{background:#17283c;border-radius:12px;padding:10px}
html[data-bm-theme="dark"] :is(.market-crosslinks,.bm-market-explainer){margin-block:26px}
@media(max-width:700px){.market-main{padding-inline:15px}.market-table th,.market-table td{white-space:nowrap;padding:12px}.market-heading h1{font-size:clamp(2rem,9vw,3rem)}}
