/* Firn — Swiss glaciers 1850–2100
   One family (Mona Sans, variable width + weight), a 12-column grid, paper and ice. */

@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url(/fonts/mona-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url(/fonts/mona-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mona Sans'; font-style: italic; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url(/fonts/mona-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mona Sans'; font-style: italic; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url(/fonts/mona-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f4f4f1;
  --paper-2: #eaeae6;
  --ink: #101214;
  --ink-2: #474c50;
  --ink-3: #82878b;
  --rule: #d5d6d2;
  --rule-2: #bfc1bd;
  --ice: #d9ebf4;
  --ice-2: #b3d3e3;
  --ice-line: #3f86b0;
  --ice-deep: #24658b;
  --moraine: #c9826b;
  --loss: #b3472f;
  --ssp126: #2e5f80;
  --ssp245: #b9962e;
  --ssp370: #cc6a3c;
  --ssp585: #8b2735;
  --logo-ice: #7cbde0;
  --logo-rock: #3c4247;
  --relief-lo: #6a6f73;
  --relief-hi: #f3f3ef;
  --focus: #24658b;
  --gut: clamp(16px, 3.2vw, 44px);
  --gap: clamp(14px, 1.8vw, 24px);
  --max: 1480px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0f11; --logo-ice: #8fd0f2; --logo-rock: #c9cdd0; --paper-2: #15181b; --ink: #eceeed; --ink-2: #b0b5b8; --ink-3: #767c80;
    --rule: #262a2e; --rule-2: #353a3f; --ice: #d6e8f1; --ice-2: #7fa9bf; --ice-line: #86bddb; --ice-deep: #a8d2ea;
    --moraine: #7c4637; --loss: #e07f63;
    --ssp126: #6fa6cc; --ssp245: #d9b64f; --ssp370: #e58a5b; --ssp585: #d8606d;
    --relief-lo: #0b0c0d; --relief-hi: #4a4f53; --focus: #86bddb;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0f11; --logo-ice: #8fd0f2; --logo-rock: #c9cdd0; --paper-2: #15181b; --ink: #eceeed; --ink-2: #b0b5b8; --ink-3: #767c80;
  --rule: #262a2e; --rule-2: #353a3f; --ice: #d6e8f1; --ice-2: #7fa9bf; --ice-line: #86bddb; --ice-deep: #a8d2ea;
  --moraine: #7c4637; --loss: #e07f63;
  --ssp126: #6fa6cc; --ssp245: #d9b64f; --ssp370: #e58a5b; --ssp585: #d8606d;
  --relief-lo: #0b0c0d; --relief-hi: #4a4f53; --focus: #86bddb;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px; line-height: 1.55; font-weight: 400; font-stretch: 100%;
  font-feature-settings: 'kern' 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, table, .stat b, .tick { font-variant-numeric: tabular-nums; }
::selection { background: var(--ice-2); color: #0d0f11; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gut); top: 8px; background: var(--paper); padding: 6px 10px; z-index: 50; }

/* ------------------------------------------------ type */
.label, .kicker {
  font-size: 11.5px; line-height: 1.3; font-weight: 600; font-stretch: 112%;
  letter-spacing: .085em; text-transform: uppercase; color: var(--ink-3);
}
.kicker a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--rule-2); }
.kicker a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.kicker .sep { margin: 0 .5em; color: var(--rule-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
.display {
  container-type: inline-size;
}
.display h1, h1.display-t {
  font-stretch: 75%; font-weight: var(--w, 800); line-height: .84; letter-spacing: -.018em;
  font-size: min(var(--max-fs, 200px), calc(100cqi / (var(--n, 8) * .43)));
  margin: .12em 0 .08em -0.04em; white-space: nowrap;
  transition: font-weight .25s ease;
}
.dek { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.38; font-weight: 420; font-stretch: 96%; color: var(--ink-2); max-width: 44ch; margin: .4em 0 0; }
h2.sec {
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1; font-stretch: 82%; font-weight: 760; letter-spacing: -.01em;
}
h3 { font-size: 20px; line-height: 1.2; font-stretch: 92%; font-weight: 700; }
p { margin: 0 0 1em; }
.prose { max-width: 66ch; }
.prose p { font-size: 18px; line-height: 1.6; }
.prose p:first-child::first-line { font-weight: 560; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.5; }
.fine { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* ------------------------------------------------ header */
.top { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; flex: none; }
.brand b { font-size: 21px; font-weight: 850; font-stretch: 125%; letter-spacing: .02em; line-height: 1; }
.brand { align-items: center; }
.brand .logo { height: 21px; width: auto; display: block; overflow: visible; }
.foot .logo.big { height: 40px; }
.logo stop { transition: offset .3s; }
.brand span { font-size: 11px; font-stretch: 112%; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; font-weight: 560; font-stretch: 96%; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.navbtn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; padding: 5px 14px; cursor: pointer; }
.theme { background: none; border: 1px solid var(--rule-2); border-radius: 999px; width: 32px; height: 32px; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme:hover { color: var(--ink); border-color: var(--ink-3); }
.search-top { position: relative; flex: none; }
.search-top input {
  width: 180px; font: inherit; font-size: 14px; padding: 6px 12px 6px 30px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink);
}
.search-top svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-top ul { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.12); max-height: 60vh; overflow: auto; }
.search-top li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 6px; text-decoration: none; font-size: 14.5px; }
.search-top li a small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.search-top li a[aria-selected="true"], .search-top li a:hover { background: var(--paper-2); }
@media (max-width: 1080px) {
  .nav { gap: 16px; font-size: 14px; }
  .search-top input { width: 130px; }
}
@media (max-width: 920px) {
  .navbtn { display: block; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav a[aria-current] { border-bottom-color: var(--rule); font-weight: 750; }
  .search-top { order: 2; margin-left: auto; }
  .theme { order: 3; }
  .navbtn { order: 4; margin-left: 0; }
  .search-top input { width: 38px; padding-left: 28px; }
  .search-top input:focus { width: min(60vw, 260px); }
  .search-top ul { width: min(92vw, 340px); right: -60px; }
}

/* ------------------------------------------------ page head */
.head { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(18px, 3vw, 36px); }
/* the giant headline's line box reaches up over the breadcrumb: keep the breadcrumb on top and clickable */
.head .kicker { position: relative; z-index: 2; }
.head .display { position: relative; z-index: 1; pointer-events: none; }
.head .display h1 { pointer-events: auto; }
.head .kicker { margin-bottom: 8px; }
.head .en { font-size: clamp(20px, 2vw, 28px); font-weight: 460; font-stretch: 100%; color: var(--ink-2); margin: .1em 0 0; }

/* ------------------------------------------------ stats: flat, no chrome */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px var(--gap); padding: 22px 0; border-top: 1px solid var(--ink); }
.stat { min-width: 0; }
.stat .label { display: block; margin-bottom: 6px; font-size: 10.5px; }
.stat b { display: block; font-size: clamp(26px, 2.5vw, 36px); line-height: 1; font-weight: 720; font-stretch: 84%; letter-spacing: -.01em; }
.stat b small { font-size: .5em; font-weight: 560; font-stretch: 100%; margin-left: .15em; color: var(--ink-2); letter-spacing: 0; }
.stat .sub { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.stat.neg b { color: var(--loss); }
.stat.glow b { text-shadow: 0 0 22px color-mix(in srgb, var(--ice-line) 45%, transparent); }

/* ------------------------------------------------ sections */
.section { padding: clamp(40px, 6vw, 88px) 0 0; }
.section > .wrap > .sec-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 26px; }
.sec-head .label { grid-column: 1 / span 3; padding-bottom: 6px; }
.sec-head h2 { grid-column: 4 / -1; }
.sec-head.plain h2 { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .sec-head .label, .sec-head h2 { grid-column: 1 / -1; }
  .sec-head .label { padding-bottom: 8px; }
}
.cols { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 28px; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-9 { grid-column: span 9; } .c-12 { grid-column: 1 / -1; }
.o-4 { grid-column-start: 4; }
@media (max-width: 900px) { .c-3, .c-4 { grid-column: span 6; } .c-5, .c-6, .c-7, .c-8, .c-9 { grid-column: 1 / -1; } .o-4 { grid-column-start: auto; } }
@media (max-width: 560px) { .c-3, .c-4 { grid-column: 1 / -1; } }

/* ------------------------------------------------ map */
.mapbox { position: relative; }
.map { position: relative; width: 100%; background: var(--paper-2); overflow: hidden; }
.map canvas, .map img.fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.map svg.over { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.map svg.over path[data-y] { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map svg.over path[data-y].ghost { stroke-dasharray: 4 3; opacity: .6; }
.list li { break-inside: avoid; }
.map .yearbig {
  position: absolute; left: 14px; bottom: 8px; font-size: clamp(44px, 7vw, 108px); font-weight: 820; font-stretch: 75%;
  line-height: .8; letter-spacing: -.02em; color: var(--ink); pointer-events: none; opacity: .92;
  text-shadow: 0 0 18px var(--paper), 0 0 2px var(--paper);
}
.mlabs { position: absolute; inset: 0; pointer-events: none; }
.mlab { position: absolute; transform: translate(-3px, -50%); font-size: 12.5px; line-height: 1; white-space: nowrap; padding-left: 11px;
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper), 0 0 6px var(--paper); }
.mlab::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; }
.mlab.g { font-weight: 720; font-stretch: 92%; color: var(--ink); text-decoration: none; pointer-events: auto; }
.mlab.g::before { background: var(--ink); }
.mlab.g:hover { text-decoration: underline; }
.mlab.c { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.mlab.c::before { border: 1.5px solid var(--ink-2); width: 5px; height: 5px; margin-top: -2.5px; background: var(--paper); }
.mlab.l { transform: translate(calc(-100% + 3px), -50%); padding: 0 11px 0 0; }
.mlab.l::before { left: auto; right: 0; }
@media (max-width: 700px) { .mlab.c, .mlab.minor { display: none; } .mlab { font-size: 10.5px; } }
@media (max-width: 560px) {
  .brand span { display: none; }
  .top .wrap { gap: 12px; }
  .map .legend { font-size: 10.5px; gap: 8px; padding: 3px 6px; right: 6px; bottom: auto; top: 6px; }
  .legend i { width: 9px; height: 9px; margin-right: 4px; }
  .map .yearbig { font-size: 38px; left: 8px; bottom: 6px; }
}
.map .legend { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 14px; font-size: 12px; font-weight: 560; color: var(--ink-2); background: color-mix(in srgb, var(--paper) 82%, transparent); padding: 6px 10px; border-radius: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.legend .l-ice { background: var(--ice); box-shadow: inset 0 0 0 1.5px var(--ice-line); }
.legend .l-lost { background: var(--moraine); }
.legend .l-line { background: none; border-top: 2px solid var(--ink); height: 0; width: 14px; vertical-align: 3px; }

.scrub { display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; align-items: center; padding: 16px 0 6px; }
.scrub .track { position: relative; height: 44px; }
.scrub input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.scrub .rail { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--ink-2); }
.scrub .rail .fut { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, var(--paper) 0 3px, transparent 3px 7px); }
.scrub .knob { position: absolute; top: 4px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--paper); transition: left .08s; }
.scrub .ticks { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.scrub .tick { position: absolute; top: 25px; transform: translateX(-50%); font-size: 11.5px; font-weight: 640; font-stretch: 105%; color: var(--ink-3); }
.scrub .tick::after { content: ''; position: absolute; left: 50%; top: -10px; width: 1px; height: 7px; background: var(--ink-3); }
.scrub .tick:first-child { transform: none; } .scrub .tick:first-child::after { left: 0; }
.scrub .tick:last-child { transform: translateX(-100%); } .scrub .tick:last-child::after { left: auto; right: 0; }
.scrub .tick.on { color: var(--ink); }
.scrub input:focus-visible ~ .knob { outline: 2px solid var(--focus); outline-offset: 3px; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-size: 13px; font-weight: 640; font-stretch: 96%; border: 0; background: none; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.playbtn { font: inherit; font-size: 13px; font-weight: 640; border: 1px solid var(--rule-2); background: none; color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.playbtn:hover { border-color: var(--ink); }
.scrub-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; max-width: 90ch; }
@media (max-width: 760px) {
  .scrub { grid-template-columns: 1fr; }
  .seg button { padding: 6px 9px; font-size: 12.5px; }
}

/* ------------------------------------------------ charts */
.chart { width: 100%; height: auto; overflow: visible; font-family: inherit; }
.chart text { font-family: 'Mona Sans', sans-serif; fill: var(--ink-3); font-size: 11px; font-weight: 560; font-stretch: 105%; font-variant-numeric: tabular-nums; }
.chart .t-ink { fill: var(--ink); }
.chart .t-strong { fill: var(--ink); font-weight: 720; font-size: 12.5px; }
.chart .grid-l { stroke: var(--rule); stroke-width: 1; }
.chart .zero { stroke: var(--ink); stroke-width: 1; }
.chart .ax { stroke: var(--ink-3); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart .bar-neg { fill: var(--loss); }
.chart .bar-pos { fill: var(--ice-line); }
.chart .dot-ice { fill: var(--ice-line); }
.chart .area-ice { fill: var(--ice); stroke: var(--ice-line); stroke-width: 1.2; }
.chart .ssp126 { stroke: var(--ssp126); } .chart .ssp245 { stroke: var(--ssp245); } .chart .ssp370 { stroke: var(--ssp370); } .chart .ssp585 { stroke: var(--ssp585); }
.chart .band126 { fill: var(--ssp126); } .chart .band245 { fill: var(--ssp245); } .chart .band370 { fill: var(--ssp370); } .chart .band585 { fill: var(--ssp585); }
.chart .band { opacity: .14; }
.chart .hl { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .hover-line { stroke: var(--ink); stroke-width: 1; opacity: 0; }
.chart:hover .hover-line { opacity: .5; }
.figure { margin: 0; }
.figure figcaption { margin-top: 10px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 560; line-height: 1.35; padding: 6px 9px; border-radius: 5px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .1s; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.keyline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.keyline span::before { content: ''; display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: currentColor; vertical-align: 4px; margin-right: 7px; }
.k126::before { background: var(--ssp126) !important; } .k245::before { background: var(--ssp245) !important; }
.k370::before { background: var(--ssp370) !important; } .k585::before { background: var(--ssp585) !important; }
.kice::before { background: var(--ice-line) !important; } .kloss::before { background: var(--loss) !important; } .kink::before { background: var(--ink) !important; }

/* ------------------------------------------------ fate strip (four scenarios, flat) */
.fate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.fate .f { border-top: 3px solid var(--c); padding-top: 12px; }
.fate .f .label { color: var(--ink-2); }
.fate .f b { display: block; font-size: clamp(30px, 3.2vw, 46px); font-weight: 760; font-stretch: 80%; line-height: 1.05; margin-top: 6px; }
.fate .f span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
@media (max-width: 760px) { .fate { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ------------------------------------------------ tables & lists */
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font-size: 11px; font-weight: 650; font-stretch: 110%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.data td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data td.r, table.data th.r { text-align: right; white-space: nowrap; }
table.data tr:hover td { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
table.data td a { text-decoration: none; font-weight: 600; }
table.data td a:hover { text-decoration: underline; }
table.data .neg { color: var(--loss); }
dl.facts { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--ink-3); font-size: 12px; font-weight: 620; font-stretch: 108%; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
dl.facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--rule); }
.list a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; text-decoration: none; }
.list a:hover b { text-decoration: underline; }
.list a span { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--rule-2); text-decoration: none; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------ cards (links = interactive, may carry chrome) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; text-decoration: none; border-top: 1px solid var(--ink); padding: 14px 0 6px; }
.card .label { margin-bottom: 8px; }
.card h3 { font-size: 23px; font-stretch: 86%; font-weight: 740; line-height: 1.08; }
.card p { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.45; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.card .thumb { aspect-ratio: 4 / 3; background: var(--paper-2); margin: -2px 0 12px; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------ event page / timeline */
.timeline { position: relative; }
.tl-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--gap); padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.tl-row .y { font-size: 28px; font-weight: 780; font-stretch: 78%; line-height: 1; }
.tl-row h3 { font-size: 21px; font-stretch: 90%; }
.tl-row p { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.tl-row:hover h3 { text-decoration: underline; }
.kind { display: inline-block; font-size: 10.5px; font-weight: 680; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; margin-bottom: 6px; color: var(--paper); background: var(--ink-2); }
.kind.collapse { background: var(--ssp585); } .kind.outburst { background: var(--ice-deep); } .kind.rockfall { background: #6c5a4a; }
.kind.culture { background: var(--ink-2); } .kind.record { background: var(--loss); } .kind.policy { background: var(--ssp126); }

/* ------------------------------------------------ year bars (advance/retreat) */
.yearbars { width: 100%; }
.yearbars rect.adv { fill: var(--ice-line); }
.yearbars rect.ret { fill: var(--loss); }
.yearbars rect.sta { fill: var(--rule-2); }
.yearbars a:hover rect { opacity: .7; }

/* ------------------------------------------------ atlas */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 640; font-stretch: 110%; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.filters input, .filters select { font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 6px; padding: 7px 10px; min-width: 0; }
.filters input[type=search] { width: min(320px, 70vw); }
.filters .count { margin-left: auto; font-size: 14px; color: var(--ink-2); padding-bottom: 8px; }
table.atlas th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
table.atlas th button[aria-sort]::after { content: ' ↓'; }
table.atlas th button[aria-sort="ascending"]::after { content: ' ↑'; }
table.sortable th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
table.sortable th button:hover { color: var(--ink); }
table.sortable th[aria-sort] { color: var(--ink); }
table.sortable th[aria-sort="descending"] button::after { content: ' ↓'; }
table.sortable th[aria-sort="ascending"] button::after { content: ' ↑'; }
table.atlas td .bar { display: inline-block; height: 6px; background: var(--ice-line); border-radius: 1px; vertical-align: 1px; margin-right: 6px; }
table.atlas td.dim { color: var(--ink-3); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------ home hero */
.hero { padding-top: clamp(24px, 4vw, 52px); }
.hero-t { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; }
.hero-t .big { grid-column: 1 / span 8; container-type: inline-size; }
.hero-t .big .n {
  font-size: min(250px, 27cqi); font-weight: var(--w, 820); font-stretch: 75%; line-height: .8; letter-spacing: -.03em; display: block;
  transition: font-weight .2s;
}
.hero-t .big .n small { font-size: .32em; font-weight: 640; font-stretch: 90%; letter-spacing: -.01em; margin-left: .06em; }
.hero-t .side { grid-column: 9 / -1; padding-bottom: 10px; }
.hero-t .side p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: var(--ink-2); margin: 0; }
.hero-t .side p b { color: var(--ink); font-weight: 680; }
@media (max-width: 900px) { .hero-t .big, .hero-t .side { grid-column: 1 / -1; } .hero-t .side { padding: 14px 0 0; } }

.wordmark { font-size: 12px; }

/* ------------------------------------------------ footer */
.foot { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--ink); padding: 28px 0 48px; font-size: 14px; color: var(--ink-2); }
.foot .cols > div { min-width: 0; }
.foot a { text-decoration: none; }
.foot .fine a { text-decoration: underline; text-decoration-color: var(--rule-2); color: var(--ink-2); }
.foot .fine a:hover { text-decoration-color: currentColor; }
.foot a:hover { text-decoration: underline; }
.foot .brand { display: inline-block; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; }

/* ------------------------------------------------ notes, sources */
.note { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; font-weight: 440; max-width: 52ch; }
.note::before { content: ''; display: block; width: 40px; height: 3px; background: var(--ice-line); margin-bottom: 14px; }
.reading { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.reading b { color: var(--ink); font-weight: 650; }
ol.sources { margin: 0; padding-left: 1.4em; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
ol.sources li { margin-bottom: 6px; }
.callout { border-left: 3px solid var(--ssp245); padding: 2px 0 2px 16px; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }

/* ------------------------------------------------ photos */
.photo { margin: 0 0 22px; }
.photo .label { display: block; margin-bottom: 8px; }
.photo img { width: 100%; height: auto; background: var(--paper-2); }
.photo figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.photo .credit { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.photo .credit a { color: inherit; }

/* ------------------------------------------------ misc */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.mini-map { width: 100%; height: auto; }
.mini-map .ch { fill: var(--paper-2); stroke: var(--rule-2); stroke-width: 1; }
.mini-map .dot { fill: var(--ice-deep); }
.mini-map .dot.hot { fill: var(--loss); }
.mini-map .g { fill: var(--ice-line); }
.mini-map .g.sel { fill: var(--ink); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top, .scrub, .foot { display: none; } body { background: #fff; } }
