:root {
  --bg: #f5f7fb;
  --paper: var(--bg);
  --surface: #fff;
  --ink: #182d46;
  --muted: #4d6076;
  --line: #dbe3ed;
  --wash: #eaf1fa;
  --sky: #e2edf9;
  --blue: #264b78;
  --accent: #325d9c;
  --orange: #bd5337;
  --action: #274f88;
  --action-hover: #1d3c68;
  --footer: #192f4b;
  --radius: 18px;
  --max: 1220px;
  --gutter: clamp(20px, 5vw, 76px);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: var(--sans);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101f33;
  --surface: #1c2f48;
  --ink: #f0f7f9;
  --muted: #bed0d9;
  --line: #455c75;
  --wash: #223a58;
  --sky: #2a4767;
  --blue: #a2dce9;
  --accent: #a7c9fb;
  --orange: #ffc09c;
  --action: #315c9b;
  --action-hover: #26497e;
  --footer: #172b45;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; font: 1rem/1.62 var(--sans); background: var(--bg); color: var(--ink); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
figure, h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.9rem); letter-spacing: -.058em; }
h2 { font-size: clamp(1.8rem, 3.3vw, 3.1rem); letter-spacing: -.045em; }
h3 { font-size: 1.36rem; letter-spacing: -.02em; }
h4 { font-size: 1.1rem; }
p + p { margin-top: .85em; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, select, input { font: inherit; max-width: 100%; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: #b9e6e5; color: #112d46; }
.small, small, figcaption { font-size: .85rem; line-height: 1.5; color: var(--muted); }
figcaption { margin-top: .6rem; }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.25rem); max-width: 63ch; color: var(--muted); line-height: 1.52; }
.eyebrow, .tag { display: block; font-size: .82rem; font-weight: 700; color: var(--accent); letter-spacing: .036em; }
.skip { z-index: 10; position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: var(--ink); color: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .45em;
  min-height: 46px; padding: .65rem 1.2rem;
  border: 1px solid transparent; border-radius: 8px;
  font-size: .96rem; font-weight: 700; line-height: 1.36;
  color: #fff; background: var(--action); text-decoration: none;
}
.button:hover { color: #fff; background: var(--action-hover); }
.button.light { background: #f5fbfc; color: #123b52; }
.button.light:hover { background: #d8edef; }
.button.outline, .button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.outline:hover, .button.secondary:hover { color: var(--accent); border-color: var(--accent); background: var(--surface); }
.text-button { border: 0; background: transparent; padding: .45rem; text-decoration: underline; text-underline-offset: 4px; }
.text-link { color: var(--accent); font-weight: 700; }

.site-header {
  min-height: 74px; padding: 10px var(--gutter); display: grid;
  grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(13px, 2vw, 28px);
  color: var(--ink); background: var(--surface); position: relative; z-index: 3;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.19rem; font-weight: 700; line-height: 1.12; white-space: nowrap; letter-spacing: -.04em; }
.brand svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; flex: none; }
.brand b { color: var(--accent); }
.site-header nav { justify-self: center; display: flex; align-items: center; gap: clamp(15px, 2.4vw, 38px); }
.site-header nav a, .nav-more summary, .search-link { text-decoration: none; font-size: .94rem; font-weight: 700; }
.site-header nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 2px; }
.nav-more { position: relative; }
.nav-more summary { padding: .55em 0; white-space: nowrap; }
.nav-more > div { position: absolute; z-index: 4; right: -1rem; top: calc(100% + 4px); min-width: 190px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 24px #0a203022; padding: 5px; background: var(--surface); }
.nav-more > div > a { display: block; padding: .7rem .8rem; border-radius: 6px; }
.nav-more > div > a:hover { background: var(--wash); }
.search-link { display: flex; gap: .42rem; align-items: center; }
.search-link svg, .index-search svg { width: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-button { min-height: 44px; min-width: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.28rem; }
.theme-button:hover { color: var(--accent); background: var(--wash); }

.home-wrap, .page-wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 960px; }
.hero { isolation: isolate; min-height: clamp(510px, 49vw, 690px); position: relative; display: grid; align-items: center; background: #124574; color: #fff; overflow: hidden; }
.hero::after, .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 55% 52%; }
.hero::after { content: ""; background: linear-gradient(90deg,#051c3cbb 0%,#0627496e 43%,transparent 73%), linear-gradient(0deg,#09243b4e,transparent 35%); }
.hero-copy { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: 55px var(--gutter) 84px; }
.hero h1 { font-size: clamp(3.6rem, 7.1vw, 6.8rem); font-weight: 750; line-height: 1.04; }
.hero p { margin-top: .8rem; max-width: 33ch; font-size: clamp(1.06rem, 2vw, 1.37rem); line-height: 1.46; color: #f4fafb; }
.hero-button { margin-top: 1.5rem; background: #ffcf8d; color: #23314c; }
.hero-button:hover { background: #ffe0ac; color: #23314c; }
.hero-button:focus-visible { outline-color: #ffe1aa; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 1.2rem; color: #fff; background: #12283bcd; border-radius: 4px; padding: .18rem .55rem; }
.hero-isobars { color: #e2eeff; opacity: .52; pointer-events: none; position: absolute; bottom: -1.8rem; right: -1.35rem; width: clamp(245px, 38vw, 570px); z-index: -1; }
.home-section { margin-top: clamp(3rem, 7vw, 6rem); }
.start-section { margin-top: clamp(1.65rem, 4.5vw, 3.4rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.55rem; }
.section-heading a { color: var(--accent); flex: none; font-weight: 700; }
.section-heading .eyebrow { margin-bottom: .45rem; }
.section-heading p, .guided-home p { color: var(--muted); margin-top: .48rem; }
.starter-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.starter-card, .guide-pin, .case-card, .topic-card, .journey-card, .comparison-card {
  display: block; height: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.starter-card:hover, .guide-pin:hover, .case-card:hover, .topic-card:hover, .journey-card:hover, .comparison-card:hover {
  color: var(--ink); border-color: var(--accent); box-shadow: 0 8px 24px #17344516;
}
.starter-card:hover h3, .guide-pin:hover h3, .case-card:hover h3, .topic-card:hover h3, .journey-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.starter-card { background: #e9f1fa; color: #182d46; }
.starter-card:hover { color: #182d46; }
.starter-sand { background: #fbf1df; }
.starter-leaf { background: #efedf8; }
.starter-card > div, .guide-pin > div { overflow: hidden; background: #c5e6ea; }
.starter-card h3, .guide-pin h3 { padding: 17px 20px 0; }
.starter-card p, .guide-pin p { padding: .5rem 20px 19px; line-height: 1.45; }
.starter-card p { color: #36556a; }
.weather-art { width: 100%; height: auto; }
.weather-art text { fill: #15354c; font: 700 17px var(--sans); paint-order: stroke; stroke: #f2faf6; stroke-width: 3px; stroke-linejoin: round; }
.weather-art .art-large { font-size: 30px; stroke-width: 0; }
.case-image { position: relative; aspect-ratio: 1.86; overflow: hidden; background: #144e68; }
.case-image > img { width: 100%; height: 100%; object-fit: cover; }
.case-image > img { object-position: center; }
.case-card-body, .topic-card, .journey-card, .comparison-card { padding: clamp(16px, 2.3vw, 26px); }
.case-card-body h3, .topic-card h3, .journey-card h3 { margin-top: .5rem; }
.case-card-body p, .topic-card p, .journey-card p, .guide-pin p, .comparison-card p { color: var(--muted); margin-top: .5rem; font-size: .98rem; line-height: 1.49; }
.feature-story { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--wash); border-radius: 24px; overflow: hidden; align-items: center; }
.feature-story > div { padding: clamp(24px,4.4vw,61px); }
.feature-story figure { align-self: stretch; padding: 0 0 .55rem; display: flex; justify-content: center; flex-direction: column; min-width: 0; background: #123c56; }
.feature-story figure img { width: 100%; object-fit: contain; }
.feature-story figcaption { padding: 0 .8rem; color: #edf9fb; }
.feature-story h2 { margin-top: .5rem; font-size: clamp(1.7rem, 3.65vw, 3.5rem); text-wrap: pretty; }
.feature-story p { margin: .85rem 0 1.15rem; color: var(--muted); }
.guided-home { display: flex; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 0; align-items: center; border-top: 1px solid var(--line); }
.guided-home h2 { font-size: clamp(1.55rem,2.8vw,2.3rem); }
.guided-home .button { flex-shrink: 0; }

.observation-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1rem; }
.observation-details > summary { font-weight: 700; padding: 1rem 1.25rem; }
.feature { padding: 0 1.2rem 1.2rem; }
.feature-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin: .4rem 0 1rem; }
.feature-heading p { color: var(--muted); }
.observation-desk { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: var(--wash); border-radius: 12px; overflow: hidden; }
.observation-image { background: #113746; color: #f5fbfc; align-self: stretch; min-width: 0; }
.image-label, .feature-image-caption, .image-credit { padding: 12px 16px; font-size: .83rem; }
.image-label { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; }
.image-label span { font-weight: 400; }
.feature-image-frame { position: relative; }
.feature-image-frame img { width: 100%; }
.clue-marker { position: absolute; top: 42%; left: 52%; padding: .42em .7em; border: 2px solid #f5ffff; border-radius: 999px; color: #fff; background: #17334ae8; font-size: .82rem; font-weight: 700; }
.clue-marker span { margin-left: .4em; }
.clue-marker.second { top: 67%; left: 24%; }
.clue-marker[aria-pressed="true"] { background: #a9e0e3; color: #17334a; }
.mechanism-panel { padding: clamp(17px,3vw,32px); min-width: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.pill { border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; font-size: .78rem; }
.mechanism-panel > p { margin-top: .65rem; }
.feature-section { background: #e7f1f5; border-radius: 10px; padding: 4px; margin: .9rem 0; }
.feature-section text { fill: #193f59; font: 14px var(--sans); }
.feature-section .selected-process { font-weight: 700; fill: #942f20; }
.clue-explanation, .selected-evidence { padding: .8rem; margin-top: .55rem; border-radius: 8px; background: var(--surface); font-size: .94rem; }
.selected-evidence > strong { display: block; margin-block: .3rem; color: var(--accent); }
.feature-timeline { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: .65rem 0; }
.feature-timeline button { padding: .7rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.feature-timeline button[aria-pressed="true"] { border-color: var(--accent); background: var(--wash); }
.feature-timeline button span { display: none; }
.feature-timeline button b, .feature-timeline button small { display: block; }
.feature-experiment { border: 1px solid var(--line); padding: 15px; border-radius: 10px; }
.feature-experiment summary { font-weight: 700; }
.feature-experiment-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 14px; }
.feature-experiment-grid p { margin-top: .6rem; }
.feature-experiment-grid label { display: flex; justify-content: space-between; margin-top: .75rem; font-weight: 700; }
.feature-experiment-grid input { width: 100%; height: 36px; accent-color: var(--accent); }
.accumulation-result { padding: 16px; background: var(--wash); border-radius: 9px; }
.accumulation-result > strong { display: block; font-size: 2rem; }
.accumulation-result button { margin-top: .6rem; }
.feature-bottom { margin: 1rem 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.feature-bottom > p { width: 100%; color: var(--muted); }

.crumb { display: flex; gap: .6rem; flex-wrap: wrap; color: var(--muted); padding: 1.15rem 0 .1rem; font-size: .88rem; }
.crumb span:last-child { color: var(--ink); }
.page-intro { padding-block: clamp(2.2rem, 5.5vw, 5rem) clamp(1.65rem, 3.6vw, 3rem); max-width: 900px; }
.crumb + .page-intro { padding-top: clamp(1.4rem,4vw,3.5rem); }
.page-intro > .eyebrow { margin-bottom: .6rem; }
.page-intro > .lede { margin-top: .8rem; }
.starter-guides { margin: 0 0 2.5rem; }
.starter-guides h2, .collection-section > h2 { font-size: clamp(1.4rem,2.7vw,2.05rem); margin-bottom: 1rem; }
.starter-guides .weather-art { max-height: 128px; object-fit: cover; }
.starter-guides .guide-pin p { padding-bottom: 15px; }
.browse-tools { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(180px,1fr); gap: .8rem; align-items: end; }
.index-search label, .collection-filter > span { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 700; }
.index-search > div { display: flex; align-items: center; gap: .65rem; padding: 0 .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 52px; }
.index-search svg { opacity: .8; }
.index-search input { min-width: 0; width: 100%; padding: .6em .25rem; border: 0; background: transparent; color: var(--ink); }
.index-search input:focus { outline-offset: 1px; }
.index-search input::-webkit-search-cancel-button { display: none; }
.clear-search { border: 0; background: transparent; color: var(--accent); font-weight: 700; min-height: 42px; }
.collection-filter { min-width: 0; }
.collection-filter select {
  width: 100%; height: 52px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.result-count { color: var(--muted); margin: .85rem 0 1rem; font-size: .92rem; }
.load-more { display: flex; margin: 1.5rem auto 0; }
.empty-state { background: var(--wash); padding: 2rem; border-radius: var(--radius); }
.empty-state p { margin: .7rem 0; }
.error-page { padding-top: 5rem; }
.error-page .button { margin: 1rem .4rem 0 0; }
.error-page .lede { margin-top: 1rem; }

.article-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(20px,4vw,62px); align-items: center; padding: clamp(2.1rem,4.5vw,4rem) 0 2.15rem; border-bottom: 1px solid var(--line); }
.article-hero .eyebrow { margin-bottom: .55rem; }
.article-hero .lede { margin-top: .8rem; }
.article-hero figure .weather-art { border-radius: var(--radius); }
.article-meta { margin-top: .85rem; font-size: .9rem; color: var(--accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(220px,1fr); gap: clamp(22px,5vw,65px); margin-top: 2rem; }
.article-layout > aside { display: grid; align-items: start; align-content: start; gap: 1rem; min-width: 0; }
.prose { min-width: 0; line-height: 1.72; font-size: 1.025rem; }
.prose section { margin-bottom: 2rem; }
.prose h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: .8rem; }
.prose h3 { margin: .6rem 0; }
.prose li + li { margin-top: .5rem; }
.prose ul, .prose ol, .reading-note ol { padding-left: 1.35em; }
.observation-box, .misconception, .evidence-limit, .method-note, .reading-note, .takeaway,.check-question {
  background: var(--wash); padding: clamp(16px,2.5vw,27px); border-radius: 12px;
}
.observation-box > .eyebrow, .takeaway > .eyebrow, .misconception > .eyebrow { margin-bottom: .55rem; }
.misconception { background: #f9efdc; color: #303747; }
.misconception .eyebrow { color: #775019; }
.takeaway p { font-size: 1.23rem; line-height: 1.48; font-weight: 700; }
.reading-note { line-height: 1.5; }
.reading-note > .eyebrow { margin-bottom: .5rem; }
.reading-note a { color: var(--accent); }
.method-note { margin-block: 1.7rem; }
.method-note h2 { font-size: 1.55rem; margin-bottom: .7rem; }
.method-note p { margin-bottom: .6rem; }
.deeper { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 2rem; }
.deeper summary { font-weight: 700; font-size: 1.13rem; }
.deeper p { margin-top: .7rem; }
.context-defs { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.context-defs details { padding-top: .4rem; }
.context-defs summary { font-weight: 700; }
.context-defs p { margin-top: .4rem; }
.source-cue { font-size: .86rem; margin-top: .75rem; color: var(--muted); }
.source-cue a, .sources-block a { color: var(--accent); }
.sources-block { border-top: 1px solid var(--line); padding-top: 1.2rem; overflow-wrap: anywhere; }
.sources-block .eyebrow { margin-bottom: .5rem; }
.sources-block li > span, .sources-block li small { display: block; font-size: .88rem; color: var(--muted); }
.related { margin-top: 2.4rem; padding-top: 1.7rem; border-top: 1px solid var(--line); }
.lab-callout { display: block; padding: 1.2rem; color: #f3fbff; background: #104a68; border-radius: 12px; text-decoration: none; }
.lab-callout:hover { color: #fff; background: #0e3c56; }
.lab-callout .eyebrow { color: #b1e6e8; }
.lab-callout h3, .lab-callout p { margin: .6rem 0; }
.lab-callout p { color: #e8f6f9; font-size: .95rem; }

.case-context { display: grid; grid-template-columns: 1fr 1.25fr 1.65fr; gap: 1rem; background: var(--wash); border-radius: 12px; padding: 1.1rem; margin-bottom: 1.2rem; }
.case-context span { color: var(--accent); font-size: .8rem; font-weight: 700; }
.case-context strong, .case-context small { display: block; }
.case-context small { margin-top: .3rem; }
.documentary-image img { width: 100%; max-height: 565px; object-fit: contain; background: #123c56; border-radius: 12px; }
.event-sequence { list-style: none; padding-left: 1rem !important; border-left: 2px solid var(--line); margin-left: .35rem; }
.event-sequence li { position: relative; padding: 0 0 .9rem .5rem; }
.event-sequence li::before { position: absolute; content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); top: .42rem; left: -1.4rem; border: 2px solid var(--bg); }
.event-sequence time { font-size: .84rem; font-weight: 700; color: var(--accent); }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; background: var(--surface); border-collapse: collapse; }
caption { text-align: left; padding: .75rem; font-size: .86rem; color: var(--muted); }
th,td { text-align: left; vertical-align: top; padding: .75rem; border-bottom: 1px solid var(--line); font-size: .94rem; }
thead th { color: var(--ink); background: var(--wash); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table-hint { display: none; }
.comparison-grid, .journey-grid, .comparison-sides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.comparison-card h2 { font-size: 1.25rem; }
.comparison-card > div { margin-top: .5rem; }
.comparison-card .versus { font-size: .9rem; color: var(--accent); }
.comparison-card .card-bottom { font-size: .9rem; color: var(--accent); }
.comparison-sides { margin-bottom: .9rem; }
.comparison-sides > div { padding: .85rem; background: var(--wash); border-radius: 9px; }
.comparison-sides span { display: none; }
.comparison-sides h2 { font-size: clamp(1.08rem,2.3vw,1.65rem); }
.journey-progress { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .9rem; background: var(--wash); border-radius: 10px; }
progress { accent-color: var(--accent); }
.journey-step { display: grid; grid-template-columns: 2.4rem 1fr; gap: .75rem; padding: 0 0 1.35rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.step-index { display: grid; place-items: center; align-self: start; aspect-ratio: 1; border-radius: 50%; color: var(--accent); background: var(--wash); font-weight: 700; }
.journey-step h2 { margin: .3rem 0 .6rem; font-size: clamp(1.45rem,2.8vw,2rem); }
.journey-step .button, .journey-step .lab-callout, .check-question { margin-top: .8rem; }
.check-question h3 { font-size: 1.07rem; margin-bottom: .5rem; }
.completion-check { display: flex; align-items: start; gap: .5rem; margin-top: .65rem; }
.completion-check input { margin: .42em 0 0; accent-color: var(--accent); }
.glossary-list article { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem .15rem; }
.glossary-list h2 { font-size: 1.45rem; }
.glossary-list a { color: var(--accent); }
.source-register > details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.source-register summary { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; }
.source-register .tag { display: inline-block; margin-right: .8rem; }
.source-register li { overflow-wrap: anywhere; }
.source-register li + li { margin-top: .7rem; }
.media-register h2 { margin-bottom: .8rem; }
.media-register details { margin-bottom: .65rem; }
.media-register summary { font-weight: 700; }
.media-register dl { display: grid; grid-template-columns: 145px 1fr; gap: .3rem .5rem; overflow-wrap: anywhere; }
.media-register dt { font-weight: 700; }
.media-register dd { margin: 0; }
.evidence-definitions dt { font-size: 1.25rem; font-weight: 700; }
.evidence-definitions dd { margin: .2rem 0 .9rem; }

footer { position: relative; margin-top: 4.7rem; padding: 2.65rem var(--gutter) 1.5rem; color: #e9f7fc; background: var(--footer); }
footer { border-top: 4px solid #a9c6ec; }
.footer-top { max-width: var(--max); margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: minmax(190px,1fr) minmax(0,1fr) minmax(180px,1fr); gap: 1rem; align-items: start; }
.footer-top .brand b { color: #b4d0fc; }
.footer-top a:hover { color: #b4d0fc; }
.footer-top > div { display: grid; gap: .23rem; }

@media (max-width: 850px) {
  .site-header { column-gap: 15px; grid-template-columns: 1fr auto auto; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; gap: clamp(13px,5.5vw,32px); }
  .site-header .search-link { min-height: 44px; }
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .article-layout > aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-context { grid-template-columns: 1fr 1fr; }
  .case-context div:last-child { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > p { display: none; }
}
@media (max-width: 600px) {
  .site-header { row-gap: .25rem; padding-block: 7px; }
  .site-header nav { justify-self: stretch; justify-content: space-between; gap: .4rem; }
  .site-header nav a, .nav-more summary { font-size: .9rem; }
  .brand { font-size: 1.16rem; gap: .5rem; }
  .brand svg { width: 33px; height: 33px; }
  .search-link span { display: none; }
  .search-link { justify-content: center; min-width: 42px; }
  .nav-more > div { right: 0; }
  .hero { min-height: 480px; }
  .hero-image { object-position: 63% 50%; }
  .hero::after { background: linear-gradient(83deg,#051c3ccf 4%,#092f5c84 63%,#102e5450 100%); }
  .hero-copy { padding-bottom: 78px; }
  .hero h1 { font-size: clamp(3.15rem,12.2vw,4.4rem); }
  .hero-credit { bottom: .85rem; }
  .hero-isobars { opacity: .35; }
  .starter-grid, .feature-story, .observation-desk, .feature-experiment-grid, .article-hero,
  .browse-tools, .comparison-grid, .journey-grid, .card-grid { grid-template-columns: minmax(0,1fr); }
  .starter-card { display: grid; grid-template-columns: 32% 1fr; grid-template-rows: 1fr auto; align-items: center; column-gap: .85rem; }
  .starter-card > div { grid-row: 1 / 3; height: 100%; }
  .starter-card .weather-art { width: 100%; height: 100%; object-fit: cover; }
  .starter-card h3 { padding: .85rem .8rem 0 0; align-self: end; }
  .starter-card p { padding: 0 .8rem .85rem 0; margin-top: .32rem; align-self: start; }
  .feature-story > div { padding: 1.25rem; }
  .feature-section { margin-inline: auto; }
  .feature-timeline { grid-template-columns: 1fr 1fr; }
  .feature-heading, .guided-home, .section-heading { flex-direction: column; align-items: start; }
  .starter-guides .starter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .guide-pin h3 { padding: .65rem .7rem 0; font-size: 1.04rem; }
  .guide-pin p { padding: 0 .7rem .65rem; font-size: .88rem; }
  .starter-guides .guide-pin:last-child { display: none; }
  .article-layout > aside, .glossary-list article, .case-context, .media-register dl { grid-template-columns: minmax(0,1fr); }
  .article-hero { gap: 1.05rem; }
  .article-hero figure { max-width: 470px; }
  .case-context div:last-child { grid-column: auto; }
  th,td { min-width: 117px; }
  .table-hint { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .85rem; }
  .journey-step { grid-template-columns: 1.9rem minmax(0, 1fr); gap: .45rem; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  :root, :root[data-theme="dark"] { --ink:#000; --muted:#222; --surface:#fff; --wash:#f3f3f3; --bg:#fff; }
  .site-header, footer, .button, .browse-tools, .index-search, .lab-actions, .hero-isobars { display: none !important; }
  .article-layout { display: block; }
  .article-layout aside { display: none; }
  .page-wrap { padding: 0; }
  a { text-decoration: underline; }
}

.lab-page { max-width: 1100px; }
.lab-back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: .6rem; color: var(--accent); font-size: .85rem; font-weight: 650; text-decoration: none; }
.lab-back-link:hover { text-decoration: underline; }
.lab-page .page-intro { padding-block: .35rem 1.25rem; }
.lab-page h1 { font-size: clamp(1.82rem, 4.3vw, 3rem); letter-spacing: -.046em; }
.lab-page .prose { min-width: 0; overflow-wrap: anywhere; }
.event-atlas .page-intro { padding-block: clamp(1.5rem, 4vw, 3rem) 1.5rem; }
.event-atlas h1 { font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
.event-atlas .browse-tools { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: .75rem; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); }
.event-atlas .case-card { border-radius: 14px; height: 100%; }
.event-atlas .case-card-body { padding: 1rem 1.1rem 1.15rem; }
.event-atlas .case-card h3 { font-size: clamp(1.03rem, 1.5vw, 1.23rem); line-height: 1.25; }
.event-atlas .case-card p { font-size: .9rem; line-height: 1.5; }
@media (max-width: 700px) {
  .event-atlas .browse-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .8rem; }
  .event-atlas .index-search { grid-column: 1 / -1; }
  .event-atlas .collection-filter select { font-size: .85rem; padding-inline: .55rem; }
}
.feature-story img { align-self: center; }
@media (max-width: 600px) {
  .starter-card > div { display: grid; place-items: center; }
  .starter-card .weather-art { height: auto; }
}

.image-scope {
  position: absolute;
  bottom: .55rem;
  left: .55rem;
  padding: .2rem .52rem;
  border-radius: 5px;
  background: #0d2337ec;
  color: #f3f8ff;
  font-size: .79rem;
  font-weight: 650;
}
.documentary-image { margin-bottom: 1rem; }
.documentary-image figcaption { max-width: 80ch; }
.documentary-image figcaption strong { color: var(--ink); }
.documentary-image figcaption p { margin: .25rem 0; }
.starter-without-art { display: flex; flex-direction: column; justify-content: center; padding: .6rem 0; }
:root[data-theme="dark"] .starter-without-art { background: #3b352c; color: #fff2d8; }
:root[data-theme="dark"] .starter-without-art p { color: #ede0c9; }

.lab-library-page .page-intro { padding-top: clamp(2rem, 5vw, 4rem); }
.cloud-preview {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  padding: clamp(1.1rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cloud-preview h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); }
.cloud-preview-copy p { color: var(--muted); margin: .5rem 0 .9rem; }
.cloud-preview [data-cloud-controls] { margin-top: 1rem; }
.cloud-preview .cloud-axis-label { display: flex; align-items: baseline; justify-content: space-between; gap: .7em; font-weight: 650; }
.cloud-axis-label output { flex: none; min-width: 4.8rem; text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; }
.cloud-preview [type="range"] { display: block; width: 100%; height: 42px; margin: .1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.cloud-preview-actions { display: flex; gap: .55rem; }
.cloud-preview-actions .button:disabled { opacity: .46; }
.cloud-preview .cloud-dry { display: flex; align-items: center; gap: .55rem; min-height: 44px; margin: .18rem 0 .5rem; }
.cloud-dry input { accent-color: var(--accent); width: 18px; height: 18px; }
.cloud-preview-scene {
  min-width: 0;
  background: #123846;
  color: #f4f8ff;
  border-radius: 12px;
  overflow: hidden;
}
.cloud-preview-scene svg { display: block; width: 100%; height: auto; }
.cloud-preview-scene svg text { font-family: var(--sans); }
.lab-preview-status {
  text-align: center;
  padding: .65rem .95rem;
  font-size: .95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: #112f3c;
  border-top: 1px solid #c6d7ed55;
}

.lab-library { margin-top: clamp(2rem, 5vw, 3.8rem); }
.lab-library > h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.lab-library-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lab-library-group { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lab-library-group h3 { background: var(--wash); font-size: 1.07rem; padding: .95rem 1.1rem; }
.lab-library-group ul { list-style: none; margin: 0; padding: 0 .9rem; }
.lab-library-group li + li { border-top: 1px solid var(--line); }
.lab-library-group a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .9rem .2rem; text-decoration: none; line-height: 1.4; }
.lab-library-group a:hover > span:first-child { text-decoration: underline; }
.lab-open { font-size: .8rem; font-weight: 650; color: var(--accent); flex: none; }

@media (max-width: 720px) {
  .lab-library-groups { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .cloud-preview { grid-template-columns: minmax(0,1fr); gap: .65rem; }
  .cloud-preview-copy { display: contents; }
  .cloud-preview-copy p, .cloud-preview [data-cloud-controls] { margin: 0; }
  .cloud-preview-scene { grid-row: 3; }
  .cloud-preview [data-cloud-link] { justify-self: start; }
  .starter-card.starter-without-art { display: block; padding: .85rem 1rem; }
  .starter-without-art h3, .starter-without-art p { padding: 0; }
}
