:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #091a27; color: #e1ecf2; }
body { margin: 0; } main { max-width: 1100px; margin: auto; padding: 48px 24px; }
.eyebrow { color: #72dbc6; letter-spacing: .16em; font-size: .8rem; }
h1 { font-size: clamp(2rem, 6vw, 4.2rem); max-width: 850px; line-height: 1.08; }
h2 { font-size: 1.1rem; } p, li { line-height: 1.6; color: #b7cbd7; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.metrics article { overflow-wrap: anywhere; hyphens: auto; }
article, section:not(.metrics) { background: #112a3a; padding: 24px; border-radius: 14px; margin: 22px 0; }
strong { font-size: 2.5rem; color: #82e2cc; } a { color: #82e2cc; }
svg { width: 100%; min-height: 160px; } table { border-collapse: collapse; width: 100%; }
td, th { text-align: left; padding: 8px; border-bottom: 1px solid #345064; }
summary { cursor: pointer; padding: 15px 0; } #status { white-space: pre-wrap; }
@media (min-width: 701px) and (max-width: 950px) {
  .oni-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oni-metrics > article:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) { .metrics { grid-template-columns: 1fr; gap: 0; } main { padding: 24px 16px; } }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.region-grid article { margin: 0; border: 1px solid #345064; background: #0d2231; }
h3 { font-size: 1.3rem; margin: 12px 0; } .badge { color: #82e2cc; font-size: .85rem; }
.regional-metrics { display: flex; gap: 20px; margin: 24px 0; flex-wrap: wrap; }
.regional-metrics span { display: block; color: #b7cbd7; font-size: .8rem; }
.regional-metrics strong { display: block; font-size: 1.7rem; margin-top: 6px; }
button, select { font: inherit; color: #e1ecf2; background: #173b50; border: 1px solid #53788e; border-radius: 7px; padding: 12px; }
button { cursor: pointer; } button:hover { background: #24556f; }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #82e2cc; outline-offset: 4px; }
.filters { margin: 25px 0; } label { margin-right: 12px; } .table-scroll { overflow-x: auto; }
#region-detail { scroll-margin-top: 24px; } [hidden] { display: none !important; }
@media (max-width: 700px) { .region-grid { grid-template-columns: 1fr; } .regional-metrics strong { font-size: 1.5rem; } }
.zero-explanation { background: #16394b; border-left: 4px solid #f4f8fb; padding: 16px; color: #e8f2f8; }
.zero-swatch { display: inline-block; width: 28px; border-top: 3px solid #f4f8fb; vertical-align: middle; margin-right: 10px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #e1ecf2; font-size: .95rem; margin: 20px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.positive { background: #ffa384; } .negative { background: #71befe; }
.chart-scroll { overflow-x: auto; } .chart-scroll svg { display: block; min-width: 760px; }
.zero-line { stroke: #f4f8fb; stroke-width: 2.8; }
.grid-line { stroke: #45677a; stroke-width: 1; stroke-dasharray: 4 6; }
.zero-tick { fill: #fff; font-size: 17px; font-weight: 700; }
.axis-label { fill: #c7dbe8; font-size: 16px; } .axis-title { fill: #e1ecf2; font-size: 17px; font-weight: 600; }
.data-line { stroke: #82e2cc; stroke-width: 2; fill: none; }
.selected-point { fill: transparent; stroke: #fff; stroke-width: 2; }
.point-target { cursor: pointer; } .point-navigation { display: flex; flex-wrap: wrap; gap: 12px; }
.point-details { background: #0b2232; border: 1px solid #53788e; border-radius: 10px; padding: 18px; margin-top: 16px; }
.point-details h3 { margin-top: 0; } .point-details dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px 24px; margin-bottom: 0; }
.point-details dt { color: #b7cbd7; } .point-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.chart-help { font-size: .9rem; } .regional-metrics small { display: block; max-width: 200px; line-height: 1.6; color: #b7cbd7; margin-top: 8px; }
button:disabled { opacity: .5; cursor: default; } svg:focus-visible { outline: 3px solid #82e2cc; outline-offset: -3px; }
@media (max-width: 700px) { .point-details dl { grid-template-columns: 1fr; gap: 6px; } .point-details dd { margin-bottom: 12px; } }
.site-intro { max-width: 820px; font-size: 1.15rem; }
.page-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0; }
.guide-topic { border-top: 1px solid #45677a; padding: 4px 0; }
.guide-topic summary { color: #e8f2f8; font-weight: 650; line-height: 1.6; }
.guide-topic p, .guide-topic li { max-width: 850px; }
.data-steps { padding-left: 24px; } .data-steps li { margin: 16px 0; padding-left: 6px; }
#about, #enso-series, #regional-section { scroll-margin-top: 24px; }
.regional-ai { border: 1px solid #53788e; background: #0b2232; border-radius: 12px; padding: 22px; margin: 24px 0; }
.ai-limitations { border-left: 3px solid #e0bf7d; padding-left: 14px; }
.ai-fact { border-top: 1px solid #345064; padding: 12px 0; }
.ai-fact h4 { margin: 8px 0; } .ai-facts small, .regional-ai small, #global-ai small { color: #b7cbd7; }
#global-ai { scroll-margin-top: 24px; }
.reference-band { fill: #a9c8dc; fill-opacity: .18; stroke: #a9c8dc; stroke-opacity: .4; stroke-width: 1; }
.neutral { background: #c7dbe8; } .band-swatch { display: inline-block; width: 25px; height: 12px; background: #a9c8dc40; border: 1px solid #a9c8dc; vertical-align: middle; margin-right: 8px; }

/* Larger, independently scaled plots retain readable text on narrow screens. */
main { max-width: 1440px; }
h2 { font-size: 1.55rem; }
.chart-scroll { margin: 20px 0; border: 1px solid #345064; border-radius: 10px; }
.chart-scroll svg { min-width: 1000px; min-height: 460px; aspect-ratio: 1100 / 520; }
.axis-label { font-size: 19px; } .zero-tick { font-size: 20px; } .axis-title { font-size: 21px; }
.chart-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:18px 0; }
.chart-controls label { margin:0; } .scale-note { color:#e1ecf2; }
.world-map-scroll { overflow:auto; max-height:900px; background:#fff; border-radius:10px; margin:18px 0; }
.world-map-scroll img { display:block; width:100%; min-width:950px; height:auto; }
.world-map-scroll.zoomed img { width:200%; min-width:1900px; max-width:none; }
.global-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.global-metrics article { margin:0; } .global-metrics strong { font-size:2rem; }
.global-metrics small { display:block; line-height:1.6; margin-top:10px; }
#world-section { scroll-margin-top:24px; }
@media (max-width:1050px) { .global-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { article, section:not(.metrics) { padding:18px; } .global-metrics { grid-template-columns:1fr; } }

.reference-toggle { display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap; }
.reference-toggle input { width:20px; height:20px; accent-color:#82e2cc; }
.history-dot { background:#82e2cc; }
.zero-label { fill:#f4f8fb; font-size:17px; paint-order:stroke; stroke:#112a3a; stroke-width:5px; }

#temperature-study-chart { display:block; width:100%; min-width:1000px; height:auto; }

/* Shared reading hierarchy and touch-friendly controls. */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-size:16px; }
main { max-width:1320px; padding-top:32px; }
h1 { margin:16px 0 22px; }
h2 { line-height:1.3; }
h3 { line-height:1.4; }
p { max-width:85ch; }
main > section, .help-section { margin:28px 0; }
.entry-links article { margin:0; border:1px solid #345064; }
.entry-links h2 { font-size:1.25rem; }
.entry-links a { text-decoration-thickness:1px; text-underline-offset:5px; }
.reading-tip { border-left:3px solid #82e2cc; background:#112a3a; padding:16px 20px; margin-top:24px; }
.control-field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.control-field label, .controls label { font-size:.9rem; font-weight:650; color:#dcebf2; }
select { max-width:100%; min-height:46px; }
.chart-controls { align-items:flex-end; padding:16px; background:#0b2232; border-radius:10px; }
.chart-controls .reference-toggle { align-self:center; }
.disclosure, .help-section { border:1px solid #345064; border-radius:10px; padding:0 18px; margin:20px 0; background:#0d2332; }
.disclosure > summary, .help-section > summary { font-weight:650; color:#e1ecf2; line-height:1.5; min-height:52px; }
.disclosure[open] > summary, .help-section[open] > summary { border-bottom:1px solid #345064; margin-bottom:18px; }
.help-section > div { padding-bottom:18px; }
.back-link { display:inline-block; margin-bottom:12px; }
[id] { scroll-margin-top:24px; }
.page-links { gap:10px; }
.page-links a { padding:10px 14px; border:1px solid #345064; border-radius:8px; text-decoration:none; }
.page-links a:hover { background:#173b50; }
.skip-link { position:absolute; top:-100px; left:16px; z-index:10; padding:14px; background:#173b50; }
.skip-link:focus { top:12px; }
.point-details { max-width:100%; }
.table-scroll { max-height:520px; }
th { position:sticky; top:0; background:#112a3a; }
button, a, summary, select { touch-action:manipulation; }
@media(max-width:700px){
 main { padding:24px 14px; }
 .entry-links { gap:12px; }
 .control-field, .chart-controls > select, .filters > .control-field { width:100%; }
 .control-field select { width:100%; }
 .chart-controls { padding:12px; }
 .disclosure, .help-section { padding:0 12px; }
 .page-links a { flex:1 1 145px; }
}
@media(prefers-reduced-motion:reduce){ html { scroll-behavior:auto; } }
