/* Colours and the typeface are in css/tokens.css (linked by every page). */
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%;margin:0}
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{background:var(--firn);color:var(--rock);font-family:var(--sans);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,select,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--crevasse);outline-offset:2px}
.top-cover{display:none}
.app{--lw:290px;--rw:320px;display:grid;grid-template-columns:var(--lw) minmax(0,1fr) var(--rw);height:100%}

/* ---------- left ---------- */
/* the top of step 3 ("Create and share", Your visual, Embed) stays at the bottom of the left panel until the step itself is scrolled into view (js/09-phones.js); not on phones */
.scroll-cue{position:sticky;bottom:-28px;height:0;margin-top:-16px;z-index:5}      /* -28px: the panel's bottom padding; -24px: its gap, so showing and hiding the copy never changes the panel's height */
.scroll-cue[hidden]{display:none}
.cue-card{position:absolute;left:calc(-1 * var(--pad));right:calc(-1 * var(--pad));bottom:0;display:flex;flex-direction:column;gap:10px;padding:16px var(--pad) 18px;background:var(--sheet);border-top:1px solid var(--rule);box-shadow:0 -10px 22px rgba(10,27,51,.13)}      /* flush with the panel's sides and bottom, a line and a soft shadow above it */
.cue-card .cue-h{padding:0;border:0;background:none;font-family:inherit;text-align:left;cursor:pointer}
.app.no-glacier .cue-card .dl-grid,.app.sat-off .cue-card .dl-grid{opacity:.4}
.controls{--pad:20px;background:var(--sheet);border-right:1px solid var(--rule);overflow-y:auto;padding:16px 20px 28px;display:flex;flex-direction:column;gap:16px}
.brand-top{display:flex;align-items:center;gap:12px;margin:0 0 8px}
@media (hover:hover) and (pointer:fine) and (min-width:721px){html.tbar-on .controls .brand-top{display:none}}      /* the pull-down bar (js/top-bar.js) has the logo and name while it is down */
.brand .brand-top h1{margin:0;line-height:1.1}   /* two lines of 20 px x 1.1 = the height of the logo (46 x 44 px) */
.home-link{color:inherit;text-decoration:none}      /* the title is plain text now; only the region button next to it is interactive */
.brand h1 .t1{display:block;white-space:nowrap;color:#0A1B33}
.brand h1 .t2{display:block;color:#0A1B33}
.brand{position:relative}
.brand h1 .region-btn{display:flex;align-items:center;gap:3px;margin:0;padding:0;border:0;background:none;font:inherit;color:#0A1B33;cursor:pointer;letter-spacing:inherit}      /* the second title line is the region picker: the region name with a small chevron */
.brand h1 .region-btn svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.brand h1 .region-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.brand h1 .region-btn:hover .region-name{text-decoration:underline;text-underline-offset:3px}
.brand h1 .region-btn:focus-visible{outline:2px solid var(--crevasse);outline-offset:2px;border-radius:3px}
.region-menu{position:absolute;z-index:30;left:58px;top:50px;margin:0;padding:4px;list-style:none;min-width:190px;background:#fff;border:1px solid var(--rule);border-radius:8px;box-shadow:0 6px 20px rgba(10,27,51,.16)}
.region-menu[hidden]{display:none}
.region-menu li{touch-action:manipulation;-webkit-tap-highlight-color:transparent;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 10px;border-radius:5px;font-size:13.5px;font-weight:600;color:#0A1B33;cursor:pointer}
.region-menu li:hover:not([aria-disabled="true"]){background:var(--firn)}
.region-menu li[aria-selected="true"]{color:var(--accent)}
.region-menu li[aria-disabled="true"]{color:#A9B1B5;cursor:default;font-weight:500}
.region-menu li small{font-size:11px;font-weight:500;color:#A9B1B5}
.brand-logo{flex:none;width:46px;height:auto;margin-top:1px}
.brand h1{font-size:20px;line-height:1.15;margin:0 0 8px;font-weight:700;letter-spacing:-.018em;color:var(--accent)}
.brand p{margin:0;color:var(--moraine);font-size:12.5px;text-align:left;hyphens:manual}      /* the blurb fills the width of the panel; the last line of each paragraph stays at the left */
.brand .what{margin-top:2px;line-height:1.4}
.step{display:flex;flex-direction:column;gap:10px}
.controls > .step,.controls .step ~ .step{border-top:1px solid var(--rule);margin:0 calc(-1 * var(--pad));padding:16px var(--pad) 0}      /* the thin line runs the full width of the panel, above every step (01 Choose too) */
@keyframes tongueNudge{0%,50%,100%{transform:none}25%,75%{transform:translateY(4px)}}
/* desktop: the line above steps 02 and 03 dips into a small rounded point (a tongue) above the step number, so the eye is led down to the next step; it is grey while the step waits for a glacier and turns red once the step can be used */
@media (min-width:721px) and (min-height:521px), (min-width:951px){
  .controls .step ~ .step{position:relative}
  .controls .step ~ .step::before,.cue-card::before{content:"";position:absolute;top:-1px;left:calc(var(--pad) + 8px);width:18px;height:10px;box-sizing:border-box;background:var(--sheet);border:solid var(--rule);border-width:0 1px 1px 1px;border-radius:0 0 9px 9px / 0 0 10px 10px;transition:border-color .4s}      /* a rounded tongue hanging from the line; it starts on the line and is filled, so the line does not run through it */
  .app:not(.no-glacier) .controls .step ~ .step::before,.app:not(.no-glacier) .cue-card::before{border-color:var(--accent);border-width:0 1.5px 1.5px 1.5px}
  /* a glacier was chosen: the points dip twice, first the one above 02, then the one above 03 (class set in chooseGlacier, js/09-phones.js) */
  .controls.nudge .step ~ .step::before,.controls.nudge .cue-card::before{animation:tongueNudge 1.1s ease-in-out}
  .controls.nudge #shareGroup::before,.controls.nudge .cue-card::before{animation-delay:.35s}
  @media (prefers-reduced-motion:reduce){.controls.nudge .step ~ .step::before,.controls.nudge .cue-card::before{animation:none}}
}
.step-h{display:flex;align-items:center;gap:12px;margin:0;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#0A1B33}      /* dark like the title (Tongues from Space), the step number in red: 01 CHOOSE */
.step-lock{display:none;white-space:nowrap;margin-left:auto;font-size:10.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--moraine)}
.app.no-glacier .step-lock{display:inline}
.app.no-glacier #vizGroup > :not(.step-h):not(.act-link),.app.no-glacier #shareGroup > :not(.step-h):not(.act-link):not(.fyi):not(.fyi-by){opacity:.4;filter:none}      /* a click on them says why (js/08-controls.js), so no pointer-events:none on the box; the sliders inside let the click through */
.app.no-glacier #vizGroup input,.app.no-glacier #shareGroup input,.app.sat-off .sat-need input{pointer-events:none}
.app.sat-off .sat-need{opacity:.4;filter:none}
.app.dem-off #modeCompare,.app.dem-off #modeTimelapse{opacity:.4;filter:none}      /* 3D, one elevation model only: a click says why (js/08-controls.js) */
.app.sat-off.no-glacier #vizGroup > * .sat-need{opacity:1}      /* inside a box that is already greyed */
.step.pop{animation:stepPop .9s ease-out}
@keyframes stepPop{0%{background:rgba(200,50,42,.16);transform:translateX(-6px)}40%{transform:none}100%{background:transparent}}
.step.pop{border-radius:10px;margin:-6px;padding:6px}
.down-hint{display:none;border:0;background:none;padding:2px 0;color:var(--crevasse);font:600 13px var(--sans);text-align:left;cursor:pointer}
@media (max-width:720px){.down-hint:not([hidden]){display:block}}
.step-h .num{color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums}
/* Phones: the glacier list is one card showing the chosen glacier; a tap opens a sheet with the ten glaciers (js/09-phones.js) */
.m-pick{display:none;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 12px;border:1px solid var(--rule);border-radius:0;background:var(--sheet);color:var(--rock);font:inherit;font-size:16px;text-align:left;cursor:pointer;box-shadow:inset 3px 0 0 var(--accent)}
.m-pick .mp-rank{flex:none;width:22px;color:var(--moraine);font-size:13px;font-variant-numeric:tabular-nums}
.m-pick .mp-name{flex:1;min-width:0;font-weight:700}
.m-pick .mp-area{flex:none;color:var(--moraine);font-size:14px}
.m-pick .mp-chev{flex:none;width:18px;height:18px;fill:none;stroke:var(--moraine);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.m-pick.placeholder .mp-name{font-weight:500;color:var(--moraine)}
.g-sheet{position:fixed;inset:0;z-index:3000;display:none}
.g-sheet.open{display:block}
.g-back{position:absolute;inset:0;background:rgba(10,20,28,.5)}
.g-panel{position:absolute;left:0;right:0;bottom:0;max-height:86dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--sheet);border-radius:14px 14px 0 0;box-shadow:0 -6px 24px rgba(0,0,0,.35);padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));animation:gsUp .22s ease-out}
@keyframes gsUp{from{transform:translateY(28px);opacity:0}}
.g-grip{position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--rule)}
.g-head{touch-action:none;position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:16px 8px 12px 18px;background:var(--sheet);border-bottom:1px solid var(--rule)}
.g-close{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:var(--moraine);cursor:pointer}
.g-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.g-list{list-style:none;margin:0;padding:0}
.g-list li{border-bottom:1px solid var(--rule-2)}
.g-list button{width:100%;display:grid;grid-template-columns:28px 1fr auto;align-items:baseline;column-gap:8px;row-gap:7px;min-height:58px;padding:11px 18px 10px;border:0;background:none;text-align:left;font:inherit;color:var(--rock);cursor:pointer}
.g-list .rank{color:var(--moraine);font-size:13px;font-variant-numeric:tabular-nums}
.g-list .name{font-size:17px;font-weight:600}
.g-list .area{color:var(--moraine);font-size:14px;font-variant-numeric:tabular-nums}
.g-list .g-bar{grid-column:2 / 4;display:block;height:3px;background:var(--rule-2)}
.g-list .g-bar b{display:block;height:100%;background:var(--ice)}
.g-list button:focus-visible,.g-close:focus-visible{outline-offset:-3px}
.g-list button[aria-pressed="true"]{background:#E9EFF2;box-shadow:inset 3px 0 0 var(--accent)}
.g-list button[aria-pressed="true"] .name{font-weight:800}
.g-list button[aria-pressed="true"] .g-bar b{background:var(--crevasse)}
body.sheet-open{overflow:hidden}
.note{font-size:11.5px;line-height:1.4;color:var(--moraine);margin:0}
.note:empty{display:none}
.swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#compareControls .swatches{margin-bottom:12px}
.cc-alt{margin:0 0 12px}
.cc-alt > summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;user-select:none;font-size:11.5px;color:var(--faint)}      /* the second picture's own colour composition: folded until wanted */
.cc-alt > summary::-webkit-details-marker{display:none}
.cc-alt > summary::after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);margin:-3px 0 0 2px;transition:transform .15s}
.cc-alt[open] > summary::after{transform:rotate(225deg);margin-top:3px}
.cc-alt[open] > summary{margin-bottom:6px}
.cc-alt .swatches{margin-bottom:0}      /* the slider: colour choice, then a clear gap, then the years of that picture */
.sw{border:1px solid var(--rule);background:var(--sheet);border-radius:0;padding:5px 5px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:12px;font-weight:600;color:var(--rock);min-width:0;text-align:center}
.yr-range{padding:2px 4px 0}
.yr-vals{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;color:var(--moraine);padding:0 14%}      /* the two years sit a little in from the ends, nearer the "to" in the middle */
.yr-vals b{font-size:12px;font-weight:600;color:var(--rock);font-variant-numeric:tabular-nums}
.yr-track{position:relative;height:30px}
.yr-track::before{content:'';position:absolute;left:0;right:0;top:13px;height:4px;border-radius:2px;background:var(--rule)}
.yr-fill{position:absolute;top:13px;height:4px;border-radius:2px;background:var(--accent)}
.yr-track input{position:absolute;left:-8px;width:calc(100% + 16px);top:0;height:30px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.yr-track input::-webkit-slider-runnable-track{background:none;height:30px}
.yr-track input::-moz-range-track{background:none}
.yr-track input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:16px;height:16px;margin-top:7px;border-radius:50%;background:#fff;border:3px solid var(--accent);cursor:grab;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.yr-track input::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--accent);cursor:grab}
.yr-ticks{display:flex;justify-content:space-between;margin:-2px 0 0;padding:0 2px}
.yr-ticks i{width:2px;height:5px;background:var(--moraine);opacity:.6}
.yr-ticks i.off{opacity:.2}
.sw i{display:block;height:44px;border-radius:0;overflow:hidden}
.sw i svg{display:block;width:100%;height:100%}
.sw[aria-pressed="true"]{background:#E9EFF2;border-color:var(--rule);box-shadow:inset 0 -2px 0 var(--accent)}      /* selected, as in the glacier list: pale, red line under it */
.sw:hover{border-color:var(--crevasse)}
.sw:not([aria-pressed="true"]) span{color:var(--faint)}      /* the compositions not in use: grey label (the thumbnail stays in colour); no CSS filter, Safari on iPhone ignores them */
.sw:not([aria-pressed="true"]):hover span{color:var(--rock)}
.hint{font-size:11.5px;color:var(--moraine);margin:8px 0 0}
.g-search{width:100%;box-sizing:border-box;margin:0 0 6px;padding:7px 10px;border:1px solid var(--line,#d5dbe0);border-radius:6px;font:inherit;font-size:13px}
.glaciers{position:relative;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;max-height:122px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}      /* 3.5 rows (3px padding + 3.5 x 32.3px rows + 3 x 2px gaps):the cut-off row shows that the list scrolls */
.glaciers button{width:100%;display:grid;grid-template-columns:24px 1fr auto;align-items:baseline;column-gap:6px;row-gap:0;text-align:left;padding:6px 10px 6px 13px;border:0;background:none;border-radius:0;cursor:pointer}
.glaciers button:hover{background:var(--firn)}
.glaciers button[aria-pressed="true"] .rank{color:var(--moraine);font-weight:400}
.glaciers button[aria-pressed="true"]{background:#E9EFF2;box-shadow:inset 3px 0 0 var(--accent)}      /* selected: pale row, red bar on the left */
.glaciers button[aria-pressed="true"] .name{color:var(--rock);font-weight:700}
.glaciers button[aria-pressed="true"] .area{color:var(--rock)}
.glaciers .rank{color:var(--moraine);font-variant-numeric:tabular-nums;font-size:11px}
.glaciers .name{font-weight:500;color:var(--moraine)}
.glaciers .area{color:var(--moraine);font-size:12.5px}

.segment{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--firn);border-radius:0;padding:3px}
.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.modes button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px 8px;border:1px solid var(--rule);border-radius:0;background:var(--sheet);cursor:pointer;font-size:12.5px;font-weight:600;color:var(--moraine)}
.modes button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.modes.views{grid-template-columns:repeat(2,1fr)}
.modes.views button{flex-direction:row;justify-content:center;gap:8px;padding:8px 4px}
.modes.views button svg{width:20px;height:20px}
.modes button:hover{border-color:var(--crevasse)}
#modeGroup{position:relative}
.turn-hint{position:absolute;z-index:6;transform:translateX(-50%);padding:5px 10px;border-radius:999px;background:var(--rock);color:#fff;font-size:11.5px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .4s;box-shadow:0 2px 8px rgba(10,27,51,.3)}
.turn-hint::before{content:'';position:absolute;left:50%;top:-4px;margin-left:-4px;width:8px;height:8px;background:inherit;transform:rotate(45deg)}
.turn-hint.on{opacity:.95}
@media (prefers-reduced-motion:reduce){.turn-hint{transition:none}}
.modes button .mc-ico{transition:transform .4s cubic-bezier(.4,.1,.2,1)}
.modes #modeCompare[data-o="h"] .mc-ico{transform:rotate(90deg)}      /* the icon itself turns with the slider */
.modes #modeCompare .mc-turn{display:none;width:12px;height:12px;margin:0 0 -1.5px 4px;vertical-align:baseline;color:var(--accent);stroke-width:2.2;transition:transform .4s cubic-bezier(.4,.1,.2,1)}
.modes #modeCompare[aria-pressed="true"] .mc-turn{display:inline-block}      /* only on the active button: tap again to turn */
.modes #modeCompare[aria-pressed="true"]:hover .mc-turn,.modes #modeCompare[aria-pressed="true"]:active .mc-turn{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){.modes button .mc-ico,.modes #modeCompare .mc-turn{transition:none}}
.modes button[aria-pressed="true"]{background:#E9EFF2;border-color:var(--rule);box-shadow:inset 0 -2px 0 var(--accent);color:var(--rock);font-weight:700}
.segment button:disabled{color:#A9B1B5;cursor:not-allowed}
.segment button{border:0;background:none;padding:8px 0;white-space:nowrap;border-radius:0;cursor:pointer;font-weight:500}
.segment button[aria-pressed="true"]{background:#E9EFF2;box-shadow:inset 0 -2px 0 var(--accent);font-weight:700;color:var(--rock)}

.side-label{font-size:10px;font-weight:600;color:var(--moraine);text-transform:uppercase;letter-spacing:.1em;margin:0 0 4px}
.side-label span{font-size:11px;color:var(--moraine)}
.years{display:grid;grid-template-columns:repeat(6,1fr);gap:3px}
.years button{padding:4px 0;border:1px solid var(--rule);background:var(--sheet);border-radius:0;cursor:pointer;font-variant-numeric:tabular-nums;font-size:12px;line-height:1.3}
.years button:hover:not(:disabled){border-color:var(--crevasse)}
.years button[aria-pressed="true"]{background:#E9EFF2;color:var(--rock);font-weight:700;border-color:var(--rule);box-shadow:inset 0 -2px 0 var(--accent)}
.years button.in-range{background:var(--firn);border-color:var(--rule)}
.years button:disabled{color:#B6BEC2;background:var(--firn);border-color:var(--firn);cursor:not-allowed;pointer-events:none}
.years button:disabled.missing{text-decoration:line-through}
.years button.is-na{color:#B6BEC2;background:var(--firn);border-color:var(--firn);cursor:not-allowed}      /* greyed but still hoverable and clickable: the tooltip and the notice say why (a disabled button gets no hover) */
.years button.is-na:hover{border-color:var(--firn)}
.spec-row{display:flex;align-items:center;gap:10px;margin-top:-4px}
.spec-row .side-label{margin:0;flex:none;font-size:11.5px;font-weight:500;font-style:italic;text-transform:none;letter-spacing:0}      /* a sub-choice of the years: not a capital label of its own */
.years.specials{flex:1;grid-template-columns:repeat(2,1fr)}
.years.specials button{padding:5px 0}
.slider-specials{margin-top:4px}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:8px;align-items:center}
.spin-s{display:inline-block;width:12px;height:12px;margin-right:6px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spinS .8s linear infinite}
@keyframes spinS{to{transform:rotate(360deg)}}
.play{background:var(--accent)!important;flex:0 0 auto;border:0;background:var(--rock);color:#fff;border-radius:var(--r-sm);min-height:42px;padding:9px 16px;cursor:pointer;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:76px}
.play svg{width:12px;height:12px;fill:currentColor;flex:none}
.play:disabled{opacity:.4;cursor:not-allowed}
select.small{-webkit-appearance:none;appearance:none;border:1px solid var(--rule);border-radius:0;padding:6px 30px 6px 8px;font-size:13px;cursor:pointer;
  background:var(--sheet) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%236B7378' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 9px center/15px}      /* a chevron as big as on the cards, instead of the small system arrow */
.vs-opts select.small{padding:4px 26px 4px 11px;border-radius:15px;font-size:12.5px;font-weight:600;color:var(--ink);background-color:var(--firn);background-position:right 8px center;background-size:12px;min-width:86px;transition:border-color .15s,opacity .15s}      /* the pane's choices: small pills */
.vs-opts select.small:hover:not(:disabled){border-color:var(--crevasse)}
.vs-opts select.small:focus-visible{outline:2px solid var(--crevasse);outline-offset:2px}
.vs-opts select.small:disabled{opacity:.45;cursor:default}
.speed{display:inline-flex;align-items:center;gap:6px;min-width:0}
.row .speed{flex:1 1 auto;margin-left:12px}
#playBtn{min-width:104px;padding:6px 20px}
.speed select{flex:1;min-width:0;width:100%;padding:6px 30px 6px 8px}
.loop{flex:none;white-space:nowrap}
#timelapseControls .row > .frame{flex:1 1 auto;min-width:0;width:auto;margin:0 0 0 4px}      /* the progress bar next to Play */
#timelapseControls .row > .speed{margin-left:0}      /* speed and Loop on the second row */
#timelapseControls .row > .loop{margin:0 0 0 14px;min-height:0;gap:8px}
.speed-range{flex:1;min-width:0;width:100%;margin:0;accent-color:var(--accent);cursor:pointer}
.speed-out{flex:none;min-width:42px;font-size:12px;color:var(--moraine);font-variant-numeric:tabular-nums;text-align:right}
.speed-ico{width:20px;height:20px;flex:none;fill:var(--accent);stroke:var(--accent);stroke-width:2;stroke-linecap:round}
.speed-ico path:first-child{fill:none;stroke:var(--moraine)}
.frame{width:100%;accent-color:var(--rock)}
.slider-row{display:flex;justify-content:space-between;font-size:13.5px;margin:4px 0 2px}
/* brightness and the two opacities are secondary: label and slider share one line */
.tune{margin-top:6px}
.tune > summary{display:flex;align-items:center;gap:6px;margin:0;cursor:pointer;list-style:none;user-select:none}      /* a drop-open menu: the settings are used rarely */
.tune > summary::-webkit-details-marker{display:none}
.tune > summary::after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);margin:-3px 0 0 2px;transition:transform .15s}
.tune[open] > summary::after{transform:rotate(225deg);margin-top:3px}
.tune[open] > summary{margin-bottom:6px}
.tune[open]{display:flex;flex-direction:column;gap:2px}
/* "Adjust image": a switch like the older-imagery one; on, it shows the sliders */
.tune-adjust{margin-top:6px}
.adj-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:2px 0;border:0;background:none;cursor:pointer;font:inherit;font-size:12px;font-weight:600;color:var(--moraine);text-align:left}
.adj-track{flex:none;position:relative;width:30px;height:17px;border-radius:9px;background:var(--rule);transition:background .15s}
.adj-knob{position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.adj-switch[aria-checked="true"] .adj-track{background:var(--crevasse)}
.adj-switch[aria-checked="true"] .adj-knob{transform:translateX(13px)}
.adj-switch:focus-visible{outline:2px solid var(--crevasse);outline-offset:2px;border-radius:6px}
.tune-adjust > div:not([hidden]){display:flex;flex-direction:column;gap:2px;margin-top:6px}
.meta-body{min-width:0}
.meta-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}      /* a wide table scrolls sideways inside the panel */
.meta-dl{margin:6px 0 0;padding:3px 9px;font:inherit;font-size:11.5px;color:var(--moraine);background:none;border:1px solid var(--rule);border-radius:6px;cursor:pointer}
.meta-dl:hover{border-color:var(--moraine)}
.meta-table{width:100%;border-collapse:collapse;font-size:11.5px;color:var(--moraine);font-variant-numeric:tabular-nums}
.meta-table th,.meta-table td{padding:2px 4px;text-align:left;font-weight:400;white-space:nowrap}
.meta-table thead th{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid var(--rule)}
.meta-table tbody th{font-weight:600}
.meta-table .copy{cursor:copy;border-bottom:1px dotted currentColor}
.meta-table tr.on{background:var(--firn);color:#0A1B33}
@media (max-width:720px){      /* phone: two columns fit, five do not: each scene becomes a small block, the year on top, the other figures under it with their names */
  .meta-table,.meta-table tbody,.meta-table tr,.meta-table th,.meta-table td{display:block}
  .meta-table thead{display:none}
  .meta-table tr{padding:6px 4px;border-bottom:1px solid var(--rule)}
  .meta-table tbody th{padding:0 0 2px;font-size:13px}
  .meta-table td{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;padding:1px 0;white-space:normal}
  .meta-table td[data-l]::before{content:attr(data-l);color:var(--moraine);opacity:.75;font-size:10px;letter-spacing:.08em;text-transform:uppercase;align-self:center}
  .meta-table td[colspan]{display:block}
}
.meta-note{margin:6px 0 0;font-size:11px;line-height:1.4;color:var(--moraine)}
.tune-row{display:grid;grid-template-columns:13.5em minmax(48px,1fr);align-items:center;column-gap:12px;font-size:12.5px}   /* label + value in a fixed column (sized for "Surroundings opacity  100 %"), the slider takes the rest */
.tune .slider-row{margin:0;font-size:1em;gap:6px;color:var(--moraine);white-space:nowrap}
.tune .slider-row output{white-space:nowrap;flex:none}
.tune input[type=range]{width:100%;margin:0;height:20px}
.slider-row output{color:var(--moraine);font-variant-numeric:tabular-nums}
.toggle{display:flex;align-items:center;gap:8px;font-size:13.5px;cursor:pointer;margin-bottom:6px}
.toggle input:disabled + span{color:#A9B1B5}
.gl-icon{display:inline-block;width:20px;height:14px;vertical-align:middle}
.swatch{display:inline-block;width:18px;height:0;border-top:3px solid;vertical-align:middle}
.status:empty{display:none}
.status{font-size:11.5px;line-height:1.4;color:var(--moraine);margin:0;padding:6px 8px;background:var(--firn);border-radius:0}
.status.busy{display:flex;align-items:center;gap:8px}
.status.busy::before{content:'';flex:none;width:12px;height:12px;border-radius:50%;border:2px solid var(--rule);border-top-color:var(--accent);animation:spin .8s linear infinite}
.stage-busy{position:absolute;z-index:650;left:50%;top:16px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:calc(100% - 340px);padding:8px 12px;background:rgba(10,27,51,.88);color:#fff;font-size:12.5px;line-height:1.35;pointer-events:none}
.stage-busy[hidden]{display:none}
.stage-busy::before{content:'';flex:none;width:12px;height:12px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.byline{margin:10px 0 0;font-size:12.5px;line-height:1.4;color:var(--moraine);text-align:center}
.byline a{color:var(--crevasse);font-weight:600}
.fyi-by b{display:block;font-size:14px;font-weight:700;line-height:1.3;color:var(--ink,#1c2430)}
.fyi-by span{display:block;margin-top:3px;font-size:11.5px;font-weight:300;letter-spacing:.04em}
.step .fyi{margin-top:6px}
.fyi{display:block;text-align:center;text-decoration:none;color:var(--rock);background:#FFF6DA;border:1px solid #F3DE94;border-radius:0;padding:14px 14px 12px}
.fyi:hover{border-color:#E2B93B}
.fyi-img{display:block;width:96px;height:auto;margin:0 auto 10px;border-radius:2px;box-shadow:0 3px 10px rgba(34,49,58,.28)}
.fyi-ask{display:block;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-bottom:2px}
.fyi-name{display:block;font-weight:800;font-size:16px;letter-spacing:-.01em}
.fyi-text{display:block;font-size:12px;color:var(--moraine);margin-top:4px;line-height:1.4}
.fyi-slot{display:none}
.fyi-go{display:inline-block;margin-top:9px;font-size:12.5px;font-weight:700;color:#fff;background:var(--accent);border-radius:0;padding:5px 14px}
.fyi:hover .fyi-go{background:#a92720}

/* ---------- centre ---------- */
.stage{position:relative;min-height:0;background:#070b14;overflow:hidden}   /* nothing on the map may widen the page */
#map{position:absolute;inset:0;background:#070b14}
.leaflet-container{font-family:var(--sans)}
.year-tag{position:absolute;top:12px;z-index:650;color:#fff;font-weight:800;font-size:clamp(30px,3.4vw,44px);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;text-shadow:0 1px 14px rgba(0,0,0,.55);pointer-events:none}
.year-tag small.v3d-special{margin-top:2px}
.year-tag small{display:block;font-size:12px;font-weight:500;letter-spacing:0;margin-top:6px;opacity:.85}
.year-tag .nw{white-space:nowrap}
#tagA,#tagT{left:14px}
#tagB{right:14px;text-align:right}
.is-horiz .divider{top:0;bottom:auto;left:0;right:0;width:auto;height:2px;margin:-1px 0 0}
.is-horiz #tagB{right:auto;left:14px;text-align:left}
.is-horiz .handle{cursor:ns-resize}
.is-horiz .handle svg{transform:rotate(90deg)}
@media (max-width:720px){.is-horiz #tagB{left:12px}}
.divider{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff;z-index:640;pointer-events:none;box-shadow:0 0 6px rgba(0,0,0,.4)}
.handle{position:absolute;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#fff;z-index:660;display:grid;place-items:center;cursor:ew-resize;touch-action:none;box-shadow:0 2px 10px rgba(0,0,0,.5);border:0;animation:v3dPulse 1.8s ease-in-out infinite}      /* the same handle as the line in the 3D view */
.handle svg{width:26px;height:26px;stroke:var(--rock);stroke-width:2.4}
.handle.used{animation:none}
.handle:focus-visible{animation:none;outline:3px solid var(--crevasse,#327DA0)}
.handle-hint{position:absolute;white-space:nowrap;background:rgba(0,0,0,.66);color:#fff;font:600 12px/1 var(--sans);padding:6px 11px;border-radius:14px;pointer-events:none;top:calc(100% + 8px);left:50%;transform:translateX(-50%)}
.is-horiz .handle-hint{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}
.handle.used .handle-hint{display:none}
@media (prefers-reduced-motion:reduce){.handle,.v3d-handle{animation:none}}
/* satellite scene: rounded corners and a soft shadow; the red glacier box is the frame (not while framing a video) */
.scene-img{border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.45)}
.is-framing .scene-img{border-radius:0;box-shadow:none}
.is-framing .frame-label{display:none}      /* the outline stays in the download panes; only its label goes */
.frame-label{pointer-events:none}
.frame-label span{display:block;font:600 9.5px/12px var(--sans);letter-spacing:.09em;text-transform:uppercase;color:#fff;white-space:nowrap;text-shadow:0 0 3px rgba(0,0,0,.85),0 0 6px rgba(0,0,0,.6)}
/* static Sentinel-2 background for all of Switzerland, a little darker than the scene */
.leaflet-bgPane-pane{filter:brightness(1.12) saturate(1)}
.is-timelapse .layerbox{top:12px}
@media (min-width:721px){.is-horiz .layerbox{top:12px}}      /* stacked images, slider moving up and down: the year tags sit on the left, the top right corner is free */
.is-timelapse #tagA,.is-timelapse #tagB,.is-timelapse .divider,.is-timelapse .handle{display:none}
#tagT{display:none}
#tagT{max-width:calc(100% - 24px)}
.is-timelapse #tagT{display:block}
.tl-dots{display:none;align-self:center;padding:6px 8px 5px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.2);color:#fff;font-size:12px;font-weight:500}      /* the timelapse timeline and play button sit in the black dock, above its buttons */
.is-timelapse .tl-dots{display:block}
.tl-dots:empty{display:none!important}      /* One year has no timeline: no empty row with a line above the buttons */
.mapbar-row{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:2px}      /* the tools stay on one line; only phones let them wrap */
.tl2{width:min(300px,56vw)}
.tl2-ends{display:flex;justify-content:space-between;font-size:11px;font-weight:500;letter-spacing:0;opacity:.85;text-shadow:0 0 6px rgba(0,0,0,.6)}
.tl2-ends b{font-weight:500}
.tl2-track{position:relative;height:16px;margin-top:2px}
.tl2-track::before{content:'';position:absolute;left:0;right:0;top:6.5px;height:3px;border-radius:2px;background:rgba(255,255,255,.32)}
.tl2-fill{position:absolute;left:0;top:6.5px;height:3px;border-radius:2px;background:#fff}
.tl2-tick{position:absolute;top:2px;width:2px;height:12px;margin-left:-1px;background:rgba(255,255,255,.4)}
.tl2-tick.on{background:#fff}
.tl2-dot{position:absolute;top:0;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.5)}
.stage.mini .tl2{width:110px}.stage.mini .tl2-ends{font-size:9px}

.mapbar{position:absolute;left:50%;bottom:32px;transform:translateX(-50%);z-index:670;display:flex;flex-direction:column;align-items:stretch;gap:0;background:var(--sheet);border-radius:8px;padding:4px;box-shadow:0 2px 12px rgba(0,0,0,.25);max-width:calc(100% - 24px);overflow-x:auto}
.mapbar button{border:0;background:none;padding:6px 10px;border-radius:5px;cursor:pointer;font-size:14px;white-space:nowrap}
.mapbar button:hover{background:var(--firn)}
.mapbar button:disabled{opacity:.35;cursor:default;background:none}
.mapbar button[aria-pressed="true"]{background:var(--rock);color:#fff}
.mapbar .zoom{min-width:44px;text-align:center;font-variant-numeric:tabular-nums;font-size:13px;color:var(--moraine)}
.mapbar .sep{width:1px;height:20px;background:var(--rule);margin:0 4px;flex:none}
/* hint over the dock (.mapbar), not clickable */
/* hint under the year and its line, top left; not clickable */
.tilt-hint{position:absolute;left:14px;top:88px;z-index:650;color:#fff;font-size:12px;font-weight:500;line-height:1.3;text-shadow:0 1px 8px rgba(0,0,0,.7);pointer-events:none;max-width:calc(100% - 140px)}
.tilt-hint[hidden]{display:none}
.v3d{position:absolute;inset:0;z-index:700;background:#0b1220;color:#fff}
.v3d[hidden]{display:none}
.v3d canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.v3d-top{position:absolute;left:14px;right:14px;top:12px;pointer-events:none;z-index:2}
.v3d .v3d-layers{top:12px;right:12px;z-index:5;color:var(--rock);max-height:calc(100% - 90px);overflow-y:auto}
.v3d-over{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.layerbox .slider-row{margin:2px 0;font-size:12px}
.layerbox input[type=range]{width:100%;margin:0}
/* full screen from the 3D view (the map's toolbar is under it): the top row of the tools card; in full screen the exit button takes over */
.v3d-measure > #v3dFs{margin-bottom:4px;border-bottom:1px solid var(--rule);border-radius:6px 6px 0 0}
.v3d-measure > #v3dFs .fs-out{display:none}
.stage.is-full #v3dFs .fs-in,.app.visual-only #v3dFs .fs-in{display:none}
.stage.is-full #v3dFs svg.fs-out,.app.visual-only #v3dFs svg.fs-out{display:block}
.stage.is-full #v3dFs span.fs-out,.app.visual-only #v3dFs span.fs-out{display:inline}
/* in the 3D view the way out of full screen is that same row of the tools card, not a button in the corner */
.app.is-3d .full-exit{display:none!important}
.app.is-3d .stage.is-full .v3d-top,.app.is-3d.visual-only .v3d-top{right:250px}
@media (max-width:720px){.app.is-3d .stage.is-full .v3d-top,.app.is-3d.visual-only .v3d-top{right:8px}.v3d-top .v3d-year small:not(.v3d-special){white-space:nowrap}}      /* phone: the glacier name stays on one line */
@media (min-width:721px){.v3d-top{right:250px}}
@media (max-width:720px){.v3d .v3d-layers{top:64px;right:8px}}
.v3d-top .v3d-year{position:static;z-index:auto}      /* the same year tag as on the map: one big year, one small line under it */
.v3d-top > span{display:block;margin-top:5px;font-size:12px;font-weight:500;color:rgba(255,255,255,.78);text-shadow:0 1px 8px rgba(0,0,0,.6)}
.v3d-north{position:absolute;right:14px;bottom:64px;width:30px;z-index:2;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:1px;opacity:.7;--rot:0deg;font:600 10px/1 var(--sans);color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.v3d-north svg{width:24px;height:24px;fill:rgba(255,255,255,.85);stroke:rgba(0,0,0,.35);stroke-width:1;transform:rotate(var(--rot))}      /* the arrow turns with the camera; the N stays upright */
.v3d-north svg path{stroke-linejoin:round}
.v3d-msg{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;font-size:14px;color:#cfd9e3;pointer-events:none}
.v3d-bottom{position:absolute;left:14px;right:14px;bottom:12px;display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:1.4;color:#aebccb;pointer-events:none}
.v3d-bottom a{color:#cfe3f1;pointer-events:auto}
.n-short,.n-less,.v3d-top .h-short{display:none}
.n-full{display:none}.n-short{display:inline}      /* the note of the 3D view: one short line, "Details" opens the rest (phone and desktop) */
#v3dNote.open .n-full{display:inline}#v3dNote.open .n-short{display:none}#v3dNote.open .n-less{display:inline}
.stage::before{content:"";position:absolute;left:0;right:0;top:0;height:170px;z-index:640;pointer-events:none;background:linear-gradient(to bottom,rgba(8,14,18,.5),rgba(8,14,18,.22) 55%,rgba(8,14,18,0))}      /* one soft dark gradient along the top edge keeps white text readable over bright snow (no boxes) */
.is-framing .stage::before{display:none}
.v3d::before{content:"";position:absolute;left:0;right:0;top:0;height:170px;z-index:1;pointer-events:none;background:linear-gradient(to bottom,rgba(8,14,18,.5),rgba(8,14,18,.22) 55%,rgba(8,14,18,0))}
.v3d-measure{position:absolute;left:12px;top:106px;z-index:6;display:flex;flex-direction:column;gap:2px;background:var(--sheet);border-radius:8px;padding:4px;box-shadow:0 2px 12px rgba(0,0,0,.35)}
.v3d-measure > button,.v3d-photos .ph-btns button{min-height:36px;border:0;background:none;border-radius:6px;color:var(--rock);cursor:pointer;display:flex;align-items:center;gap:9px;padding:0 12px 0 8px;font:600 12.5px/1.2 var(--sans);text-align:left;white-space:nowrap}
.v3d-measure > button:hover,.v3d-photos .ph-btns button:hover,.v3d-photos .ph-btns button:focus-visible{background:var(--firn)}
.v3d-measure > button svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.v3d-measure > button[aria-pressed="true"]{background:var(--rock);color:#fff}
.v3d-measure > button:disabled{color:#A9B1B5;cursor:not-allowed}
.v3d-mhint{top:14px;z-index:7}
.v3d.measuring #v3dCanvas{cursor:crosshair}
@media (max-width:720px){.v3d-mhint{top:86px;font-size:12.5px;max-width:calc(100% - 16px);flex-wrap:nowrap;padding:4px 5px 4px 10px;gap:6px}.v3d-mhint #v3dMText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v3d-mhint button{min-height:30px;flex:none}.v3d-measure{top:70px}}
.n-more{pointer-events:auto;border:0;background:none;color:#cfe3f1;font:inherit;padding:0 2px;cursor:pointer}
.is-3d .leaflet-control-scale{display:none}      /* a map scale means little in perspective */
@media (max-width:720px){
  .v3d-top .h-full{display:none}.v3d-top .h-short{display:block}
}
@media (pointer:coarse),(max-width:950px) and (orientation:landscape) and (max-height:520px){      /* touch: never the mouse text (Shift, right-drag); the hint goes after the first touch of the picture */
  .v3d-top .h-full{display:none}.v3d-top .h-short{display:block;font-size:12px}
}
body.hint-done .v3d-top .h-full,body.hint-done .v3d-top .h-short{display:none}
.v3d-bottom [hidden]{display:none}
.v3d-div{position:absolute;z-index:4;touch-action:none;display:flex;align-items:center;justify-content:center}
.v3d-div[hidden]{display:none}
.v3d-div:not(.hz){top:0;bottom:0;left:calc(var(--s, .5) * 100%);width:48px;margin-left:-24px;cursor:ew-resize}
.v3d-div.hz{left:0;right:0;top:calc(var(--s, .5) * 100%);height:48px;margin-top:-24px;cursor:ns-resize}
.v3d-handle{width:46px;height:46px;border-radius:50%;background:#fff;color:#1d2a30;display:grid;place-items:center;box-shadow:0 2px 10px rgba(0,0,0,.5);animation:v3dPulse 1.8s ease-in-out infinite}
.v3d-handle svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.v3d-div.hz .v3d-handle svg{transform:rotate(90deg)}
.v3d-hint{position:absolute;white-space:nowrap;background:rgba(0,0,0,.66);color:#fff;font:600 12px/1 var(--sans);padding:6px 11px;border-radius:14px;pointer-events:none}
.v3d-div:not(.hz) .v3d-hint{top:calc(50% + 34px);left:50%;transform:translateX(-50%)}
.v3d-div.hz .v3d-hint{left:calc(50% + 36px);top:50%;transform:translateY(-50%)}
.v3d-div.used .v3d-hint{display:none}
.v3d-div.used .v3d-handle,.v3d-div:focus-visible .v3d-handle{animation:none}
.v3d-div:focus-visible .v3d-handle{outline:3px solid var(--crevasse,#327DA0)}
@keyframes v3dPulse{0%,100%{box-shadow:0 2px 10px rgba(0,0,0,.5),0 0 0 0 rgba(255,255,255,.6)}50%{box-shadow:0 2px 10px rgba(0,0,0,.5),0 0 0 12px rgba(255,255,255,0)}}
.v3d-lab{position:absolute;z-index:3;pointer-events:none;color:#fff;font-weight:800;font-size:clamp(26px,2.6vw,34px);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;padding:0;white-space:nowrap;text-shadow:0 1px 14px rgba(0,0,0,.65),0 0 3px rgba(0,0,0,.55)}      /* the year tag again, a little smaller, no box */
.v3d.cmp-v .v3d-lab{top:148px}      /* below the title, the hint line and the field-notes pill of the top left block, which they would cover when the line is near the left */
.v3d.cmp-v #v3dLabA{right:calc((1 - var(--s, .5)) * 100% + 30px)}
.v3d.cmp-v #v3dLabB{left:calc(var(--s, .5) * 100% + 30px)}
.v3d.cmp-h .v3d-lab{right:14px}      /* the horizontal slider: the years sit on the right of the view, above and below the line (clear of the full screen button, and of the Layers menu while it is open) */
.app.no-right .v3d.cmp-h .v3d-lab{right:56px}      /* the closed right panel is a red tab on the edge: the years stay clear of it */
.v3d.cmp-h:has(.v3d-layers:not(.min)) .v3d-lab{right:190px}
.v3d-lab small.v3d-lab-date{display:block;margin-top:4px;font-size:12px;font-weight:500;letter-spacing:0;opacity:.85}      /* the date of the picture, small under its year */
.v3d.cmp-h #v3dLabA{top:max(58px, calc(var(--s, .5) * 100% - 58px))}
.v3d.cmp-h #v3dLabB{top:max(116px, calc(var(--s, .5) * 100% + 12px))}
/* Historic photographs (3D view): a rail of thumbnails, the chosen photo over the picture, the credit under it */
.v3d-photo{position:absolute;z-index:2;pointer-events:none;box-shadow:0 0 0 1px rgba(255,255,255,.55),0 8px 30px rgba(0,0,0,.5);background:#000}
.v3d-photo[hidden]{display:none}
.v3d.photo-on .v3d-over{z-index:3}
.v3d.photo-on .v3d-layers{display:none}
.v3d.photo-on .v3d-top,.v3d.photo-on .v3d-bottom{display:none!important}      /* the hints (drag, pinch), the year line and the picture note belong to the 3D picture, not to the photograph; its own credit sits under it */
.v3d.photo-on #v3mPin,.v3d.photo-on #v3mDist,.v3d.photo-on #v3mArea,.v3d.photo-on #v3mClear,.v3d.photo-on #v3mSect,.v3d.photo-on #v3mSect2d,.v3d.photo-on .v3d-sect,.v3d.photo-on .v3d-mhint{display:none}      /* the measuring tools need the 3D picture itself, not the photograph over it: the card then holds only the photo buttons */
.v3d-photos{display:flex;flex-direction:column;align-items:stretch;margin-top:3px;padding-top:3px;border-top:1px solid var(--rule)}
.v3d.photo-on .v3d-photos{margin-top:0;padding-top:0;border-top:0}
.v3d-photos[hidden]{display:none}
@keyframes phInvite{0%,100%{box-shadow:0 0 0 0 rgba(200,50,42,.5)}50%{box-shadow:0 0 0 6px rgba(200,50,42,0)}}
.v3d-photos .ph-list{display:none;flex-direction:column;align-items:center;gap:6px;margin-top:4px;padding:2px;max-height:min(380px,calc(100vh - 420px));overflow-y:auto;scrollbar-width:thin}
.v3d-photos.open .ph-list{display:flex}
.v3d-photos .ph-btns{display:flex;flex-direction:column;align-items:stretch;gap:2px}
.v3d-photos .ph-btns:empty{display:none}
.v3d-photos .ph{position:relative;width:96px;height:70px;flex:none;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:#000;cursor:pointer;box-shadow:0 1px 6px rgba(0,0,0,.5)}
.v3d-photos .ph img{width:100%;height:100%;object-fit:cover;display:block;opacity:.88}
.v3d-photos .ph span{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.66);color:#fff;font:700 12px/1.4 var(--sans);text-align:center}
.v3d-photos .ph:hover img,.v3d-photos .ph:focus-visible img{opacity:1}
.v3d-photos .ph.on{border-color:#fff}
.v3d-photocap{position:absolute;z-index:5;left:96px;right:14px;bottom:50px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;background:rgba(8,14,18,.66);color:#fff;border-radius:8px;padding:6px 10px;font-size:11.5px;line-height:1.4}
.v3d-photocap[hidden]{display:none}
.v3d-photocap a{color:#cfe3f1}
.v3d-photocap .pc-full{display:none;flex:1 1 100%;margin-top:3px}.v3d-photocap.open .pc-full{display:block}.v3d-photocap.open .pc-short{display:none}
.v3d-photocap .n-more{background:none;margin:0;padding:0 2px;font:inherit;color:#cfe3f1}
.v3d-photocap button{border:0;border-radius:6px;background:rgba(255,255,255,.18);color:#fff;font:600 12px var(--sans);padding:5px 10px;cursor:pointer}
@media (max-width:720px){.v3d.photo-on .v3d-measure{top:84px;left:8px;right:8px;flex-direction:row;flex-wrap:wrap;align-items:center}.v3d.photo-on .v3d-measure > #v3dFs{margin-bottom:0;border-bottom:0;border-radius:6px}.v3d.photo-on .v3d-photos{flex-direction:row;flex-wrap:wrap;align-items:center;width:100%}.v3d-photos .ph-btns{flex-direction:row;flex-wrap:wrap}.v3d-photos .ph-list{flex-direction:row;max-height:none;width:100%;overflow-x:auto;overflow-y:hidden}.v3d-photocap{left:8px;right:8px;bottom:100px;padding:5px 8px}      /* above the Height slider and the note */.v3d-photocap .pc-t{display:none}}
.v3d-tip{position:absolute;z-index:6;pointer-events:none;max-width:220px;background:rgba(255,255,255,.97);color:#1d2a30;border-radius:8px;padding:7px 10px;font-size:12.5px;line-height:1.4;box-shadow:0 3px 14px rgba(0,0,0,.4)}
.v3d-tip[hidden]{display:none}
.v3d-camtip{width:176px;padding:6px 8px 7px;font-size:12px}
.v3d-camtip{cursor:pointer}
@media (pointer:coarse){.v3d-camtip{pointer-events:auto}}
.v3d-camtip img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:5px;margin-bottom:5px;background:#000}
.v3d-camtip small{display:block;margin-top:3px;font-size:10.5px;color:var(--moraine);line-height:1.35}
.v3d-bottom label{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#fff;pointer-events:auto}
.v3d-bottom input{width:130px}
.measure-hint{position:absolute;top:96px;left:50%;transform:translateX(-50%);z-index:670;background:var(--rock);color:#fff;border-radius:8px;padding:8px 8px 8px 14px;font-size:13.5px;display:none;align-items:center;gap:10px;box-shadow:0 2px 12px rgba(0,0,0,.3);max-width:calc(100% - 24px)}
.measure-hint.show{display:flex}
.measure-hint button{border:0;border-radius:5px;padding:5px 10px;cursor:pointer;background:#fff;color:var(--rock);font-weight:600}
.measure-hint button.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5)}
.measuring #map{cursor:crosshair}
.measuring .leaflet-outlines-pane *{pointer-events:none!important}
.layerbox{position:absolute;right:12px;top:104px;z-index:665;background:rgba(255,255,255,.95);border-radius:8px;padding:8px 12px 6px;box-shadow:0 2px 12px rgba(0,0,0,.25);max-width:220px}
@media (min-width:721px){.layerbox:not(.in-flow){max-height:calc(100% - 104px - 128px);overflow-y:auto;overscroll-behavior:contain}.is-timelapse .layerbox,.is-horiz .layerbox{max-height:calc(100% - 12px - 128px)}}      /* tall menu: stops above the bottom docks (timeline and tool bar) and scrolls inside */
.layerbox.nudge::after{content:"";position:absolute;inset:-4px;border:2px solid var(--accent);border-radius:11px;pointer-events:none;animation:lbNudge 1.8s ease-out infinite}
@keyframes lbNudge{0%{opacity:.9;transform:scale(.97)}100%{opacity:0;transform:scale(1.08)}}
.lb-tip{position:absolute;right:0;top:calc(100% + 10px);width:236px;background:var(--ink);color:#fff;font-size:12.5px;line-height:1.45;padding:10px 12px;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.lb-tip::before{content:"";position:absolute;right:22px;top:-6px;border:6px solid transparent;border-top:0;border-bottom-color:var(--ink)}
.lb-tip b{display:block;margin-bottom:2px}
.lb-tip button{display:block;margin-top:8px;border:1px solid rgba(255,255,255,.55);background:none;color:#fff;font:inherit;font-size:12px;padding:3px 10px;cursor:pointer}
.layerbox:not(.min) .lb-tip,.layerbox.in-flow .lb-tip{display:none}
.lb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;background:none;padding:0 0 6px;margin:0;font-weight:700;font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);cursor:pointer}
.lb-head svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;transition:transform .2s}
.trail-legend{margin:0 0 6px 26px;font-size:11.5px;color:var(--moraine);display:flex;flex-direction:column;gap:1px}
.trail-legend[hidden]{display:none}
.layerbox .sym{display:inline-flex;align-items:center;justify-content:center;width:26px;margin-right:10px;vertical-align:middle}      /* every layer row has its symbol in a column of this width: line = outline or trail, ring = point mark, dots = measurements, small picture = image or map */
.layerbox .sym .pin-sw{margin:0;vertical-align:baseline}
.layerbox .toggle input{flex:none}
.layerbox .toggle > span{display:flex;align-items:center;min-width:0}      /* a label that wraps keeps its second line beside the text, not under the symbol */
.layerbox .sym{flex:none}
.layerbox .label-sw{width:14px;height:16px;fill:currentColor}      /* a map pin for the place labels: not a letter, so it cannot be mistaken for the text next to it */
.layerbox .map-sw{display:block;width:26px;height:16px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.7),0 0 0 1.5px rgba(0,0,0,.25)}      /* small pictures of the map layers, drawn in the sprite at the top of the page */
.dots-sw{display:inline-flex;gap:2px}
.dots-sw b{width:6px;height:6px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.85),0 0 0 1.5px rgba(0,0,0,.3)}
.radar-legend .multi-row{display:flex;align-items:center;gap:7px}
.radar-legend .multi-dot{flex:none;box-sizing:border-box;width:9px;height:9px;margin:0 1px;border-radius:50%;background:#3f9bc4;border:1.5px solid #C8322A}      /* a radar dot with the red ring of the map */
.dots-sw b:nth-child(1){background:#bfe3f2}
.dots-sw b:nth-child(2){background:#3f9bc4}
.dots-sw b:nth-child(3){background:#5a1f63}
.area-sw{display:block;width:18px;height:12px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.7),0 0 0 1.5px rgba(0,0,0,.25)}
.area-sw.thick{background:linear-gradient(90deg,#c6e0ff,#4fa3d9 50%,#0b3d86)}
.trail-sw{display:inline-flex;gap:2px}
.trail-sw::before,.trail-sw::after,.trail-sw i{content:'';display:block;width:6px;height:0;border-top:3px solid #FDC200;border-radius:1px}
.trail-sw i{border-top-color:#FF0000}
.trail-sw::after{border-top-color:#0000FF}
.peak-sw{width:16px;height:12px;fill:currentColor}
.radar-legend{gap:3px}
.radar-legend .ramp{display:block;width:100%;max-width:180px;height:8px;border:0;border-radius:4px;background:linear-gradient(90deg,#bfe3f2,#3f9bc4 33%,#2a2a6b 66%,#5a1f63)}
.radar-legend .ticks{display:flex;justify-content:space-between;max-width:180px;font-size:10.5px}
.radar-legend .ticks b{font-weight:500}
.radar-legend small{font-size:11px;line-height:1.35}
.radar-tip{font-size:12px;line-height:1.4;padding:5px 8px}
.tongue-pin.max-pin{background:rgba(45,110,142,.25);box-shadow:0 0 0 2px var(--crevasse),0 2px 8px rgba(0,0,0,.5)}
.tongue-pin.max-pin span{background:var(--crevasse);text-transform:none;letter-spacing:0;font-size:12.5px;line-height:1.3}
.tongue-pin.max-pin span i{font-style:normal;font-weight:500;font-size:11.5px;opacity:.95}
.pin-sw.blue{background:rgba(45,110,142,.25);box-shadow:0 0 0 1.5px var(--crevasse)}
.pin-sw.amber{background:rgba(245,166,35,.3);box-shadow:0 0 0 1.5px #F5A623}
.layerbox .toggle[hidden]{display:none}
.sv-pin{width:20px;height:20px;box-sizing:border-box;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 4 7.5 6H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-2.500L15 4zm3 4.500a4.500 4.500 0 1 1 0 9 4.500 4.500 0 0 1 0-9zm0 2a2.500 2.500 0 1 0 0 5 2.500 2.500 0 0 0 0-5z'/%3E%3C/svg%3E") center/12px 12px no-repeat,#1A73E8;border:1.5px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.5);cursor:pointer}      /* a blue round camera, as in the Layers menu */
.sv-pin.sv-sw{display:inline-block;margin:0 3px;cursor:inherit;vertical-align:-3px}
.sv-pin.sel{width:24px;height:24px;margin:-2px 0 0 -2px;background-size:14px 14px;box-shadow:0 0 0 3px rgba(26,115,232,.35),0 1px 4px rgba(0,0,0,.5)}
.sv-panel{position:absolute;left:12px;bottom:76px;z-index:667;width:min(600px,calc(100% - 24px));height:min(420px,calc(100% - 190px));display:flex;flex-direction:column;background:var(--glass);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:8px;box-shadow:0 2px 14px rgba(0,0,0,.4);color:#fff;overflow:hidden}
.sv-panel[hidden]{display:none}
.sv-head{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 8px;font-size:12.5px}
.sv-title{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.sv-title b{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sv-title small{font-size:11px;color:rgba(255,255,255,.74)}
.sv-btn{flex:none;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:6px;background:rgba(255,255,255,.12);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.sv-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.sv-open{flex:none;font-size:11.5px;color:#8CC4E0;white-space:nowrap}
.sv-panel iframe{flex:1;width:100%;min-height:0;border:0;background:#111}
.is-framing .sv-panel{display:none}      /* open in 3D too (the panoramas are marks on the terrain there) */
.is-3d .sv-panel:not(.full){z-index:715}      /* the 3D view is z-index 700: the panel has to lie above it */
@media (max-width:720px){.sv-panel{left:8px;right:8px;width:auto;bottom:auto;top:54px;height:min(340px,calc(100% - 150px))}}
.sv-btn .fs-out,.sv-panel.full .sv-btn .fs-in{display:none}
.sv-panel.full .sv-btn .fs-out{display:block}
/* full screen: over the whole window (Safari on iPhone does not give an iframe its own full screen); the head keeps the safe areas clear of the notch and the home bar */
.sv-panel.full{position:fixed;inset:0;z-index:3000;width:auto;height:auto;border-radius:0;box-shadow:none;background:#000}
.sv-panel.full .sv-head{padding:calc(8px + env(safe-area-inset-top,0px)) calc(10px + env(safe-area-inset-right,0px)) 8px calc(10px + env(safe-area-inset-left,0px))}
.sv-panel.full iframe{margin-bottom:env(safe-area-inset-bottom,0px)}
.sv-btn{width:34px;height:34px}
@media (max-width:950px) and (orientation:landscape) and (max-height:520px){.sv-panel:not(.full){left:8px;right:auto;width:min(560px,calc(100% - 16px));top:8px;bottom:auto;height:calc(100% - 100px)}}
.tile-link{margin-top:5px;font:inherit;font-size:11.5px;color:var(--crevasse);background:none;border:0;padding:0;text-align:left;cursor:pointer}
.radar-legend img{display:block;max-width:105px;height:auto;box-sizing:content-box;background:rgba(255,255,255,.94);border-radius:6px;padding:4px 6px}      /* the picture from swisstopo has dark text: it needs a light plate on the dark menus */
.trail-legend span{display:flex;align-items:center;gap:7px}
.trail-legend i{display:inline-block;width:22px;height:0;border-top:2px dashed var(--c)}
.trail-legend i.sight-sw{border-top:6px solid #FDC200;border-radius:3px;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.18)}
.lb-more{display:none}      /* only used on phones, where the box scrolls; without this rule its unsized chevron shows huge on desktop */
.lb-more svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.lb-group{margin:8px 0 3px;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--moraine)}
.lb-group:first-child{margin-top:0}
.lb-titlerow{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lb-reset{font:inherit;font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);background:none;border:0;padding:0 2px;cursor:pointer}
.lb-reset:hover{text-decoration:underline}
.layerbox.min .lb-body{display:none}
.layerbox.min .lb-head{padding:0}
.layerbox.min .lb-head svg{transform:rotate(180deg)}
.gbox-num{position:relative;width:10px;height:10px;border-radius:50%;background:var(--accent);border:1.5px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.45);cursor:pointer}
.gbox-num .lab{position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:6px;white-space:nowrap;font:600 12.5px/1 var(--sans);color:#fff;text-shadow:0 0 3px rgba(0,0,0,.9),0 0 7px rgba(0,0,0,.7)}
.gbox-num .lab i{font-style:normal;font-weight:400;font-size:13px;font-variant-numeric:tabular-nums;color:#e6ddd3;margin-right:5px}      /* the number as in the glacier list of the left panel: plain, tabular, light */
.gbox-num.sel{background:#fff;border-color:var(--accent)}
.app.overview #map{background:#e4e8ea}
.app.overview .leaflet-bgPane-pane{opacity:.5}      /* the background fades towards light grey so the glaciers stand out (no filters: Safari) */
.app.overview #tongueBtn,.app.overview #fitBtn{display:none}
.pick-hint{position:absolute;inset:0;z-index:664;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.pick-hint.show{opacity:1;visibility:visible}
.pick-note{position:absolute;left:50%;top:60px;transform:translateX(-50%);max-width:calc(100% - 32px);box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:10px 16px 10px 12px;background:rgba(255,255,255,.96);color:#1f2a33;border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,.35);font:600 14px/1.3 var(--sans)}      /* the same red dot as the "1" of step 1 in the left panel */
.pick-note b{font-weight:800;color:var(--accent)}
.is-framing .pick-hint{display:none}
.gbox-tip{font-family:var(--sans);font-weight:600;font-size:12.5px}
.pin-sw{position:relative;display:inline-block;width:14px;height:14px;margin:0 2px;border-radius:50%;border:2px solid #fff;background:rgba(200,50,42,.25);box-shadow:0 0 0 1.5px var(--accent);vertical-align:-3px}
.pin-sw::after{content:'';position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#fff}      /* the white centre dot of the pin on the map */
.tongue-pin{position:relative;width:30px;height:30px;border-radius:50%;border:3px solid #fff;background:rgba(200,50,42,.25);box-shadow:0 0 0 2px var(--accent),0 2px 8px rgba(0,0,0,.5)}
.tongue-pin::after{content:'';position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:#fff}
.tongue-pin span{position:absolute;left:38px;top:50%;transform:translateY(-50%);white-space:nowrap;background:var(--accent);color:#fff;font:700 11.5px/1 var(--sans);letter-spacing:.04em;text-transform:uppercase;padding:4px 7px;border-radius:5px;box-shadow:0 1px 6px rgba(0,0,0,.4)}
.is-framing .tongue-pin{visibility:hidden}
.layerbox .toggle{font-size:12.5px;margin-bottom:4px}
.layerbox .hint{font-size:11.5px;margin:2px 0 2px}
.layerbox .hint:empty{display:none}
@media (max-width:720px){.layerbox{top:88px;right:8px;padding:6px 10px 4px}}
.notice{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:680;background:var(--sheet);border-radius:8px;padding:16px 18px;width:min(360px,calc(100% - 32px));max-width:none;font-size:14px;display:none;box-shadow:0 4px 20px rgba(0,0,0,.3)}
.notice.show{display:block}
.credits{display:none!important}      /* the bar on the picture is gone: its text is the first line in the Sources block (#creditsLive, js/05-map.js) */
.credits.old{position:absolute;left:0;right:0;bottom:0;z-index:665;background:rgba(255,255,255,.88);color:var(--rock);font-size:11px;line-height:20px;height:20px;padding:0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;border:0;text-align:left;width:100%}
.credits.open{height:auto;white-space:normal;padding:4px 10px}
.credits a{color:var(--crevasse)}
.leaflet-control-scale{margin-bottom:84px!important;margin-right:12px!important}
/* the scale bar: a white bar with end ticks and its length above, no box; a soft shadow keeps it readable on snow and on dark rock */
.tfs-scale{pointer-events:none;color:#fff;font:600 11.5px/1 var(--sans);text-shadow:0 1px 5px rgba(0,0,0,.75),0 0 2px rgba(0,0,0,.6);margin-right:14px!important}
.tfs-scale .ts-labels{position:relative;height:19px;margin-left:auto}
.tfs-scale .ts-labels span{position:absolute;bottom:6px;transform:translateX(-50%)}
.tfs-scale .ts-l1{left:50%}
.tfs-scale .ts-bar{position:relative;height:3px;margin-left:auto;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.5)}      /* as mapKey on the downloads: bar with a tick at each end */
.tfs-scale .ts-bar::before,.tfs-scale .ts-bar::after{content:'';position:absolute;bottom:0;width:2px;height:7px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.5)}
.tfs-scale .ts-bar::before{left:0}.tfs-scale .ts-bar::after{right:0}
.m-label{background:var(--rock);color:#fff;border:0;border-radius:5px;font-family:var(--sans);font-size:12.5px;font-weight:600;padding:3px 7px;box-shadow:none}
.m-label::before{display:none}
.leaflet-popup-content{font-family:var(--sans);font-size:13.5px;margin:10px 14px}

/* ---------- right ---------- */
.story{--pad:22px;background:var(--sheet);border-left:1px solid var(--rule);overflow-y:auto;padding:0 22px 40px;display:flex;flex-direction:column}
.story-empty{display:none}
.story.empty .story-empty{display:block}
.story-empty h2{margin:0 0 6px}
.story-empty p{margin:0 0 16px;color:var(--moraine);font-size:14px;line-height:1.5}
.story.empty > :is(h2,.sub,.lede,.tabs,.tab-panel){display:none}
.story.empty > .story-empty h2{display:block}
.story::before{content:'';display:block;flex:none;height:20px}      /* the top space is inside the scroll, so a sticky card header sits flush with the top edge */
.story > *{flex:none}
.story h2{font-size:25px;line-height:1.12;margin:7px 0 4px;font-weight:700;letter-spacing:-.018em;color:#0A1B33}
@media (min-width:721px){.story > h2{margin:-2px 0 0}.story > .sub{margin-bottom:4px}}      /* desktop: the glacier name sits on the line of 'Tongues from Space' and the place line on the line of the region name (left panel, 22 px high lines from y 22) */      /* sizes of the redesign: title 25, place 12.5, lede 13.5 */
.story .sub{color:var(--moraine);font-size:12.5px;margin:0}
.story .lede{font-family:var(--sans);font-size:13.5px;font-weight:400;line-height:1.55;color:#1C2A33;margin:12px 0 0}
.tabs{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--rule);margin:18px calc(-1 * var(--pad)) 0;padding:0 var(--pad)}      /* the line under the tabs runs the full width of the panel */
.tabs button{flex:none;border:0;background:none;padding:11px 0 10px;font-weight:600;font-size:13px;color:#0A1B33;border-radius:0;margin-bottom:-1px;cursor:pointer}
.tabs button:hover{color:#0A1B33;opacity:.8}
.tabs button[aria-selected="true"]{color:#0A1B33;opacity:1;box-shadow:inset 0 -2px 0 var(--accent);cursor:default}      /* text tabs: the chosen one dark with a 2 px red line under its text */
.tab-panel{display:flex;flex-direction:column;gap:10px}
.tab-panel[hidden]{display:none}
.cb-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cb-links .cb{flex:0 0 auto;padding:5px 10px;font-size:12.5px;border-radius:0}
.story details.sources{padding:20px 0;margin:0;border-top:1px solid var(--rule)}      /* Sources: a folded block of its own above About, the same on the explorer and the size page */
.story details.sources > summary .card-h{margin:0}
.story details.sources[open] > summary{margin-bottom:12px}
.about-wrap{margin-top:auto;padding-top:0}      /* with white space left in the panel, the invitation and About stay at the bottom */
.story > .tab-panel{margin-bottom:22px}
.gh-invite{display:flex;gap:10px;align-items:flex-start;text-decoration:none;color:var(--rock);background:var(--firn);border-radius:0;padding:10px 12px;margin:14px 0 0}
.gh-invite svg{width:22px;height:22px;flex:none;fill:var(--rock);margin-top:1px}
.gh-invite span{font-size:12px;line-height:1.45;color:var(--moraine)}
.gh-invite b{display:block;font-size:12.5px;color:var(--rock)}
.gh-invite em a{color:var(--crevasse);text-decoration:none}
.gh-invite span a{color:var(--crevasse);font-weight:600}
.gh-invite em{display:block;font-style:normal;color:var(--crevasse);margin-top:2px;font-weight:600}
details.about{margin-top:0}
details.about{margin:0 calc(-1 * var(--pad));padding:0 var(--pad);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}      /* full-width lines, one above and one below, nothing doubled */
.tab-panel > .dcard:last-child,.tab-panel > #gWater > .dcard{border-bottom:0}
details.about>summary{cursor:pointer;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--moraine);display:flex;align-items:center;justify-content:center;gap:10px;list-style:none;padding:18px 0}      /* centred, with the round i and no chevron */
details.about>summary .info-btn{display:inline-flex;flex:none}
details.about>summary{color:var(--accent);font-weight:700}
details.about>summary::after{border-color:var(--accent)}
details.about>summary::after{content:'';flex:none;width:7px;height:7px;border:solid var(--moraine);border-width:0 2px 2px 0;transform:rotate(45deg);margin:-3px 4px 0 8px;transition:transform .15s}
details.about[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
details.about>summary::-webkit-details-marker{display:none}
details.about[open]>summary{margin-bottom:6px;padding-bottom:12px}
details.about .note,details.about .src{margin:0 0 8px}
.story .dcard{position:relative;padding:0;margin:0;box-shadow:none;border-bottom:1px solid #EDF0F2}      /* flat chapters with a thin divider under each, as in the redesign */
.story .dcard + .dcard,#gWater .dcard,#gSpeed .dcard{margin-top:0}
.story .dcard > summary{padding:15px 0 14px}
.story .dcard[open] > summary{padding-bottom:8px;margin-bottom:0}
.story .dcard .dbody{padding:2px 0 18px}
.story .stats{gap:0}
.tab-panel[data-panel="figures"],.tab-panel[data-panel="look"],.tab-panel[data-panel="swiss"]{gap:0}      /* the stacked cards set their own overlap; a panel gap would add to it */
.story .dcard p{font-family:var(--sans);font-size:14px;line-height:1.55;margin:0}
.story .dcard p + p{margin-top:8px}
.story .dcard p + .cb-links{margin-top:10px}
.story .dcard small.src,.story .dcard .srcline{display:block;margin-top:6px;font-size:11px;line-height:1.4;color:var(--moraine);font-family:var(--sans)}
.story .dcard .tr-row:first-of-type{margin-top:0}
.story .fact{font-size:14px;line-height:1.55;margin:0 0 10px;padding:10px 12px;border-left:3px solid var(--accent);background:var(--firn);border-radius:0}
.story .fact.name{border-left-color:var(--crevasse)}
.story p.body small.srcline{display:block;color:var(--moraine);font-size:11.5px;margin-top:3px}
.story .fact small{display:block;color:var(--moraine);font-size:11.5px;margin-top:4px}
.story .fact.trail{border-left-color:var(--crevasse)}
.tr-row{margin:8px 0 0;font-size:13.5px;line-height:1.5} .tr-row b{display:inline-block;min-width:34px;color:var(--rock)}
.tr-row a{color:var(--crevasse);font-weight:600} .tr-t{display:block}
.tr-maps{display:block;font-size:12px;margin-top:2px} .tr-maps a{font-weight:500}
.story h3{color:var(--accent);font-size:13px;font-weight:600;margin:28px 0 10px;padding-top:16px;border-top:1px solid var(--rule)}
.story p.body{font-family:var(--serif);font-size:14px;line-height:1.55;margin:0 0 10px}
.stats{display:flex;flex-direction:column;gap:16px}
.stat-group h4{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;font-weight:600;color:var(--moraine)}
.stat-group .ico{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:0;background:var(--ice);color:var(--crevasse)}
.stat-group .ico svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stat-row{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.info-btn{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--accent);background:none;color:var(--accent);font:700 12px/1 Georgia,serif;font-style:italic;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}
.info-btn[aria-expanded="true"]{background:var(--accent);color:#fff}
.about-sec{margin:0 0 12px}
p.about-group{margin:16px 0 2px;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--moraine)}
details.about-ch{border-top:1px solid var(--rule)}
details.about-ch>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--rock);padding:12px 0;list-style:none;display:flex;justify-content:space-between;align-items:center}
details.about-ch>summary::-webkit-details-marker{display:none}
details.about-ch>summary::after{content:'';width:7px;height:7px;border:solid var(--moraine);border-width:0 2px 2px 0;transform:rotate(45deg);margin:-3px 3px 0 8px;transition:transform .15s}
details.about-ch[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
sup.fn{font-size:.75em;line-height:0;margin-left:2px;vertical-align:baseline;position:relative;top:-.5em;align-self:flex-start}      /* raised by position, so it also sits high inside the flex labels of the stat tiles */
sup.fn a{color:var(--crevasse);text-decoration:none;font-weight:700;padding:0 2px;font-size:1.1em}
sup.fn a:hover{opacity:.7}
/* tile labels are plain inline text (not a flex row), so the number follows the last word and is raised like a normal superscript */
.stat .k:not(.note){display:block}
.stat .k .mini{vertical-align:-1px;margin-right:5px}
.stat .k sup.fn,.stat .per sup.fn{position:static;align-self:auto;vertical-align:super;line-height:0;font-size:.75em;margin-left:2px}
.src-list{margin:0;padding-left:20px;font-size:11.5px;line-height:1.45;color:var(--moraine)}
.src-list li{margin:0 0 6px;scroll-margin:70px;cursor:default}
.src-list li.hit{background:#FFF3C4;outline:3px solid #FFF3C4;border-radius:3px}
.src-list li[data-back]{cursor:pointer}
.outside-note{margin:-6px 0 8px;padding-left:8px;border-left:2px solid var(--rule)}
.sym-txt small:only-child{font-size:14px;font-weight:700;color:var(--rock)}
.about-sec b{display:block;font-size:12.5px;color:var(--rock);margin:0 0 3px}
.about-sec p{font-size:12px;line-height:1.5;color:var(--moraine);margin:0 0 6px}
.about-sec h4{font-size:12.5px;font-weight:600;color:var(--rock);margin:14px 0 4px}
.about-sec h4:first-child{margin-top:2px}
.about-sec ul{margin:0 0 8px;padding-left:16px;font-size:12px;line-height:1.5;color:var(--moraine)}
.about-sec li{margin:0 0 5px}
.about-sec li:last-child{margin-bottom:0}
.src-list{margin:0;padding-left:16px;font-size:11.5px;line-height:1.5;color:var(--moraine)}
.src-list a{color:var(--crevasse)}
.stat{background:var(--firn);border-radius:0;padding:9px 10px;display:flex;flex-direction:column;gap:2px;min-width:0}
.stat .v{font-size:17px;font-weight:600;white-space:nowrap}
.stat .v small{font-size:12px;font-weight:500}
.stat .k{font-size:11.5px;color:var(--moraine);line-height:1.3;display:flex;align-items:center;gap:4px}
.stat .k.note{font-style:italic;display:block}
.stat .per{display:block;font-size:10.5px;color:var(--moraine);opacity:.85;margin:1px 0 0 16px}
.stat .k{overflow-wrap:break-word}      /* long labels (the water figures) wrap instead of running off the screen */
.stat .mini{display:inline-flex;width:12px;height:12px;flex:none}
.stat .mini svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.stat.loss .mini{color:var(--loss)}
.stat.loss .v{color:var(--loss)}
.stat-group .ico{flex:none}
.cum{margin:0 0 6px}
.cum svg{width:100%;height:auto;display:block;font-family:var(--sans);font-size:10px;fill:var(--moraine)}
.cum .lbl{font-size:10.5px;font-weight:700;fill:var(--rock)}
.cum .lbl.red{fill:var(--accent);font-size:13px}
.cum .lbl.mid{font-size:28px;font-weight:800;fill:var(--crevasse)}
.cum figcaption{font-size:11px;line-height:1.45;color:var(--moraine);margin-top:4px}
.cum .k{display:inline-block;width:10px;height:10px;border-radius:2px;vertical-align:-1px;margin:0 4px 0 0}
.water{margin:14px 0 4px;padding:16px;border-radius:0;background:linear-gradient(160deg,#EAF3F7,#F7FAFB);border:1px solid var(--rule)}
.dcard .water{margin:0;padding:0;border:0;background:none}
.dcard .water .w-hero-tile + .w-box{margin-top:8px}
.sub-note{font-size:12px;line-height:1.4;color:var(--moraine);margin:0 0 8px}
.story .dcard p.sub-note{font-family:var(--sans);font-size:12px;line-height:1.4;color:var(--moraine);margin:10px 0 0}
.story .dcard .sub-note:first-child{margin:0 0 8px}
.dcard .stat.hero .v{color:var(--accent)}
.water .w-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.water .w-chips button{border:1px solid var(--rule);background:#fff;border-radius:0;padding:5px 10px;font-size:11.5px;cursor:pointer;color:var(--rock)}
.water .w-chips button[aria-pressed="true"]{background:var(--crevasse);border-color:var(--crevasse);color:#fff}
.water .w-hero-tile .v{color:var(--crevasse)}
.w-box{background:var(--firn);border-radius:0;padding:9px 10px}
.water .w-big{font-size:16px;font-weight:700;color:var(--rock);margin:0 0 4px;font-variant-numeric:tabular-nums}
.water .w-text{font-size:11.5px;line-height:1.45;color:var(--moraine);margin:0 0 6px}
.water .w-icons{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 4px}
.water .w-icons svg{width:22px;height:22px}
.water .w-icons svg.lake{width:34px;height:22px}
.water .w-key{font-size:11px;color:var(--moraine)}
.water .w-live{margin-top:10px;padding:9px 10px;border-radius:0;background:var(--firn);font-size:11.5px;line-height:1.45;color:var(--moraine)}
.water .w-live b{color:var(--accent);font-variant-numeric:tabular-nums}
.bars{display:flex;flex-direction:column;gap:5px;margin:6px 0 8px}
.bar{display:grid;grid-template-columns:42px 1fr 50px;align-items:center;gap:8px;font-size:13px;font-variant-numeric:tabular-nums}
.bar .track{height:12px;background:var(--firn);border-radius:0;overflow:hidden}
.bar .fill{display:block;height:100%;background:#9DB3BE;border-radius:0}
.bar.in-range .fill{background:var(--loss)}
.bar.in-range span:first-child{font-weight:600}
.bar .v{text-align:right}
.cb-links{display:flex;flex-direction:column;gap:6px}
.cb{border:1px solid var(--rule);background:var(--sheet);border-radius:0;padding:8px 12px;cursor:pointer;text-align:left;font-size:13.5px}
.cb:hover{background:var(--firn)}
.src{font-size:11.5px;color:var(--moraine);line-height:1.5}
.src a{color:var(--crevasse)}

@media (max-width:1100px){
  .app{--lw:270px;grid-template-columns:var(--lw) minmax(0,1fr);height:auto}
  .story{grid-column:1 / -1;border-left:0;border-top:1px solid var(--rule)}
  .stage,.controls{height:82vh}
}
/* ---------- shared: action buttons, video export, gesture hint ---------- */
.act-link{display:block;text-align:center;text-decoration:none;color:inherit;flex:none}
.act-link:hover{background:var(--firn)}
.act{flex:1;border:1px solid var(--rule);background:var(--sheet);border-radius:0;padding:8px 10px;cursor:pointer;font-size:13px;font-weight:500}
.act:hover{background:var(--firn)}
.dl-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dl{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 6px 10px;border:1px solid var(--rule);border-radius:0;background:var(--sheet);cursor:pointer;text-align:center;color:var(--rock)}
.dl:hover{background:#E9EFF2;box-shadow:inset 0 -2px 0 var(--accent)}
.dl svg{width:26px;height:26px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-bottom:3px}
.dl b{font-size:13px;font-weight:700;line-height:1.2}
.dl small{font-size:11px;color:var(--moraine)}
.dl[hidden]{display:none}
#vizGroup > .act-link{margin-top:10px}
.mhead,.mobile-only{display:none}
.mapbar #fsBtn svg{display:block}
.mapbar button svg{display:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mapbar button[aria-pressed="true"] svg{stroke:#fff}
.gesture-hint{position:absolute;inset:0;z-index:690;display:flex;align-items:center;justify-content:center;background:rgba(20,30,36,.55);color:#fff;font-weight:600;font-size:16px;text-align:center;padding:20px;opacity:0;pointer-events:none;transition:opacity .25s}
.gesture-hint.show{opacity:1}
.video-frame{position:absolute;z-index:655;border:2px solid #fff;border-radius:4px;box-shadow:0 0 0 9999px rgba(10,18,22,.55);pointer-events:none}
.video-frame span{position:absolute;left:50%;top:-30px;transform:translateX(-50%);white-space:nowrap;background:var(--rock);color:#fff;font-size:12px;padding:3px 8px;border-radius:4px}
.video-frame span:empty{display:none}
.vf-boxes{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.vf-boxes canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.vs-opts .fk{display:flex;align-items:center;gap:8px}
.vs-guide{font-size:11px!important;line-height:1.35!important;color:var(--moraine)}
.vs-guide:empty{display:none}
.is-framing:not(.is-cmp-image) .divider,.is-framing:not(.is-cmp-image) .handle,.is-framing .layerbox,.is-framing .year-tag,.is-framing .mapbar .mtool{visibility:hidden}
.video-sheet{position:fixed;top:0;right:0;bottom:0;z-index:2000;width:340px;max-width:100%;overflow-y:auto;background:var(--sheet);border-left:1px solid var(--rule);box-shadow:-10px 0 32px rgba(0,0,0,.22);padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;animation:sheetIn .25s ease}      /* desktop: a fixed panel on the right edge, full height, over the story (or over the map where the story is folded away); the frame sits in the map between the left panel and this panel (visibleBox). Fades in, no slide: the frame is placed from its box */
@keyframes sheetIn{from{opacity:0}to{opacity:1}}
.video-sheet .hint{margin:0;font-size:11.5px;line-height:1.4}
.video-sheet .segment button{padding:5px 2px;font-size:13px;line-height:1.2}
.video-sheet .segment button{white-space:normal}
.video-sheet .segment button small{display:block;font-size:10.5px;font-weight:400;color:var(--moraine)}
.video-sheet .segment button[aria-pressed="true"] small{color:var(--rock)}
.vs-note{margin:0}
.video-sheet.is-swipe .vo-tl{display:none}
.video-sheet.is-3d #vfBox{display:none}
.is-framing #map{background:radial-gradient(1.2px 1.2px at 12% 22%,#fff,transparent),radial-gradient(1px 1px at 47% 61%,#cfe3ff,transparent),radial-gradient(1.6px 1.6px at 78% 18%,#fff,transparent),radial-gradient(1px 1px at 31% 84%,#fff,transparent),radial-gradient(1.3px 1.3px at 90% 72%,#ffe9c4,transparent),radial-gradient(.9px .9px at 64% 40%,#fff,transparent),#070b14;background-size:230px 230px}
.video-sheet:not(.is-3d) .vo-3d{display:none}
.vs-snap{flex:0 0 auto;align-self:flex-start;height:auto;min-height:0;padding:5px 12px;font-size:12.5px}
.vs-snap[hidden]{display:none}
.vf-h{display:none;position:absolute;width:16px;height:16px;margin:-8px 0 0 -8px;background:#fff;border:2px solid var(--rock);border-radius:50%;pointer-events:auto;touch-action:none;z-index:2}
.video-frame.custom .vf-h{display:block}
.vf-h[data-h=nw]{left:0;top:0;cursor:nwse-resize}.vf-h[data-h=n]{left:50%;top:0;cursor:ns-resize}.vf-h[data-h=ne]{left:100%;top:0;cursor:nesw-resize}.vf-h[data-h=e]{left:100%;top:50%;cursor:ew-resize}
.vf-h[data-h=se]{left:100%;top:100%;cursor:nwse-resize}.vf-h[data-h=s]{left:50%;top:100%;cursor:ns-resize}.vf-h[data-h=sw]{left:0;top:100%;cursor:nesw-resize}.vf-h[data-h=w]{left:0;top:50%;cursor:ew-resize}
.is-3d .video-frame{z-index:710}
.video-sheet.is-image .vo-video,.video-sheet:not(.is-image) .vo-image{display:none}
/* every on/off switch on every page: the "Older imagery" switch. A grey track with a white knob, the track turns blue when on (30 x 17, knob 13). Colours are the tokens --switch-off and --switch-on; on the dark glass menus they are set again below so the switch stays visible there (a mid blue the white knob shows on, a light grey track). The checkbox keeps its id and events. */
.toggle input[type=checkbox]{-webkit-appearance:none;appearance:none;flex:none;position:relative;box-sizing:border-box;width:30px;height:17px;margin:0;border:0;border-radius:9px;background:var(--switch-off);cursor:pointer;transition:background .15s}
.toggle input[type=checkbox]::after{content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.toggle input[type=checkbox]:checked{background:var(--switch-on)}
.toggle input[type=checkbox]:checked::after{transform:translateX(13px)}
.toggle input[type=checkbox]:disabled{opacity:.45;cursor:default}
.toggle input[type=checkbox]:focus-visible{outline:2px solid var(--switch-on);outline-offset:2px}
.layerbox:not(.in-sheet),.layerbox.in-flow{--switch-off:rgba(255,255,255,.32);--switch-on:#3F8FBF}      /* dark glass menus and the phone panel */
.layerbox.in-sheet:not(.in-flow){--switch-off:#D0D7DB;--switch-on:#327DA0}      /* the white card in the download pane */
/* sliders: a thin track, a small ringed dot, in the same outlined look (the two-handle year range keeps its own) */
input[type=range]:not(.yr-track input){-webkit-appearance:none;appearance:none;height:16px;background:none;cursor:pointer;accent-color:var(--crevasse)}
input[type=range]:not(.yr-track input)::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:color-mix(in srgb,var(--crevasse) 28%,transparent)}
input[type=range]:not(.yr-track input)::-moz-range-track{height:3px;border-radius:2px;background:color-mix(in srgb,var(--crevasse) 28%,transparent)}
input[type=range]:not(.yr-track input)::-webkit-slider-thumb{-webkit-appearance:none;box-sizing:border-box;width:14px;height:14px;margin-top:-5.5px;border-radius:50%;border:1.5px solid var(--crevasse);background:#fff}
input[type=range]:not(.yr-track input)::-moz-range-thumb{box-sizing:border-box;width:14px;height:14px;border-radius:50%;border:1.5px solid var(--crevasse);background:#fff}
.layerbox:not(.in-pane):not(.in-sheet) input[type=range]::-webkit-slider-runnable-track{background:rgba(255,255,255,.3)}
.layerbox:not(.in-pane):not(.in-sheet) input[type=range]::-moz-range-track{background:rgba(255,255,255,.3)}
.layerbox:not(.in-pane):not(.in-sheet) input[type=range]::-webkit-slider-thumb{width:11px;height:11px;margin-top:-4px;border-color:var(--accent)}
.layerbox:not(.in-pane):not(.in-sheet) input[type=range]::-moz-range-thumb{width:11px;height:11px;border-color:var(--accent)}
.plane-sw{display:block;width:18px;height:18px;flex:none;fill:currentColor}      /* the airplane of the special flights, in the layer menus and the dock */
.fd-t .plane-sw{fill:var(--accent)}
.left-stack{position:absolute;left:12px;top:90px;z-index:655;display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:calc(50% - 16px)}      /* under the year: "Then and now" and the special flights, in the map and in the 3D view */
.left-stack[hidden],.left-stack > [hidden]{display:none}
.is-framing .left-stack{visibility:hidden}
.ls-card{min-width:176px;padding:7px 10px 6px;border-radius:10px;background:rgba(255,255,255,.93);color:var(--ink,#0E1A22);box-shadow:0 2px 10px rgba(0,0,0,.28);font-size:12px}
.left-stack > .toggle{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:10px;margin:0;min-height:32px;padding-top:3px;padding-bottom:3px;font-weight:600}
.left-stack > .toggle > span{display:flex;align-items:center;gap:7px}
.left-stack > .toggle svg{width:17px;height:17px;flex:none;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.left-stack .fd-h{font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent);margin-bottom:3px}
.flights-dock .toggle{display:flex;justify-content:space-between;flex-direction:row-reverse;gap:10px;margin:0;min-height:30px;font-size:12px}
.flights-dock .fd-sub{min-height:24px;margin-left:14px;font-size:11.5px;color:#44525a}
.flights-dock .toggle small{display:block;font-size:10.5px;color:#66757E;line-height:1.2}
.vs-opts .toggle span{line-height:1.3}
.vo-outside{margin:4px 0 2px;font-size:13px;grid-column:1 / -1}
.vo-outside input[type=range]{width:100%;margin:0}
.vs-note:empty{display:none}
.vs-head{display:flex;justify-content:space-between;align-items:center}
.vs-head strong{font-size:13.5px;color:var(--accent);text-transform:uppercase;letter-spacing:.05em}
.vs-play{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;color:var(--ink);font-family:inherit}
.vs-play svg{flex:none;width:16px;height:16px;fill:var(--accent)}
.vs-share{display:flex;flex-direction:column;gap:6px}
.vs-share>button{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--rule);background:var(--sheet);color:var(--ink);border-radius:0;padding:8px 10px;cursor:pointer;font:inherit;font-size:13px;font-weight:500}
.vs-share>button:hover{background:var(--firn)}
.vs-share>button svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* the three buttons of the download pane share one size, radius and weight; Download is the red primary, Play and Share the quiet grey ones */
.video-sheet #vsPlay,.video-sheet #vsGo,.video-sheet .vs-share>#vsShare{box-sizing:border-box;width:100%;min-height:42px;padding:9px 12px;border:0;border-radius:var(--r-sm);font:inherit;font-size:14px;font-weight:600;line-height:1.2}
.video-sheet #vsPlay,.video-sheet .vs-share>#vsShare{background:var(--firn);color:var(--ink)}
.video-sheet #vsPlay:hover,.video-sheet .vs-share>#vsShare:hover{background:var(--rule)}
.video-sheet #vsGo{background:var(--accent)!important;color:#fff}
.video-sheet #vsPlay svg,.video-sheet .vs-share>#vsShare svg{width:18px;height:18px}
.vs-share form{display:flex;flex-direction:column;gap:8px}
.vs-share input[type=text]{border:1px solid var(--rule);border-radius:0;padding:8px 10px;font:inherit;font-size:13px;background:var(--sheet);color:var(--ink)}
.vs-share .toggle{font-size:13px;margin-bottom:0}
.vs-close{border:0;background:none;font-size:24px;line-height:1;cursor:pointer;padding:0 4px;color:var(--moraine)}
.vs-opts{display:grid;grid-template-columns:1fr;gap:2px;margin:0}
.vs-opts .toggle{margin:0;font-size:13px;min-height:30px}      /* every row of the pane has the same height, so the switches sit evenly (the facts row carries a dropdown) */
.vs-opts .toggle.speed-row{justify-content:space-between}
.vs-opts .speed{min-height:30px}
.vs-progress{height:6px;background:var(--firn);border-radius:3px;overflow:hidden;margin:0}
.vs-progress div{height:100%;width:0;background:var(--crevasse);transition:width .2s}

/* ---------- touch devices ---------- */
/* one finger scrolls the page (browser), two fingers pan and zoom the map (Leaflet) */
.two-finger #map.leaflet-container{touch-action:pan-x pan-y!important}
@media (pointer:coarse){
  .handle{width:48px;height:48px;margin:-24px 0 0 -24px}
}

/* ---------- phones: map first, compact controls directly under it ---------- */
@media (max-width:720px){
  .app{display:flex;flex-direction:column;height:auto}
  .mhead{display:block;order:0;background:var(--sheet);padding:10px 14px 8px;border-bottom:1px solid var(--rule);text-align:center}
  .mhead-logo{display:inline-block;vertical-align:-6px;height:26px;width:auto;margin-right:8px}
  .mhead strong{display:block;font-size:17px;font-weight:800;letter-spacing:-.01em;line-height:1.2;color:#0A1B33}
  .mhead strong span{display:inline;font-size:inherit;margin:0;color:#0A1B33}
  .mhead strong span.t1{color:#0A1B33}
  .mhead span{display:block;font-size:12.5px;color:var(--moraine);margin-top:2px}
  .stage{order:1;height:60vh;height:60dvh;min-height:330px}
  .controls{--pad:16px;order:2;height:auto;border-right:0;border-bottom:1px solid var(--rule);padding:14px 16px 18px;gap:18px}
  .story{--pad:18px;order:3;padding:0 18px 32px}
  .story::before{height:20px}
  #glacierList,#rankNote,.controls .brand>:not(.site-nav){display:none}      /* phone: only the page links (Home, Size, Gallery) stay of the brand block */
  .controls .brand{padding:0}
  .controls .brand .site-nav{margin-top:0;border-bottom:0;padding-bottom:0}
  .m-pick{display:flex!important}

  .year-tag{font-size:30px;top:10px;max-width:calc(50% - 16px)}
  .year-tag small{font-size:11px;line-height:1.25}
  #tagA{left:12px} #tagB{right:12px}
  .app.more-open .leaflet-control-scale{margin-bottom:138px!important}
  .mapbar{bottom:12px;padding:4px;gap:2px;flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100% - 16px);overflow:visible}
  .mapbar .sep,.mapbar .lbl{display:none}
  .mapbar button{min-width:42px;min-height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:20px}
  .mapbar button svg{display:block}
  .mapbar .mtool{display:none}
  .mapbar.more-open .mtool{display:inline-flex}
  .mobile-only{display:inline-flex}
  .layerbox{display:none;top:58px;right:8px;padding:10px 12px 6px;max-width:240px;max-height:calc(100% - 58px - 96px);overflow-y:auto;overscroll-behavior:contain}
  .app.more-open .layerbox{max-height:calc(100% - 58px - 150px)}
  .layerbox.open{display:block}
  .layerbox .toggle{font-size:14.5px;min-height:32px;margin:0}
  .layerbox .lb-group{margin-top:6px}
  .leaflet-control-scale{margin-bottom:84px!important}
  .credits{font-size:12px;line-height:22px;height:22px}
  .hint{font-size:13px}
  .years button{padding:6px 0;font-size:13px}
  .stack .years:not(.specials){grid-template-columns:repeat(8,1fr);gap:2px}      /* more to a row: with the Landsat years (1984 on) the lists were taller than the screen */
  .toggle{min-height:36px}
  .sym-pitch,.sym-bus{width:76px}.sym-pool{width:70px}.sym-tower{width:44px}
  .stat.hero .v{font-size:26px}
  .tune-row{grid-template-columns:13.5em minmax(48px,1fr)}
  .tune input[type=range]{height:28px}
  .fyi{padding:14px 16px}
  .measure-hint{top:56px;font-size:12.5px;padding:4px 5px 4px 10px;gap:6px;flex-wrap:nowrap;max-width:calc(100% - 16px)}
  .measure-hint #measureText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .measure-hint button{min-height:30px;padding:3px 10px;font-size:12.5px;flex:none}
  .video-sheet{top:auto;left:0;right:0;bottom:0;width:100%;max-height:44dvh;border-left:0;border-top:1px solid var(--rule);border-radius:0;box-shadow:none;animation:none;padding:10px 14px calc(12px + env(safe-area-inset-bottom,0px));gap:6px}
  .video-sheet .vs-help{display:none}
  .vs-opts{grid-template-columns:1fr 1fr;column-gap:10px}
  .vs-opts .toggle{min-height:30px;font-size:13px}
  .vs-opts .toggle.speed-row{grid-column:1 / -1}
  .video-sheet .segment button{min-height:36px;font-size:13px}
  #vsGo{min-height:42px;font-size:15px}
}

/* ---------- phones held sideways: map left, controls right ---------- */
@media (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .app{display:flex;flex-direction:column;height:auto}
  .stage{position:fixed;left:0;top:0;bottom:0;width:58vw;height:auto;min-height:0;z-index:1}
  .mhead{order:0} .controls{order:2} .story{order:3}
  .mhead,.story,.controls,.fyi-slot{margin-left:58vw}
  .stage-slot{display:contents}
  .mhead{display:block;padding:8px 14px;text-align:center}
  .mhead-logo{height:20px;vertical-align:-4px;margin-right:6px}
  .mhead strong{display:block;font-size:15px;font-weight:800}
  .mhead strong span{display:inline;font-size:inherit;margin:0;color:#0A1B33}
  .mhead strong span.t1{color:#0A1B33}
  .mhead span{display:block;font-size:11.5px;color:var(--moraine)}
  #glacierList,#rankNote,.controls .brand>:not(.site-nav){display:none}      /* phone: only the page links (Home, Size, Gallery) stay of the brand block */
  .controls .brand{padding:0}
  .controls .brand .site-nav{margin-top:0;border-bottom:0;padding-bottom:0}
  .m-pick{display:flex!important}
  .story,.controls{height:auto;border:0;border-top:1px solid var(--rule)}
  .year-tag{font-size:28px}
  .mapbar{bottom:10px;padding:4px;gap:2px;flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100% - 16px)}
  .mapbar .sep,.mapbar .lbl{display:none}
  .mapbar button{min-width:40px;min-height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:20px}
  .mapbar button svg{display:block}
  .measure-hint{top:48px;font-size:12px;padding:3px 5px 3px 10px;gap:6px;flex-wrap:nowrap;max-width:calc(100% - 16px)}
  .measure-hint #measureText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .measure-hint button{min-height:28px;padding:2px 9px;font-size:12px;flex:none}
  .mapbar .mtool{display:none}
  .mapbar.more-open .mtool{display:inline-flex}
  .mobile-only{display:inline-flex}
  .layerbox{display:none;top:54px;right:8px;max-height:calc(100% - 54px - 86px);overflow-y:auto}
  .layerbox.open{display:block}
  .layerbox.open.min .lb-body{display:block}      /* turned from portrait: the menu stays open with its content, not as an empty bar */
  .leaflet-control-scale{margin-bottom:80px!important}
  .app.more-open .leaflet-control-scale{margin-bottom:130px!important}
  .year-tag{max-width:calc(50% - 16px)}
  .year-tag small{font-size:10.5px;line-height:1.25}
  .video-sheet{top:auto;left:auto;right:0;bottom:0;width:42vw;max-height:100%;border-radius:14px 0 0 0}
}

/* Phones: the layer box scrolls, so its title and chevron stay pinned at the top, and a soft fade with a chevron at the bottom shows that more items follow */
@media (max-width:720px), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .layerbox{padding-top:0}
  .layerbox .lb-head{position:sticky;top:0;z-index:2;background:rgba(255,255,255,.98);padding:10px 0 6px;border-bottom:1px solid var(--rule)}
  .layerbox.min .lb-head{padding:10px 0;border-bottom:0}
  .lb-more{display:none;position:sticky;bottom:0;height:34px;margin-top:-34px;pointer-events:none;align-items:flex-end;justify-content:center;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.96) 70%)}
  .lb-more svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:1px}
  .layerbox.more .lb-more{display:flex}
  .fyi-slot{--slot-pad:18px;display:block;order:4;padding:0 18px 32px}
  .story details.sources > summary{padding:10px 0}
  .story .about-wrap .social,.story .about-wrap .gh-invite{display:none}      /* on phones they sit below the For Your Ice box (.phone-invite) */
  .phone-invite .gh-invite{text-align:center;justify-content:center;align-items:center;margin-top:10px}
  .phone-invite .social{margin-top:14px}
  /* the foot under the card: About, For Your Ice, social links, GitHub note, byline; one even gap between them */
  .fyi-slot{display:flex;flex-direction:column;align-items:stretch;gap:var(--sp-5);padding-bottom:calc(var(--sp-6) + env(safe-area-inset-bottom))}
  .fyi-slot > *{margin:0}
  .fyi-slot > details.about{margin:0 calc(-1 * var(--slot-pad));padding:0 var(--slot-pad)}      /* full-width lines, the text keeps the same space above and below */
  .fyi-slot > details.about > summary{padding:var(--sp-4) 0}
  .fyi-slot > details.about[open] > summary{padding-bottom:var(--sp-3)}
  .phone-invite{display:flex;flex-direction:column;align-items:center;gap:var(--sp-4)}
  .phone-invite .social,.phone-invite .gh-invite{margin:0}
}

/* Phones in portrait: the layer menu opens as a panel directly under the visual (thumb reach, the visual stays where it is), in two columns */
@media (max-width:720px) and (orientation:portrait){
  .layerbox.in-flow{position:static;order:1;max-width:none;width:auto;margin:0;border-radius:0;box-shadow:none;background:var(--sheet);border-bottom:1px solid var(--rule);padding:0 16px 10px;max-height:none;overflow:visible;display:none}
  .layerbox.in-flow.open{display:block}
  .layerbox.in-flow .lb-head{display:none}      /* the bar above the panel closes it, its chevron turned up */
  body.has-full .layerbox.in-flow .lb-head{display:flex;position:static;background:transparent;padding:10px 0 8px;border-bottom:1px solid var(--rule);font-size:14px}
  .layerbox.in-flow.min .lb-body,.layerbox.in-flow .lb-body{display:block;column-count:2;column-gap:18px;padding-top:6px}
  .layerbox.in-flow .lb-body > *{break-inside:avoid}
  .layerbox.in-flow .lb-group{break-after:avoid;break-after:avoid-column;-webkit-column-break-after:avoid;margin-top:8px}
  .layerbox.in-flow .lb-group:first-child{margin-top:0}
  .layerbox.in-flow .toggle{font-size:14px}
  .layerbox.in-flow .lb-more{display:none!important}
  body.pane-open #layersBtn{display:none!important}
  /* full screen: the layer menu rises from the bottom edge of the screen, with a clear way out at the top and bottom */
  body.has-full .layerbox.in-flow.open{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:2100;max-height:58dvh;overflow-y:auto;border-radius:14px 14px 0 0;border-bottom:0;box-shadow:0 -6px 24px rgba(0,0,0,.45);padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  body.has-full .layerbox.in-flow .lb-head{position:sticky;top:0;z-index:3;background:var(--sheet);touch-action:none;padding:16px 18px 10px}      /* side padding: title and chevron were flush with the screen edges */
  body.has-full .layerbox.in-flow.open .lb-head svg:last-child{transform:rotate(180deg)}      /* the sheet is open: the chevron points down, to close it */
  body.has-full .layerbox.in-flow .lb-head::before{content:'';position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--rule)}
  /* the create-and-share pane is a bottom sheet here: a handle, and the header can be dragged down (js/09-phones.js, swipeToClose) */
  .vs-head{position:relative;min-height:36px}
  .vs-close{min-width:44px;min-height:44px;margin:-8px -8px -8px 0}
  body.has-full .layerbox.in-flow .lb-head span::after{content:' · tap to close';font-weight:500;color:var(--moraine);font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- one card style for all stats (Stats and Switzerland tabs) ---------- */
.tab-panel{gap:4px}
.stats{gap:12px}
.stat.hero{padding-top:12px;padding-bottom:12px}
.stat.hero .v{font-size:32px;line-height:1.05}
.stat.hero .v small{font-size:15px}
.sym-row{display:flex;align-items:center;gap:14px;margin-top:10px}
.sym{flex:none;height:auto}
.sym-pitch,.sym-bus{width:96px}.sym-pool{width:90px}.sym-tower{width:72px}
.sym-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.sym-txt b{font-size:24px;line-height:1.1;color:var(--rock);font-weight:800}
.sym-txt small{font-size:12px;line-height:1.3;color:var(--moraine)}
.gwater .stat.hero.wide .v{color:var(--accent)}
.gspeed .stat.hero.wide .v{color:var(--crevasse)}
.wbox{display:flex;align-items:center;gap:10px;background:var(--firn);border-radius:0;padding:10px 12px;min-width:0}
.wbox .wi{flex:none;width:34px;display:grid;place-items:center}
.wbox .wi svg{width:34px;height:auto}
.wbox .v{display:block;white-space:nowrap;font-size:19px;font-weight:800;color:var(--crevasse);line-height:1.1}
.wbox .k{display:block;font-size:12px;color:var(--moraine);margin-top:2px}
details.coll > summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center}
details.coll > summary::-webkit-details-marker{display:none}
details.coll > summary::after{content:'';order:2;flex:none;width:7px;height:7px;margin:-4px 3px 0 0;border-right:2px solid #93A0A7;border-bottom:2px solid #93A0A7;transform:rotate(45deg);transition:transform .15s}
details.coll[open] > summary::after{transform:rotate(-135deg);margin-top:3px}
details.coll > summary h4,details.coll > summary .card-h{margin:0;flex:1 1 0;min-width:0;flex-wrap:nowrap}      /* the title may shrink and wrap inside its own box, so the chevron stays on the title row */
details.coll > summary .sum-v{order:1;flex:none;margin:0 10px 0 12px;font-size:19px;font-weight:600;letter-spacing:-.015em;color:#0E1A22;line-height:1;white-space:nowrap}
details.coll > summary .sum-v.loss{color:var(--accent)}
details.coll > summary .sum-v small{display:inline;margin-left:3px;font-size:12px;font-weight:500;letter-spacing:0;color:var(--moraine)}
details.coll[open] > summary{margin-bottom:10px;position:sticky;top:0;z-index:6;background:#fff;border-radius:0}      /* the chevron stays in reach while a long card is read */
details.coll[open] > summary .sum-v{display:none}
details.coll > summary:focus-visible{outline:2px solid var(--crevasse);outline-offset:3px;border-radius:6px}
.card,.stat-group,.water{background:var(--sheet);border:0;border-bottom:1px solid var(--rule);border-radius:0;padding:16px 0 16px;margin:0}      /* chapters of the right panel: grey title, chevron at the right, a thin divider under each, no box and no icon */
.card-h .ico,.stat-group .ico{display:none}
.card-h,.stat-group h4{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:0;border:0;font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--moraine)}
.card-h small{flex-basis:100%;margin:-4px 0 0;font-size:11px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--moraine)}
.card-h .ico,.stat-group .ico{display:none}
.card-h .ico.red{background:#F6DCDA;color:var(--accent)}
.card-h .ico svg,.stat-group .ico svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.stat{background:var(--firn);border-radius:0;padding:9px 10px}
.stat .v{font-size:14px;font-weight:600;color:var(--rock)}
.stat.loss .v{color:var(--accent)}
.stat .k{font-size:11px;color:var(--moraine)}
.bars{margin:0}
.bar{font-size:12px}
.cum{margin:0}
.cum figcaption{font-size:11.5px;color:var(--moraine);margin-top:6px;display:flex;align-items:center;flex-wrap:wrap;gap:4px 0}
.cum .k{width:13px;height:13px;border-radius:3px;margin:0 6px 0 0}
/* ---------- full screen (visual only) and the small floating window ---------- */
.stage-slot{display:contents}
.mini-ctl,.full-exit{display:none}
.full-exit svg,.mini-ctl svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.stage.is-full{position:fixed;inset:0;z-index:2000;height:auto!important;width:auto!important;margin:0!important;border-radius:0!important;box-shadow:none!important}      /* full screen is square: no rounded corners or shadow of the phone card showing the page behind */
.stage.is-full .full-exit{display:flex;position:absolute;top:calc(10px + env(safe-area-inset-top,0px));right:10px;z-index:700;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:50%;padding:0;background:var(--sheet);color:var(--rock);font-weight:700;font-size:13px;box-shadow:0 2px 10px rgba(0,0,0,.35);cursor:pointer}
body.has-full{overflow:hidden}
.stage.is-full .v3d-top{right:60px}      /* the exit button of full screen sits top right: the hint text stops before it */
@media (min-width:721px){
  .app.visual-only .full-exit{display:flex;position:absolute;top:14px;right:14px;z-index:700;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:50%;padding:0;background:var(--sheet);color:var(--rock);font-weight:700;font-size:13px;box-shadow:0 2px 10px rgba(0,0,0,.35);cursor:pointer}
}
@media (max-width:720px) and (orientation:portrait){
  /* phones, portrait: the visual is pinned at the top, as on the size page; the chevron makes it a short strip (the map or 3D view stays, the dock and the labels go) and back (js/09-phones.js, setMini) */
  .stage-slot{display:contents}
  .stage:not(.is-full){position:sticky;top:calc(env(safe-area-inset-top,0px) + 10px);z-index:7;order:1;height:52vh;height:52svh;min-height:300px}      /* a gap above, so the picture never sits on the top edge of the screen (one rule for the explorer and the size page) */
  .app .stage:not(.is-full){box-shadow:0 0 0 16px var(--firn),var(--lift)}
  body.scrolled .app .stage:not(.is-full){box-shadow:0 0 0 16px var(--firn),0 -400px 0 16px var(--firn),var(--lift)}      /* pinned: the band above reaches up past the status bar whatever the phone's safe area is (the cover below can miss on a real iPhone) */      /* a band in the page colour above (gap and status bar), beside and under the picture (16 px, also behind the rounded corners), so the text scrolling past it never shows there */      /* a band in the page colour above and beside the picture, so the text scrolling under it does not show in the gaps (the same as size.html) */
  .top-cover{display:block;position:sticky;top:0;z-index:6;flex:none;height:calc(env(safe-area-inset-top,0px) + 10px);margin-bottom:calc(-1 * (env(safe-area-inset-top,0px) + 10px));background:var(--firn);box-shadow:0 -600px 0 0 var(--firn);pointer-events:none}      /* a strip in the page colour that sticks at the very top, in the same coordinates as the pinned picture (which sits right under it): text scrolling past can never show above the picture, whatever the phone's safe area is */
  body.has-full .top-cover,body.pane-open .top-cover{display:none}
  body:not(.has-full)::before{content:'';position:fixed;z-index:6;left:0;right:0;top:-200px;height:calc(max(env(safe-area-inset-top,0px) + 10px, var(--stage-top,0px)) + 220px);background:var(--firn);pointer-events:none;-webkit-transform:translateZ(0);transform:translateZ(0)}      /* a real cover over the status bar and the gap above the picture: the box-shadow band was not drawn there on iPhone, so scrolled text showed through (explorer and size page share it) */
  details.coll[open] > summary{position:static}      /* phones: the page scrolls under the pinned picture; no sticky card header (it would stick under it) */
  .tilt-hint{display:none!important}      /* phones: no "Alt (Option) + drag up" hint; the 3D button is used there */
  .stage.mini:not(.is-full){height:22vh;height:22svh;min-height:150px}
  .stage.mini > *:not(#map):not(.mini-ctl):not(.year-tag):not(.divider):not(.handle):not(.leaflet-container):not(.v3d):not(.notice):not(.tags):not(#view3d){display:none!important}
  .stage.mini .mapbar,.stage.mini .pick-hint,.stage.mini .v3d-north{display:none!important}      /* size page: its docks and hint sit inside the views */
  .stage.mini .v3d-sect,.stage.mini .v3d-measure,.stage.mini .v3d-mhint,.stage.mini .v3d-top,.stage.mini .v3d-bottom,.stage.mini .v3d-layers,.stage.mini .v3d-tip,.stage.mini .v3d-msg,.stage.mini .v3d-lab,.stage.mini .v3d-div{display:none!important}      /* the 3D view in the strip: the picture only */
  .stage.mini .leaflet-control-scale{display:none}
  .stage.mini .notice{width:calc(100% - 16px);padding:8px 10px;font-size:12px;line-height:1.3;text-align:center;z-index:710}      /* a message from the controls below ("turn on the Sentinel-2 layer") shows in the strip too */
  .stage.mini .year-tag{font-size:17px;top:6px;max-width:48%}.stage.mini .year-tag small,.stage.mini .handle-hint{display:none}
  .stage.mini .handle{width:30px;height:30px;margin:-15px 0 0 -15px}
  .stage.mini .handle svg{width:18px;height:18px;flex:none}      /* the arrows fit the smaller handle (26 px arrows in a 30 px circle looked skewed) */
  .stage:not(.is-full) .mini-ctl{display:contents}
  #miniToggle{display:none}      /* the pill shows only once the page has scrolled or the picture is a strip (body.scrolled) */
  body.scrolled:not(.has-full) #miniToggle{display:inline-flex;align-items:center;gap:6px;position:absolute;z-index:700;left:auto;right:10px;transform:none;top:10px;bottom:auto;height:34px;width:auto;padding:0 14px 0 12px;border:0;border-radius:17px;background:rgba(255,255,255,.94);color:#1d2a30;font:600 13px/1 var(--sans);box-shadow:0 2px 8px rgba(14,26,34,.35);cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}      /* a labelled pill on the upper edge of the picture (tap, or swipe up = strip / down = large; js/09-phones.js) */
  body.scrolled:not(.has-full) #miniToggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
  body.scrolled:not(.has-full) #miniToggle::before{content:'Shrink view'}
  body.scrolled:not(.has-full) #miniToggle[aria-expanded="false"]::before{content:'Enlarge view'}
  html[lang="de"] body.scrolled:not(.has-full) #miniToggle::before{content:'Verkleinern'}      /* text in CSS is not in the page: each language gets its own line (docs/I18N.md) */
  html[lang="de"] body.scrolled:not(.has-full) #miniToggle[aria-expanded="false"]::before{content:'Vergrössern'}
  html[lang="fr"] body.scrolled:not(.has-full) #miniToggle::before{content:'Réduire'}
  html[lang="fr"] body.scrolled:not(.has-full) #miniToggle[aria-expanded="false"]::before{content:'Agrandir'}
  body.scrolled:not(.has-full) #miniToggle[aria-expanded="false"] svg{transform:none}
  body.scrolled:not(.has-full) #miniToggle::after{content:'';position:absolute;inset:-8px -14px}      /* a little extra touch margin around the pill */
  body.scrolled:not(.has-full) #miniToggle > *{pointer-events:none}
  body.pane-open .mini-ctl{display:none!important}
}
}
/* ---------- collapsible side panels (desktop and tablet) ---------- */
.panel-toggle{display:none}
@media (min-width:721px) and (min-height:521px){
  .panel-toggle{position:absolute;top:50%;z-index:672;width:22px;height:56px;margin-top:-28px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--rule);background:var(--sheet);color:var(--moraine);cursor:pointer;box-shadow:none}
  .panel-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
  #toggleLeft{left:0;border-left:0;border-radius:0 var(--r-sm) var(--r-sm) 0}
  #toggleRight{right:0;border-right:0;border-radius:var(--r-sm) 0 0 var(--r-sm)}
  .app{transition:grid-template-columns .35s ease}
  .controls,.story{min-width:0}
  .app.no-left{--lw:0px}
  .app.no-left .controls{visibility:hidden;border:0;overflow:hidden;transition:visibility 0s .35s}
  .app.no-left #toggleLeft svg{transform:rotate(180deg)}
  .app.no-right{--rw:0px}
  .app.no-right .story{visibility:hidden;border:0;overflow:hidden;padding-left:0;padding-right:0;transition:visibility 0s .35s}      /* no padding in the 0 px column, or the closed panel sticks out 44 px and the page gets a horizontal scrollbar */
  .app.no-right #toggleRight svg{transform:rotate(180deg)}
  /* collapsed, the right panel is an inviting tab on the edge: red, the text written downwards, a soft glow like the "Then and now" pill */
  .pt-label{display:none}
  .app.no-right #toggleRight{z-index:664;top:50%;margin-top:0;transform:translateY(-50%);width:38px;height:auto;max-height:86%;padding:12px 0;flex-direction:column;gap:10px;background:var(--accent);border-color:var(--accent);color:#fff;border-radius:var(--r-sm) 0 0 var(--r-sm);transition:width .15s,background .15s}
  .app.no-right #toggleRight.halo{animation:tabPulse 2s ease-in-out infinite}      /* the halo of the "Create and share" cue; only until the panel was opened once in this session */
  .app.no-right #toggleRight:hover{width:44px;background:#B22C25}
  .app.no-right #toggleRight .pt-label{display:block;writing-mode:vertical-rl;font:600 13.5px/1.5 var(--sans);letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:0}      /* line height 1.5: with 1 the descender of g and y was cut off by the overflow */
  @keyframes tabPulse{0%,100%{box-shadow:0 4px 18px rgba(200,50,42,.45),0 0 0 3px #fff}50%{box-shadow:0 6px 26px rgba(200,50,42,.7),0 0 0 3px #fff,0 0 0 9px rgba(200,50,42,.18)}}
  @media (prefers-reduced-motion:reduce){.app.no-right #toggleRight.halo{animation:none}}
}
@media (min-width:721px) and (max-width:1100px){#toggleRight{display:none}}

/* ---------- area card: two tiles and one wide change tile with a bar ---------- */
.stat.wide{grid-column:1 / -1}
.stat.wide .v{display:flex;align-items:baseline;gap:8px;font-size:22px;font-weight:800;letter-spacing:-.01em}
.stat.wide .v small{font-size:13px;font-weight:700}
.stat.wide.loss{background:#FBEDEC;padding:11px 12px}
.stat.wide.loss .k{color:#7a3a36}
.stat.wide:not(.loss) .v{font-size:20px}
.stat.wide.loss .v{color:var(--accent)}
.gwater .stat.wide .v{color:var(--crevasse)}
.abar{display:block;height:8px;border-radius:0;background:#F0C9C6;overflow:hidden;margin:6px 0 2px}
.abar i{display:block;height:100%;background:var(--crevasse);border-radius:0}
.abar-key{display:flex;justify-content:space-between;font-size:12px;color:#7a3a36}
.stat .k.note{font-size:10px;line-height:1.3}
.stat.wide.loss .k{font-size:12.5px}
.stat.wide.loss .k.note{font-size:10px}
/* the small title sits above the number */
.stat .k:not(.note){order:-2;margin-bottom:2px;font-weight:600}
.stat .per{order:-1;margin:-2px 0 3px 16px}

/* ---------- water chart readout and partly filled icons ---------- */
.cum-read{font-size:11.5px;line-height:1.45;color:var(--moraine);background:var(--firn);border-radius:0;padding:9px 10px;margin-top:8px;min-height:2.9em}
.cum svg{touch-action:pan-y;cursor:crosshair}
.w-part{position:relative;display:inline-block;line-height:0}
.w-part .ghost{opacity:.22;display:inline-block}
.w-part .fill{position:absolute;left:0;top:0;height:100%;overflow:hidden;display:block}
.w-part .fill svg{display:block}

/* while a download pane is open, the 3D view shows only what the download will contain */
body.pane-open .v3d-photos,body.pane-open .v3d-photo,body.pane-open .v3d-photocap,body.pane-open .v3d-measure,body.pane-open .v3d-sect,body.pane-open .v3d-mhint,body.pane-open .v3d-tip{display:none!important}
.social{display:flex;justify-content:center;gap:6px;margin-top:10px}
.social a,.social button{display:inline-flex;border:0;background:none;padding:0;cursor:pointer;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;color:var(--moraine);transition:color .15s,background .15s}
.social a:hover,.social a:focus-visible,.social button:hover,.social button:focus-visible{color:#fff;background:var(--accent)}
.social svg{width:16px;height:16px;fill:currentColor}

/* Sentinel-2 pictures switched off in the layers menu */
#map.sat-off .leaflet-paneA-pane, #map.sat-off .leaflet-paneB-pane, #map.sat-off .leaflet-paneT-pane { display: none !important; }

/* the menu blocks on the pictures let the picture show through a little (clear enough to read, no filters: Safari on iPhone ignores them) */
:root{--glass:rgba(10,18,24,.55)}
.layerbox:not(.in-flow),.mapbar,.v3d-measure{background:var(--glass)}
.stage.is-full .full-exit,.app.visual-only .full-exit,.app .full-play{background:var(--glass)}

/* "Then and now" and its camera symbols belong to One year: not in Compare and Timelapse */
.app:not(.photos-ok) .v3d-photos{display:none!important}      /* the dock; the Layers row stays, greyed, with the reason and a way to One year (.is-unavail) */
.layerbox .toggle.is-unavail{cursor:default}
.layerbox .toggle.is-unavail .sym{opacity:.45}
.layerbox .lb-unavail{margin:0 0 4px 0;line-height:1.4}
.layerbox .lb-go{display:inline;padding:0;border:0;background:none;font:inherit;font-weight:600;color:var(--accent);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.layerbox .lb-go:hover{color:var(--rock)}

/* pose tuning of a photograph (tune=1 in the address, see js/11-view3d.js) */
.v3d-tune{position:absolute;top:12px;right:12px;z-index:7;width:268px;background:var(--glass);border-radius:8px;padding:10px 12px 11px;font-size:12px;color:var(--rock);box-shadow:0 2px 12px rgba(0,0,0,.35)}
.v3d-tune[hidden]{display:none}
.v3d-tune b{display:block;font-size:12.5px;margin-bottom:4px}
.tn-row{display:grid;grid-template-columns:58px 1fr 62px;gap:6px;align-items:center;margin:2px 0}
.tn-row input{width:100%;margin:0}.tn-row output{text-align:right;font-variant-numeric:tabular-nums}
.tn-ov{display:block;margin:6px 0 4px;line-height:1.3}
.tn-final{font-variant-numeric:tabular-nums;font-size:11.5px;color:var(--moraine);margin:2px 0 6px;line-height:1.4}
.tn-bar{display:flex;gap:6px}.tn-bar button{flex:1;border:1px solid var(--rock);border-radius:6px;background:var(--sheet);padding:6px 8px;font:600 12px var(--sans);cursor:pointer}

/* the arrows that hide the side panels stay in front of the 3D view */
.is-3d .panel-toggle{z-index:710}
.is-3d.no-right #toggleRight{z-index:710}
@media (min-width:721px) and (min-height:521px){.layerbox:not(.min):not(.in-flow),.v3d .v3d-layers:not(.min){right:38px}.app.no-right .layerbox:not(.min),.app.no-right .v3d .v3d-layers:not(.min){right:56px}}      /* the open layer menu keeps clear of the collapse arrow (open panel: 22 px wide) */
@media (min-width:721px) and (min-height:521px){.layerbox.min:not(.in-flow){box-shadow:0 0 0 1px rgba(255,255,255,.4),0 2px 12px rgba(0,0,0,.35)}}      /* the closed menu button keeps a thin light edge, so it stays visible on dark ground (space, empty) */

/* in full screen (visual only) the arrows of the side panels are not shown */
.app.visual-only .panel-toggle,.stage.is-full .panel-toggle,body.has-full .panel-toggle{display:none!important}

/* the map toolbar's full screen button turns into "leave full screen" while in full screen; the separate corner button is not shown */
.mapbar #fsBtn svg.fs-out{display:none}
.stage.is-full .mapbar #fsBtn svg.fs-in,.app.visual-only .mapbar #fsBtn svg.fs-in{display:none}
.stage.is-full .mapbar #fsBtn svg.fs-out,.app.visual-only .mapbar #fsBtn svg.fs-out{display:block}
.stage .full-exit,.app.visual-only .full-exit{display:none!important}

/* ---------- the 3D tools as a bar at the bottom, like the map toolbar (these rules replace the card at the top left above) ----------
   Full screen, Measure length, Measure area, Then and now. "Then and now" drops up: a strip of thumbnails above the bar, with the camera switch and the footnote. With a photograph open the measuring tools
   give way to "Hide ice level" and "Back to 3D". */
.v3d-measure{left:50%;right:auto;top:auto;bottom:62px;transform:translateX(-50%);flex-direction:row;align-items:center;gap:2px;max-width:calc(100% - 20px)}
.v3d-measure > button{padding:0 12px 0 8px}
.v3d-measure > #v3dFs{margin:0 4px 0 0;border-bottom:0;border-radius:6px;border-right:1px solid var(--rule);padding-right:14px}
.v3d-photos{position:relative;flex-direction:row;align-items:center;margin:0 0 0 4px;padding:0 0 0 6px;border-top:0;border-left:1px solid var(--rule)}
.v3d.photo-on .v3d-photos{margin:0;padding:0;border-left:0}
.v3d.photo-on .v3d-measure > #v3dFs{border-right:1px solid var(--rule)}
.v3d-photos .ph-toggle .ph-chev{margin-left:2px;transform:rotate(180deg)}      /* the arrow points up: it opens upwards */
.v3d-photos.open .ph-toggle .ph-chev{transform:none}
.v3d-photos .ph-btns{flex-direction:row;align-items:center;gap:2px}
.v3d-photos .ph-btns button{padding:0 12px}
.v3d-photos .ph-drop{display:none;position:absolute;left:50%;bottom:calc(100% + 14px);transform:translateX(-50%);flex-direction:column;align-items:center;gap:4px;padding:8px 10px 6px;background:var(--glass);border-radius:10px;box-shadow:0 2px 14px rgba(0,0,0,.4);width:max-content;max-width:calc(100vw - 24px)}
.v3d-photos.open .ph-drop{display:flex}
.v3d-photos .ph-row{display:flex;flex-direction:row;align-items:center;gap:10px;max-width:100%}
.v3d-photos .ph-cams{flex:none;align-self:center;padding:0 10px 0 6px;border-right:1px solid var(--rule);border-radius:6px 0 0 6px;white-space:normal;max-width:132px;line-height:1.2}
.v3d-photos .ph-list{display:flex;flex:1 1 auto;min-width:0;flex-direction:row;align-items:center;gap:8px;margin:0;padding:2px;max-height:none;overflow-x:auto;overflow-y:hidden}
.v3d-photos .ph-note{margin:0;max-width:none;text-align:center;align-self:center;white-space:normal}
.v3d-photos:not(.open) .ph-drop{display:none}
.v3d-photocap{left:14px;right:14px;bottom:118px}
.v3d .v3d-layers{max-height:calc(100% - 200px)}
@media (max-width:720px){
  .v3d-measure{bottom:100px;flex-wrap:wrap;justify-content:center;width:max-content}
  .v3d.photo-on .v3d-measure{top:auto;left:50%;right:auto;bottom:100px;flex-direction:row;flex-wrap:wrap;align-items:center}
  .v3d.photo-on .v3d-photos{width:auto;flex-wrap:wrap}
  .v3d-photos{border-left:0;margin:0;padding:0}
  .v3d-photos .ph-drop{left:50%;max-width:calc(100vw - 16px)}
  .v3d-photos .ph-row{flex-direction:column;gap:4px}
  .v3d-photos .ph-cams{border-right:0;border-radius:6px;max-width:none}
  .v3d-photos .ph-list{max-width:calc(100vw - 40px)}
  .v3d-photocap{left:8px;right:8px;bottom:206px}
}

/* order in the 3D bar, left to right: Then and now, Measure length, Measure area, Full screen */
.v3d-photos{margin:0 4px 0 0;padding:0 6px 0 0;border-left:0;border-right:1px solid var(--rule)}
.v3d.photo-on .v3d-photos{margin:0;padding:0;border-right:0}
.v3d-measure > #v3dFs{margin:0 0 0 4px;padding:0 12px 0 14px;border-right:0;border-left:1px solid var(--rule)}
.v3d.photo-on .v3d-measure > #v3dFs{border-left:1px solid var(--rule)}
.v3d-photos:empty,.v3d-photos[hidden]{display:none}
@media (max-width:720px){.v3d-photos{border-right:0;margin:0;padding:0}.v3d-measure > #v3dFs{margin:0;padding:0 12px 0 8px;border-left:0}}
.tfs-scale .ts-labels span{white-space:nowrap}

/* the play button beside the timeline, in the map and in the 3D view */
.tl-row{display:flex;align-items:center;gap:10px}
.tl-play{display:none;flex:none;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--glass);color:var(--rock);cursor:pointer;place-items:center;box-shadow:0 2px 10px rgba(0,0,0,.35);pointer-events:auto}
.tl-play svg{width:16px;height:16px;fill:currentColor;stroke:none}
.tl-play{display:grid}      /* in the normal view too, not only in full screen */
.v3d-tl{flex:0 0 auto;width:0;min-width:100%;box-sizing:border-box;padding:6px 8px 5px;margin-bottom:4px;border-bottom:1px solid var(--rule);color:#fff;font-size:12px;font-weight:500}      /* the timeline is the first row of the black toolbar, above its buttons, as in the map dock; width 0 + min-width 100% so it fills the toolbar without making it wider */
.v3d-tl:empty{display:none}
.v3d-tl .tl-row{width:100%}
.v3d-tl .tl2{flex:1;width:auto;min-width:0}
.v3d-tl .tl-play{background:rgba(255,255,255,.18);color:#fff}
.v3d.photo-on .v3d-tl{display:none}
.v3d-top .tl2{width:min(300px,50vw)}

.gh-invite{overflow-wrap:break-word}      /* the long repository address wraps inside the narrower right panel */

.tfs-scale.at-layers{position:absolute;z-index:666;margin:0!important;float:none}      /* beside the LAYERS button */

/* ---------- the LAYERS button and menu in the style of the bottom bars: glass, an icon, a semibold label in dark text (desktop; phones keep their own layer sheet) ---------- */
.lb-head .lb-ico{display:none}
@media (min-width:721px) and (min-height:521px){
  .layerbox:not(.in-flow){padding:4px;box-shadow:0 2px 12px rgba(0,0,0,.35);max-width:232px}
  .layerbox:not(.in-flow) .lb-head{min-height:36px;padding:0 10px 0 8px;gap:9px;justify-content:flex-start;border-radius:6px;font:600 12.5px/1.2 var(--sans);letter-spacing:0;text-transform:none;color:var(--rock)}
  .layerbox:not(.in-flow) .lb-head:hover{background:var(--firn)}
  .layerbox:not(.in-flow) .lb-head .lb-ico{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:none;transform:none}
  .layerbox:not(.in-flow) .lb-head span{flex:1 1 auto;text-align:left}
  .layerbox:not(.in-flow) .lb-head svg:last-child{width:14px;height:14px;stroke-width:2;margin-left:4px}
  .layerbox:not(.in-flow) .lb-body{padding:2px 8px 4px;border-top:1px solid var(--rule);margin-top:2px}
  .layerbox.min:not(.in-flow) .lb-head{padding:0 10px 0 8px}
}

/* the play button sits level with the line of the timeline (not with the year labels above it), with some room before the line starts */
.tl-row{align-items:flex-start;gap:20px}
.tl2-ends{line-height:13px}      /* the same height in the map and in the 3D view, so the button can be placed against the line */
.tl-play{margin-top:6px}      /* labels 13 + gap 2 + half the track 8 = 23 down to the line, minus half the button (17) */

/* full screen: icon only in the bars (the words stay in the tooltip) */
#v3dFs span{display:none!important}
.v3d-measure > #v3dFs{padding:0 10px!important}
@media (max-width:720px){.v3d-measure > #v3dFs{padding:0 10px!important}}

/* the 3D view names its sources in the same bar as the map (js/11-view3d.js, updateCredits3D); the old note under the view is not shown */
.is-3d .credits{z-index:720}
#v3dNote{display:none!important}
.v3d-bottom{bottom:30px}
@media (max-width:720px){.v3d-bottom{bottom:32px}}

/* without the height slider and the old note, the bottom bar comes down to just above the sources line */
.v3d-measure{bottom:34px}
.v3d-photocap{bottom:92px}
@media (max-width:720px){.v3d-measure,.v3d.photo-on .v3d-measure{bottom:36px}.v3d-photocap{bottom:138px}}

/* the measuring tools show only their symbols, everywhere (the words are in the tooltips and the labels for screen readers) */
.mapbar .mtool .lbl,#v3dMeasure #v3mPin span,#v3dMeasure #v3mDist span,#v3dMeasure #v3mArea span,#v3dMeasure #v3mClear span,#v3dMeasure #v3mSect span,#v3dMeasure #v3mLayers span,#v3dMeasure #v3mSect2d span{display:none!important}
/* the Layers button in the 3D dock is for phones only (on desktop the Layers menu sits in the view); `.v3d-measure > button` would otherwise show it, as it is stronger than `.mobile-only` */
.v3d-measure > #v3mLayers{display:none}
@media (max-width:720px){.v3d-measure > #v3mLayers{display:flex}}
@media (max-width:950px) and (orientation:landscape) and (max-height:520px){.v3d-measure > #v3mLayers{display:flex}}
.mapbar .mtool{padding-left:10px;padding-right:10px}
.v3d-measure > #v3mDist,.v3d-measure > #v3mArea,.v3d-measure > #v3mClear,.v3d-measure > #v3mSect,.v3d-measure > #v3mSect2d,.v3d-measure > #v3mPin{padding:0 10px!important}
.mapbar .mtool svg{display:block}      /* on desktop the measuring buttons are now symbols only */

@media (max-width:720px){.tl-row{gap:12px}.tl-row .tl2,.v3d-top .tl2{width:min(300px,calc(100vw - 130px))}.tl-play{width:30px;height:30px;margin-top:8px}}

/* no separator line before the full screen button of the 3D bar */
.v3d-measure > #v3dFs,.v3d.photo-on .v3d-measure > #v3dFs{border-left:0!important;margin-left:0!important}

/* the 3D bar has the size and the place of the map toolbar: 40 px high, 32 px above the sources line */
.v3d-measure{bottom:32px}
.v3d-measure > button,.v3d-photos .ph-toggle,.v3d-photos .ph-btns button{min-height:32px}
@media (max-width:720px){.v3d-measure,.v3d.photo-on .v3d-measure{bottom:14px}}

body.pane-open .tfs-scale{display:none!important}      /* no scale bar while a download pane is open: it is not part of the picture */

body.pane-open .mapbar{display:none!important}      /* no toolbar under the picture while a download pane is open (zoom with the wheel or two fingers) */

/* the preview play button under the frame of the animation pane; while it plays the outside of the frame gets darker */
.vf-btns{position:absolute;left:50%;bottom:-52px;transform:translateX(-50%);width:max-content;display:none;gap:12px;pointer-events:none}      /* play (animations only) and close, side by side under the frame */
body.pane-open .video-frame .vf-btns{display:flex}
/* The map while a download pane is open shows only what the download prints: the Sentinel-2 / Landsat picture and (if ticked) the 1850 outline. Base maps, aerial images, thickness, speed, trails, the sight band, names and marks are left out of the picture, so they are left out of the preview (the layers stay as they are set and come back when the pane closes). */
body.pane-open:not(.x-bg) #map .leaflet-labels-pane,body.pane-open:not(.x-bg) #map .leaflet-tile-pane,body.pane-open:not(.x-bg) #map .leaflet-bg-pane,body.pane-open:not(.x-aerial) #map .leaflet-siA-pane,body.pane-open:not(.x-aerial) #map .leaflet-siB-pane,body.pane-open:not(.x-aerial) #map .leaflet-siT-pane,body.pane-open #map .leaflet-thick-pane,body.pane-open #map .leaflet-speed-pane,body.pane-open #map .leaflet-sight-pane,body.pane-open #map .leaflet-marker-pane,body.pane-open #map .leaflet-shadow-pane,body.pane-open #map .leaflet-tooltip-pane,body.pane-open #map .leaflet-popup-pane,body.pane-open:not(.x-bg) #map .leaflet-flights-pane{display:none!important}
.vf-play{position:static;width:40px;height:40px;border:0;border-radius:50%;padding:0;display:none;place-items:center;background:rgba(150,156,160,.92);color:#fff;cursor:pointer;pointer-events:auto;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.vf-play svg{width:18px;height:18px;fill:currentColor;stroke:none}
.vf-close svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.video-frame>.vf-close{position:absolute;right:0;top:-48px;width:34px;height:34px}      /* the cross sits above the top right corner of the outline */
.vf-btns>.vf-close{position:static;margin-right:4px}      /* the cross sits in the row of buttons under the frame, left of the layers symbol (js/vf-close-dock.js), on every screen size */
.vf-play:hover{background:rgba(120,126,130,.96)}
.vf-fmt{width:40px;height:40px;border:0;border-radius:50%;padding:0;display:none;place-items:center;background:rgba(150,156,160,.92);color:#fff;font:700 11.5px/1 var(--font,inherit);cursor:pointer;pointer-events:auto;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.vf-fmt svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.vf-fmt:hover{background:rgba(120,126,130,.96)}
.vf-fmt[aria-pressed="true"]{background:#fff;color:var(--rock)}
body.pane-open .video-frame .vf-fmt{display:grid}
.vf-btns .vf-fmt+.vf-play{margin-left:6px}
.video-frame.in-btns .vf-btns{bottom:10px}      /* a frame that reaches the picture's bottom edge carries its buttons inside */
.dock-dl svg,.mapbar .dock-dl svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mapbar .dock-dl,.v3d-measure .dock-dl{display:inline-flex;align-items:center;justify-content:center}
@media (max-width:720px){.dock-dl-desk{display:none!important}}      /* the explorer's dock download symbol is for desktop: phones have the Your visual button in step 3 (the size page keeps its symbol on phones) */
      /* full screen button beside the ratios: the arrows turn inward while it is on */      /* the ratio choices, a gap, then play and close */
body.pane-open .video-frame .vf-play{display:grid}      /* a play button hidden by the page (a picture, not an animation) stays hidden: its inline style wins */
.video-frame{transition:box-shadow .3s}
body.vf-edge,body.vf-edge *{cursor:move!important}      /* the pointer is on the outline of the custom frame: it can be dragged as a whole */
.video-frame.custom{touch-action:none}
.video-frame.playing{box-shadow:0 0 0 9999px rgba(6,10,13,.88)}

/* 3D view with a download pane open: the titles, labels and menus on the picture go, only the picture and the frame stay (the frame draws its own labels) */
body.pane-open .v3d-top,body.pane-open .v3d-lab,body.pane-open:not(.x-layers) .v3d-layers,body.pane-open .v3d-bottom,body.pane-open .v3d-tune,body.pane-open .v3d-camtip,body.pane-open .v3d-tl{display:none!important}
body.pane-open .v3d-year{display:none!important}
body.pane-open .app.is-3d .v3d-hint,body.pane-open .app.is-3d #videoFrameNote{display:none!important}      /* no 'zoom out' note or slider hint outside the frame in 3D */

/* the first and last year are centred over their ticks */
.tl2-ends{position:relative;display:block;height:13px}
.tl2-ends b{position:absolute;top:0;white-space:nowrap;transform:translateX(-50%)}
.tl2-ends b:first-child{left:0}.tl2-ends b:last-child{left:100%}
.tl-row{padding-left:0}
.tl2{margin-right:16px}

/* before a glacier is chosen the layer menu shows only what applies to the overview */
.app.no-glacier .layerbox .gl-only{display:none!important}

/* the figure tiles of the stat cards: one short line for the label, the number, and the period (and the uncertainty) in a small chip that appears when the tile is hovered or focused (also its tooltip) */
.stat{position:relative}
.stat:not(.wide) .k:not(.note){display:block;white-space:normal;overflow:visible}      /* a long label wraps in its tile instead of being cut off */
.stat:not(.hero) .v{font-size:15px}
.stat.has-per .per,.wbox.has-per .per,.w-box.has-per .per{position:absolute;top:-9px;right:8px;z-index:3;margin:0;padding:2px 8px;border-radius:999px;background:var(--rock);color:#fff;font-size:10.5px;font-weight:600;line-height:1.3;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(3px);transition:opacity .15s,transform .15s;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.stat.has-per:hover .per,.stat.has-per:focus-visible .per,.wbox.has-per:hover .per,.wbox.has-per:focus-visible .per,.w-box.has-per:hover .per,.w-box.has-per:focus-visible .per{opacity:1;transform:none;pointer-events:auto}      /* hover or keyboard focus only: a click does not leave the chip standing */
.stat.has-per{cursor:default;outline:none}
.stat.has-per::after{content:"";position:absolute;right:8px;bottom:8px;width:5px;height:5px;border-radius:50%;background:var(--moraine);opacity:.35}      /* a small dot: there is more to see on hover */

/* the water boxes fit their tile: a smaller icon, the unit small beside the number, a chip on hover with what it means */
.wbox{position:relative;gap:8px;padding:9px 10px}
.wbox .wi,.wbox .wi svg{width:28px}
.wbox > div{min-width:0}
.wbox .v{font-size:18px}
.wbox .v small{font-size:12px;font-weight:700}
.wbox .k{font-size:11.5px}
.wbox.has-per{outline:none;cursor:default}
.wbox.has-per .per{white-space:normal;width:max-content;max-width:210px;right:6px;top:-12px}

/* the chip is centred over its tile and wraps, so a long text never leaves the panel */
.stat.has-per .per,.wbox.has-per .per,.w-box.has-per .per{left:50%;right:auto;width:max-content;max-width:188px;white-space:normal;text-align:center;border-radius:10px;transform:translate(-50%,3px)}
.stat.has-per:hover .per,.stat.has-per:focus-visible .per,.wbox.has-per:hover .per,.wbox.has-per:focus-visible .per,.w-box.has-per:hover .per,.w-box.has-per:focus-visible .per{transform:translate(-50%,0);pointer-events:auto}

/* the little dot lights up (red, with a soft glow) while its tile is hovered or focused */
.stat.has-per::after{transition:opacity .15s,background .15s,box-shadow .15s,transform .15s}
.stat.has-per:hover::after,.stat.has-per:focus-visible::after{background:var(--accent);opacity:1;box-shadow:0 0 0 3px rgba(200,50,42,.22);transform:scale(1.25)}
.wbox.has-per::after{content:"";position:absolute;right:8px;bottom:8px;width:5px;height:5px;border-radius:50%;background:var(--moraine);opacity:.35;transition:opacity .15s,background .15s,box-shadow .15s,transform .15s}
.wbox.has-per:hover::after,.wbox.has-per:focus-visible::after{background:var(--accent);opacity:1;box-shadow:0 0 0 3px rgba(200,50,42,.22);transform:scale(1.25)}

/* smaller type in the stat cards of the narrower right panel, so numbers and labels fit their boxes */
.sym-row{gap:10px}
.sym-pitch,.sym-bus{width:76px}.sym-pool{width:72px}.sym-tower{width:56px}
.sym-txt b{font-size:19px}
.sym-txt small{font-size:11px}
.stat.hero .v{font-size:26px}
.stat.hero .k{font-size:11px}
.stat.hero .k.note{font-size:10px}
.wbox .v{font-size:16px}
.wbox .v small{font-size:11px}
.wbox .k{font-size:10.5px;line-height:1.25}
.wbox .wi,.wbox .wi svg{width:24px}
.wbox{gap:7px;padding:8px 9px}

.tile-link{text-decoration:none}

/* the right panel: sentences are justified; buttons centre their text */
.story p,.story .dbody p,.story .about-sec p,.story .gh-invite span,.story .tr-row,.story .tr-t,.story .tr-maps,.story .cum-read,.story .w-live,.story .w-text,.story .span-note,.story .sub-note,.story .note,.story .srcline,.story small.src{text-align:left;hyphens:manual;-webkit-hyphens:manual}      /* left-aligned: in a narrow column, justified text opens gaps between the words */
.story .sub{text-align:left}
.story .lede{text-align:left}
.story .stat .k,.story .stat .v,.story .tr-row,.story .src-list li,.story small.src{text-align:left}
.story p.sub{text-align:left}
.cb{text-align:center;display:flex;align-items:center;justify-content:center}
.story .tile-link{text-align:left}

/* Switzerland tab: the same tiles as under Stats (same sizes and colours), the long texts in the hover chip, the dot that lights up */
.stat.hero.wide.has-per .per{max-width:230px}
.stat.has-per.hero::after,.w-box.has-per::after,.stat.wide.has-per::after{content:"";position:absolute;right:9px;bottom:9px;width:5px;height:5px;border-radius:50%;background:var(--moraine);opacity:.35;transition:opacity .15s,background .15s,box-shadow .15s,transform .15s}
.stat.has-per.hero:hover::after,.stat.has-per.hero:focus-visible::after,.w-box.has-per:hover::after,.w-box.has-per:focus-visible::after,.stat.wide.has-per:hover::after,.stat.wide.has-per:focus-visible::after{background:var(--accent);opacity:1;box-shadow:0 0 0 3px rgba(200,50,42,.22);transform:scale(1.25)}
.stat.wide.has-per{outline:none;cursor:default}
.w-box{position:relative;background:var(--firn);border-radius:0;padding:9px 10px;outline:none;cursor:default}
.water .w-big{font-size:15px;font-weight:600;color:var(--rock);line-height:1.25}
.water .w-key{font-size:10.5px;color:var(--moraine)}
.water .w-hero-tile .v{font-size:26px;font-weight:800;color:var(--crevasse)}
.water .w-hero-tile .k{font-size:11px;font-weight:600;color:var(--moraine)}
.water .w-icons svg{width:20px;height:20px}.water .w-icons svg.lake{width:30px;height:20px}

/* a chip never opens upwards where the tile is the first of its card (the card above would cut it off): it opens over the lower edge instead */
.stat-row > .stat:first-child.has-per .per{top:calc(100% - 6px);bottom:auto}
.water .stat.w-hero-tile.has-per .per{top:calc(100% - 6px)}
.stat.has-per .per,.wbox.has-per .per,.w-box.has-per .per{z-index:9}

.has-per .per sup.fn a,.has-per .per a{color:#9fd0f0}      /* source numbers in the dark chip stay readable */

/* the four comparison choices are centred */
.water .w-chips{justify-content:center}

/* ---------- teaser film (js/13-teaser.js) ---------- */
.teaser-btn{display:flex;width:fit-content;margin-left:auto;margin-right:auto;align-items:center;gap:6px;margin-top:8px;padding:5px 11px 5px 9px;border:1px solid var(--rule);border-radius:0;background:var(--sheet);color:var(--accent);font-size:12.5px;font-weight:700;cursor:pointer}
.teaser-btn svg{width:13px;height:13px;fill:currentColor}
.teaser-btn:hover{border-color:var(--accent)}
.brand-btns{display:flex;justify-content:center;gap:8px;margin-top:8px}
.brand-btns .teaser-btn{margin:0}
a.teaser-btn{text-decoration:none}
a.teaser-btn svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.teaser{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;background:#0A1322;opacity:0;transition:opacity .5s}
.teaser.on{opacity:1}
.teaser video{display:block;width:100%;height:100%;object-fit:contain;cursor:pointer}
.teaser-skip{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));right:14px;padding:7px 16px;border:1px solid rgba(255,255,255,.4);border-radius:99px;background:rgba(10,19,34,.55);color:#fff;font-size:13.5px;font-weight:700;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.teaser-skip:hover{background:rgba(10,19,34,.8)}
.teaser-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.16)}
.teaser-bar i{display:block;height:100%;width:0;background:var(--accent)}
.teaser-end{position:absolute;left:0;right:0;bottom:calc(9% + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding:0 16px}
.teaser-go,.teaser-again{padding:11px 24px;border-radius:99px;font-size:15px;font-weight:800;cursor:pointer}
.teaser-go{border:0;background:var(--accent);color:#fff;box-shadow:0 8px 28px rgba(200,50,42,.5)}
.teaser-again{border:1px solid rgba(255,255,255,.5);background:rgba(10,19,34,.55);color:#fff}
body.teaser-on{overflow:hidden}
.teaser-stage{display:contents}
.teaser-ctl{display:none}
@media (min-width:900px) and (hover:hover){
  .teaser{background:rgba(10,19,34,.55);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
  .teaser-stage{display:block;position:relative;width:min(960px,calc(100% - 160px),calc((100vh - 120px) * 16 / 9));border-radius:10px;overflow:hidden;box-shadow:0 20px 70px rgba(0,0,0,.5)}
  .teaser video{width:100%;height:auto;aspect-ratio:16/9;border-radius:0;box-shadow:none}
  .teaser-bar{display:none}
  /* Skip sits under the film, in the middle */
  .teaser-skip{top:calc(50% + min(960px,100% - 160px,(100vh - 120px) * 16 / 9) * 9 / 32 + 16px);right:auto;left:50%;transform:translateX(-50%)}
  /* play/pause, time and a scrubbable progress bar over the foot of the film: shown on hover, focus and while paused */
  .teaser-ctl{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:26px 16px 12px;background:linear-gradient(transparent,rgba(10,19,34,.75));opacity:0;transition:opacity .2s}
  .teaser-stage:hover .teaser-ctl,.teaser-ctl:focus-within,.teaser.paused .teaser-ctl{opacity:1}
  .teaser-pp{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;cursor:pointer}
  .teaser-pp:hover{background:var(--accent)}
  .teaser-pp svg{width:16px;height:16px;fill:currentColor}
  .teaser-pp .pp-play,.teaser.paused .teaser-pp .pp-pause{display:none}
  .teaser.paused .teaser-pp .pp-play{display:inline}
  .teaser-time{min-width:78px;color:#fff;font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}
  .teaser-track{position:relative;flex:1;height:14px;cursor:pointer;touch-action:none;background:linear-gradient(rgba(255,255,255,.28),rgba(255,255,255,.28)) center/100% 4px no-repeat}
  .teaser-track i{position:absolute;left:0;top:5px;height:4px;width:0;background:var(--accent);pointer-events:none}
  .teaser-track:hover i,.teaser-track:focus-visible i{top:4px;height:6px}
  .teaser-track:focus-visible{outline:2px solid #fff;outline-offset:2px}      /* at most 960 px wide: the film is 1920 px, so it stays sharp on a 2x screen and is not blown up on a large one */
}
/* phone in portrait: the 16:9 film in the middle of the screen, just under full width (Skip sits above it, the progress bar under it) */
@media (orientation:portrait) and (max-width:720px){
  .teaser video{width:calc(100% - 16px);height:auto;max-height:100%;aspect-ratio:16/9;border-radius:8px}
  .teaser-bar{top:calc(50% + (100vw - 16px) * 9 / 32 + 10px);bottom:auto;left:8px;right:8px;border-radius:2px;overflow:hidden}
  .teaser-end{bottom:auto;top:calc(50% + (100vw - 16px) * 9 / 32 + 24px)}
  .teaser-skip{top:calc(50% + (100vw - 16px) * 9 / 32 + 24px);right:auto;left:50%;transform:translateX(-50%)}
}
/* phone in landscape: leave room above and below the film (browser bars, notch, Skip button) so its top is not cut off */
@media (orientation:landscape) and (max-height:520px){
  .teaser{height:100dvh;bottom:auto;padding:calc(44px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px));box-sizing:border-box}
  .teaser video{width:100%;height:100%;border-radius:8px}
  .teaser-skip{top:calc(6px + env(safe-area-inset-top,0px));padding:5px 14px;font-size:12.5px}
  .teaser-bar{bottom:calc(8px + env(safe-area-inset-bottom,0px));left:16px;right:16px;border-radius:2px;overflow:hidden}
  .teaser-end{bottom:calc(14% + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){.teaser{transition:none}}

/* no underlined links anywhere */
a,a:hover,a:focus,.tile-link,.tile-link *,.down-hint,.n-more{text-decoration:none}

/* ---------- viewer menus and boxes: slightly translucent black with white text ---------- */
.layerbox:not(.in-flow),.mapbar,.v3d-measure,.v3d-tune,.v3d-tip,.notice,.pick-note,.v3d-photos .ph-drop{--rock:#fff;--moraine:rgba(255,255,255,.74);--rule:rgba(255,255,255,.2);--firn:rgba(255,255,255,.12);--sheet:transparent;--crevasse:#8CC4E0;color:#fff}
.layerbox:not(.in-flow),.mapbar,.v3d-measure,.v3d-tune,.v3d-tip,.notice,.pick-note,.v3d-photos .ph-drop{background:var(--glass);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
/* the layer panel on phones: the same black as the menus on the map (solid in the panel under the picture, so the sticky title bar can cover what scrolls under it) */
.layerbox{--panel:rgba(14,23,29,.97)}
.layerbox:not(.min):not(.in-flow){width:min(236px,calc(100vw - 16px))}      /* the open panel keeps its width whatever a legend inside it needs */
.layerbox.in-flow{--rock:#fff;--moraine:rgba(255,255,255,.74);--rule:rgba(255,255,255,.2);--firn:rgba(255,255,255,.12);--sheet:#0e171d;--crevasse:#8CC4E0;color:#fff;background:var(--sheet)}
@media (max-width:720px), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .layerbox .lb-head{background:var(--panel)}
  .lb-more{background:linear-gradient(to bottom,rgba(14,23,29,0),var(--panel) 70%)}
}
.mapbar button[aria-pressed="true"],.v3d-measure > button[aria-pressed="true"]{background:rgba(255,255,255,.24);color:#fff}
.tl-play,.stage.is-full .full-exit,.app.visual-only .full-exit,.app .full-play{color:#fff}
.mapbar .tl-play{background:rgba(255,255,255,.18)}
.v3d-measure .v3d-zoom{width:36px;padding:0;justify-content:center;font-size:20px;font-weight:500}
.v3d-measure .sep{flex:none;width:1px;height:20px;background:var(--rule);margin:0 4px}
.v3d.photo-on .v3d-zoom,.v3d.photo-on .v3d-measure .sep:first-of-type{display:none}      /* in a historic photograph the camera is fixed */
.v3d-measure{flex-wrap:wrap;justify-content:center}
.mapbar .tl-play{display:grid;place-items:center;flex:none;width:34px;height:34px;min-width:0;min-height:0;padding:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff}      /* the play button of the dock: round, with its icon (the dock hides the icons of its other buttons on desktop) */
.mapbar .tl-play svg{display:block;width:16px;height:16px;fill:currentColor;stroke:none}
.mapbar .tl-play:hover{background:rgba(255,255,255,.3)}
.mapbar,.v3d-measure{width:max-content}      /* as wide as its content: a box placed at left:50% would otherwise be limited to half the stage and wrap its tools */
@media (max-width:720px){.mapbar-row{flex-wrap:wrap}}

/* ---------- right panel: figures, tiles and text as in the redesign (design/redesign-pro.html) ---------- */
.story .dcard p,.story .fact{font-size:13.5px;line-height:1.6;color:var(--rock)}
.story .dcard small.src,.story .dcard .srcline,.story small.src{font-size:11px;line-height:1.5;color:var(--faint)}
.story .dcard .srcline a,.story .src a{color:var(--moraine)}
.story .src-list{font-size:11px;line-height:1.5;color:var(--faint)}
.story .src-list a{color:var(--moraine)}
/* tiles: a thin grid, small caps label, then the figure */
.story .stat-row{gap:0;padding:1px 0 0 1px}
.story .stat{background:none;border-radius:0;padding:10px 12px 11px;gap:0}
.story .stat:not(.hero){border:1px solid var(--rule);margin:-1px 0 0 -1px}
.story .stat .mini{display:none}
.story .stat .k:not(.note){font-size:10px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--moraine);line-height:1.3;margin-bottom:0}
.story .stat .k.note{font-size:11px;font-style:normal;color:var(--moraine);line-height:1.35;margin-top:2px}
.story .stat:not(.hero) .v,.story .stat.wide:not(.hero) .v{font-size:19px;font-weight:600;letter-spacing:-.015em;color:var(--ink);margin-top:4px;line-height:1.15}
.story .stat.loss:not(.hero) .v{color:var(--accent)}
.story .stat:not(.hero) .v{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:3px}      /* a long figure with its unit (−0.33 ± 0.06 m a⁻¹) puts the unit on the next line instead of running into the next tile */
.story .stat .v small,.story .stat.wide .v small{font-size:12px;font-weight:500;color:var(--moraine);letter-spacing:0;margin-left:0}
.story .stat.hero .v small,.story .stat.wide.hero .v small{margin-left:3px}
.story .blist{list-style:none;margin:0;padding:0}      /* the list of glaciers of a region (Discover/Stats/region tab): name left, area right */
.story .blist li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:6px 0;border-top:1px solid var(--rule);font-size:13.5px;color:var(--ink)}
.story .blist li:first-child{border-top:0}
.story .blist li small{font-size:12px;color:var(--moraine);white-space:nowrap}
.story .blist li.go{cursor:pointer}
.story .blist li.off{color:var(--moraine)}
.story .stat.wide.loss{background:none;padding:10px 12px 11px}
.story .stat.wide.loss .k,.story .stat.wide.loss .k:not(.note){color:var(--moraine);font-size:10px}
.story .stat.hero{padding:0 0 14px;border:0;margin:0}
.story .stat.hero .v{font-size:30px;font-weight:700;letter-spacing:-.025em;line-height:1.1}
.story .stat.hero .v small{font-size:14px}
.story .stat.hero .k:not(.note){order:1;margin-top:4px;font-size:12.5px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--moraine);line-height:1.45}
.story .stat.hero .k.note{font-size:11px}
.story .sym-row{margin-top:8px}
.story .sym-txt b{font-size:19px;font-weight:700;color:var(--ink)}
.story .sym-txt small,.story .sym-txt small:only-child{font-size:12px;font-weight:400;color:var(--moraine)}
/* water boxes */
.story .water{background:none;border:0;padding:0;margin:0}
.story .wbox,.story .w-box,.story .w-live,.story .cum-read{background:none;border:1px solid var(--rule);border-radius:0;padding:10px 12px}
.story .wbox .v{font-size:19px;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.story .wbox .v small{font-size:12px;font-weight:500;color:var(--moraine)}
.story .wbox .k{font-size:11px;color:var(--moraine)}
.story .water .w-big{font-size:15px;font-weight:600;color:var(--ink)}
.story .water .w-text,.story .w-live,.story .cum-read{font-size:12px;line-height:1.5;color:var(--moraine)}
.story .water .w-chips button{font-size:12px;font-weight:600;color:var(--ink)}
.story .water .w-chips button[aria-pressed="true"]{color:#fff}
.story .water .w-hero-tile .v{color:var(--ink)}
/* loss per year */
.story .bars{gap:5px;margin:0}
.story .bar{grid-template-columns:34px 1fr 40px;gap:8px;font-size:12px;color:var(--moraine)}
.story .bar .track{height:7px;background:var(--rule-2)}
.story .bar .fill{background:#C9D2D7}
.story .bar.in-range .fill{background:var(--accent)}
.story .bar.in-range span:first-child,.story .bar.in-range .v{color:var(--ink);font-weight:600}
.story .span-note,.story .dcard .span-note{background:none;padding:0;margin:11px 0 0;font-size:12px;line-height:1.5;color:var(--moraine)}
/* ice left chart */
.story .cum2 .cum-n b{font-size:24px;font-weight:700;letter-spacing:-.02em;color:var(--ink);line-height:1.1}
.story .cum2 .cum-loss b{font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.story .cum2 .cum-n small,.story .cum2 .cum-loss small,.story .cum figcaption{font-size:11px;color:var(--moraine)}
.story .cum svg{font-size:10.5px;fill:var(--faint)}
/* hike and bike, links */
.story .tr-row{margin:0;padding:10px 0;border-top:1px solid var(--rule-2);font-size:13.5px;line-height:1.5}
.story .tr-row:first-of-type{border-top:0;padding-top:0}
.story .tr-row b{min-width:42px;font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--moraine)}
.story .tr-row a{color:var(--crevasse);font-weight:600}
.story .tr-maps{font-size:12.5px;color:var(--moraine)}
.story .cb{font-size:12.5px;font-weight:600;color:var(--ink);padding:7px 11px}

/* ---------- stat cards exactly as in the redesign: headline figure, text chip, tiles with a description, bars ---------- */
.story .stat .d{display:block;order:3;font-size:11px;line-height:1.35;color:var(--moraine);margin-top:2px;text-align:left}
.story .stat .d sup.fn{position:static;vertical-align:super}
.story .stat.hero .k:not(.note){order:1}
.story .stat.hero .d{order:2;font-size:12.5px;line-height:1.45;margin-top:4px}
.story .stat .tile-link{order:4}
.story .sym-chip{order:5;align-self:flex-start;display:inline-block;margin-top:8px;font-size:12px;line-height:1.4;color:var(--rock);background:var(--firn);border-radius:4px;padding:4px 9px}
.story .stat.hero{display:flex;flex-direction:column}
.story .stat .k:not(.note){text-transform:uppercase}
.story .area{display:flex;flex-direction:column;gap:7px;margin-top:2px}
.story .area div{display:grid;grid-template-columns:54px 1fr 78px;align-items:center;gap:8px;font-size:12px;color:var(--moraine)}
.story .stat-row.area .stat{grid-template-columns:92px auto minmax(0,1fr);justify-items:start}      /* the area rows of the region tiles (label, figure, change): the label column holds words like "Moränen der Kleinen Eiszeit" without breaking them mid-word; .story .area div above is the Swiss chart */
.story .area i{display:block;height:9px;background:var(--crevasse);border-radius:1px}
.story .area i.a0{background:#B9CDD6}.story .area i.a1{background:#7DA6BA}
.story .area b{color:var(--ink);font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.story .chart-t{display:flex;justify-content:space-between;align-items:baseline;margin:16px 0 8px}
.story .chart-t .ct{font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--moraine)}
.story .chart-t em{font-style:normal;font-size:11.5px;color:var(--faint)}
.story svg.ch{display:block;width:100%;height:auto;max-height:170px}
.story svg.ch text{font:10.5px var(--sans);fill:var(--faint)}
.story .gwater .stat.hero .v,.story .gwater .stat.hero.wide .v,.story .gspeed .stat.hero .v,.story .gspeed .stat.hero.wide .v{color:var(--ink)}      /* the water figure is not a loss: dark, as in its closed row */
.story .stat.hero{align-items:center;text-align:center}      /* the headline figure, its text and the comparison chip are centred in every card */
.story .stat.hero .v,.story .stat.hero .k,.story .stat.hero .d{text-align:center}
.story .stat.hero .sym-chip{align-self:center}
.story .rb{cursor:default}.story .rb-read{margin-top:6px;min-height:2.9em;font-size:12px;line-height:1.45;color:var(--moraine)}      /* the readout of the hovered bar has its own line under the chart: it is too long for the title row */
.story svg.ch:has(.rb.on) .rb:not(.on) .bar-r{opacity:.45}
.story .stat.hero .k:not(.note),.story .stat.hero.wide.loss .k:not(.note),.story .stat.hero.wide .k:not(.note){font-size:12.5px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--moraine);line-height:1.45;margin:4px 0 0}
.story .stat.hero,.story .stat.hero.wide,.story .stat.hero.wide.loss{padding:6px 0 14px;gap:0;background:none}
.story .stat.hero .sym-chip{margin-top:8px}
.story .ch-mode{display:flex;gap:16px;margin:-2px 0 8px}
.story .ch-mode button{border:0;background:none;padding:0 0 3px;font:600 12px var(--sans);color:var(--moraine);cursor:pointer}
.story .ch-mode button[aria-pressed="true"]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--accent)}
.story .dh-chart{margin:16px 0 0}
.story .dh-chart figcaption{font-size:11px;line-height:1.5;color:var(--faint);margin-top:8px;display:block}
.story .stat.hero:not(.loss) .v{color:var(--ink)}      /* only losses are red: shares and the water stored are dark */
.story svg.ch text.sel{fill:var(--ink);font-weight:600}
.story .water .w-live{margin-top:12px}
.story .stat.hero .v,.story .stat.hero.wide .v{display:block;white-space:normal;text-wrap:balance;text-align:center}      /* the headline is one line of text, not flex items that break between number and unit */
.story .stat.hero .v small{display:inline}
.story .water .stat.hero .v,.story .gwater .stat.hero .v{font-size:26px;white-space:nowrap}      /* "4.6 trillion litres" stays on one line in the narrow panel */
.story .ice-left{margin:0}
.story .ice-left figcaption{font-size:11px;line-height:1.5;color:var(--faint);margin-top:8px}
.story .ice-left svg.ch text{fill:var(--faint)}
.story .chart-note{margin:6px 0 0;font-size:11px;line-height:1.45;color:var(--faint)}
details.about>summary::after,details.about[open]>summary::after{display:none}
.story .gh-invite,.story .gh-invite span{text-align:center}
.story .dcard p.chart-note{margin:6px 0 0;font-size:11px;line-height:1.45;color:var(--faint);text-align:left}

/* the timeline can be dragged to scrub through the years */
.tl2{cursor:ew-resize;touch-action:none;user-select:none;-webkit-user-select:none}

/* the timeline in the 3D dock is as long as in the map dock (300 px) and the dock is just wide enough for it: play button 34 + gap 20 + line 300 + margin 16 + paddings */
@media (min-width:721px){.v3d-measure:has(.v3d-tl:not(:empty)){min-width:min(400px,calc(100% - 20px))}.v3d-tl .tl2{flex:none;width:min(300px,56vw);margin-right:16px}}

/* the map dock's buttons are as high as the 3D dock's (32 px), so the dock keeps its height and place when the view switches */
@media (min-width:721px){.mapbar button{min-height:32px;box-sizing:border-box}.mapbar .tl-play{min-height:0}}
.v3d-measure{row-gap:0}      /* the 3D dock wraps its timeline row above the buttons; the 2 px gap between rows made it higher than the map dock */

/* the timeline sits in the middle of its row of the dock, horizontally and vertically, in the map and in the 3D view */
.tl-dots,.v3d-tl{padding-top:6px;padding-bottom:6px}
.tl-dots{align-self:stretch}
.tl-row{justify-content:center}
@media (min-width:721px){.mapbar:has(.tl-dots:not(:empty)){min-width:min(400px,calc(100% - 24px))}}

/* the pick-a-glacier message in the style of the left panel (small capitals, the step number in red) on the dark glass of the docks, at the top edge of the map */
.pick-note{top:12px;padding:11px 16px;gap:10px;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.35);font:600 11px/1.3 var(--sans);letter-spacing:.09em;text-transform:uppercase}
.pick-note .pn-num{width:auto;height:auto;border-radius:0;background:none;color:#FF8A82;font:700 11px/1.3 var(--sans);letter-spacing:.09em;font-variant-numeric:tabular-nums}

.gframe.far{cursor:pointer}      /* zoomed out: the white square of the current selection can be clicked to fly back to the tongue */

/* on phones the dock is taller while it holds a timeline: the scale bar sits above it */
@media (max-width:720px){.is-timelapse .leaflet-control-scale{margin-bottom:140px!important}.app.more-open.is-timelapse .leaflet-control-scale{margin-bottom:190px!important}}

/* a tile's figure may wrap ("1.68 million litres" per resident) instead of running out of its box */
.water .stat:not(.hero) .v{white-space:normal}
.story .water .stat-row > .stat.hero.wide:last-child{margin-top:22px}      /* air between the tiles and the melted figure */
.story .water .stat-row > .stat.hero.wide:last-child{padding-bottom:0}      /* the counter box follows closely */
.story .water .w-live{margin-top:14px}

/* phones: while the timelapse plays the dock shrinks to the timeline and the play button; the "…" button in the timeline shows the tools again */
.mapbar .tl-tools,.v3d-measure .tl-tools{display:none;place-items:center;flex:none;width:30px;height:30px;min-width:0;min-height:0;padding:0;margin-top:8px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.tl-tools svg{display:block;width:18px;height:18px;fill:currentColor;stroke:none}
.tools-open .tl-tools{background:rgba(255,255,255,.3)}
@media (max-width:720px){
  .tl-live .tl-tools,.mapbar.tl-live .tl-tools,.v3d-measure.tl-live .tl-tools{display:grid}
  .mapbar.tl-live:not(.tools-open) .mapbar-row{display:none}
  .mapbar.tl-live:not(.tools-open) .tl-dots{border-bottom:0;margin-bottom:0}
  .v3d-measure.tl-live:not(.tools-open) > :not(.v3d-tl){display:none!important}
  .v3d-measure.tl-live:not(.tools-open) .v3d-tl{border-bottom:0;margin-bottom:0}
}
@media (max-width:720px){      /* the shrunken dock has no row of buttons to give the timeline its width */
  .mapbar.tl-live:not(.tools-open) .tl-dots,.v3d-measure.tl-live:not(.tools-open) .v3d-tl{min-width:min(340px,calc(100vw - 40px))}
  .tl-live .tl-row .tl2{flex:none;width:min(220px,calc(100vw - 190px))}
}

/* phones: while a panorama is open the dock shrinks to the timeline (a timelapse) or stays one line of buttons; it comes back when the panorama is closed */
@media (max-width:720px){
  .app.sv-on .mapbar:has(.tl-dots:not(:empty)) .mapbar-row{display:none}      /* a timelapse keeps only its timeline */
  .app.sv-on .mapbar .tl-dots{border-bottom:0;margin-bottom:0}
  .app.sv-on.is-timelapse .leaflet-control-scale,.app.sv-on.more-open.is-timelapse .leaflet-control-scale{margin-bottom:90px!important}
}

/* Phone held sideways: the layer menu opens sideways from the right edge of the map, in two columns with a white title; the chevron points right (slide it away). The bottom bar with the Layers button stays free. */
@media (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .layerbox.open:not(.in-flow){top:8px;bottom:76px;right:8px;max-height:none;width:min(440px,calc(100% - 16px));max-width:none;padding:0 12px 6px;overflow-y:auto}
  .layerbox .lb-head{color:#fff;font-size:13px}
  .layerbox.open .lb-head svg:last-child{transform:rotate(90deg)}
  .layerbox.open .lb-body,.layerbox.open.min .lb-body{display:block;column-count:2;column-gap:18px;padding-top:6px}
  .layerbox.open .lb-body > *{break-inside:avoid}
  .layerbox.open .lb-group{break-after:avoid;break-after:avoid-column;-webkit-column-break-after:avoid;margin-top:8px}
  .layerbox.open .lb-group:first-child{margin-top:0}
  .layerbox .lb-more{display:none!important}
}

.speed-hist{font-family:var(--sans);font-size:12px;line-height:1.4;color:var(--ink)}.speed-hist svg{display:block;margin:6px 0 4px}.speed-hist small{display:block;font-size:11px;color:var(--moraine)}

/* One year: previous / next year in the dock (js/05-map.js, showFrame), a round button on each side of the year */
.tl-step{align-items:center;gap:14px}
/* the year on show is big, the two years with a scene on each side small and fading; they are buttons, and a swipe along the row steps a year */
.tl-step{touch-action:pan-y;user-select:none;-webkit-user-select:none}
.tl-years{display:flex;align-items:baseline;justify-content:center;gap:2px;flex:1 1 auto;min-width:0}
.tl-yr{flex:none;min-width:36px;text-align:center;font-variant-numeric:tabular-nums;color:#fff;font-size:11.5px;font-weight:500;line-height:1.2;padding:4px 2px;border:0;background:none;font-family:inherit}
button.tl-yr{cursor:pointer;opacity:.62;border-radius:8px}
button.tl-yr.d2{opacity:.34;font-size:10.5px}
button.tl-yr:hover{opacity:1;background:rgba(255,255,255,.14)}
.tl-years .tl-gap{visibility:hidden}
.tl-step .tl-step-year{min-width:58px;text-align:center;font-size:19px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.tl-prev,.tl-next{display:grid;place-items:center;flex:none;width:30px;height:30px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;cursor:pointer}
.tl-prev:hover:not(:disabled),.tl-next:hover:not(:disabled){background:rgba(255,255,255,.3)}
.tl-prev:disabled,.tl-next:disabled{opacity:.35;cursor:default}
.tl-prev svg,.tl-next svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:721px){.mapbar .tl-prev,.mapbar .tl-next{min-height:0}}
.tl-dots:has(.tl-step){display:block}      /* the map dock shows its timeline row only in Timelapse; One year puts the previous / next buttons in it */
.mapbar .tl-prev svg,.mapbar .tl-next svg{display:block;width:16px;height:16px;stroke-width:2.4}      /* the dock hides the icons of its buttons on desktop (.mapbar button svg); the arrows are icons only */
.mapbar .tl-prev,.mapbar .tl-next{width:30px;height:30px;min-width:0;min-height:0;padding:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff}
.mapbar .tl-prev:hover:not(:disabled),.mapbar .tl-next:hover:not(:disabled){background:rgba(255,255,255,.3)}
.mapbar .tl-prev:disabled,.mapbar .tl-next:disabled{background:rgba(255,255,255,.18);opacity:.35}

.cam-sw{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}

.no-transition{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:11px;color:var(--muted,#6b7780);cursor:pointer;user-select:none}      /* a small switch (.toggle.optsw gives the track) */

/* the message while the tongue is rebuilt (flight in from the map), above the dock */
.tongue-loading{position:absolute;left:50%;bottom:190px;transform:translateX(-50%);z-index:6;display:flex;flex-direction:column;align-items:center;gap:6px;color:#fff;font-size:13px;font-weight:600;text-shadow:0 1px 10px rgba(0,0,0,.7);pointer-events:none;white-space:nowrap;transition:opacity .45s}
.tongue-loading[hidden]{display:none}
.tongue-loading.out{opacity:0}
.tongue-loading em{display:block;width:150px;height:2px;background:rgba(255,255,255,.28);overflow:hidden}
.tongue-loading i{display:block;height:100%;width:0;background:#fff}

/* Thickness cross-section (3D view): a line across the glacier; surface from the 3D grid, ice depth from the radar points beside the line */
.v3d-sect{position:absolute;z-index:6;left:12px;bottom:84px;width:min(560px,calc(100% - 24px));background:var(--sheet);color:var(--ink);border-radius:8px;box-shadow:0 4px 18px rgba(0,0,0,.35);padding:8px 10px 7px;font-size:12px}
.v3d-sect[hidden]{display:none}
.v3d-sect .hd{display:flex;align-items:baseline;gap:8px}
.v3d-sect .hd b{font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.04em;font-size:11px}
.v3d-sect .hd span{color:var(--moraine);flex:1;min-width:0}
.v3d-sect .hd button{border:0;background:none;font:inherit;font-size:18px;line-height:1;color:var(--moraine);cursor:pointer;padding:0 2px}
.v3d-sect svg{display:block;width:100%;height:auto;margin-top:4px;font-family:var(--sans)}
.v3d-sect .ft{margin-top:3px;font-size:11px;color:var(--moraine);line-height:1.35}
@media (max-width:720px){.v3d-sect{bottom:140px;left:8px;width:calc(100% - 16px);padding:8px 8px 6px}.v3d-sect .hd{flex-wrap:wrap;gap:2px 8px}.v3d-sect .hd span:not(.ex){order:3;flex:1 0 100%}.v3d-sect .hd .ex{margin-left:auto}.v3d-sect .hd button#v3dSectX{order:2}}

.v3d-sect .lg{display:flex;flex-wrap:wrap;gap:3px 14px;margin-top:5px;font-size:11.5px;color:var(--ink)}
.v3d-sect .lg span{display:inline-flex;align-items:center;gap:5px}
.v3d-sect .sw{display:inline-block;flex:none;box-sizing:content-box;height:0;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
.v3d-sect details{margin-top:4px}
.v3d-sect summary{cursor:pointer;color:var(--moraine);font-size:11px}
.v3d-sect details ul{margin:4px 0 0;padding-left:16px}
.v3d-sect details li{margin:2px 0}

/* hover on the wall of the 3D cross-cut: the table of the chart, beside the pointer */
.v3d-cuttip{max-width:none;padding:6px 9px 5px;font-size:12px}
.v3d-cuttip table{border-collapse:collapse}
.v3d-cuttip th{font-size:10px;font-weight:600;text-align:right;padding:0 0 2px 12px;color:var(--moraine)}
.v3d-cuttip th:first-child,.v3d-cuttip td:first-child{text-align:left;padding-left:0}
.v3d-cuttip td{text-align:right;padding:1px 0 1px 12px;font-variant-numeric:tabular-nums}
.v3d-cuttip small{display:block;margin-top:3px;font-size:10px;color:var(--moraine)}

/* 2D chart of the cross-section: export buttons in its header */
.v3d-sect .hd .ex{flex:none;display:flex;gap:4px;align-self:center}
.v3d-sect .hd .ex button{font-size:11px;font-weight:600;line-height:1.2;border:1px solid var(--rule);border-radius:5px;padding:2px 7px;color:var(--rock);background:none;cursor:pointer}
.v3d-sect .hd .ex button:hover{background:var(--firn)}

/* the caption under the cut in the 3D view: line, bed and radar source, and the button for the 2D chart */
.v3d-cutcap{position:absolute;z-index:6;display:flex;align-items:center;gap:8px;background:rgba(34,49,58,.92);color:#fff;border-radius:6px;padding:4px 5px 4px 9px;line-height:1.35;white-space:nowrap;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.v3d-cutcap[hidden]{display:none}
@media (max-width:720px){.v3d-cutcap{white-space:normal;max-width:calc(100% - 16px)}}
.v3d-cutcap .tx b{display:block;font-size:12px;font-weight:600}
.v3d-cutcap .tx span{display:block;font-size:11px;font-weight:500;opacity:.8}
.v3d-cutcap button{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:6px;background:none;color:#fff;cursor:pointer}
.v3d-cutcap button:hover,.v3d-cutcap button[aria-pressed="true"]{background:rgba(255,255,255,.22)}
.v3d-cutcap button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.stage.mini .v3d-cutcap,body.pane-open .v3d-cutcap,.v3d.photo-on .v3d-cutcap{display:none!important}
.v3d-cuttip th small{display:block;font-size:9.5px;font-weight:500;opacity:.7}
.v3d-cuttip th{vertical-align:bottom}
.v3d-cuttip{max-width:340px}
.v3d-cutcap .tx span.grad,.v3d-cutcap .tx i.grad{display:inline-block;width:26px;height:3px;margin-right:6px;vertical-align:middle;background:linear-gradient(90deg,#C8322A,#3F9BC4)}
.v3d-cutcap .tx #v3dCutCap3{display:block}
.v3d-cutcap .tx #v3dCutCap3[hidden]{display:none}
.v3d-cutcap .tx #v3dCutCap4{display:block;color:#FFD9A0;opacity:1;max-width:460px;white-space:normal}
.v3d-cutcap .tx #v3dCutCap4[hidden]{display:none}
.v3d-sect .early{margin-top:4px;font-size:11px;color:var(--accent);line-height:1.35}

/* Pin (js/11b-pin.js): one place of the glacier, year by year. The card sits above the dock of the face on show, on the right (the cross-section panel is on the left).
   Motion is transforms and opacity only (no CSS filters: Safari on iPhone); the entrance plays once per pin, `.still` re-renders (a new year) without it. */
.pin-card{position:absolute;z-index:664;right:12px;bottom:84px;width:min(480px,calc(100% - 24px));box-sizing:border-box;background:var(--sheet);color:var(--ink);border-radius:var(--r-md);box-shadow:0 10px 32px rgba(14,26,34,.28),0 2px 6px rgba(14,26,34,.12);padding:10px 12px 8px;font-size:12px;font-family:var(--sans);overflow-y:auto}
.pin-card[hidden]{display:none}
.pin-card.in:not(.still){animation:pcIn .42s cubic-bezier(.2,.8,.2,1) both}
.pc-hd{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.pc-ico svg{display:block;width:14px;height:19px}
.pc-hd b{font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.06em;font-size:11px}
.pc-where{order:1;flex:1 0 100%;color:var(--moraine);font-size:11.5px;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}      /* the place has a line of its own under the title row, so nothing cuts it off */
.pc-ex button{font:inherit;font-size:11px;font-weight:600;line-height:1.2;border:1px solid var(--rule);border-radius:5px;padding:2px 7px;color:var(--rock);background:none;cursor:pointer}
.pc-ex button:hover{background:var(--firn)}
.pc-ex{display:inline-flex;gap:6px;align-items:center;margin-left:auto}
.pc-ex .pc-fn{font-size:11px;font-weight:600;line-height:1.2;border:1px solid var(--rule);border-radius:5px;padding:2px 7px;color:var(--crevasse);text-decoration:none;white-space:nowrap}
.pc-ex .pc-fn:hover{background:var(--firn)}
.pc-x{border:0;background:none;font:inherit;font-size:20px;line-height:1;color:var(--moraine);cursor:pointer;padding:0 2px}
.pc-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:6px;margin:8px 0 4px}
.pc-tile{display:flex;flex-direction:column;gap:1px;min-width:0;background:var(--firn);border-radius:var(--r-sm);padding:7px 9px 6px}
.pc-tile span{font-size:10.5px;font-weight:600;color:var(--moraine);text-transform:uppercase;letter-spacing:.04em}
.pc-tile b{font-size:19px;font-weight:700;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.pc-tile b.loss{color:var(--loss)}
.pc-tile b.ice{color:var(--crevasse)}
.pc-tile small{font-size:10.5px;line-height:1.25;color:var(--faint)}
.pc-sec{margin-top:6px}
.pc-h{font-size:11px;font-weight:600;color:var(--rock);margin-bottom:2px}
.pc-h small{font-weight:400;color:var(--faint);margin-left:4px}
.pc-row{display:flex;align-items:flex-end;gap:8px}
.pc-line-svg{display:block;flex:1;min-width:0;height:auto;overflow:visible}
.pc-colsvg{display:block;flex:none}
.pc-speed{display:block;width:100%;height:auto}
.pin-card svg text{font-family:var(--sans)}
.pc-ax{font-size:10px;fill:var(--moraine)}
.pc-ax.now{fill:var(--ink);font-weight:700}
.pc-end{font-size:12.5px;font-weight:700;fill:var(--ink)}
.pc-end.loss{fill:var(--loss)}
.pc-end.sm{font-size:10.5px}
.pc-end.ice{fill:var(--crevasse)}
.pc-hit{cursor:crosshair}
.pc-bar .b{fill:var(--crevasse);opacity:.38;transform-box:fill-box;transform-origin:50% 100%}
.pc-bar.now .b,.pc-bar:hover .b{opacity:1}
.pc-msg{margin:8px 0 2px;font-size:11.5px;line-height:1.4;color:var(--moraine)}
.pc-ft{margin-top:6px;font-size:11px;line-height:1.4;color:var(--moraine)}
.pc-ft summary{cursor:pointer}
.pc-ft ul{margin:4px 0 0;padding-left:16px}
.pc-ft li{margin:2px 0}
.pc-tip{position:absolute;z-index:2;pointer-events:none;display:flex;flex-direction:column;gap:1px;white-space:nowrap;background:var(--rock);color:#fff;border-radius:8px;padding:6px 9px;font-size:11px;line-height:1.35;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.pc-tip[hidden]{display:none}
.pc-tip b{font-size:12.5px}
.pc-tip small{color:#B9C4CA}
.pc-tip span{display:flex;justify-content:space-between;gap:12px}
.pc-tip em{font-style:normal;font-weight:700;font-variant-numeric:tabular-nums}
.pc-tip em.loss{color:#FF8A80}
.pin-card.in:not(.still) .pc-line{stroke-dasharray:1;stroke-dashoffset:1;animation:pcDraw 1s .15s cubic-bezier(.5,0,.2,1) forwards}      /* the line draws itself, then the area and the loss fade in, the dots and bars pop up one after the other */
.pin-card.in:not(.still) .pc-area,.pin-card.in:not(.still) .pc-loss{opacity:0;animation:pcFade .6s .7s ease forwards}
.pin-card.in:not(.still) .pc-dot{opacity:0;transform-box:fill-box;transform-origin:center;animation:pcPop .32s cubic-bezier(.3,1.6,.5,1) forwards}
.pin-card.in:not(.still) .pc-bar .b{transform:scaleY(0);animation:pcGrow .5s cubic-bezier(.2,.8,.2,1) forwards}
.pin-card.in:not(.still) .pc-col{opacity:0;animation:pcFade .5s 1s ease forwards}
@keyframes pcIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes pcDraw{to{stroke-dashoffset:0}}
@keyframes pcFade{to{opacity:1}}
@keyframes pcPop{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:none}}
@keyframes pcGrow{to{transform:none}}
.pin-mark{position:relative;width:28px;height:38px;transform-origin:50% 100%;animation:pinDrop .6s cubic-bezier(.3,1.4,.5,1) both}
.pin-mark svg{position:relative;display:block;width:28px;height:38px}
.pin-mark::before{content:'';position:absolute;left:7px;bottom:-3px;width:14px;height:5px;border-radius:50%;background:rgba(0,0,0,.3)}
.pin-pulse{position:absolute;left:8px;bottom:-5px;width:12px;height:12px;box-sizing:border-box;border:2px solid var(--accent);border-radius:50%;animation:pinPulse 1.8s ease-out infinite}
@keyframes pinDrop{0%{opacity:0;transform:translateY(-46px)}55%{opacity:1;transform:translateY(0) scaleY(1)}75%{transform:scaleY(.86)}100%{transform:none}}
@keyframes pinPulse{from{opacity:.8;transform:scale(1,.45)}to{opacity:0;transform:scale(4.2,1.9)}}
.pinning #map,.pinning #v3dCanvas{cursor:crosshair}
.mapbar #pinBtn svg,.v3d-measure #v3mPin svg{stroke-width:1.9}
@media (prefers-reduced-motion:reduce){.pin-card,.pin-card *,.pin-mark,.pin-pulse{animation:none!important}.pin-card .pc-line{stroke-dasharray:none!important}.pin-card .pc-dot,.pin-card .pc-area,.pin-card .pc-loss,.pin-card .pc-col{opacity:1!important}.pin-card .pc-bar .b{transform:none!important}.pin-pulse{display:none}}
@media (min-width:721px){#stage > .pin-card,#v3d > .pin-card{right:56px;width:min(480px,calc(50% - 72px))}}      /* clear of the Discover tab on the right edge */
@media (max-width:720px){.pin-card{left:8px;right:8px;width:auto;padding:9px 10px 7px}.pc-tile b{font-size:17px}.pc-tile small{display:none}.pc-tile{padding:6px 8px 5px}.pc-tiles{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}}
.layerbox .toggle .tx2{display:flex;flex-direction:column;min-width:0}
#l3SrYears{font-size:11px;font-weight:400;line-height:1.3;opacity:.7}
#l3SrYears:empty{display:none}

/* the lost volume as a cube next to the Eiffel Tower, in the empty cell of the volume card */
.story .stat.cube-tile .k{text-transform:uppercase}
.story .stat .sym-cube{display:block;width:100%;height:auto;max-height:110px;margin:6px 0 2px}
.story .stat.cube-tile .per-y{order:-1;margin:-2px 0 3px}
/* About chapters: short paragraphs, lists and subheads read left-aligned */
.story .about-sec p,.story .about-sec li{text-align:left;hyphens:manual;-webkit-hyphens:manual}
/* ---------- embed: the share step's iframe code, and the page as it looks inside that iframe (hash embed=1) ---------- */
.embed-box{display:flex;flex-direction:column;gap:8px}
.embed-box[hidden]{display:none}
.embed-box .hint{margin:0}
#embedCode{width:100%;box-sizing:border-box;border:1px solid var(--rule);background:var(--firn);color:var(--rock);font:11px/1.45 ui-monospace,Menlo,Consolas,monospace;padding:8px;resize:none}
/* links inside notes, hints and the About text: the site's blue, never the browser's */
.hint a,.note a,.status a,.embed-box a,.about-sec a{color:var(--crevasse);font-weight:600}
.embed-row{display:flex;gap:8px}
.embed-row .act{min-width:0;padding-left:6px;padding-right:6px;line-height:1.2;text-align:center}      /* three buttons share one row; a long label wraps to two lines instead of spilling out */
.embed-open{display:none}
html.embed .controls,html.embed .story,html.embed .mhead,html.embed .panel-toggle,html.embed .scroll-cue,html.embed .fyi-slot,html.embed #fsBtn,html.embed #v3dFs{display:none!important}
html.embed .app{display:block;height:100%}
html.embed .stage-slot{display:block;height:100%;min-height:0}
html.embed .stage-slot .stage{position:relative;left:auto;top:auto;bottom:auto;width:auto;height:100%;min-height:0}
html.embed .layerbox,html.embed #layersBtn,html.embed #moreBtn,html.embed .mtool,html.embed .v3d-layers,html.embed .v3d-measure > :not(.v3d-tl):not(.v3d-zoom),html.embed #v3dPhotos,html.embed #v3dSect,html.embed .sv-panel{display:none!important}      /* the picture as the main viewer shows it: no layer menus, measuring, science mode, photographs */
html.embed .mapbar .sep:nth-of-type(n+2){display:none}      /* the 3D toolbar keeps its timeline (play, pause) and the zoom buttons */
html.embed .embed-open{display:block;position:absolute;top:10px;right:10px;z-index:730;background:var(--sheet);color:var(--accent);font-size:13px;font-weight:700;line-height:1;padding:9px 13px;border-radius:6px;box-shadow:0 1px 8px rgba(0,0,0,.28);text-decoration:none;white-space:nowrap}
html.embed .embed-open:hover{background:var(--firn)}
/* small embeds (phones, narrow iframes): the pill is short so it never covers the year and date, and the 3D dock is wide enough for the whole timeline line */
@media (max-width:520px), (max-height:520px){
  html.embed .embed-open .eo-long{display:none}
  html.embed .embed-open{font-size:12px;padding:8px 11px}
}
html.embed .v3d-measure{width:min(420px,calc(100% - 20px))}
html.embed .v3d-measure > .v3d-tl{min-width:0;width:100%}

.landsat-opt{display:none!important}      /* the old checkbox row: the "+ Landsat" chip in the year rows works it */
.landsat-wrap{grid-column:span 2;display:flex;align-items:center;gap:2px;padding-right:4px;border:1px dashed var(--rule);background:var(--sheet)}      /* the box of the chip holds the "i" */
.landsat-wrap:hover:not(:has(.landsat-chip:disabled)){border-color:var(--crevasse)}
.landsat-wrap .landsat-chip,.landsat-wrap .landsat-chip:hover:not(:disabled){border:0;background:none;box-shadow:none}
.landsat-wrap .info-btn{flex:none;border:1.5px solid var(--moraine);border-radius:50%;padding:0;background:none;border-color:var(--moraine);color:var(--moraine);width:18px;height:18px;font-size:11px}
.landsat-wrap .info-btn[aria-expanded="true"]:not(:disabled){background:var(--moraine);color:#fff}
.landsat-wrap .info-btn[hidden]{display:none}
.years .landsat-chip{flex:1;border-style:dashed;color:var(--moraine);font-weight:600}
.years .landsat-chip[aria-pressed="true"]{background:var(--sheet);box-shadow:none;color:var(--moraine);font-weight:600;border-color:var(--rule)}
.years .landsat-chip.weak:not([aria-pressed="true"]){color:var(--faint)}
.years .landsat-chip:disabled{color:#B6BEC2;border-style:dashed}
.yr-landsat{display:block;margin-top:8px}
#lsOne,#lsA{margin-top:0;margin-bottom:8px}      /* one year and slider: the switch sits above the year chips */
.yr-landsat .landsat-wrap{display:flex;align-items:center;gap:8px;padding:0;border:0;background:none}
.yr-landsat .landsat-chip.as-switch{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 0;border:0;background:none;cursor:pointer;font-size:12px;color:var(--moraine);font-weight:600;text-align:left}
.yr-landsat .ls-label small{font-weight:500;font-size:11px;color:var(--faint);margin-left:4px}
.yr-landsat .ls-track{flex:none;position:relative;width:30px;height:17px;border-radius:9px;background:var(--switch-off);transition:background .15s}
.yr-landsat .ls-knob{position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.yr-landsat .as-switch[aria-checked="true"] .ls-track{background:var(--switch-on)}
.yr-landsat .as-switch[aria-checked="true"] .ls-knob{transform:translateX(13px)}
.yr-landsat .as-switch:disabled{cursor:default;opacity:.5}
.yr-landsat .as-switch.weak:not([aria-checked="true"]) .ls-label{color:var(--faint)}
.landsat-info{margin:0 0 6px;font-size:11.5px;line-height:1.4;color:var(--moraine)}
.landsat-info[hidden]{display:none}
#landsatI{margin-left:4px;vertical-align:middle;width:16px;height:16px;font-family:inherit;font-size:10px;font-weight:600;font-style:normal;color:var(--moraine);border-color:var(--moraine);background:none}
#landsatI[aria-expanded="true"]{background:var(--moraine);color:#fff}

/* phones: the docks (map and 3D) are more see-through, and the One year row (previous / next year) is a slim line with round buttons */
@media (max-width:720px), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .mapbar,.v3d-measure{background:rgba(10,18,24,.3)}
  .tl-dots:has(.tl-step),.v3d-tl:has(.tl-step){padding:2px 8px;margin-bottom:2px}
  .tl-step{gap:10px}
  .mapbar .tl-prev,.mapbar .tl-next,.v3d-measure .tl-prev,.v3d-measure .tl-next{width:24px;height:24px;min-width:0;min-height:0;padding:0}
  .tl-prev svg,.tl-next svg,.mapbar .tl-prev svg,.mapbar .tl-next svg{width:13px;height:13px}
  .tl-step .tl-step-year{min-width:50px}
  .mapbar button.tl-yr,.v3d-measure button.tl-yr{min-width:44px;min-height:36px;padding:0 4px;font-size:12px;display:block}      /* smaller than the year on show (the dock's own phone rule makes buttons 20px), a big enough target to tap */
  .tl-yr.d2{display:none!important}      /* one neighbour on each side */
  .tl-step .tl-step-year{font-size:18px}
}

/* phones: the dock covers the bottom right of the 3D view, so the north arrow sits at the top right (the small window keeps it above its own buttons) */
@media (max-width:720px), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .stage:not(.mini) .v3d-north{top:14px;bottom:auto}
}

/* phone header: the region name is the picker (its menu opens below the title); the back link reads on the light header */
.mhead{position:relative;z-index:900}      /* above the picture, so the open region menu is never under the map */
.mhead .region-btn{display:inline-flex;align-items:center;gap:2px;margin:0;padding:0;border:0;background:none;font:inherit;color:#0A1B33;cursor:pointer}
.mhead .region-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.mhead .region-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.mhead .region-menu{left:50%;top:100%;transform:translateX(-50%);text-align:left;z-index:900}
.mhead .all-regions{display:block;margin:6px 0 0;font-size:12.5px;font-weight:600;color:var(--crevasse);text-decoration:none}

/* the "i" next to a layer: what it shows, in words (hiking trails and the line of sight) */
.lb-why{margin:0 0 6px 26px;padding:7px 9px;background:var(--firn);font-size:11.5px;line-height:1.45;color:var(--rock);border-left:3px solid var(--crevasse)}
.lb-why[hidden]{display:none}
.lb-count{flex:none;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:var(--switch-on);color:#fff;font:700 11px/18px var(--sans);letter-spacing:0;text-align:center;font-variant-numeric:tabular-nums}
.lb-count[hidden]{display:none}
.lb-count.on-btn{position:absolute;top:-5px;right:-5px;box-shadow:0 0 0 2px #fff}
#layersBtn,#v3mLayers{position:relative}
.lb-head .lb-count{margin-left:-2px}
.lb-i{flex:none;width:18px;height:18px;margin-left:auto;padding:0;border:1.5px solid var(--moraine);border-radius:50%;background:none;color:var(--moraine);font:600 11px/15px var(--sans);text-align:center;cursor:pointer}      /* the same "i" as the older-imagery switch */
.lb-i:hover,.lb-i[aria-expanded="true"]{background:var(--moraine);color:#fff}
@media (prefers-reduced-motion:reduce){.layerbox.nudge::after{animation:none;opacity:.6}}

/* the tool buttons (cross-section, size comparison) above the tabs of the right panel */
.story .tool-btns{display:flex;flex-direction:column;gap:6px;margin:16px 0}
.story .tool-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:8px 10px;border:1px solid var(--rule);background:var(--sheet);color:var(--ink);font:inherit;font-size:13px;font-weight:500;text-align:center;text-decoration:none;cursor:pointer}
.story .tool-btn:hover{background:var(--firn)}
.story .tool-btn svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.story .tool-btn span{min-width:0}
.story.empty .tool-btns{display:none}

.brand-home{display:flex;flex:none}
/* restore defaults: a small text button on the right of the step 2 heading */
.step-reset{display:none;align-items:center;gap:5px;margin-left:auto;padding:3px 7px;border:1px solid var(--rule);background:var(--sheet);color:var(--moraine);font:600 11px/1.2 var(--sans);letter-spacing:0;text-transform:none;cursor:pointer}
.step-reset svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.step-reset:hover{color:var(--ink);background:var(--firn)}
.app:not(.no-glacier) .step-reset{display:inline-flex}

.chip-date{margin-left:5px;font-size:10px;font-weight:500;opacity:.7}

/* ---------- immersive full screen on touch screens (js/09-phones.js, "Immersive full screen") ----------
   body.imm = full screen on a touch device; body.imm-idle = controls faded out. Desktop with a mouse is untouched. */
body.imm{overscroll-behavior:none}
body.imm .app .stage .full-exit{display:none!important}      /* the dock's own full screen button leaves full screen; no separate corner button */

/* title and hint stop before the exit button; the north arrow moves below it */
body.imm .app .stage .v3d-top{left:calc(14px + env(safe-area-inset-left,0px));right:calc(62px + env(safe-area-inset-right,0px))}
body.imm .app.is-3d .stage .v3d-north{top:calc(60px + env(safe-area-inset-top,0px));bottom:auto;right:calc(14px + env(safe-area-inset-right,0px))}
/* the controls keep clear of the home indicator, and the sources line floats on the picture instead of a white bar */
body.imm .stage .mapbar,body.imm .stage .v3d-measure,body.imm .stage .v3d.photo-on .v3d-measure{bottom:calc(36px + env(safe-area-inset-bottom,0px))}
body.imm .stage .credits:not(.open){height:calc(22px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,.5));color:rgba(255,255,255,.88);text-shadow:0 1px 2px rgba(0,0,0,.6)}
body.imm .stage .credits:not(.open) a{color:#cfe6f3}
/* the fade */
body.imm .stage .mapbar,body.imm .stage .v3d-measure,body.imm .stage .v3d-top,body.imm .stage .layerbox,body.imm .stage .v3d-layers,body.imm .stage .credits{transition:opacity .35s}
body.imm.imm-idle .stage .mapbar,body.imm.imm-idle .stage .v3d-measure,body.imm.imm-idle .stage .v3d-top,body.imm.imm-idle .stage .layerbox:not(.open),body.imm.imm-idle .stage .v3d-layers:not(.open){opacity:0;pointer-events:none}
body.imm.imm-idle .stage .credits:not(.open){opacity:.55}
/* full screen with a mouse (js/09-phones.js, "Full screen with a mouse"): the docks and menus fade after a few idle seconds, the pointer hides with them */
body.fade .stage .mapbar,body.fade .stage .v3d-measure,body.fade .stage .v3d-top,body.fade .stage .layerbox,body.fade .stage .v3d-layers,body.fade .stage .credits{transition:opacity .35s}
body.fade.fade-idle .stage .mapbar,body.fade.fade-idle .stage .v3d-measure,body.fade.fade-idle .stage .v3d-top,body.fade.fade-idle .stage .layerbox:not(.open),body.fade.fade-idle .stage .v3d-layers:not(.open){opacity:0;pointer-events:none}
body.fade.fade-idle .stage .credits:not(.open){opacity:.55}
body.fade.fade-idle .stage,body.fade.fade-idle .stage *{cursor:none!important}
/* phone in landscape: full screen really is the whole screen (the stage is otherwise a 58vw column beside the panel) */
@media (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .app.visual-only .stage{width:100vw;z-index:2000}
  .app.visual-only .mhead,.app.visual-only .controls,.app.visual-only .story,.app.visual-only .fyi-slot{display:none}
}

/* ---------- Phone design system (phones, portrait and landscape) ----------
   One language for the whole explorer: the page is a quiet grey ground (--firn) and every block is a white card of radius --r-lg with 16 px inside and 12 px between; choices are soft segmented controls and chips (radius --r-sm/--r-md, no outlines, the chosen one lifted or dark); headings are sentence-case; icons stay red, ice stays blue. Tokens: css/tokens.css. Desktop and landscape phones are untouched. */
@media (max-width:720px) and (orientation:portrait), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  body:not(.has-full){background:var(--firn)}
  .app{gap:var(--sp-3);padding-bottom:var(--sp-2)}

  /* header: one slim row, the logo and name at the left, the region as a pill at the right */
  .mhead{display:flex;align-items:center;gap:var(--sp-2);padding:10px var(--sp-4);text-align:left;border:0;position:relative}
  .mhead strong{display:flex;align-items:center;flex:1;min-width:0;gap:var(--sp-3);font-size:0;line-height:1}
  .mhead strong .home-link{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.015em;color:var(--ink)}
  .mhead-logo{height:28px;margin:0;flex:none}
  .mhead strong .region-btn{margin-left:auto;gap:4px;padding:7px 10px 7px 13px;border-radius:var(--r-pill);background:var(--firn);font-size:13px;font-weight:600;letter-spacing:0;color:var(--rock);white-space:nowrap}
  .mhead strong .region-btn svg{width:14px;height:14px}
  .mhead > span{display:none}

  /* the picture: a card with soft corners, a little air around it */
  .stage:not(.is-full){margin:0 var(--sp-3);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--lift);min-height:340px}
  .year-tag{font-size:28px;font-weight:800;letter-spacing:-.02em;text-shadow:0 1px 8px rgba(0,0,0,.45)}
  .year-tag small{font-size:10.5px;font-weight:500;letter-spacing:.01em;opacity:.92;text-shadow:0 1px 4px rgba(0,0,0,.6)}
  .mapbar,.v3d-measure{border-radius:var(--r-md)}

  /* the steps are three cards */
  .controls{background:none;border:0;padding:0 var(--sp-3);gap:var(--sp-3)}
  .controls > .step,.controls .step ~ .step{background:var(--sheet);border:0;border-radius:var(--r-lg);box-shadow:var(--lift);margin:0;padding:var(--sp-4);gap:var(--sp-3)}
  .step-h{gap:10px;font-size:16px;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--ink)}
  .step-h .num{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#FBE8E6;color:var(--accent);font-size:11.5px;font-weight:700;letter-spacing:0}
  .step-reset{padding:6px 11px;border:0;border-radius:var(--r-pill);background:var(--firn);font-size:12px}
  .side-label{margin:var(--sp-2) 0 6px;font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--moraine)}
  .side-label:first-child{margin-top:0}

  /* choose */
  .m-pick{min-height:54px;padding:8px var(--sp-4);border:0;border-radius:var(--r-md);background:var(--firn);box-shadow:none;gap:var(--sp-3)}
  .m-pick .mp-rank{display:none}
  .m-pick .mp-name{font-size:17px;letter-spacing:-.01em}
  .m-pick .mp-area{font-size:13.5px}
  .down-hint:not([hidden]){margin:0;padding:2px 2px 0;font-size:12.5px;font-weight:500;color:var(--crevasse);text-align:left;text-wrap:balance}

  /* segmented controls: map/3D, one year/slider/timelapse, the share formats, the tabs */
  .modes,.modes.views,.segment{gap:2px;padding:3px;border-radius:var(--r-md);background:var(--firn)}
  .modes button,.segment button{border:0;border-radius:11px;background:none;color:var(--moraine);box-shadow:none;font-size:13px;font-weight:600;gap:4px}
  .modes button{padding:10px 4px 8px}
  .modes.views button{padding:10px 4px}
  .modes button svg{width:22px;height:22px}
  .modes button[aria-pressed="true"],.segment button[aria-pressed="true"]{background:var(--sheet);box-shadow:var(--raise);color:var(--ink);font-weight:700}
  .modes button[aria-pressed="true"] svg{stroke:var(--accent)}
  .no-transition{font-size:12.5px;color:var(--moraine)}

  /* colour compositions: four picture tiles, the chosen one framed in red */
  .swatches{gap:2px;padding:3px;border-radius:var(--r-md);background:var(--firn)}
  .sw{padding:4px 4px 7px;border:0;border-radius:11px;background:none;box-shadow:none;font-size:12px;color:var(--moraine);gap:6px}
  .sw i{height:46px;border-radius:9px}
  .sw[aria-pressed="true"]{background:var(--sheet);box-shadow:var(--raise);color:var(--ink);font-weight:700}

  /* years: chips, six to a row; the chosen year dark */
  .stack .years:not(.specials),.years{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .years button{padding:0;min-height:40px;border:0;border-radius:var(--r-sm);background:var(--firn);font-size:14px;font-weight:500;color:var(--rock)}
  .years button[aria-pressed="true"]{background:var(--ink);color:#fff;font-weight:700;box-shadow:none}
  .years button.in-range{background:#DCE8EE}
  .years button:disabled,.years button.is-na{background:transparent;color:#B6BEC2;border:0;box-shadow:inset 0 0 0 1px var(--rule-2)}
  .years.specials{grid-template-columns:repeat(2,minmax(0,1fr))}
  .years.specials button{min-height:38px;font-size:13px;font-weight:600}
  .spec-row{gap:var(--sp-3)}
  .status{padding:9px 12px;border-radius:var(--r-sm);font-size:12px}
  .adj-switch{padding:6px 0;font-size:13px}

  /* create and share: two rows with an icon disc, then three quiet buttons */
  .dl-grid{grid-template-columns:1fr 1fr;gap:var(--sp-2)}
  .dl{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:var(--sp-3);row-gap:0;padding:var(--sp-3);border:0;border-radius:var(--r-md);background:var(--firn);text-align:center}
  .dl svg{grid-row:1 / 3;width:22px;height:22px;padding:9px;margin:0;box-sizing:content-box;border-radius:50%;background:var(--sheet);box-shadow:var(--raise)}
  .dl b{align-self:end;font-size:15px}
  .dl b:last-child{grid-row:1 / 3;align-self:center}      /* a tile with no line under its title: centred next to the icon, over both rows */
  .dl small{align-self:start;font-size:12px}
  .dl:hover{background:var(--firn);box-shadow:none}
  .dl[aria-expanded="true"]{background:var(--sheet);box-shadow:0 0 0 2px var(--accent)}      /* open: framed in red, like a chosen colour tile */
  .embed-box{margin:0;padding:var(--sp-3);border:0;border-radius:var(--r-md);background:var(--firn)}
  .embed-box select,.embed-box textarea,.embed-box input[type=text]{border:0;border-radius:var(--r-sm);background-color:var(--sheet);font-size:14px}
  .embed-box select{min-height:44px;padding:0 var(--sp-3)}
  .embed-box textarea{padding:var(--sp-3)}
  .embed-box .hint{font-size:12.5px;line-height:1.5}
  .embed-box a,.hint a{color:var(--crevasse);font-weight:600}
  .embed-box .act{background:var(--ink);color:#fff;min-height:44px}
  .dl-wide{grid-column:auto}
  .dl-wide span{grid-row:1 / 3;align-self:center;gap:0}      /* its text is one block inside the button: the title and the line under it share one left edge */
  .dl-wide span{text-align:center}
  .dl-wide span b,.dl-wide span small{align-self:center}
  .embed-row .act,.act{padding:11px 10px;border:0;border-radius:var(--r-sm);background:var(--firn);font-size:13.5px;font-weight:600;color:var(--rock)}

  /* the story card */
  .story{margin:0 var(--sp-3);padding:0 var(--sp-4) var(--sp-5);border:0;border-radius:var(--r-lg);box-shadow:var(--lift)}
  .story::before{height:var(--sp-5)}
  .story h2{font-size:28px;line-height:1.08;letter-spacing:-.025em;margin:0 0 2px}
  .story .sub{font-size:13px}
  .story .lede{font-size:15.5px;line-height:1.55;margin:var(--sp-3) 0 0}
  .story .tool-btns{gap:var(--sp-2);margin:var(--sp-4) 0}
  .story .tool-btn{justify-content:flex-start;gap:var(--sp-3);padding:13px var(--sp-4);border:0;border-radius:var(--r-md);background:var(--firn);font-size:14.5px;font-weight:600;text-align:left;position:relative}
  .story .tool-btn::after{content:'';margin-left:auto;width:7px;height:7px;border:solid var(--faint);border-width:2px 2px 0 0;transform:rotate(45deg);flex:none}
  .story .tool-btn svg{width:20px;height:20px}
  .tabs{margin:var(--sp-4) 0 var(--sp-2);padding:3px;gap:2px;border:0;border-radius:var(--r-md);background:var(--firn)}
  .tabs button{flex:1;margin:0;padding:10px 4px;border-radius:11px;font-size:13.5px;color:var(--moraine);text-align:center}
  .tabs button[aria-selected="true"]{background:var(--sheet);box-shadow:var(--raise);color:var(--ink)}
  .story .dcard > summary{padding:var(--sp-4) 0}
  .story p,.story .dbody p,.story .about-sec p,.story .tr-row,.story .tr-t,.story .tr-maps,.story .cum-read,.story .w-live,.story .w-text,.story .span-note,.story .sub-note,.story .note,.story .srcline,.story small.src,.story .gh-invite span{text-align:left;hyphens:manual;-webkit-hyphens:manual}      /* narrow columns: justified text opens rivers */
  .story .fact{border-radius:0 var(--r-sm) var(--r-sm) 0}
  .stat{border-radius:var(--r-sm)}
  details.about{margin:var(--sp-4) 0 0;padding:0;border:0;border-radius:0;background:none}
  details.about > summary{justify-content:center;text-align:center;padding:var(--sp-4);font-size:12px}
  details.about[open] > summary{padding-bottom:var(--sp-2)}
  details.about > :not(summary){margin-left:var(--sp-4);margin-right:var(--sp-4)}
  details.about > :last-child{margin-bottom:var(--sp-4)}

  /* the invitation and the footer */
  .fyi-slot{--slot-pad:var(--sp-3);padding:0 var(--sp-3) var(--sp-5)}
  .fyi{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:var(--sp-4);align-items:center;text-align:left;padding:var(--sp-4);border:0;border-radius:var(--r-lg);background:#FFF3D1;box-shadow:var(--lift)}
  .fyi-img{grid-row:1 / 6;width:76px;margin:0;border-radius:3px}
  .fyi-ask{font-size:10.5px}
  .fyi-name{font-size:18px}
  .fyi-text{margin-top:2px;font-size:12.5px}
  .fyi-go{justify-self:start;margin-top:var(--sp-2);padding:8px var(--sp-4);border-radius:var(--r-pill);font-size:13px}
  .gh-invite{border-radius:var(--r-md)}
  .credits{border-radius:0}
  /* lists, tiles and inputs of the size page and the glacier sheet */
  .glaciers{gap:2px;padding:3px;border-radius:var(--r-md);background:var(--firn)}      /* a grey segment like the other controls, the chosen glacier white */
  .glaciers button{padding:9px 12px;border-radius:11px}
  .glaciers button[aria-pressed="true"]{background:var(--sheet);box-shadow:var(--raise)}
  .cities{gap:var(--sp-2)}
  .cities button{min-height:42px;border:0;border-radius:var(--r-sm);background:var(--firn);font-size:14px;font-weight:500}
  .step .city-find input{min-height:44px;border:0;border-radius:var(--r-sm);background:var(--firn);padding:0 var(--sp-3);font-size:16px}
  .step .city-find button{min-height:44px;border:0;border-radius:var(--r-sm);background:var(--ink);color:#fff;font-weight:600;padding:0 var(--sp-4)}
  .story .sec .stat-row{gap:var(--sp-2);border:0}
  .story .sec .stat{border:0;background:var(--firn);border-radius:var(--r-sm);padding:var(--sp-3)}
  .story .head{padding-bottom:var(--sp-4)}
}

/* ---------- Phone design system, part 2: the map and 3D controls ----------
   The docks, menus and overlays on the picture are the same soft white surfaces as the cards below it: light glass (white, 94 %, blurred), radius --r-md/--r-lg, ink text, icon buttons of 42 px with a soft round-rect hover, the active one dark like a chosen chip. Desktop keeps its black glass. */
@media (max-width:720px) and (orientation:portrait), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .layerbox:not(.in-flow),.mapbar,.v3d-measure,.v3d-tune,.v3d-tip,.notice,.pick-note,.v3d-photos .ph-drop,.layerbox.in-flow{--rock:var(--ink);--moraine:#5C6B74;--rule:rgba(14,26,34,.1);--firn:rgba(14,26,34,.06);--sheet:#fff;color:var(--ink)}
  .layerbox:not(.in-flow),.mapbar,.v3d-measure,.v3d-tune,.v3d-photos .ph-drop{background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);box-shadow:0 1px 2px rgba(14,26,34,.12),0 6px 20px rgba(14,26,34,.22)}
  .layerbox{--panel:#fff}
  .layerbox.in-flow{background:var(--sheet)}

  /* the docks */
  .mapbar,.v3d-measure{border-radius:var(--r-lg);padding:var(--sp-1)}
  .mapbar button,.v3d-measure > button{min-width:42px;min-height:42px;border-radius:var(--r-md);color:var(--ink)}
  .v3d-measure > button,.v3d-measure > #v3dFs{min-width:clamp(30px,8.3vw,42px);padding-left:0!important;padding-right:0!important;justify-content:center}      /* nine tools (ten while measuring) fit one row at every phone width: iPhone 16 (393 px) has 9 buttons of 33 px and no separators */
  .v3d-measure{gap:1px}
  .v3d-measure > #v3mDist,.v3d-measure > #v3mArea,.v3d-measure > #v3mClear,.v3d-measure > #v3mSect,.v3d-measure > #v3mSect2d,.v3d-measure > #v3mPin{padding:0!important}
  .v3d-measure > .sep{display:none}
  .mapbar button:hover,.v3d-measure > button:hover{background:rgba(14,26,34,.06)}
  .mapbar button[aria-pressed="true"],.v3d-measure > button[aria-pressed="true"]{background:var(--ink);color:#fff}
  .mapbar button[aria-pressed="true"] svg,.v3d-measure > button[aria-pressed="true"] svg{stroke:#fff}
  .mapbar button:disabled{opacity:.3}
  .mapbar .sep,.v3d-measure .sep{background:var(--rule)}
  .v3d-measure .v3d-zoom{width:clamp(30px,8.3vw,42px);font-size:22px}

  /* the timeline row in the docks: a year stepper and a thin line */
  .tl-dots,.v3d-tl{color:var(--ink);border-bottom-color:var(--rule)}
  .tl-step .tl-step-year{color:var(--ink);font-size:19px;font-weight:700}
  .tl-yr{color:var(--ink)}
  .tl-prev,.tl-next,.mapbar .tl-prev,.mapbar .tl-next,.mapbar .tl-play,.mapbar .tl-tools,.v3d-measure .tl-tools{width:34px;height:34px;background:rgba(14,26,34,.07);color:var(--ink)}
  .mapbar .tl-prev:disabled,.mapbar .tl-next:disabled{background:rgba(14,26,34,.07);opacity:.3}
  .mapbar .tl-prev:hover:not(:disabled),.mapbar .tl-next:hover:not(:disabled),.mapbar .tl-play:hover{background:rgba(14,26,34,.13)}
  .mapbar .tl2-ends,.v3d-measure .tl2-ends{opacity:1;color:var(--moraine);text-shadow:none}
  .mapbar .tl2-track::before,.v3d-measure .tl2-track::before{background:rgba(14,26,34,.14)}
  .mapbar .tl2-fill,.v3d-measure .tl2-fill{background:var(--accent)}
  .mapbar .tl2-tick,.v3d-measure .tl2-tick{background:rgba(14,26,34,.22)}
  .mapbar .tl2-tick.on,.v3d-measure .tl2-tick.on{background:var(--accent)}
  .mapbar .tl2-dot,.v3d-measure .tl2-dot{background:#fff;border:3px solid var(--accent);box-sizing:border-box;box-shadow:0 1px 4px rgba(14,26,34,.35)}
  .tl-play{background:rgba(255,255,255,.94);color:var(--ink);box-shadow:0 1px 2px rgba(14,26,34,.12),0 4px 14px rgba(14,26,34,.25)}
  .stage.is-full .full-exit,.app.visual-only .full-exit,.app .full-play{background:rgba(255,255,255,.94);color:var(--ink);box-shadow:0 1px 2px rgba(14,26,34,.12),0 4px 14px rgba(14,26,34,.25)}

  /* 3D dock: photos, cross-section */
  .v3d-photos .ph-toggle,.v3d-photos .ph-cams,.v3d-photos .ph-btns button{border-radius:var(--r-md);color:var(--ink)}
  .v3d-photos .ph-drop{border-radius:var(--r-md)}
  .v3d-photos .ph{border-radius:var(--r-sm)}
  .v3d-sect{border-radius:var(--r-lg);padding:var(--sp-3) var(--sp-3) var(--sp-2);box-shadow:0 1px 2px rgba(14,26,34,.12),0 6px 20px rgba(14,26,34,.25);font-size:12.5px}
  .v3d-sect .hd .ex button{border:0;border-radius:var(--r-pill);background:var(--firn);padding:5px 10px}
  .v3d-photocap{border-radius:var(--r-md);background:rgba(14,26,34,.78)}
  .v3d-photocap button{border-radius:var(--r-pill)}

  /* menus: the layer menu is a white card, headings in ink */
  .layerbox:not(.in-flow){border-radius:var(--r-lg);padding:0 var(--sp-4) var(--sp-2)}
  .layerbox .lb-head{padding:var(--sp-3) 0 var(--sp-2);font-size:14px;font-weight:700;letter-spacing:-.005em;text-transform:none;color:var(--ink)}
  .layerbox .toggle{font-size:14px}
  .layerbox.in-flow{padding:0 var(--sp-4) var(--sp-3)}
  body.has-full .layerbox.in-flow.open{border-radius:var(--r-lg) var(--r-lg) 0 0;box-shadow:0 -6px 28px rgba(14,26,34,.3)}
  body.has-full .layerbox.in-flow .lb-head span::after{color:var(--moraine)}

  /* hints and notices: dark ink pills / light cards, one shape language */
  .measure-hint,.v3d-mhint,.stage-busy{border-radius:var(--r-md);background:rgba(14,26,34,.88);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .measure-hint button,.v3d-mhint button{border-radius:var(--r-pill)}
  .stage-busy{border-radius:var(--r-pill);padding:8px 14px}
  .notice,.pick-note,.v3d-tip{border-radius:var(--r-md);background:rgba(255,255,255,.96);box-shadow:0 1px 2px rgba(14,26,34,.12),0 6px 20px rgba(14,26,34,.25)}
  .video-sheet{border-radius:0;box-shadow:none}
  .v3d-top > span,.year-tag small{text-shadow:0 1px 6px rgba(0,0,0,.65)}
  .v3d:has(.v3d-mhint.show) .v3d-top > span{visibility:hidden}      /* the measuring hint takes the place of the line under the year */
  .layerbox.in-flow .toggle{font-size:13.5px}
  .layerbox.in-flow .sym{margin-right:8px}
  .mhead strong .home-link{font-size:16.5px;white-space:nowrap}
  .mhead strong .region-btn{padding:6px 9px 6px 12px;font-size:12.5px}
  .pick-note{padding:var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3);gap:var(--sp-3);font:600 13.5px/1.35 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink)}
  .pick-note .pn-num{width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font:700 10.5px/1 var(--sans);letter-spacing:0;display:inline-flex;align-items:center;justify-content:center}
  .leaflet-control-attribution{max-width:calc(100vw - 24px);padding:3px 10px;font-size:10.5px;line-height:14px}
}
@media (max-width:350px) and (orientation:portrait){.mhead-logo{display:none}}

/* Phones held sideways: the same system. The picture is the left half (fixed), the cards sit in the right column. */
@media (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .app{gap:var(--sp-2);padding-bottom:var(--sp-3)}
  .stage:not(.is-full){margin:0;border-radius:0;box-shadow:none;min-height:0}
  .mhead{padding:8px var(--sp-4)}
  .mhead strong .home-link{font-size:15px}
  .mhead strong .region-btn{min-width:0;max-width:46%;padding:5px 8px 5px 11px;font-size:12px}
  .mhead strong .region-btn .region-name{overflow:hidden;text-overflow:ellipsis}
  .mhead-logo{height:22px}
  .controls{padding:0 var(--sp-3) 0 var(--sp-3)}
  .controls > .step,.controls .step ~ .step{padding:var(--sp-3) var(--sp-4)}
  .story{margin:0 var(--sp-3) 0 calc(58vw + var(--sp-3))}
  .story h2{font-size:24px}
  .fyi-slot{--slot-pad:var(--sp-3);padding:0 var(--sp-3) var(--sp-4)}
  .video-sheet{border-radius:var(--r-lg) 0 0 0}
  .years button{min-height:36px;font-size:13px}
  .modes button{padding:8px 4px 6px}
  .modes button svg{width:20px;height:20px}
  .sw i{height:38px}
  .v3d-measure > button,.v3d-measure > #v3dFs{min-width:34px}
  .v3d-measure .v3d-zoom{width:clamp(30px,8.3vw,34px)}
  .step-reset{white-space:nowrap;font-size:11.5px;padding:6px 10px}
  .leaflet-control-scale{margin-bottom:128px!important}
  .app.more-open .leaflet-control-scale{margin-bottom:178px!important}
  .pick-note{top:auto;bottom:calc(var(--sp-6) + 58px + 8px);left:var(--sp-3);right:var(--sp-3);transform:none;max-width:none;width:auto;font-size:12.5px}
}
@media (max-width:760px) and (orientation:landscape) and (max-height:520px){.mhead-logo{display:none}}

/* ---------- Desktop: what the phone design brought over ----------
   The desktop keeps its flat panel, its black glass on the picture and its compact sizes (no 40 px touch targets). It takes the phone design's shapes: soft segmented controls, sentence-case step headings with a number disc, the Create and share rows with an icon disc, a red timeline and a light pill for the active tool, the same corner radii (tokens --r-*). Phones, tablets in portrait up to 720 px and landscape phones have their own block above. */
@media (min-width:721px) and (min-height:521px), (min-width:951px){
  /* step headings */
  .step-h{gap:10px;font-size:15px;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--ink)}
  .step-h .num{display:inline-grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;background:#FBE8E6;color:var(--accent);font-size:11px;font-weight:700;letter-spacing:0}

  /* segmented controls: map/3D, one year/slider/timelapse, the colour modes */
  .modes,.modes.views,.segment{gap:2px;padding:3px;border-radius:var(--r-md);background:var(--firn)}
  .modes button,.segment button{border:0;border-radius:11px;background:none;color:var(--moraine);box-shadow:none}
  .modes button:hover:not([aria-pressed="true"]):not(:disabled),.segment button:hover:not([aria-pressed="true"]):not(:disabled){color:var(--ink)}
  .modes button[aria-pressed="true"],.segment button[aria-pressed="true"]{background:var(--sheet);box-shadow:var(--raise);color:var(--ink);font-weight:700}
  .modes button[aria-pressed="true"] svg{stroke:var(--accent)}

  /* create and share: rows with an icon disc, then quiet buttons */
  .dl-grid{grid-template-columns:1fr 1fr;gap:var(--sp-2)}
  .dl{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:var(--sp-3);row-gap:0;padding:var(--sp-2) var(--sp-3);border:0;border-radius:var(--r-md);background:var(--firn);text-align:center}
  .dl svg{grid-row:1 / 3;width:20px;height:20px;padding:8px;margin:0;box-sizing:content-box;border-radius:50%;background:var(--sheet);box-shadow:var(--raise)}
  .dl b{align-self:end}
  .dl b:last-child{grid-row:1 / 3;align-self:center}
  .dl small{align-self:start}
  .dl:hover{background:var(--firn);box-shadow:none}
  .dl[aria-expanded="true"]{background:var(--sheet);box-shadow:0 0 0 2px var(--accent)}
  .dl-wide{grid-column:auto;justify-content:normal}
  .dl-wide svg{width:20px;height:20px;margin:0}
  .dl-wide span{grid-row:1 / 3;align-self:center;gap:0}
  .dl-wide span{text-align:center}
  .dl-wide span b,.dl-wide span small{align-self:center}
  .embed-box{padding:var(--sp-3);border:0;border-radius:var(--r-md);background:var(--firn)}
  .embed-box select,.embed-box textarea,.embed-box input[type=text]{border:0;border-radius:var(--r-sm);background-color:var(--sheet)}
  .embed-box .act{background:var(--ink);color:#fff}
  .embed-row .act,.act{border:0;border-radius:var(--r-sm);background:var(--firn);font-weight:600;color:var(--rock)}
  .embed-box .act:hover{background:var(--rock)}
  .embed-row .act:hover,.act:hover{background:var(--rule)}
  .step-reset{border:0;border-radius:var(--r-pill);background:var(--firn)}

  /* the docks on the picture: black glass stays; red timeline, a light pill for the active tool, one set of radii */
  .mapbar,.v3d-measure{border-radius:var(--r-lg)}
  .mapbar button,.v3d-measure > button{border-radius:var(--r-sm)}
  .mapbar button[aria-pressed="true"],.v3d-measure > button[aria-pressed="true"]{background:rgba(255,255,255,.94);color:var(--ink)}
  .mapbar button[aria-pressed="true"] svg{stroke:var(--ink)}
  .mapbar .tl2-fill,.v3d-measure .tl2-fill{background:var(--accent)}
  .mapbar .tl2-tick.on,.v3d-measure .tl2-tick.on{background:var(--accent)}
  .mapbar .tl2-dot,.v3d-measure .tl2-dot{background:#fff;border:3px solid var(--accent);box-sizing:border-box}
  .layerbox:not(.in-flow),.v3d-tune,.v3d-tip,.notice,.pick-note,.v3d-photos .ph-drop,.measure-hint,.v3d-mhint{border-radius:var(--r-md)}
  .v3d-sect{border-radius:var(--r-lg)}
  .v3d-photos .ph-toggle,.v3d-photos .ph-cams,.v3d-photos .ph-btns button{border-radius:var(--r-sm)}
  .stage-busy{border-radius:var(--r-pill)}

  /* colour compositions, year chips, city chips, lists, inputs, tabs: the same soft shapes */
  .swatches{gap:2px;padding:3px;border-radius:var(--r-md);background:var(--firn)}      /* one segmented box, like View and Mode */
  .sw{padding:4px 4px 7px;border:0;border-radius:11px;background:none;box-shadow:none}
  .sw i{border-radius:9px}
  .sw:not([aria-pressed="true"]):hover{background:var(--rule-2)}
  .sw[aria-pressed="true"]{background:var(--sheet);box-shadow:var(--raise);color:var(--ink);font-weight:700}
  .years button{border:0;border-radius:var(--r-sm);background:var(--firn);color:var(--rock)}
  .years button:hover:not(:disabled):not([aria-pressed="true"]){background:var(--rule)}
  .years button[aria-pressed="true"]{background:var(--ink);color:#fff;font-weight:700;box-shadow:none}
  .years button.in-range{background:#DCE8EE}
  .years button:disabled,.years button.is-na,.years button.is-na:hover{background:transparent;color:#B6BEC2;border:0;box-shadow:inset 0 0 0 1px var(--rule-2)}
  .years.specials button{font-weight:600}
  .years .landsat-chip{border:0;box-shadow:inset 0 0 0 1px var(--rule)}
  .years .landsat-chip[aria-pressed="true"]{background:var(--ink);color:#fff;box-shadow:none}
  .status{border-radius:var(--r-sm)}
  .glaciers{gap:2px;padding:3px;border-radius:var(--r-md);background:var(--firn)}
  .glaciers button{border-radius:11px}
  .glaciers button:hover{background:rgba(255,255,255,.6)}
  .glaciers button[aria-pressed="true"]{background:var(--sheet);box-shadow:var(--raise)}
  .step .city-find input{border:0;border-radius:var(--r-sm);background:var(--firn);padding:7px 10px}
  .step .city-find button{border:0;border-radius:var(--r-sm);background:var(--ink);color:#fff;font-weight:600}
  .tabs{margin:var(--sp-4) 0 var(--sp-2);padding:3px;gap:2px;border:0;border-radius:var(--r-md);background:var(--firn)}
  .tabs button{flex:1;margin:0;padding:8px 4px;border-radius:11px;text-align:center;color:var(--moraine);opacity:1;box-shadow:none}
  .tabs button:hover{color:var(--ink);opacity:1}
  .tabs button[aria-selected="true"]{background:var(--sheet);box-shadow:var(--raise);color:var(--ink)}
  .story .tool-btn{border:0;border-radius:var(--r-md);background:var(--firn)}
  .story .tool-btns{padding-top:var(--sp-4);border-top:1px solid var(--rule);margin-top:0}      /* a line above the tool buttons; Sources below brings its own */
  .story .tool-btn:hover{background:var(--rule)}
  .stat{border-radius:var(--r-sm)}
  .fyi{border-radius:var(--r-lg)}
  .fyi-go{border-radius:var(--r-pill)}
  .gh-invite{border-radius:var(--r-md)}
}

/* "Then and now" dock (under the year, in .left-stack): the photographs' thumbnails left-aligned, the camera switch, the footnote; while a photograph is open only its buttons. It replaced the drop-up of the bottom bar. */
#thenNowRow{width:max-content;min-width:0;max-width:min(318px,calc(100% - 24px))}
#thenNowRow .v3d-photos{display:flex;flex-direction:column;align-items:stretch;margin:0;padding:0;border:0}
#thenNowRow .v3d-photos .ph-drop{--rock:var(--ink,#0E1A22);--moraine:#66757E;--rule:#DDE3E6;--firn:rgba(14,26,34,.06);position:static;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:4px;width:auto;max-width:none;padding:0;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--ink,#0E1A22)}
#thenNowRow .v3d-photos .ph-row{display:flex;flex-direction:column;align-items:stretch;gap:6px}
#thenNowRow .v3d-photos .ph-list{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;gap:6px;margin:0;padding:0;max-height:none;overflow:visible}
#thenNowRow .v3d-photos .ph{width:66px;height:50px;border-radius:6px}
#thenNowRow .v3d-photos .ph span{font-size:10.5px;line-height:1.35}
#thenNowRow .v3d-photos .ph.on{border-color:var(--accent)}
#thenNowRow .v3d-photos .ph-cams{order:2;justify-content:flex-start;gap:8px;align-self:stretch;min-height:28px;padding:0;border:0;border-radius:6px;max-width:none;color:var(--ink,#0E1A22);font-weight:600;font-size:12px}
#thenNowRow .v3d-photos .ph-cams > svg{stroke:var(--accent)}
#thenNowRow .v3d-photos .ph-cams .sw-track{margin-left:auto}
#thenNowRow .v3d-photos .ph-note{margin:0;max-width:none;text-align:left;align-self:stretch;font-size:10.5px;line-height:1.35;color:#66757E}
#thenNowRow .v3d-photos .ph-btns{display:flex;flex-direction:column;align-items:stretch;gap:2px}
#thenNowRow .v3d-photos .ph-btns button{min-height:30px;padding:0 8px;color:var(--ink,#0E1A22);font-weight:600;font-size:12px}
#thenNowRow .v3d-photos .ph-btns button:hover{background:rgba(14,26,34,.06)}
.v3d.photo-on #thenNowRow .ph-row,.v3d.photo-on #thenNowRow .ph-note{display:none}

/* "Ice level" switch in the photograph buttons: the same slider as the other switches */
.v3d-photos .ph-sw{justify-content:space-between}
.v3d-photos .ph-sw .sw-track{margin-left:auto;width:28px;height:16px;border-radius:999px;background:#B9C2C6;position:relative;flex:none;transition:background .15s}
.v3d-photos .ph-sw .sw-track i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.35);transition:transform .15s}
.v3d-photos .ph-sw[aria-pressed="true"] .sw-track{background:var(--accent)}
.v3d-photos .ph-sw[aria-pressed="true"] .sw-track i{transform:translateX(12px)}

#thenNowRow .fd-h{display:flex;align-items:center;gap:6px}      /* the same camera symbol as the row in the 3D layer menu */
#thenNowRow .fd-h svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--accent);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Old photographs card: compact, left-aligned rows */
#thenNowRow{min-width:150px}
#thenNowRow .fd-h{white-space:nowrap;margin-bottom:5px}
#thenNowRow .v3d-photos .ph-btns{gap:0;align-items:stretch}
#thenNowRow .v3d-photos .ph-btns button{width:100%;min-height:30px;padding:0 2px;gap:8px;justify-content:flex-start;font:600 12px/1.2 var(--sans);color:var(--ink,#0E1A22)}
#thenNowRow .v3d-photos .ph-btns .ph-sw{justify-content:space-between;gap:14px}
#thenNowRow .v3d-photos .ph-btns .ph-back svg{width:15px;height:15px;flex:none;stroke:var(--accent)}

/* Docks under the year (Historical images, Special flights): one header, a title with its symbol and a small cross; thumbnails fill the width */
.left-stack .fd-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px;white-space:nowrap}
.left-stack .fd-t{display:flex;align-items:center;gap:7px}
.left-stack .fd-h svg.cam-pin{width:18px;height:18px;flex:none}
.layerbox .sym svg.cam-pin{width:20px;height:20px}
.layerbox .sym svg.plane-sw{width:20px;height:20px}
.left-stack .fd-x{flex:none;width:22px;height:22px;margin:-3px -4px -3px 0;padding:0;border:0;border-radius:50%;background:none;color:#66757E;font:400 18px/1 var(--sans);cursor:pointer;display:flex;align-items:center;justify-content:center}
.left-stack .fd-x:hover,.left-stack .fd-x:focus-visible{background:rgba(14,26,34,.08);color:var(--ink,#0E1A22)}
#thenNowRow .v3d-photos .ph-list{align-items:stretch}
#thenNowRow .v3d-photos .ph{width:100%;height:60px}

/* Historical images dock, tidy: fixed width, header = symbol and title left, [chevron] and cross right; collapsed (chevron shown) while a photograph is open */
#thenNowRow{width:158px;min-width:0;max-width:calc(100% - 24px);box-sizing:border-box}
#thenNowRow .fd-h{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}
#thenNowRow .fd-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
#thenNowRow .fd-btns{display:flex;align-items:center;gap:0;flex:none;margin-right:-5px}
#thenNowRow .fd-x{margin:0}
#thenNowRow .fd-chev{display:none;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:none;color:#66757E;cursor:pointer;align-items:center;justify-content:center}
#thenNowRow .fd-chev svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#thenNowRow .fd-chev:hover,#thenNowRow .fd-chev:focus-visible{background:rgba(14,26,34,.08);color:var(--ink,#0E1A22)}
.v3d.photo-on #thenNowRow .fd-chev{display:flex}
#thenNowRow .v3d-photos .ph{width:100%;height:58px;box-sizing:border-box}
#thenNowRow .v3d-photos .ph img{position:absolute;inset:0}

/* collapsed dock: full title, the red chevron at the bottom */
#thenNowRow{width:196px}
#thenNowRow .fd-h{white-space:nowrap}
#thenNowRow .fd-t{overflow:visible}
#thenNowRow .fd-chev{width:100%;height:24px;margin-top:2px;border-radius:6px;color:var(--accent)}
#thenNowRow .fd-chev svg{width:20px;height:20px}
#thenNowRow .fd-chev:hover,#thenNowRow .fd-chev:focus-visible{background:rgba(200,50,42,.08);color:var(--accent)}

/* the dock is as wide as its header needs (the title never runs under the cross); the thumbnails no longer widen it (their pictures are absolutely placed) */
#thenNowRow{width:max-content;min-width:170px}
#thenNowRow .fd-h{gap:16px}
#thenNowRow .fd-t{flex:none;white-space:nowrap}
#thenNowRow .fd-btns{margin-right:-4px}

/* fixed inner width that fits symbol, title and cross (measured) */
#thenNowRow{width:204px;min-width:0}
#thenNowRow .fd-h{gap:8px}
#thenNowRow{max-width:none}      /* a percentage max-width inside the shrink-wrapped stack made the card narrower than its header */

#thenNowRow .fd-chev{display:flex}
#thenNowRow .fd-chev svg{transform:rotate(180deg)}
#thenNowRow.is-collapsed .fd-chev svg,.v3d.photo-on #thenNowRow .fd-chev svg{transform:none}
#thenNowRow.is-collapsed .ph-row{display:none}

/* while a historical image is open the dock is slightly transparent, so the picture behind it still shows */
.v3d.photo-on #thenNowRow{background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* hover card of the layer "All Swiss glaciers" (SGI2023) */
.leaflet-tooltip.swiss-tip{font:12px/1.4 var(--font, inherit);padding:6px 9px;border:0;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.25);color:#222}
.leaflet-tooltip.swiss-tip small{color:#777;font-size:10.5px}

/* map layers in a download: the line on the frame, the switch in the pane, and the greyed rows of the Layers box */
.video-sheet.is-3d .vo-no3d{display:none}
.vf-layers{position:relative;margin-right:6px;overflow:visible}
body.x-layers .vf-layers,.vf-layers[aria-expanded="true"]{background:#fff;color:var(--rock)}      /* the Layers menu is open: the button is white, like a pressed ratio button */      /* round layers button left of the ratio buttons; the red count sits on its corner like an app-icon badge */
.vf-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:var(--switch-on);color:#fff;font:700 11px/18px var(--sans);font-style:normal;text-align:center;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px rgba(10,18,22,.9);pointer-events:none}
.vf-badge[hidden]{display:none}      /* (not .lb-count: the script in 08-controls.js counts those from the menu and would overwrite it) */
body.pane-open .layerbox .toggle.x-off{opacity:.45}
.lb-xnote{display:none;margin:2px 0 6px;font-size:11px}
body.pane-open .layerbox .lb-xnote{display:block}
.is-framing .layerbox{transition:none}
body.x-layers .is-framing .layerbox{visibility:visible}      /* the line on the frame shows the Layers box while a download pane is open */
body.x-layers .layerbox{max-width:none}
.layerbox.in-sheet,.layerbox.in-sheet:not(.in-flow):not(.min){position:static;top:auto;right:auto;width:100%;max-width:none;max-height:none;box-sizing:border-box;margin:8px 0 0;z-index:auto;overflow:visible;flex:none}
/* the Layers box inside the download pane: a white card like the pane's own, not the dark glass of the menus on the picture */
.layerbox.in-sheet:not(.in-flow){--rock:var(--ink);--moraine:#5C6B74;--rule:rgba(14,26,34,.1);--firn:rgba(14,26,34,.05);--sheet:#fff;--glass:#fff;--panel:#fff;--crevasse:#327DA0;color:var(--ink);background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;border:1px solid rgba(14,26,34,.12);border-radius:12px;padding:12px 14px 8px;box-shadow:none}
.layerbox.in-sheet .lb-head{padding:0 0 8px;border-bottom:1px solid rgba(14,26,34,.08);margin-bottom:6px}
.layerbox.in-sheet .lb-group{margin-top:10px;color:#5C6B74}
.layerbox.in-sheet .toggle{font-size:13px;min-height:30px;margin-bottom:0}
.layerbox.in-sheet .lb-reset{color:var(--accent)}
.layerbox.in-sheet .lb-xnote{margin:0 0 8px;color:#5C6B74}
.layerbox.in-sheet .toggle.x-off{opacity:.4}
.layerbox.in-sheet input[type=range]{accent-color:var(--crevasse)}
.layerbox.in-sheet .lb-count{background:var(--switch-on);color:#fff}

/* phones in portrait: the layer panel has two columns, "For this glacier" on the left and "Background" on the right; the docks (map and 3D) sit near the bottom edge (the credit bar is gone) */
@media (max-width:720px) and (orientation:portrait){
  .layerbox.in-flow .lb-group:not(.lb-titlerow):not(:first-child){break-before:column;-webkit-column-break-before:always;margin-top:0}      /* the first group stays in column 1 (without a title row it used to start column 2 and push Background to a third column, off the phone) */
  .mapbar{bottom:12px}
  .v3d-measure,.v3d.photo-on .v3d-measure{bottom:12px}
}

/* phone held sideways outside full screen: ask to turn it upright (js/09-phones.js, orientSync) */
.turn-upright{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--sheet,#fff);color:var(--ink,#0E1A22);text-align:center;font-weight:600;font-size:16px;line-height:1.3}
.turn-upright[hidden]{display:none}
.turn-upright svg{color:var(--accent,#C8322A)}
.turn-upright small{font-weight:400;font-size:12px;opacity:.7}

/* Portrait phone, download pane open: the page does not scroll; the viewer is pinned above the pane (js/10-animation.js, syncPaneStage) */
@media (max-width:720px) and (orientation:portrait){
  html:has(body.pane-open),body.pane-open{overflow:hidden;overscroll-behavior:none}
  body.pane-open .stage-slot .stage{position:fixed;left:0;right:0;top:0;bottom:var(--vs-h,44dvh);width:auto;height:auto!important;min-height:0;z-index:1;margin:0!important;border-radius:0!important;box-shadow:none}
  /* the layer menu (opened by the line on the frame) is a sheet pinned right above the pane: in the page flow it would sit behind the pane, out of reach */
  body.pane-open.x-layers .layerbox.in-flow.open{position:fixed;left:0;right:0;bottom:0;top:calc(100dvh - var(--vs-h,44dvh));z-index:2100;max-height:none;overflow-y:auto;overscroll-behavior:contain;border-radius:0;border-top:1px solid var(--rule);border-bottom:0;box-shadow:none;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  body.pane-open.x-layers .layerbox.in-flow.open .lb-head{display:flex;position:sticky;top:0;z-index:3;background:transparent;padding:12px 0 8px;border-bottom:1px solid var(--rule);font-size:14px}
  body.pane-open.x-layers .layerbox.in-flow.open{background:var(--sheet)}      /* the menu covers the pane, right under the picture: the preview stays visible above it while you change layers */
}

/* phones: the dock is light, so the play button is solid red with a white triangle (it was white on white) */
@media (max-width:720px) and (orientation:portrait), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .stage .tl-play,.stage .mapbar .tl-play,.stage .v3d-tl .tl-play,.stage .v3d-measure .tl-play{background:var(--accent);color:#fff;box-shadow:0 2px 8px rgba(200,50,42,.35)}
  .stage .tl-play:hover,.stage .mapbar .tl-play:hover,.stage .v3d-tl .tl-play:hover{background:#A9271F}
  .stage .tl-play svg{opacity:1}
}

/* phones, download pane open: notices sit at the top of the picture, clear of the ratio and play buttons under the frame */
@media (max-width:720px) and (orientation:portrait){
  body.pane-open .notice{top:56px;transform:translateX(-50%)}
}

/* long year lists (Landsat years from 1984 on): 2.5 rows show, the rest scrolls; the half row hints that there is more. Phone and desktop alike. */
.years:not(.specials){--yr-row:40px;--yr-gap:6px;grid-auto-rows:var(--yr-row);gap:var(--yr-gap);max-height:calc(2.4 * var(--yr-row) + 2 * var(--yr-gap));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.stack .years:not(.specials){gap:var(--yr-gap)}
.years:not(.specials) button{min-height:0;height:var(--yr-row)}

/* Layers header: the count sits next to the chevron, the title takes the free space */
.lb-head span{flex:1 1 auto;text-align:left}
.lb-head .lb-count{margin-left:0}


/* desktop: smaller year buttons (the 40px rows are for fingers) */
@media (min-width:721px){
  .years:not(.specials){--yr-row:28px;--yr-gap:4px}
  .years:not(.specials) button{font-size:13px}
  .years.specials button{min-height:30px}
}


/* years: one grey segmented box like the glacier list, View and Mode; the chosen year is a white raised pill */
.years{padding:3px;border-radius:var(--r-md);background:var(--firn)}
.years:not(.specials){max-height:calc(2.4 * var(--yr-row) + 2 * var(--yr-gap) + 6px)}
/* mouse devices: a year list rests as one row (the chosen year, or the newest years when none is chosen) and opens on hover; touch devices keep the scrolling list above */
@media (hover:hover) and (pointer:fine){
  .years:not(.specials){max-height:calc(var(--yr-row) + 6px);overflow-y:hidden;transition:max-height .15s ease}
  .years:not(.specials):hover,.years:not(.specials):has(:focus-visible){max-height:calc(4.4 * var(--yr-row) + 4 * var(--yr-gap) + 6px);overflow-y:auto}
}
/* the glacier list the same way: one row at rest (the chosen glacier, else the top of the list), about five rows on hover */
@media (hover:hover) and (pointer:fine){
  .glaciers{--gl-row:calc(1lh + 12px);max-height:calc(var(--gl-row) + 6px);overflow-y:hidden;transition:max-height .15s ease}
  .glaciers:hover,.glaciers:has(:focus-visible){max-height:calc(5.4 * var(--gl-row) + 6px);overflow-y:auto}
}
.years button,.years .landsat-chip{border:0;background:transparent;box-shadow:none;border-radius:var(--r-sm);color:var(--rock);font-weight:500}
.years button:hover:not(:disabled):not(.is-na):not([aria-pressed="true"]){background:var(--rule-2,rgba(14,26,34,.06))}
.years button[aria-pressed="true"],.years .landsat-chip[aria-pressed="true"]{background:var(--sheet,#fff);color:var(--ink);font-weight:700;box-shadow:var(--raise)}
.years button.in-range:not([aria-pressed="true"]){background:rgba(45,110,142,.16)}
.years button:disabled,.years button.is-na,.years button.is-na:hover{background:transparent;box-shadow:none;color:#B6BEC2}
.years.specials button{font-weight:600}
.years.specials button[aria-pressed="true"]{font-weight:700}

/* the small i next to a label: grey ring, filled while its note is open (like the one of the older imagery) */
.side-label .info-btn{width:16px;height:16px;margin-left:4px;vertical-align:-3px;border-color:var(--moraine);color:var(--moraine);font-size:10px;text-transform:none;letter-spacing:0}
.side-label .info-btn[aria-expanded="true"]{background:var(--moraine);color:#fff}

/* status under the years: one short line; the rest is behind the small i */
.status:has(.st-i){display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.status .st-main{flex:1 1 0;min-width:0}
.status .st-i{width:16px;height:16px;font-size:10px;border-color:var(--moraine);color:var(--moraine);flex:none}
.status .st-i[aria-expanded="true"]{background:var(--moraine);color:#fff}
.status .st-more{flex:1 0 100%;padding-top:2px;border-top:1px solid var(--rule)}
.status .st-more[hidden]{display:none}
.slider-row .info-btn{width:15px;height:15px;margin-left:4px;vertical-align:-2px;font-size:9.5px;border-color:var(--moraine);color:var(--moraine)}
.slider-row .info-btn[aria-expanded="true"]{background:var(--moraine);color:#fff}
.slider-row .info-btn[hidden]{display:none}

/* colour composition: the i sits at the right end of the row, centred on the label's line */
#colourGroup .side-label{display:flex;align-items:center;justify-content:space-between;gap:8px}
#colourGroup .side-label .info-btn{margin:0;vertical-align:baseline;flex:none}

/* less space between the status line and "Adjust image" (the step's 10px gap and the 6px margin added up to 16px) */
.tune-adjust{margin-top:-6px}

/* step numbers 01 / 02 / 03: twice the size, the circle and the figure; the title keeps its size and stays centred on the circle */
.step-h .num{width:48px;height:48px;font-size:23px;line-height:1}

/* step numbers: 70 % of the doubled size; the bottom of the circle lines up with the bottom of the title */
.step-h{align-items:flex-end}
.step-h .num{width:34px;height:34px;font-size:16px}

/* the red Play button in the left panel: less tall */
.play{min-height:32px;padding:5px 16px}

/* the byline at the bottom of the right panel */
.story > .fyi-by{margin:0 0 -26px;padding:28px 0 0;flex:none;align-self:stretch;text-align:center}      /* centred, right under the About block (which takes the free space above it with its auto margin, so About, social icons and GitHub sit on top of the byline) */

/* slider: the i of the left image's colour composition at the right end of its label row */
.side-label-cc{display:flex;align-items:center;justify-content:space-between;gap:8px}
.side-label-cc .info-btn{margin:0;flex:none}


/* page switcher under the brand: Home, Size, Gallery (the explorer is this page) */
.site-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin-top:6px;padding-bottom:0;border-bottom:0}      /* the thin line sits between the page links and the demo button */
.site-nav a{display:flex;align-items:center;gap:5px;padding:4px 8px;white-space:nowrap;font-size:12px;font-weight:600;color:var(--moraine);text-decoration:none;border-bottom:2px solid transparent}
.site-nav a svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.site-nav a:hover{color:var(--accent);border-bottom-color:var(--accent)}

/* Oldest / Latest chips: smaller everywhere (One year, Slider; desktop and phone) */
.years.specials button{min-height:0;padding:2px 0;font-size:11.5px;line-height:1.3}

/* Over time | Size: the two faces of the tool, one switch at the top of both panels (explorer and size page). Same grey segment as the pick lists; the page you are on is the white chip. */
.pageswitch{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin:2px 0 10px;padding:2px;background:var(--firn);border-radius:10px}
.pageswitch>*{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 6px;border-radius:8px;font-size:12.5px;font-weight:600;color:var(--moraine);text-decoration:none}
.pageswitch svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pageswitch a:hover{color:var(--ink)}
.pageswitch .on{background:var(--sheet);box-shadow:var(--raise);color:var(--ink);font-weight:700}
.pageswitch .on svg{color:var(--accent)}
@media (max-width:720px) and (orientation:portrait), (max-width:950px) and (orientation:landscape) and (max-height:520px){.pageswitch{display:none}}      /* phones: the menu pill in the title row lists the pages */
html.embed .pageswitch{display:none}
/* from page to page the panel stays and the picture fades (browsers without cross-document transitions simply load the page) */
@media (prefers-reduced-motion:no-preference) and (min-width:721px){
  @view-transition{navigation:auto}
  .controls{view-transition-name:panel}
  ::view-transition-group(root){animation-duration:.28s}
  ::view-transition-group(panel){animation-duration:.28s}
}
@media (hover:hover) and (pointer:fine) and (min-width:721px){.controls .site-nav,.controls .region-menu:not(.step-region-menu){display:none!important}.controls #regionBtn{pointer-events:none;cursor:default}.controls #regionBtn svg{display:none}}      /* the pull-down bar (js/top-bar.js) has the page links and the region pill; the panel keeps the region's name as plain text. The links stay in the page (the phone menu clicks them), the region menu too (the bar's pill presses its items) */
.site-nav + .brand-btns{margin-top:0}      /* the same air above and below the thin line */

/* Layer panel under the picture on phones: its title bar stays at the top while you scroll the panel, with a cross, so the menu can always be closed (the Layers button in the dock scrolls out of sight) */
@media (max-width:720px){
  .layerbox.in-flow.open .lb-head{display:flex;position:sticky;top:0;z-index:5;background:var(--sheet);padding:12px 0 8px;border-bottom:1px solid var(--rule);font-size:14px;margin:0 -16px;padding-left:16px;padding-right:16px;width:calc(100% + 32px);box-sizing:border-box}
  .layerbox.in-flow.open .lb-head svg:last-child{transform:none}
  .layerbox.in-flow.open .lb-head span::after{content:' · tap to close';font-weight:500;color:var(--moraine);font-size:12.5px}
}
/* Phones: the docks fold away (js/09-phones.js, "dock-fold") */
.dock-fold,.mapbar .dock-fold,.v3d-measure .dock-fold{display:none}      /* only on phones: the dock's own button rules are more specific than a bare .dock-fold and showed it on desktop */
@media (max-width:720px){
  .mapbar .dock-fold,.v3d-measure .dock-fold{display:flex;align-items:center;justify-content:center;position:absolute;top:-13px;left:50%;transform:translateX(-50%);width:48px;min-width:0;height:18px;min-height:0;padding:0;border-radius:9px;background:rgba(255,255,255,.94);color:var(--moraine,#5C6B74);box-shadow:0 1px 4px rgba(14,26,34,.25);z-index:2}
  .mapbar .dock-fold::before,.v3d-measure .dock-fold::before{content:'';position:absolute;inset:-8px -6px -4px}      /* a bigger touch target than the tab itself */
  .dock-fold svg{display:block!important;width:16px;height:16px;stroke-width:2.6}
  .mapbar.dock-min,.v3d-measure.dock-min{left:50%;right:auto;transform:translateX(-50%);width:auto;min-width:0;padding:0;border-radius:9px;flex-wrap:nowrap;background:transparent;box-shadow:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none;bottom:6px}      /* folded: the same thin tab as when open, centred, arrow up */
  .mapbar.dock-min > :not(.dock-fold),.v3d-measure.dock-min > :not(.dock-fold){display:none!important}
  .mapbar.dock-min .dock-fold,.v3d-measure.dock-min .dock-fold{position:relative;top:auto;left:auto;transform:none;width:48px;height:18px;border-radius:9px;box-shadow:0 1px 4px rgba(14,26,34,.25);background:rgba(255,255,255,.94);color:var(--moraine,#5C6B74)}
  .dock-min .dock-fold svg{transform:rotate(180deg);width:16px;height:16px}
  .docks-folded .leaflet-control-scale{margin-bottom:34px!important}
}

/* phone: the preview buttons (layers, three ratios, custom frame, full screen, play) fit the screen width */
@media (max-width:520px){
  .vf-btns{gap:6px}
  .vf-fmt,.vf-play{width:34px;height:34px}
  .vf-fmt{font-size:10.5px}
  .vf-fmt svg{width:18px;height:18px}
  .vf-layers{margin-right:2px}
  .vf-btns .vf-fmt+.vf-play{margin-left:2px}
  .vf-btns>.vf-close{position:static;width:34px;height:34px;margin-right:4px}      /* the cross under the frame, left of the layers symbol (js/vf-close-dock.js) */
}

/* phones: the title row's pill opens the menu (pages, regions, language: js/phone-menu.js, which carries its own look); the side panel's page links and the region pill stay hidden there */
@media (max-width:720px) and (orientation:portrait), (max-width:950px) and (orientation:landscape) and (max-height:520px){
  .controls .site-nav,#regionBtnM{display:none!important}
  .mhead #sizeTag{display:none}      /* size page: no room beside the pill; the mode switch says which view it is */
}
/* Touch: big enough to grab. Sliders get a 40 px tall hit area and a 26 px thumb (the drawn track stays thin). */
@media (pointer:coarse){
  input[type=range]:not(.yr-track input){height:40px}
  input[type=range]:not(.yr-track input)::-webkit-slider-runnable-track{height:4px}
  input[type=range]:not(.yr-track input)::-moz-range-track{height:4px}
  input[type=range]:not(.yr-track input)::-webkit-slider-thumb{width:26px;height:26px;margin-top:-11px;border-width:2px}
  input[type=range]:not(.yr-track input)::-moz-range-thumb{width:26px;height:26px;border-width:2px}
  .layerbox:not(.in-pane):not(.in-sheet) input[type=range]::-webkit-slider-thumb{width:26px;height:26px;margin-top:-11px}
  .layerbox:not(.in-pane):not(.in-sheet) input[type=range]::-moz-range-thumb{width:26px;height:26px}
  .tune input[type=range],.vo-outside input[type=range]{height:40px}
  .yr-track{height:40px}
  .yr-track::before,.yr-fill{top:18px}
  .yr-track input{height:40px;top:0}
  .yr-track input::-webkit-slider-runnable-track{height:40px}
  .yr-track input::-webkit-slider-thumb{width:24px;height:24px;margin-top:5px}
  .yr-track input::-moz-range-thumb{width:24px;height:24px}
}
@media (pointer:coarse){      /* small round buttons keep their look, the touch area grows to 40 px */
  .info-btn{position:relative}
  .info-btn::after{content:'';position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%)}
}

/* phones: small controls get a tap area of about 40 px without changing how they look (the info "i" buttons and the dock folds have theirs already) */
@media (max-width:720px) and (orientation:portrait){
  #resetBtn,.landsat-chip,.tile-link,.size-link,#downHint,#tuneSwitch,#playBtn,.social-share,#linkBtn{position:relative}
  #resetBtn::after,.landsat-chip::after,.tile-link::after,.size-link::after,#downHint::after,#tuneSwitch::after,#playBtn::after,#linkBtn::after{content:'';position:absolute;left:0;right:0;top:50%;height:max(100%,44px);transform:translateY(-50%)}
  .social-share::after{content:'';position:absolute;inset:-8px}
  a[id^="fnr-"],.story sup a,sup a[href^="#fn"]{padding:10px 7px;margin:-10px -7px}      /* the little footnote numbers: padding widens the tap area of the inline link, the negative margin keeps the text where it was */
  .story a:not(.act):not(.tool-btn):not(.size-link){padding-block:6px;margin-block:-6px}
  details > summary{min-height:44px}
}
#pinBtn.placed svg,#v3mPin.placed svg{fill:var(--accent);stroke:var(--accent)}      /* a pin stands: the button's pin symbol is filled red */
#pinBtn.placed circle,#v3mPin.placed circle{fill:#fff;stroke:#fff}

/* ---- German and French (js/i18n.js sets <html lang> and data-i18n-long): longer words than in English; fixes found by scripts/i18n/layout_check.py ---- */
html[data-i18n-long] .vs-opts select.small{min-width:100px}
html[data-i18n-long] .sw{font-size:10.5px;letter-spacing:-.01em}
html[data-i18n-long] .sw span{white-space:nowrap}

/* region pill next to "1 Choose": the same menu as the title's, opening below the step heading */
#glacierGroup{position:relative}
.step-region-btn{display:inline-flex;align-items:center;gap:3px;margin:0 0 0 auto;min-width:0;padding:3px 5px 3px 8px;border:1px solid var(--rule);border-radius:var(--r-pill,999px);background:var(--firn);font:inherit;font-size:10.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--rock,#0A1B33);cursor:pointer;white-space:nowrap;align-self:flex-end;margin-bottom:-1px;transition:background .15s,border-color .15s}
.step-region-btn .region-name{overflow:hidden;text-overflow:ellipsis}
.step-region-btn:hover{background:#fff;border-color:var(--crevasse)}
.step-region-btn:focus-visible{outline:2px solid var(--crevasse);outline-offset:2px}
.step-region-btn svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.step-region-btn[aria-expanded="true"]{background:#fff;border-color:var(--crevasse)}
.step-region-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.step-region-menu{left:auto;right:0;top:34px}
@media (max-width:720px) and (orientation:portrait),(max-width:950px) and (orientation:landscape) and (max-height:520px){.step-region-btn,.step-region-menu{display:none!important}}      /* phones: the header pill is the region picker */
