@font-face {
  font-family: "Atlas arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atlas-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Atlas arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atlas-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Atlas devanagari";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atlas-devanagari-400.woff2") format("woff2");
  unicode-range: U+0900-097F;
}
@font-face {
  font-family: "Atlas devanagari";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atlas-devanagari-700.woff2") format("woff2");
  unicode-range: U+0900-097F;
}
@font-face {
  font-family: "Atlas bengali";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atlas-bengali-400.woff2") format("woff2");
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Atlas bengali";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atlas-bengali-700.woff2") format("woff2");
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Atlas cjk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atlas-cjk-400.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3400-9FFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Atlas cjk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atlas-cjk-700.woff2") format("woff2");
  unicode-range: U+3000-303F, U+3400-9FFF, U+FF00-FFEF;
}

:root {
  color-scheme: dark;
  --bg: #071b25;
  --panel: #0d2833;
  --panel-raised: #11313d;
  --line: #28505c;
  --text: #ecf4ee;
  --muted: #9ab1b8;
  --north: #a8e8bb;
  --south: #ffb49a;
  --accent: #c8f4a6;
  font-family: "Avenir Next", Avenir, "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 74% 5%, #123543 0, transparent 30%), var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .chart-scroll:focus-visible, #world-map:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { width: min(100% - 64px, 1600px); margin: auto; }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #294450; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 13px; letter-spacing: .18em; font-weight: 600; white-space: nowrap; }
.brand strong { color: var(--accent); font-weight: 800; }
.brand-mark { position: relative; width: 35px; height: 35px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; transform: rotate(-25deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 45px; height: 12px; border: 1px solid var(--accent); border-radius: 50%; }
.brand-mark::after { transform: rotate(90deg); }
.brand-mark span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.header-meta { display: flex; align-items: center; gap: 12px; color: #abc4ca; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.live-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); }
.header-divider { height: 18px; width: 1px; background: #43616b; margin: 0 8px; }
.language-picker { display: flex; align-items: center; gap: 9px; margin-inline-start: auto; color: #a9c1c6; font-size: 10px; font-weight: 700; letter-spacing: .07em; white-space: nowrap; }
.language-picker select { min-width: 118px; padding: 9px 24px 9px 11px; color: var(--text); background: #15343f; border: 1px solid #53717a; border-radius: 0; cursor: pointer; }
.language-picker select option { background: #15343f; }

.intro { min-height: 285px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 30px 10px 34px; }
.intro-copy { max-width: 900px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 10px; letter-spacing: .22em; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.eyebrow-line { display: inline-block; width: 31px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; font-size: clamp(48px, 5.6vw, 86px); line-height: .98; letter-spacing: -.055em; font-weight: 400; margin-bottom: 22px; }
h1 em { color: var(--accent); font-weight: 400; }
.intro-description { color: #b8cbd0; max-width: 640px; font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.intro-stat { align-self: center; min-width: 180px; padding-left: 25px; border-left: 1px solid #4d6e6e; }
.intro-stat-number { display: block; color: var(--accent); font: 400 clamp(54px, 5vw, 83px)/1 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; letter-spacing: -.08em; }
.intro-stat-label { display: block; margin-top: 9px; color: #9cb7bd; font-size: 10px; line-height: 1.55; letter-spacing: .2em; font-weight: 800; }

.series-panel { margin-bottom: 14px; padding: 12px 14px 10px; background: rgba(14, 42, 53, .91); border: 1px solid #2b505b; }
.series-tabs { display: flex; gap: 8px; }
.series-tabs button { flex: 1; min-width: 0; padding: 13px 17px; text-align: start; background: #153540; border: 1px solid #42636d; color: #d5e4e0; }
.series-tabs button.active { border-color: var(--accent); background: #294e51; }
.series-tabs strong { display: block; font-size: 14px; letter-spacing: .08em; }
.series-tabs button.active strong { color: var(--accent); }
.series-tabs span { display: block; margin-top: 4px; color: #aac4c8; font-size: 11px; }
.series-panel p { margin: 9px 4px 0; color: #b6cbd0; font-size: 11px; line-height: 1.5; }
.series-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.series-foot a { flex: none; color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #6f9e82; }
.series-foot a:hover { color: #fff; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.map-panel, .readout, .timeline-panel, .analysis-panel, .method-panel { background: rgba(14, 42, 53, .91); border: 1px solid #2b505b; }
.panel-heading { padding: 25px 30px 20px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.panel-heading h2, .timeline-header h2, .analysis-heading h2, .method-panel h2 { margin: 8px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.map-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.field-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 30px 15px; }
.field-toolbar > span { margin-right: 5px; color: #b4c9ca; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.field-toolbar button { padding: 7px 10px; background: #173945; color: #cadbd7; border: 1px solid #517078; font-size: 10px; font-weight: 700; }
.field-toolbar button.active { background: #376060; color: #f2f8e9; border-color: var(--accent); }
.field-toolbar button:disabled { opacity: .45; cursor: default; }
.badge { padding: 8px 10px; border: 1px solid #3e6470; color: #c0d5d6; font-size: 9px; line-height: 1; letter-spacing: .09em; font-weight: 700; white-space: nowrap; }
.badge-model { color: var(--accent); border-color: #638b70; }
.map-wrap { position: relative; margin: 0 16px; background: #0a2935; overflow: hidden; }
#world-map { display: block; width: 100%; height: auto; aspect-ratio: 1200/620; touch-action: none; cursor: grab; }
#world-map.dragging { cursor: grabbing; }
.map-ocean { fill: #123744; stroke: #3d6570; stroke-width: 1; }
.grid-line { stroke: #37616a; stroke-opacity: .56; stroke-width: 1; }
.grid-line.equator, .grid-line.prime { stroke: #63919a; stroke-opacity: .74; }
.grid-label { fill: #91adb3; font-size: 11px; font-family: "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.map-region-label { fill: #7297a0; font-size: 12px; letter-spacing: 4px; font-weight: 700; }
.land-shape { fill: #2d5055; stroke: #5c7e78; stroke-width: .75; opacity: .94; vector-effect: non-scaling-stroke; }
.schematic-land { fill: #31545a; stroke: #71918d; stroke-width: 1.25; }
.map-earth-image { opacity: .8; filter: saturate(.72) brightness(.72); }
#field-image { opacity: .72; }
.detailed-land { fill: rgba(48, 79, 78, .12); stroke: #9bb5a2; stroke-opacity: .8; stroke-width: .55; }
.field-caption { display: flex; flex-wrap: wrap; gap: 9px 18px; padding: 9px 20px 15px; color: #a9c5c3; font-size: 10px; line-height: 1.4; }
#field-scale { color: #f0eacb; font-weight: 800; }
#field-colorbar { flex: none; width: 270px; max-width: 100%; height: auto; direction: ltr; }
.field-colorbar-ramp { stroke: #517078; stroke-width: 1; }
.field-colorbar-label { fill: #cadbd7; font-size: 9px; font-family: "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.map-tools { position: absolute; top: 17px; left: 20px; display: flex; flex-direction: column; gap: 4px; }
.map-tools button { width: 34px; height: 34px; padding: 0; color: #e4f3e9; background: rgba(7, 30, 39, .9); border: 1px solid #78959b; font-size: 20px; line-height: 1; }
.map-tools button:hover { color: var(--accent); border-color: var(--accent); }
.map-tools button:disabled { cursor: default; color: #819da0; border-color: #58717a; opacity: .7; }
.map-tools button:last-child { font-size: 18px; }
.track { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.track-full { stroke: #aac6c5; stroke-width: 1.2; opacity: .32; stroke-dasharray: 4 6; }
.track-active { stroke-width: 3.8; opacity: .96; }
.track-north.track-active { stroke: var(--north); }
.track-south.track-active { stroke: var(--south); }
.trail-dot { stroke: #14313a; stroke-width: 1.3; }
.dot-north { fill: var(--north); }
.dot-south { fill: var(--south); }
.marker-halo { fill: none; stroke-width: 1.5; opacity: .68; }
.marker-core { stroke: #0a2730; stroke-width: 2; }
.marker-north .marker-halo { stroke: var(--north); }
.marker-north .marker-core { fill: var(--north); }
.marker-south .marker-halo { stroke: var(--south); }
.marker-south .marker-core { fill: var(--south); }
.marker-letter { fill: #09222b; font: 800 10px "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.map-compass { position: absolute; top: 20px; right: 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; letter-spacing: .12em; font-weight: 800; color: #bed2d1; text-shadow: 0 1px 3px #09232b; }
.map-compass i { display: block; width: 1px; height: 24px; background: #c5dcce; position: relative; }
.map-compass i::before, .map-compass i::after { content: ""; position: absolute; left: -3px; width: 7px; height: 7px; border-left: 1px solid #c5dcce; border-top: 1px solid #c5dcce; transform: rotate(45deg); }
.map-compass i::before { top: 0; }
.map-compass i::after { bottom: 0; transform: rotate(225deg); }
.map-legend { position: absolute; left: 26px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 18px; padding: 11px 14px; background: rgba(7, 30, 39, .87); border: 1px solid #4a6970; font-size: 9px; letter-spacing: .1em; font-weight: 800; color: #d4e3df; }
.map-legend span, .chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { display: inline-block; width: 15px; height: 3px; background: var(--north); }
.legend-swatch.south { background: var(--south); }
.legend-swatch.past { background: #9fb8b8; opacity: .7; border-top: 1px dashed #d4e3df; height: 1px; }
.map-footer { min-height: 43px; padding: 11px 22px; display: flex; justify-content: space-between; gap: 12px; color: #8eaab2; font-size: 10px; letter-spacing: .03em; }
#map-cursor-coords { font-variant-numeric: tabular-nums; }

.readout { display: flex; flex-direction: column; }
.readout-top { padding: 25px 24px 9px; }
.readout-top h2 { font: 400 29px/1.15 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; letter-spacing: -.03em; margin: 10px 0; }
.readout-top h2 span { color: var(--accent); }
.readout-top p { color: #9fb6bb; font-size: 12px; line-height: 1.55; margin-bottom: 3px; }
.pole-card { margin: 12px 14px 0; padding: 19px 19px 14px; border: 1px solid #46636a; background: #133440; }
.north-card { border-top: 3px solid var(--north); }
.south-card { border-top: 3px solid var(--south); }
.pole-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.pole-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #0d2d36; font-size: 15px; font-weight: 800; }
.north-icon { background: var(--north); }
.south-icon { background: var(--south); }
.pole-small { color: #a5bfc3; font-size: 8px; letter-spacing: .17em; font-weight: 800; }
.pole-card h3 { margin: 3px 0 0; font-size: 13px; font-weight: 700; }
.coordinate { font-size: 29px; letter-spacing: -.035em; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.north-card .coordinate { color: var(--north); }
.south-card .coordinate { color: var(--south); }
.coordinate.secondary { margin-top: 11px; font-size: 21px; color: #edf3ee; }
.coordinate-label { margin-top: 3px; color: #9bb4b9; font-size: 8px; letter-spacing: .18em; font-weight: 800; }
.pole-distance { margin-top: 16px; padding-top: 12px; border-top: 1px solid #365661; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #abc2c3; }
.pole-distance strong { font-size: 12px; color: #edf3ee; font-variant-numeric: tabular-nums; }
.readout-note { display: flex; gap: 9px; color: #adc4c6; font-size: 10px; line-height: 1.5; margin: 17px 22px 20px; }
.readout-note > span:first-child { color: var(--accent); font-size: 15px; line-height: 1; }

.timeline-panel { margin-top: 14px; padding: 26px 30px 24px; }
.timeline-header { display: flex; justify-content: space-between; align-items: start; }
.year-display { text-align: end; color: #9bb5bb; font-size: 9px; letter-spacing: .15em; font-weight: 800; }
.year-display span { display: block; }
.year-display strong { display: block; margin-top: 1px; color: var(--accent); font: 400 47px/1 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; letter-spacing: -.05em; }
.timeline-control { display: flex; align-items: center; gap: 22px; margin-top: 9px; }
.play-button { flex: none; width: 48px; height: 48px; border: 1px solid #85b99a; background: var(--accent); color: #092632; font-size: 20px; transition: transform .2s, background .2s; }
.play-button:hover { transform: scale(1.06); background: #e3ffd1; }
.play-button.playing { font-size: 23px; }
.slider-group { flex: 1; min-width: 0; }
input[type="range"] { width: 100%; height: 44px; margin: 0; appearance: none; background: transparent; border-radius: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(to right, var(--accent) 0 var(--progress, 100%), #42616a var(--progress, 100%) 100%); }
input[type="range"]::-moz-range-track { height: 8px; background: linear-gradient(to right, var(--accent) 0 var(--progress, 100%), #42616a var(--progress, 100%) 100%); }
input[type="range"]::-webkit-slider-thumb { appearance: none; margin-top: -6px; width: 20px; height: 20px; border: 4px solid #092632; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 4px solid #092632; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.slider-ends { display: flex; justify-content: space-between; margin-top: 15px; color: #9cb3b8; font-size: 10px; font-variant-numeric: tabular-nums; }
.era-buttons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 23px; }
.era-buttons button { min-width: 0; padding: 12px 10px; background: #163542; border: 1px solid #3b5e68; color: #d4e2df; text-align: start; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s; }
.era-buttons button small { display: block; margin-top: 3px; color: #9db4b9; font-size: 9px; font-weight: 500; }
.era-buttons button:hover, .era-buttons button.active { background: #294e51; border-color: var(--accent); }
.era-buttons button.active { color: var(--accent); }
.era-buttons button.active small { color: #c6d8d7; }

.analysis-panel { margin-top: 14px; padding: 27px 30px 18px; }
.analysis-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.analysis-heading p { max-width: 395px; color: #adc1c5; font-size: 11px; line-height: 1.55; margin: 0; }
#latitude-chart { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; }
.chart-grid { stroke: #385764; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-label { fill: #90aeb5; font-size: 11px; font-family: "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.chart-line { fill: none; stroke-width: 2.8; vector-effect: non-scaling-stroke; }
.chart-north { stroke: var(--north); }
.chart-south { stroke: var(--south); }
.chart-cursor { stroke: #ecf4ee; stroke-width: 1; stroke-dasharray: 4 5; opacity: .8; }
.chart-point { stroke: #0b2a35; stroke-width: 2; }
.point-north { fill: var(--north); }
.point-south { fill: var(--south); }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 23px; color: #c6d8d7; font-size: 11px; }
.comparison-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 30px 0 12px; padding-top: 25px; border-top: 1px solid #345660; }
.comparison-heading h3 { margin: 8px 0 0; font: 400 25px/1.15 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.comparison-heading p { max-width: 530px; margin: 0; color: #b8ced0; font-size: 11px; line-height: 1.55; }
#speed-chart, #moment-chart { display: block; width: 100%; height: auto; }
#field-moment-chart { display: block; width: 100%; height: auto; }
.field-moment-line { fill: none; stroke: #e8e0ae; stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.field-moment-point { fill: #e8e0ae; stroke: #0b2934; stroke-width: 2; }
.field-assumed-band { fill: #e8e0ae; opacity: .07; }
#field-uncertainty { flex-basis: 100%; color: #f3d9a4; }
.model-boundary { stroke: #e8e0ae; stroke-width: 1; stroke-dasharray: 5 5; opacity: .5; }
.proxy-note { margin-top: 21px; padding: 18px 20px; background: rgba(13, 40, 50, .82); border-inline-start: 3px solid #d3bd91; color: #cbd9d4; }
.proxy-note strong { display: block; margin-bottom: 7px; color: #f0e6cb; font-size: 13px; }
.proxy-note p { max-width: 1050px; margin: 0 0 8px; font-size: 11px; line-height: 1.6; }
.proxy-note a { color: var(--accent); font-size: 11px; font-weight: 700; }
.field-moment-current { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 7px; color: #a9c5c3; font-size: 10px; }
.field-moment-current strong { color: #e8e0ae; font: 400 24px Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.field-moment-current small { margin-right: 15px; }
#field-moment-model { color: #cbdad1; }
.parallel-panel { margin-top: 14px; padding: 27px 30px 18px; background: rgba(14, 42, 53, .91); border: 1px solid #2b505b; scroll-margin-top: 24px; }
.parallel-panel .analysis-heading h2 { margin: 8px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.parallel-panel svg { display: block; width: 100%; height: auto; }
.chart-legend a, .aurora-list a { color: var(--accent); text-decoration: none; border-bottom: 1px solid #6f9e82; }
.legend-swatch.model-line { background: #e8e0ae; }
.legend-swatch.observation { width: 9px; height: 9px; border-radius: 50%; background: #ffb49a; }
.legend-swatch.jerk-global { background: #f3d9a4; }
.legend-swatch.jerk-regional { height: 0; background: none; border-top: 2px dashed #f3d9a4; }
.legend-swatch.carbon { background: #9fd1e8; }
.legend-swatch.spe { background: #ffb49a; }
.model-line, .sunspot-line, .lod-line { fill: none; stroke: #e8e0ae; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sunspot-line { stroke: #f3c27a; stroke-width: 1.6; }
.lod-line { stroke: #9fd1e8; }
.observation-point { fill: #ffb49a; stroke: #0b2934; stroke-width: 2; }
.jerk-line { stroke: #f3d9a4; stroke-width: 1.2; opacity: .75; }
.jerk-regional { stroke-dasharray: 5 4; }
.carbon-band { fill: #9fd1e8; opacity: .22; }
.carbon-line { fill: none; stroke: #9fd1e8; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spe-line { stroke: #ffb49a; stroke-width: 1.2; stroke-dasharray: 3 3; }
.aurora-events { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px; margin: 30px 0 10px; padding-top: 25px; border-top: 1px solid #345660; }
.aurora-events h3 { margin: 0 0 8px; font: 400 25px/1.15 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.aurora-events p { margin: 0; color: #b8ced0; font-size: 11px; line-height: 1.55; }
.aurora-list { display: grid; gap: 8px; align-content: start; }
.aurora-list > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11px; }
.aurora-list button, .toggle-aurora { padding: 8px 11px; background: #173945; color: #cadbd7; border: 1px solid #517078; font-size: 11px; font-weight: 700; text-align: start; }
.aurora-list button[aria-pressed="true"], .toggle-aurora.active { background: #3d4e3a; color: #f2f8e9; border-color: #b6f0a0; }
.toggle-aurora { margin-inline-start: auto; padding: 7px 10px; font-size: 10px; }
.aurora-zone { fill: none; stroke: #b6f0a0; stroke-width: 1.4; opacity: .75; vector-effect: non-scaling-stroke; }
.aurora-boundary { fill: none; stroke: #ff8fb0; stroke-width: 1.8; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.aurora-site { fill: #ff8fb0; stroke: #0b2934; stroke-width: 2; vector-effect: non-scaling-stroke; }
.aurora-site-label { fill: #ffe1ea; font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #0b2934; stroke-width: 3px; font-family: "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.aurora-caption span:first-child { color: #ffe1ea; font-weight: 800; }
.polarity-normal { fill: #dfe8e2; }
.polarity-reversed { fill: #2c4a52; stroke: #6d8b90; stroke-width: 1; }
.polarity-sublabel { fill: #adc4c6; font-size: 9px; font-family: "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.excursion-line { stroke: #ffb49a; stroke-width: 2; }
.ggfmb-bracket { fill: none; stroke: #ddac86; stroke-width: 2; }
.context-panel { display: grid; grid-template-columns: minmax(180px, 275px) minmax(0, 1fr); gap: 40px; margin-top: 14px; padding: 30px; background: rgba(14, 42, 53, .91); border: 1px solid #2b505b; }
.context-panel h2 { margin: 8px 0 0; font: 400 27px Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.context-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.context-items article { padding: 19px; background: #123440; border: 1px solid #456772; }
.context-items h3 { margin: 0 0 8px; color: #f0eacb; font-size: 15px; }
.context-items p { color: #bad0d1; font-size: 11px; line-height: 1.6; }
.context-items a { color: var(--accent); font-size: 11px; font-weight: 700; }

.reversal-panel { margin-top: 14px; padding: 30px; background: linear-gradient(120deg, rgba(34, 52, 58, .96), rgba(14, 42, 53, .96)); border: 1px solid #567178; scroll-margin-top: 24px; }
.reversal-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.reversal-heading h2 { margin: 8px 0 0; font: 400 32px/1.15 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.reversal-heading p { max-width: 500px; color: #bbd0d0; font-size: 12px; line-height: 1.6; margin: 0; }
.reversal-readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.reversal-readouts > div { min-width: 0; padding: 16px 18px; background: #102f3a; border: 1px solid #4b6870; }
.reversal-readouts span { display: block; color: #a9c0c4; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.reversal-readouts strong { display: inline-block; margin-top: 7px; color: #f4f5e9; font: 400 clamp(21px, 2.2vw, 31px)/1.15 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; font-variant-numeric: tabular-nums; }
.reversal-readouts small { margin-left: 5px; color: #a9c0c4; font-size: 10px; }
#reversal-state.normal { color: var(--north); }
#reversal-state.reversed { color: var(--south); }
#reversal-state.transition { color: #f3d9a4; }
.reversal-plot { margin-top: 20px; padding: 8px 8px 0; background: #0b2934; border: 1px solid #385965; overflow: hidden; }
#reversal-chart { display: block; width: 100%; height: auto; }
.reversal-band { fill: #ddac86; opacity: .13; }
.reversal-zero { stroke: #d3e0d8; stroke-width: 1.4; stroke-dasharray: 5 5; }
.reversal-line { fill: none; stroke: #e5d0ab; stroke-width: 2.8; vector-effect: non-scaling-stroke; }
.moment-line { fill: none; stroke: #a8e8bb; stroke-width: 2.8; vector-effect: non-scaling-stroke; }
.reversal-cursor { stroke: #f2f6ee; stroke-width: 1; opacity: .75; }
.reversal-point { fill: #f3d9a4; stroke: #0b2934; stroke-width: 2; }
.moment-point { fill: #a8e8bb; stroke: #0b2934; stroke-width: 2; }
.reversal-chart-label { fill: #adc4c6; font-size: 11px; font-family: "Segoe UI", "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", Arial, sans-serif; }
.reversal-ends { display: flex; justify-content: space-between; margin-top: 10px; color: #a9c0c4; font-size: 10px; font-variant-numeric: tabular-nums; }
.reversal-caution { max-width: 1050px; margin: 20px 0 0; color: #b5cbcc; font-size: 11px; line-height: 1.6; }
.reversal-sources { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; }
.reversal-sources a { color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #6f9e82; }

.method-panel { margin-top: 14px; padding: 30px; display: grid; grid-template-columns: minmax(180px, 275px) minmax(0, 1fr); gap: 40px; }
.method-panel h2 { font: 400 27px Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.method-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 35px; color: #b9cdd0; font-size: 12px; line-height: 1.7; }
.method-copy p { margin-bottom: 0; }
.method-copy strong { color: #f1f5ee; }
.source-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 9px; }
.source-links a { color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #6f9e82; padding-bottom: 3px; }
.source-links a:hover { color: #fff; }
.history-panel { margin-top: 14px; padding: 30px; display: grid; grid-template-columns: minmax(180px, 275px) minmax(0, 1fr); gap: 40px; background: rgba(14, 42, 53, .91); border: 1px solid #2b505b; }
.history-panel h2 { margin: 9px 0 0; font: 400 27px/1.2 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.history-copy { color: #b9cdd0; font-size: 12px; line-height: 1.7; }
.history-copy p { max-width: 900px; }
.history-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.history-sources a { display: flex; flex-direction: column; gap: 7px; min-height: 85px; padding: 14px; border: 1px solid #46666b; background: #153540; text-decoration: none; }
.history-sources a:hover { border-color: var(--accent); }
.history-sources a strong { color: var(--accent); font-size: 14px; }
.history-sources a span { color: #c0d2d0; font-size: 10px; line-height: 1.45; }
.history-caution { color: #9fb7bb; font-size: 10px; margin-bottom: 0; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 15px; padding: 25px 2px 30px; color: #88a4ac; font-size: 9px; letter-spacing: .11em; }

.time-dock { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(7, 27, 37, .97); border-top: 1px solid #6d938d; box-shadow: 0 -12px 35px rgba(0, 0, 0, .3); }
.time-dock-inner { width: min(100%, 1536px); margin: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(105px, auto); align-items: center; gap: 18px; }
.time-dock-models, .time-dock-navigation { display: flex; align-items: center; }
.time-dock-models { gap: 4px; }
.time-dock-models button { min-height: 38px; padding: 7px 10px; color: #bdd2d2; background: #143641; border: 1px solid #416571; font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.time-dock-models button.active { color: #081d24; background: var(--accent); border-color: var(--accent); }
.time-dock-navigation { min-width: 0; gap: 12px; }
.time-dock-navigation > button { flex: none; width: 38px; height: 38px; padding: 0; color: #ebf4eb; background: #143641; border: 1px solid #527681; font-size: 24px; line-height: 1; }
.time-dock-navigation > button:disabled { opacity: .45; cursor: default; }
.time-dock-slider { flex: 1; min-width: 0; }
.time-dock-slider input { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
#dock-date { min-width: 105px; color: #f1f7ec; font: 400 22px/1.1 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }

[dir="rtl"] .map-wrap, [dir="rtl"] #world-map, [dir="rtl"] .map-footer, [dir="rtl"] .slider-group, [dir="rtl"] .era-buttons, [dir="rtl"] .reversal-plot, [dir="rtl"] .reversal-ends { direction: ltr; }
[dir="rtl"] .era-buttons button { direction: rtl; text-align: right; }
[dir="rtl"] .map-footer { direction: rtl; }
[dir="rtl"] .intro-stat { border-left: 0; border-right: 1px solid #4d6e6e; padding-left: 0; padding-right: 25px; }
[dir="rtl"] .pole-distance { flex-direction: row-reverse; }
[dir="rtl"] .time-dock-navigation { direction: ltr; }

/* Flexible children must shrink before long translations can wrap. */
main, section, aside, .intro-copy, .map-panel, .readout, .method-copy, .history-copy,
.context-items, .panel-heading > div, .timeline-header > div { min-width: 0; }
p, h1, h2, h3, .series-tabs span, .reversal-readouts strong, .brand { overflow-wrap: anywhere; }
button:disabled { cursor: default; opacity: .5; }
button, select, input[type="range"] { touch-action: manipulation; }
input[type="range"] { min-height: 44px; }
.data-status { margin: 12px 0; padding: 12px 16px; border-inline-start: 3px solid var(--accent); background: #153540; color: #d2e0db; font-size: 13px; line-height: 1.6; }
.chart-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #789b91 #0b2934; direction: ltr; }
.chart-scroll svg { direction: ltr; }
.chart-label, .reversal-chart-label { font-size: 14px; }
.polarity-sublabel { font-size: 12px; }
[dir="rtl"] .chart-scroll { direction: ltr; }
[dir="rtl"] .series-tabs button { text-align: start; }

@media (max-width: 950px) {
  .panel-heading, .timeline-header, .analysis-heading, .comparison-heading, .reversal-heading { flex-wrap: wrap; }
  .history-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-panel, .context-panel, .history-panel { grid-template-columns: 1fr; gap: 24px; }


}
@media (max-width: 1100px) {
  .header-meta { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .readout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
  .readout-top, .readout-note { grid-column: 1 / -1; }
  .readout-top { padding-bottom: 0; }
  .pole-card { margin-bottom: 5px; }
  .readout-note { margin-top: 10px; }
}
@media (max-width: 700px) {
  .parallel-panel { padding: 22px 17px 15px; }
  .aurora-events { grid-template-columns: 1fr; }
  .toggle-aurora { margin-inline-start: 0; }
  #london-chart, #sunspot-chart, #lod-chart, #carbon-chart { min-height: 0; }
  #polarity-chart { min-height: 0; }
  body { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .time-dock { padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
  .time-dock-inner { grid-template-columns: 1fr auto; gap: 7px 10px; }
  .time-dock-models { grid-column: 1; grid-row: 1; }
  .time-dock-models button { min-height: 44px; padding: 6px 7px; font-size: 9px; }
  .time-dock-navigation { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .time-dock-navigation > button { width: 44px; height: 44px; }
  #dock-date { grid-column: 2; grid-row: 1; min-width: 0; font-size: 17px; }
  .site-shell { width: min(100% - 28px, 1600px); }
  .site-header { min-height: 68px; }
  .header-meta { display: none; }
  .language-picker span { display: none; }
  .language-picker select { min-width: 100px; max-width: 110px; }
  .brand { font-size: 10px; letter-spacing: .1em; gap: 9px; }
  .brand-mark { width: 29px; height: 29px; }
  .intro { min-height: 0; padding: 50px 3px 35px; }
  .intro-stat { display: none; }
  h1 { font-size: clamp(46px, 11vw, 70px); }
  .intro-description { font-size: 14px; }
  .panel-heading { padding: 20px 17px 15px; align-items: start; flex-direction: column; }
  .map-badges { justify-content: start; }
  .field-toolbar { flex-wrap: wrap; padding: 0 17px 15px; }
  .field-toolbar > span { width: 100%; }
  .badge { font-size: 8px; }
  .map-wrap { margin: 0 8px; }
  #world-map { min-height: 0; }
  .map-legend { position: static; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin: 8px; padding: 9px; font-size: 11px; }
  .map-compass { display: none; }
  .map-tools { position: static; flex-direction: row; justify-content: center; margin: 8px; gap: 8px; }
  .map-tools button { width: 44px; height: 44px; font-size: 21px; }
  .map-footer { flex-direction: column; gap: 3px; font-size: 9px; }
  .series-tabs button { padding: 11px; }
  .series-tabs strong { font-size: 11px; }
  .series-tabs span { font-size: 9px; }
  .series-foot { display: block; }
  .series-foot a { display: inline-block; margin: 8px 4px 0; }
  .readout { grid-template-columns: 1fr; }
  .readout-top, .readout-note { grid-column: auto; }
  .pole-card { margin: 10px 13px 0; }
  .timeline-panel, .analysis-panel, .method-panel { padding: 22px 18px; }
  .timeline-header h2, .analysis-heading h2 { font-size: 20px; }
  .year-display strong { font-size: 36px; }
  .year-display span { max-width: 90px; line-height: 1.3; }
  .timeline-control { gap: 14px; }
  .slider-ends span:nth-child(even) { display: none; }
  .era-buttons { grid-template-columns: repeat(3, 1fr); }
  .analysis-heading { display: block; }
  .analysis-heading p { margin-top: 10px; }
  .comparison-heading { display: block; }
  .comparison-heading p { margin-top: 10px; }
  #latitude-chart, #speed-chart, #moment-chart, #field-moment-chart { min-height: 0; }
  .reversal-panel { padding: 22px 18px; }
  .reversal-heading { display: block; }
  .reversal-heading h2 { font-size: 27px; }
  .reversal-heading p { margin-top: 12px; }
  .reversal-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reversal-readouts > div { padding: 12px; }
  .reversal-readouts strong { font-size: 22px; }
  #reversal-chart { min-height: 0; }
  .method-panel { grid-template-columns: 1fr; gap: 20px; }
  .method-copy { grid-template-columns: 1fr; }
  .source-links { grid-column: auto; }
  .history-panel { padding: 22px 18px; grid-template-columns: 1fr; gap: 20px; }
  .history-sources { grid-template-columns: 1fr; }
  .history-sources a { min-height: 0; }
  .context-panel { padding: 22px 18px; grid-template-columns: 1fr; gap: 20px; }
  .context-items { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 700px) {
  .field-toolbar button, .aurora-list button, .era-buttons button { min-height: 44px; }
  .field-toolbar button { flex: 1 1 auto; font-size: 12px; }
  .toggle-aurora { width: 100%; }
  .panel-heading h2, .timeline-header h2 { overflow-wrap: anywhere; }
  .chart-legend { justify-content: start; gap: 10px 18px; line-height: 1.5; margin-top: 10px; }
  .chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
  .time-dock-inner { grid-template-columns: minmax(0, 1fr); }
  .time-dock-models { grid-column: 1; grid-row: 1; flex-wrap: wrap; }
  .time-dock-navigation { grid-column: 1; grid-row: 3; }
  #dock-date { grid-column: 1; grid-row: 2; text-align: start; font-size: 18px; white-space: normal; }
  body { padding-bottom: calc(182px + env(safe-area-inset-bottom)); }
  .language-picker select { min-height: 44px; }
  .map-footer, .series-panel p, .analysis-heading p, .comparison-heading p,
  .aurora-events p, .reversal-heading p, .reversal-caution, .proxy-note p,
  .context-items p, .method-copy, .history-copy, .readout-note { font-size: 13px; }
  .series-tabs span { font-size: 11px; line-height: 1.5; }
}
@media (max-width: 420px) {
  .site-header { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .brand { white-space: normal; }
  .language-picker { margin-inline-start: 0; }
  .intro { padding-top: 32px; }
  .timeline-header { display: block; }
  .year-display { margin-top: 14px; }
  .reversal-readouts { grid-template-columns: 1fr; }
}

.source-note { color: #abc4ca; font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
a.source-note { display: inline-block; color: var(--accent); }

.observation-label { paint-order: stroke; stroke: #0b2934; stroke-width: 4px; stroke-linejoin: round; }

.wmm-source-panel { margin-top: 14px; padding: 24px 30px; color: #cbd9d4; background: #102f3a; border: 1px solid #4b6870; }
.wmm-source-panel strong { color: var(--accent); font-size: 14px; }
.wmm-source-panel p { margin: 10px 0; font-size: 13px; line-height: 1.6; }
.wmm-source-panel a { display: inline-block; margin-inline-end: 18px; color: var(--accent); font-size: 12px; line-height: 2; }
@media (max-width: 700px) {
  .wmm-source-panel { padding: 22px 18px; }
  .series-tabs { flex-wrap: wrap; }
  .series-tabs button { flex-basis: calc(50% - 8px); }
}

/* Charts fit the available width while retaining a readable plot height. */
.chart-scroll svg { display: block; width: 100% !important; min-height: 0 !important; max-width: 100%; }
.chart-scroll { overflow: hidden; }
.chart-annotations { color: #abc4ca; font-size: 12px; line-height: 1.6; margin: 5px 0 0; overflow-wrap: anywhere; }

.consent-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 16px 0 0; padding: 16px 20px; background: #10303c; border: 1px solid #4b6870; border-inline-start: 3px solid var(--accent); }
.consent-banner > div:first-child { flex: 1 1 420px; min-width: 0; }
.consent-banner strong { display: block; margin-bottom: 4px; color: #f1f5ee; font-size: 13px; }
.consent-banner p { margin: 0; color: #b8cbd0; font-size: 12px; line-height: 1.6; max-width: 760px; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button, #consent-change { min-height: 40px; padding: 8px 16px; background: #173945; color: #e5efec; border: 1px solid #517078; font-weight: 700; }
#consent-accept { background: var(--accent); color: #092632; border-color: #85b99a; }
.consent-status { margin: 12px 0 0; color: #b9cdd0; font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#consent-change { min-height: 34px; padding: 6px 12px; font-size: 11px; }
.noscript-note { margin: 0; padding: 14px 24px; background: #4a4631; color: #fff6d6; font-size: 14px; line-height: 1.6; }
.noscript-note a { color: #fff6d6; }
.quick-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 16px; font-size: 12px; }
.quick-views > span { color: #a9c1c6; font-size: 10px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.quick-views a { padding: 7px 11px; border: 1px solid #3e6470; background: #0f2e39; color: #d5e4e0; text-decoration: none; line-height: 1.4; }
.quick-views a:hover, .quick-views a:focus-visible { border-color: var(--accent); color: var(--accent); }
.about-panel { margin-top: 14px; padding: 30px; display: grid; grid-template-columns: minmax(180px, 275px) minmax(0, 1fr); gap: 40px; background: rgba(14, 42, 53, .91); border: 1px solid #2b505b; }
.about-panel h2 { margin: 9px 0 0; font: 400 27px/1.2 Georgia, "Atlas arabic", "Atlas devanagari", "Atlas bengali", "Atlas cjk", serif; }
.about-copy { color: #b9cdd0; font-size: 12px; line-height: 1.7; }
.about-copy p { max-width: 900px; }
.credits { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.credits li { padding: 10px 14px; border: 1px solid #365661; background: #102f3a; font-size: 11px; line-height: 1.6; }
.credits strong { color: #f1f5ee; }
.credits a, .about-links a { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid #6f9e82; }
.about-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0 0; }
.data-versions { flex-basis: 100%; color: #9cb3b8; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
@media (max-width: 950px) { .about-panel { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 700px) {
  .about-panel { padding: 22px 18px; }
  .about-copy, .credits li, .quick-views { font-size: 13px; }
  .quick-views a { min-height: 44px; display: inline-flex; align-items: center; }
}

.export-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.export-toolbar button, .export-button { min-height: 44px; padding: 10px 16px; background: #123642; border: 1px solid #50717b; border-radius: 5px; color: #e5efec; font: inherit; cursor: pointer; }
.export-toolbar button:disabled, .export-button:disabled { opacity: .45; cursor: default; }
.export-toolbar label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 100%; }
.export-toolbar input { min-width: 0; max-width: 100%; width: 28em; padding: 10px; font: inherit; }
#export-status { color: #abc4ca; font-size: 13px; }
.export-button { margin: 10px 0; }

.responsive-plot path, .responsive-plot line, .responsive-plot ellipse { vector-effect: non-scaling-stroke; }

.geomagia-cell { fill: #83c9f4; fill-opacity: .7; stroke: #d8f1ff; stroke-width: .8; vector-effect: non-scaling-stroke; }

/* Polar views: two azimuthal equidistant caps beside the world map. */
.polar-insets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 16px 0; }
.polar-inset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; margin: 0; padding: 16px 14px 14px; background: #0a2935; border: 1px solid #385965; }
.polar-inset svg { display: block; width: min(100%, 460px); height: auto; aspect-ratio: 1; }
.polar-inset figcaption { max-width: 460px; color: #a9c5c3; font-size: 11px; line-height: 1.55; text-align: center; }
.polar-inset figcaption strong { display: block; margin-bottom: 6px; color: #f0eacb; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.polar-ocean { fill: #123744; stroke: #63919a; stroke-width: 1; }
.polar-land { fill: #2d5055; stroke: #9bb5a2; stroke-opacity: .8; stroke-width: .55; vector-effect: non-scaling-stroke; }
.polar-inset .schematic-land { fill: #31545a; stroke: #71918d; stroke-width: 1; }
.polar-grid .grid-line { fill: none; }
.polar-inset .grid-label { font-size: 9px; }
.polar-inset .polar-meridian-label { fill: #c0d5d6; font-weight: 700; paint-order: stroke; stroke: #0a2935; stroke-width: 3px; stroke-linejoin: round; }
.polar-inset .track-full { stroke-width: 1; }
.polar-inset .track-active { stroke-width: 2.6; }
.polar-inset .trail-dot { stroke-width: .9; }
.polar-inset .marker-core { stroke-width: 1.4; }
.polar-inset .aurora-zone, .polar-inset .aurora-boundary { stroke-width: 1.2; }
.dipole-marker circle { fill: none; stroke: #f0eacb; stroke-width: 1.4; }
.dipole-marker line { stroke: #f0eacb; stroke-width: 1.2; }
.comparison-marker circle { fill: none; stroke-width: 1.8; stroke-dasharray: 3 2; }
.comparison-marker.marker-north circle { stroke: var(--north); }
.comparison-marker.marker-south circle { stroke: var(--south); }
.observation-marker { fill: rgba(7, 30, 39, .55); stroke-width: 1.6; }
.observation-marker.marker-north { stroke: var(--north); }
.observation-marker.marker-south { stroke: var(--south); }
.observation-marker.selected { fill: #fff6d6; stroke: #fff6d6; stroke-width: 2.2; }
.legend-swatch.dipole { width: 11px; height: 11px; border: 1px solid #f0eacb; border-radius: 50%; background: none; position: relative; }
.legend-swatch.dipole::before, .legend-swatch.dipole::after { content: ""; position: absolute; background: #f0eacb; }
.legend-swatch.dipole::before { left: -3px; right: -3px; top: 50%; height: 1px; }
.legend-swatch.dipole::after { top: -3px; bottom: -3px; left: 50%; width: 1px; }
.legend-swatch.observed { width: 9px; height: 9px; border: 1.5px solid #fff6d6; background: none; transform: rotate(45deg); }

.pole-geometry { margin: 12px 14px 0; padding: 15px 17px 12px; border: 1px solid #46636a; background: #0f2e39; }
.pole-geometry dl { margin: 10px 0 0; }
.pole-geometry dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #2c4b56; font-size: 10px; }
.pole-geometry dt { color: #abc2c3; }
.pole-geometry dd { margin: 0; color: #edf3ee; font-variant-numeric: tabular-nums; text-align: end; }
.pole-geometry p { margin: 10px 0 0; color: #9fb6bb; font-size: 10px; line-height: 1.5; }
.pole-geometry .model-compare { color: #f3d9a4; }

.observations-caption { border-inline-start: 3px solid #fff6d6; padding-inline-start: 12px; font-size: 12px; line-height: 1.6; }
.observations-caption a { color: #fff6d6; }
.observations-list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.observations-list button { padding: 6px 9px; background: #173945; color: #cadbd7; border: 1px solid #517078; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.observations-list button.observation-north { border-inline-start: 3px solid var(--north); }
.observations-list button.observation-south { border-inline-start: 3px solid var(--south); }
.observations-list button[aria-pressed="true"] { background: #4a4631; color: #fff6d6; border-color: #fff6d6; }

@media (max-width: 700px) {
  .polar-insets { grid-template-columns: 1fr; margin: 10px 8px 0; }
  .polar-inset { padding: 10px; }
  .polar-inset svg { width: min(100%, 320px); }
  .pole-geometry dl > div { font-size: 12px; }
  .pole-geometry p, .polar-inset figcaption { font-size: 12px; }
  .observations-list button { min-height: 44px; }
}
.geomagia-caption { border-inline-start: 3px solid #83c9f4; padding-inline-start: 12px; font-size: 12px; line-height: 1.6; }
.geomagia-caption a { color: #b1deff; }
