/* Reading surfaces change theme; brand colours and photograph overlays stay fixed. */
:root {
  color-scheme: dark;
  --page-bg:#090d10; --page-text:#f4f7f9; --page-muted:#adbdc7;
  --page-soft:#d8e1e6; --page-panel:#121c22; --page-line:#40515c;
  --page-link:#64cfff; --page-lime:#dfff69; --page-purple:#c7a0ff;
  --page-orange:#ffaa5c; --page-red:#ff8589;
  --tint-blue:#10252f; --tint-lime:#202916; --tint-purple:#241d32;
  --tint-orange:#302317; --tint-red:#301b20; --focus-ring:#64cfff;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page-bg:#f7f8f7; --page-text:#090d10; --page-muted:#52616b;
  --page-soft:#354750; --page-panel:#eaf0f2; --page-line:#a9b8c0;
  --page-link:#096587; --page-lime:#52650b; --page-purple:#69459a;
  --page-orange:#924700; --page-red:#ac2637;
  --tint-blue:#e4f4fc; --tint-lime:#edf3d7; --tint-purple:#eee7f8;
  --tint-orange:#fff0df; --tint-red:#ffeaeb; --focus-ring:#096587;
}
html body, html body.article-page, html body.method-page {
  background:var(--page-bg); color:var(--page-text); --focus-ring:var(--page-link);
}
html .top-shell { background:var(--ink); color:#f4f7f9; --focus-ring:#64cfff; }
html .story-content { color:#fff; }
html .masthead p, html .standards-intro p, html .verdict p,
html .story-summary, html .home-photo-credit, html .story-meta { color:var(--page-muted); }
html .story-meta span:first-child { color:var(--page-text); }
html .masthead .identity-word .tone-lime { color:var(--page-lime); }
html .masthead .identity-word .tone-orange { color:var(--page-orange); }
html .masthead .identity-word .tone-red { color:var(--page-red); }
html .masthead .identity-word .tone-purple { color:var(--page-purple); }
html .masthead .identity-word .tone-blue { color:var(--page-link); }
html .standards, html .site-footer, html .article-page .site-footer,
html .method-page .site-footer { border-color:var(--page-line); color:var(--page-muted); }
html .site-footer strong, html .article-page .site-footer strong,
html .method-page .site-footer strong { color:var(--page-text); }
html .method-main .verdict p { color:#adbdc7; }
html .article-head .dek, html .method-main .lead, html .repro-steps .repro-note { color:var(--page-soft); }
html .back-link, html .article-meta, html .source-inline, html .sources-list span,
html .contents a, html .comparison-block .table-scroll-help, html .image-pending p { color:var(--page-muted); }
html .article-hero figcaption { background:var(--page-bg); color:var(--page-muted); border-color:var(--page-line); }
html .contents summary { color:var(--page-text); }
html .contents a:hover, html .source-inline a, html .sources-list a,
html .claim-origin a, html .repro-links a, html .timeline time,
html .repro-note strong, html .next-update strong,
html .inflation-page .next-update strong, html .jackdaw-page .next-update strong { color:var(--page-link); }
html .claim-origin, html .downloads, html .technical-note, html .repro-limits,
html .repro-downloads a, html .image-pending {
  background:var(--page-panel); color:var(--page-text); border-color:var(--page-line);
}
html .repro-downloads a:first-child { background:var(--page-link); color:var(--page-bg); border-color:var(--page-link); }
html .comparison-table thead { background:var(--tint-blue); color:var(--page-text); }
html .italy-crime-page .comparison-table thead { background:var(--tint-orange); }
html .comparison-table th, html .comparison-table td, html .sources-list li,
html .limit-panel, html .credits, html .next-update, html .contents,
html .contents .back-home, html .repro-steps>li, html .timeline { border-color:var(--page-line); }
html .timeline-entry::before { background:var(--page-link); }
html .finding { background:var(--tint-purple); border-color:var(--page-purple); }
html .finding.misleading-framing { background:var(--tint-orange); border-color:var(--page-orange); }
html .finding.disinformation { background:var(--tint-red); border-color:var(--page-red); }
html .finding.misinformation { background:var(--tint-lime); border-color:var(--page-lime); }
html .finding.by-the-numbers { background:var(--tint-blue); border-color:var(--page-link); }
html .reproduction { --guide-accent:var(--page-lime); --guide-tint:var(--tint-lime); }
html .reproduction.unproven { --guide-accent:var(--page-purple); --guide-tint:var(--tint-purple); }
html .reproduction.misleading-framing { --guide-accent:var(--page-orange); --guide-tint:var(--tint-orange); }
html .reproduction.disinformation { --guide-accent:var(--page-red); --guide-tint:var(--tint-red); }
html .reproduction.by-the-numbers { --guide-accent:var(--page-link); --guide-tint:var(--tint-blue); }
html .reproduction .repro-intro, html .reproduction.misleading-framing .repro-intro { border-color:var(--guide-accent); }
html .reproduction .step-number, html .reproduction.misleading-framing .step-number { color:var(--guide-accent); }
/* Preserve the existing blue-on-dark emphasis labels in either theme. */
html .pol1023-robbery-page .pol1023-ending-label,
html .pol1023-robbery-page .next-update strong { color:#64cfff; }
.theme-switch {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:44px; flex-shrink:0; padding:8px; border:1px solid #71838e;
  border-radius:24px; background:#121c22; color:#f4f7f9;
  font:600 13px/1.2 var(--font); cursor:pointer;
}
.theme-switch[hidden] { display:none; }
.theme-switch:hover { border-color:#64cfff; }
.theme-switch:focus-visible { outline:3px solid #64cfff; outline-offset:4px; }
.theme-name { min-width:32px; }
.theme-track { width:30px; height:18px; padding:3px; border-radius:12px; background:#8597a3; }
.theme-track::before { content:""; display:block; width:12px; height:12px; border-radius:50%; background:#090d10; }
.theme-switch[aria-checked="true"] .theme-track { background:#64cfff; }
.theme-switch[aria-checked="true"] .theme-track::before { transform:translateX(12px); }
.site-header .site-nav { margin-left:auto; }
.theme-standalone { display:flex; justify-content:flex-end; padding-top:20px; }
@media(max-width:800px) {
  .site-header { height:auto; min-height:116px; flex-wrap:wrap; padding:18px 0 12px; gap:8px; }
  .site-header .theme-switch { order:1; margin-left:auto; }
  .site-header .site-nav { order:2; width:100%; justify-content:flex-end; flex-wrap:wrap; }
}
