/* Fonts are served from this site: no requests to third parties */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
:root {
  /* Type scale for About and The models: 15px body, ratio 1.25 (major third). Baseline grid 22px: every line-height, margin
     and padding there is a multiple of half of it. */
  --lh: 22px;
  --fs-1: 12px;
  --fs0: 15px;
  --fs1: 18.75px;
  --fs2: 23.4375px;
  --fs3: 29.296875px;
  /* Layout: a surveyor's map sheet. Framed page, margin ticks, the live model as the plate, the catalogue as its legend. */
  --paper: #e4e6e0;
  --sheet: #fafaf7;
  --raise: #ffffff;
  --ink: #1d2427;
  --muted: #646d72;
  --rule: #d5d9d2;
  --contour: #9b6b3c;
  --glacier: #2c6a94;
  --glacier-soft: #dbe8f0;
  --sun: #c8832f;
  --font-display: "Literata", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0d0e;
    --sheet: #151a1d;
  --raise: #1f262a;
    --ink: #e4e7e2;
    --muted: #8f989c;
    --rule: #2a3236;
    --contour: #c99a66;
    --glacier: #79b0d6;
    --glacier-soft: #1b2b36;
    --sun: #e0a85a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a0d0e;
  --sheet: #151a1d;
  --raise: #1f262a;
  --ink: #e4e7e2;
  --muted: #8f989c;
  --rule: #2a3236;
  --contour: #c99a66;
  --glacier: #79b0d6;
  --glacier-soft: #1b2b36;
  --sun: #e0a85a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
/* Links: one look everywhere (text links, the About link, Copy coordinates, Open in Google Maps, Clear filters) */
a,
.locator .copy,
.chip.clear {
  color: var(--glacier);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px;
}
a:hover,
.locator .copy:hover,
.chip.clear:hover { text-decoration-color: currentColor; }
a:active,
.locator .copy:active,
.chip.clear:active { color: var(--ink); }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 2px; }

.sheet {
  --gap: 20px;
  display: flex;
  flex-direction: column;
  gap: 96px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.box {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--sheet);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.coord {
  position: absolute;
  z-index: 4;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
  background: var(--sheet);
  padding: 0 6px;
}
.coord.tl { top: -7px; left: 28px; }
.coord.tr { top: -7px; right: 28px; }
.coord.bl { bottom: -7px; left: 28px; }
.coord.br { bottom: -7px; right: 28px; }
/* The corner labels sit across the plate's border: the border carries on around the part outside the plate */
.coord.bl::after,
.coord.br::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 8px;
  border: 1px solid var(--ink);
  border-top: 0;
  pointer-events: none;
}
.coord.tl::after,
.coord.tr::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 8px;
  border: 1px solid var(--ink);
  border-bottom: 0;
  pointer-events: none;
}

/* Top line */
.topline {
  padding: 8px 24px;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.topline strong {
  font-weight: 500;
  color: var(--ink);
}
.band-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  max-width: 1232px;
  margin: 0 auto;
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.mast-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
}
/* Tablets: the page runs to the gutters, no cap */
@media (pointer: coarse) {
  .sheet,
  .mast-in { max-width: none; }
}
.masthead h1 {
  min-width: 0;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.masthead h1 a {
  color: inherit;
  text-decoration: none;
}
.masthead h1 em { font-style: italic; font-weight: 400; color: var(--glacier); }
.mast-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mast-tools.end { justify-content: flex-end; }
.about-link {
  margin-right: 4px;
  font: 500 13px var(--font-body);
  white-space: nowrap;
}
.about-link .short { display: none; }
.tool {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--raise);
  color: var(--ink);
  cursor: pointer;
}

.tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .theme .moon,
:root:not([data-theme="dark"]) .theme .sun-ic { display: none; }
.totop { transition: opacity 0.2s ease; }
.totop:disabled {
  opacity: 0.35;
  cursor: default;
}
.totop:disabled:hover { background: var(--raise); }

/* Intro */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 16px 40px;
  padding: 56px 33px 40px;
  text-align: center;
  transform-origin: 50% 100%;
}
/* Intro collapses as the page scrolls, driven by the scroll itself (no JavaScript) */
@supports (animation-timeline: scroll()) {
  .intro {
    animation: intro-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0 240px;
  }
}
@keyframes intro-out {
  to {
    opacity: 0;
    transform: translateY(70px) scale(0.92);
  }
}
.intro .intro-art {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin-bottom: 24px;
}
.intro .lede {
  max-width: 46em;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.35;
  text-wrap: pretty;
}
.intro .facts {
  margin: 0;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
}

/* Plate: viewer + legend panel */
.plate {
  scroll-margin-top: calc(var(--head-h, 60px) + 20px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 560px;
}
.viewer {
  --ctl: 32px;
  /* gutter of the controls from every edge of the viewer: their centres sit 44px in, like the compass */
  --gut: calc(44px - var(--ctl) / 2);
  position: relative;
  border-right: 1px solid var(--rule);
  min-height: 460px;
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--glacier-soft) 55%, transparent), transparent 70%);
}
.lift-sentinel {
  position: absolute;
  right: 0;
  bottom: -42px;
  width: 1px;
  height: 84px;
  pointer-events: none;
}
.viewer canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; }
.viewer .poster {
  position: absolute;
  inset: 12% 14%;
  object-fit: contain;
  width: 72%;
  height: 76%;
  transition: opacity 0.4s ease;
}
.viewer.ready .poster { opacity: 0; pointer-events: none; }
.viewer.loading .poster { opacity: 0.35; }
.viewer .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid var(--rule);
  border-top-color: var(--glacier);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  animation: spin 0.8s linear infinite;
}
.viewer.loading .loader { opacity: 1; }
.viewer .pager {
  position: absolute;
  top: var(--gut);
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  transform: translateX(-50%);
  box-sizing: border-box;
  height: var(--ctl);
  padding: 0 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--raise) 88%, transparent);
}
.viewer .pager button {
  display: grid;
  place-items: center;
  width: calc(var(--ctl) - 8px);
  height: calc(var(--ctl) - 8px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.viewer .pager button:focus-visible {
  outline-offset: -2px;
}
.viewer .pager svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viewer .pager span {
  min-width: 52px;
  font-family: var(--font-data);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--muted);
}
.viewer .pager .pager-name {
  display: none;
  max-width: calc(100vw - 240px);
  overflow: hidden;
  padding: 0 6px;
  font: 500 13px var(--font-body);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
}
.viewer.full .pager #nav-count { display: none; }
.viewer.full .pager .pager-name { display: block; }
.viewer .fs {
  position: absolute;
  right: var(--gut);
  bottom: var(--gut);
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--ctl, 32px);
  height: var(--ctl, 32px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: color-mix(in srgb, var(--raise) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.viewer .fs svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viewer .fs .off,
.viewer.full .fs .on { display: none; }
.viewer.full .fs .off { display: block; }
.viewer:fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
  background-color: var(--sheet);
}
.viewer.full.fake {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 0;
  border: 0;
  background-color: var(--sheet);
}
.viewer .compass {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--raise) 72%, transparent);
  cursor: pointer;
}

.viewer .compass svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.viewer .compass .n { fill: var(--contour); }
.viewer .compass .ring,
.viewer .compass .ticks {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}
.viewer .compass .ring { stroke-opacity: 0.55; }
.viewer .compass .ticks { stroke-opacity: 0.35; }
.viewer .compass .ticks.cardinal { stroke-opacity: 0.6; }
.viewer .compass .zenith {
  fill: var(--ink);
  fill-opacity: 0.5;
}
.viewer .compass .sun-path path {
  fill: none;
  stroke: var(--sun);
  stroke-linecap: round;
}
.viewer .compass .sun-path .day {
  stroke-width: 1;
  stroke-dasharray: 1 2;
}
.viewer .compass .sun-path .done { stroke-width: 1.2; }
.viewer .compass .sun-path .halo {
  fill: var(--sun);
  fill-opacity: 0.18;
}
.viewer .compass .sun-path .dot { fill: var(--sun); }
.viewer .sun-deg {
  position: absolute;
  top: 79px;
  right: 12px;
  z-index: 2;
  width: 64px;
  font: 500 10px var(--font-data);
  font-variant-numeric: tabular-nums;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
  color: var(--muted);
}
.viewer .sun-deg .az,
.viewer .sun-deg .el { display: inline-block; }
.viewer .sun-deg .az {
  width: 4ch;
  text-align: right;
}
.viewer .sun-deg .el {
  width: 3ch;
  text-align: left;
}
.viewer .topview {
  top: 98px;
  right: var(--gut);
  display: grid;
  place-items: center;
  width: var(--ctl);
  height: var(--ctl);
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--raise) 88%, transparent);
}
.viewer .topview svg {
  width: 16px;
  height: 16px;
}
.viewer .topview rect {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.viewer .compass text {
  font: 600 6.5px var(--font-data);
  fill: var(--ink);
}
.viewer .sun,
.viewer .spin {
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 3px;
  font: 500 12px var(--font-body);
  color: var(--muted);
}
.seg .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* the circle is concentric with the pill's rounded end, like the play buttons: centre at --ctl / 2 */
  padding-left: calc(var(--ctl) / 2 - 9px);
}
.seg .check svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.seg .check circle {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
}
.seg .check path {
  fill: none;
  stroke: var(--sheet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.seg .check[aria-pressed="true"] circle {
  fill: var(--ink);
  stroke: var(--ink);
}
.seg .check[aria-pressed="true"] path { opacity: 1; }
.seg .check[aria-pressed="true"] { background: none; }
.viewer .sun .play,
.viewer .spin .play {
  display: grid;
  place-items: center;
  align-self: center;
  width: calc(var(--ctl) - 8px);
  height: calc(var(--ctl) - 8px);
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
}

.viewer .sun .play svg,
.viewer .spin .play svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viewer .sun .play .pa,
.viewer .spin .play .pa,
.viewer .sun .play[aria-pressed="true"] .pl,
.viewer .spin .play[aria-pressed="true"] .pl { display: none; }
.viewer .sun .play[aria-pressed="true"] .pa,
.viewer .spin .play[aria-pressed="true"] .pa { display: block; }
.viewer .sun .play[aria-pressed="true"],
.viewer .spin .play[aria-pressed="true"] { background: var(--glacier-soft); }
.viewer .sun input,
.viewer .spin input {
  width: 96px;
  accent-color: var(--contour);
}
.viewer .sun output {
  min-width: 5ch;
  font: 500 11px var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.viewer.loading .scalebar,
.scalebar.off { visibility: hidden; }
.overlay-tools {
  position: absolute;
  top: calc(var(--gut) + 42px);
  left: var(--gut);
  z-index: 2;
}
.overlay-tools .seg {
  box-sizing: border-box;
  height: var(--ctl);
  align-items: stretch;
}
.overlay-tools .seg button {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (pointer: coarse) {
  .viewer { --ctl: 40px; }
}
.viewer-bar {
  position: absolute;
  left: var(--gut);
  right: calc(var(--gut) + var(--ctl) + 10px);
  bottom: var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}
.viewer-bar > * { pointer-events: auto; }
.viewer-bar .hint { margin-left: auto; }
.seg {
  overflow: hidden;
  border-radius: 999px;
  display: inline-flex;
  border: 1px solid var(--rule);
  background: var(--raise);
}
.seg button {
  font: 500 12px var(--font-body);
  color: var(--muted);
  background: none;
  border: 0;
  padding: 7px 14px;
  cursor: pointer;
}
.viewer-bar .seg {
  box-sizing: border-box;
  height: var(--ctl);
  align-items: stretch;
}
.viewer-bar .seg[hidden] { display: none; }
.viewer-bar .sun,
.viewer-bar .spin { align-items: center; }
.viewer-bar .seg button {
  display: inline-flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--glacier-soft); }
.hint {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
}
.looks {
  position: absolute;
  top: var(--gut);
  left: var(--gut);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.looks button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--sheet);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px var(--rule);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.looks button:hover { box-shadow: 0 0 0 1px var(--ink); }
.looks button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.status {
  position: absolute;
  top: calc(var(--gut) + 38px);
  left: var(--gut);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
}
.scalebar {
  position: absolute;
  right: calc(var(--gut) + var(--ctl) + 12px);
  bottom: calc(var(--gut) + var(--ctl) / 2);
  transform: translateY(50%);
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.scalebar .bar {
  height: 6px;
  margin-top: 4px;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 25%, transparent 25% 50%);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}
.legend .group {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--contour);
}
.legend h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  margin: 4px 0 0;
  text-wrap: balance;
}
.legend .fullname {
  margin-top: 4px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
}
.legend .fullname[hidden] { display: none; }
.legend .elev .summit {
  margin-left: 10px;
  font: 500 13px var(--font-body);
  font-style: normal;
  color: var(--muted);
}
.legend .elev {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--glacier);
  margin-top: 2px;
}
.legend p { margin: 0; color: var(--muted); max-width: 65ch; }
/* Low-resolution models: 10 m data cells are 1 mm or more on the print; LiDAR: the LiDAR version is shown */
/* Same look as the card badges: full pills are only for things you can press */
.legend .lowres-tag,
.legend .lidar-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 3px;
  background: var(--raise);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--contour);
}
.legend .lidar-tag {
  margin: 0;
  text-transform: none;
  color: var(--glacier);
}
.legend .lowres-tag[hidden],
.legend .lowres-note[hidden] { display: none; }
.legend .lowres-note {
  font-size: 13px;
  border-left: 2px solid var(--contour);
  padding-left: 10px;
}
dl.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 13px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
dl.specs dt { color: var(--muted); }
dl.specs dd { margin: 0; font-family: var(--font-data); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 14px var(--font-body);
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--sheet);
  cursor: pointer;
}
.btn.ghost { background: var(--raise); color: var(--ink); }
#dl-one > span { white-space: nowrap; }
.dl-meta {
  white-space: nowrap;
  font: 400 12px var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
#dl-one .dl-meta {
  font: 400 14px var(--font-body);
  color: inherit;
  opacity: 0.6;
}
.dl-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 20px;
}
.dl-also {
  margin: 0;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--contour);
}
.dl-list > button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  line-height: inherit;
  text-align: left;
}
.dl-list > button { cursor: pointer; }
.dl-list > button > span:first-child { transition: color 0.1s; }
.dl-list > button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.dl-list .dl-meta { font-size: 12.5px; }
.dl-list > button > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dl-list > button > span:first-child::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8.5M4 7.5 8 11.5l4-4M3 14h10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8.5M4 7.5 8 11.5l4-4M3 14h10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[hidden] { display: none; }
.note { font-size: 12px; color: var(--muted); min-height: 1.4em; }
.locator { display: flex; gap: 14px; align-items: flex-start; }
.locator svg { width: 104px; height: auto; flex: none; }
.locator svg path { fill: var(--glacier-soft); stroke: var(--muted); stroke-width: 1.2; }
.locator svg circle { fill: var(--muted); }
.locator svg circle.on { fill: var(--contour); }
.locator .ll { font-family: var(--font-data); font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.locator .copy {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 0;
  font: 500 12px var(--font-body);
  background: none;
  border: 0;
  cursor: pointer;
}
.locator .copy::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='1.5'/%3E%3Cpath d='M10.5 5.5V3.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='1.5'/%3E%3Cpath d='M10.5 5.5V3.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.locator .copy.maps::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5 5.5 2l5 2 4-1.5v10l-4 1.5-5-2-4 1.5Z'/%3E%3Cpath d='M5.5 2v10M10.5 4v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M1.5 3.5 5.5 2l5 2 4-1.5v10l-4 1.5-5-2-4 1.5Z'/%3E%3Cpath d='M5.5 2v10M10.5 4v10'/%3E%3C/svg%3E");
}
#dl-one::before,
#dl-hd::before,
#dl-water::before,
#dl-all::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8.5M4 7.5 8 11.5l4-4M3 14h10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8.5M4 7.5 8 11.5l4-4M3 14h10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Catalogue */
.catalogue {
  --pad: 32px;
  padding: 0 var(--pad) var(--pad);
  border-top: 0;
}
.cat-head {
  position: sticky;
  top: calc(var(--head-h, 60px) + var(--gap));
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 calc(-1 * var(--pad)) 20px;
  padding: 18px var(--pad) 14px;
  background: var(--sheet);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.cat-head::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: calc(100% + 1px);
  height: var(--gap);
  background: var(--paper);
}
.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  margin: 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.multi { position: relative; }
.multi summary {
  list-style: none;
  user-select: none;
}
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
}
.multi[open] summary { border-color: var(--ink); color: var(--ink); }
.multi-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 2px 16px;
  width: max-content;
  max-width: min(440px, calc(100vw - 48px));
  max-height: 60vh;
  overflow: auto;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--sheet);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent);
}
.multi-panel.start {
  right: auto;
  left: 0;
}
.multi-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -6px;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
}
.multi-panel label.all {
  grid-column: 1 / -1;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.multi-panel input { accent-color: var(--glacier); }
.multi-panel .n {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--contour);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.no-match {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
}
.chip {
  font: 500 12.5px var(--font-body);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--raise);
  color: var(--muted);
  padding: 6px 13px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"]:not([data-g="All"]),
.multi summary.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--sheet);
}
.chip[aria-pressed="true"]:not([data-g="All"]) .n { color: var(--sheet); opacity: 0.7; }
.sort-wrap { display: inline-flex; }
.chip.sort {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  background: var(--raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23646d72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6l3-3 3 3M5 10l3 3 3-3'/%3E%3C/svg%3E") right 9px center / 12px no-repeat;
  cursor: pointer;
}
.chip.clear {
  border-color: transparent;
  background: transparent;
}
.chip.clear[hidden] { display: none; }
.search {
  position: relative;
  display: inline-flex;
}
.chip.search-in {
  width: 150px;
  padding-left: 30px;
  padding-right: 26px;
  color: var(--ink);
  background: var(--raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23646d72' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E") 11px center / 13px no-repeat;
  cursor: text;
}
.chip.search-in::placeholder { color: var(--muted); }
.chip.search-in:focus { border-color: var(--ink); }
.search-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.search-clear[hidden] { display: none; }
/* Touch: 16px text so phones don't zoom in on focus */
@media (pointer: coarse) {
  .chip.search-in {
    font-size: 16px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}
.cat-count {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 400;
  color: var(--contour);
  vertical-align: middle;
}
.chip .n { font-family: var(--font-data); font-size: 11px; margin-left: 4px; color: var(--contour); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 14px 16px 16px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.card[hidden] { display: none; }
/* Hover: every control gets the same pale fill (only where a real hover exists) */
@media (hover: hover) {
  .tool:hover,
  .seg button:hover,
  .viewer .pager button:hover,
  .viewer .sun .play:hover,
  .viewer .spin .play:hover,
  .viewer .fs:hover,
  .viewer .compass:hover,
  .map-reset:hover,
  .chip:hover,
  .search-clear:hover,
  .btn.ghost:hover,
  .scroll-hint:hover,
  .multi-panel label:hover {
    /* the colour only: the search field keeps its magnifier */
    background-color: var(--glacier-soft);
  }
  .chip.clear:hover { background-color: transparent; }
  .viewer .sun input:hover,
  .viewer .spin input:hover { accent-color: color-mix(in srgb, var(--contour) 75%, var(--ink)); }
  .btn:not(.ghost):not([disabled]):hover { background-color: color-mix(in srgb, var(--ink) 82%, var(--sheet)); }
  .dl-list > button:hover > span:first-child,
  #brand:hover em { color: var(--glacier); }
  #brand:hover { color: color-mix(in srgb, var(--ink) 75%, var(--sheet)); }
  #bigmap .pt:hover circle { fill: var(--glacier); }
}
/* Pressed: one step darker than hover, for every control */
.tool:active,
.seg button:active,
.viewer .pager button:active,
.viewer .sun .play:active,
.viewer .spin .play:active,
.viewer .fs:active,
.viewer .compass:active,
.map-reset:active,
.chip:not(.clear):active,
.search-clear:active,
.btn.ghost:not([disabled]):active,
.scroll-hint:active,
.multi-panel label:active,
.card:active {
  background-color: color-mix(in srgb, var(--glacier) 25%, var(--sheet));
}
.btn:not(.ghost):not([disabled]):active { background-color: color-mix(in srgb, var(--ink) 68%, var(--sheet)); }
.looks button:active { box-shadow: 0 0 0 2px var(--glacier); }
.viewer .sun input:active,
.viewer .spin input:active { accent-color: var(--ink); }
.dl-list > button:active > span:first-child,
#brand:active,
#brand:active em { color: var(--ink); }
#bigmap .pt:active circle { fill: var(--ink); }
.card:hover { background: color-mix(in srgb, var(--glacier-soft) 50%, transparent); }
.card[aria-current="true"] { background: var(--glacier-soft); }
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 4px;
}
.card .nm {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
}
.card .mt { font-family: var(--font-data); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .mt b { color: var(--glacier); font-weight: 500; }
.card .mt b,
.card .mt span {
  display: block;
  white-space: nowrap;
}
.card .mt span:first-of-type { white-space: normal; }
.card .mt .badges {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 4px;
}
.card .mt .badge {
  display: block;
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 3px;
  background: var(--raise);
  font-size: 9px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.08em;
  color: var(--glacier);
}
.card .mt .badge.low { color: var(--contour); }

/* Map + catalogue */
.cat-body {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cat-scroll {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cat-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--muted) transparent;
}
.cat-list::-webkit-scrollbar { width: 10px; }
.cat-list::-webkit-scrollbar-track { background: transparent; }
.cat-list::-webkit-scrollbar-thumb {
  border: 2px solid var(--sheet);
  border-radius: 6px;
  background: var(--muted);
}
.cat-scroll::before,
.cat-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cat-scroll::before {
  top: 0;
  height: 28px;
  background: linear-gradient(var(--sheet), transparent);
}
.cat-scroll::after {
  bottom: 0;
  height: 96px;
  background: linear-gradient(transparent, var(--sheet) 75%);
}
.cat-scroll.more-up::before,
.cat-scroll.more-down::after { opacity: 1; }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--raise);
  color: var(--ink);
  font: 500 12px var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.scroll-hint b {
  font-family: var(--font-data);
  font-weight: 500;
  color: var(--contour);
}
.scroll-hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  50% { transform: translateY(3px); }
}
.cat-scroll.more-down .scroll-hint {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}
.map {
  margin: 0;
}
.map-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.map-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  margin: 0;
}
.map-reset {
  border-radius: 999px;
  font: 500 12px var(--font-body);
  color: var(--glacier);
  background: var(--raise);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  cursor: pointer;
}
.map-reset[hidden] { display: none; }
#bigmap {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
#bigmap.panned {
  touch-action: none;
  cursor: grab;
}
#bigmap.dragging { cursor: grabbing; }
#bigmap .land {
  fill: var(--glacier-soft);
  stroke: var(--muted);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
#bigmap .borders {
  fill: none;
  stroke: var(--muted);
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#bigmap.zoomed .borders { opacity: 0.6; }
#bigmap .city rect {
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 1.2;
}
#bigmap #map-cities {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#bigmap.zoomed #map-cities { opacity: 1; }
#bigmap .pt {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
#bigmap .pt circle {
  fill: var(--ink);
  stroke: var(--sheet);
  stroke-width: 1.5;
}
#bigmap .pt.on circle { fill: var(--contour); }
#bigmap .pt.off { opacity: 0.18; }
#bigmap .pt:focus { outline: none; }
#bigmap .pt:focus-visible circle {
  stroke: var(--glacier);
  stroke-width: 3;
}
#bigmap .lbl {
  font-family: var(--font-data);
  font-size: 12px;
  fill: var(--ink);
  stroke: var(--sheet);
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke;
  pointer-events: none;
}
#bigmap .lbl.all { fill: var(--muted); }
#bigmap .lbl.city {
  font-family: var(--font-body);
  font-size: 11.5px;
  fill: var(--ink);
}
#bigmap .lbl.city.r2 { font-size: 10.5px; }
#bigmap .lbl.reg {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--contour);
  opacity: 0.75;
}
#bigmap .lbl.cur {
  font-weight: 500;
  fill: var(--contour);
}
.map figcaption {
  margin-top: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
}
.map .hint-fine { display: none; }
@media (hover: hover) and (pointer: fine) {
  .map .hint-fine { display: inline; }
  .map .hint-touch { display: none; }
}

/* About & credits */
.about {
  scroll-margin-top: calc(var(--head-h, 60px) + 20px);
  padding: calc(var(--lh) * 1.5) 32px;
  background: color-mix(in srgb, var(--glacier-soft) 35%, var(--sheet));
}
.method > h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs3);
  line-height: calc(var(--lh) * 2);
}
.about > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs3);
  line-height: calc(var(--lh) * 2);
  margin: 0;
}
.about .byline {
  margin: 0 0 calc(var(--lh) * 1.5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs2);
  line-height: calc(var(--lh) * 1.5);
  color: var(--glacier);
}
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: calc(var(--lh) * 2) 56px;
}
.about-main,
.about-side {
  display: grid;
  align-content: start;
  gap: calc(var(--lh) * 2);
}
.about-data strong { font-weight: 600; }
.about h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs2);
  line-height: calc(var(--lh) * 1.5);
  margin: 0 0 calc(var(--lh) / 2);
}
.about p {
  margin: 0 0 calc(var(--lh) / 2);
  font-size: var(--fs0);
  line-height: var(--lh);
  color: var(--ink);
  max-width: 65ch;
}
.about-cols p:last-child { margin-bottom: 0; }
.about .about-side h3 { font-size: var(--fs1); }
/* Baselines on the grid: every first line sits 6px past a multiple of 11 like the body text. Display and mono faces sit
   differently in the same line box, so they are nudged without moving anything else. */
.about > h2,
.method > h2 {
  position: relative;
  top: 4px;
}
.about .about-side h3 {
  position: relative;
  top: 3px;
}
.about .about-side p { color: var(--muted); }
.about-side strong { color: var(--ink); }
.about .cite {
  margin-top: calc(var(--lh) * 2);
  padding: calc(var(--lh) + 1px) 18px calc(var(--lh) - 1px);
  background: var(--sheet);
  font-family: var(--font-data);
  font-size: var(--fs-1);
  line-height: var(--lh);
}
.about .cite > div + div { margin-top: calc(var(--lh) / 2); }

/* Method & credits */
.method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--lh) * 2) 56px;
  padding: calc(var(--lh) * 1.5) 32px;
}
.method h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs2);
  line-height: calc(var(--lh) * 1.5);
  margin: 0 0 calc(var(--lh) / 2);
}
.method p,
.method li {
  font-size: var(--fs0);
  line-height: var(--lh);
  color: var(--muted);
  max-width: 65ch;
}
.method p { margin: 0 0 calc(var(--lh) / 2); }
.method ul {
  margin: 0;
  padding-left: 18px;
}
.method strong { color: var(--ink); font-weight: 600; }
.credit {
  font-family: var(--font-data);
  font-size: var(--fs-1);
  line-height: var(--lh);
  color: var(--muted);
  background: color-mix(in srgb, var(--glacier-soft) 55%, var(--sheet));
  padding: calc(var(--lh) + 1px) 18px calc(var(--lh) - 1px);
  margin-top: calc(var(--lh) / 2);
}
.bulk {
  display: flex;
  flex-direction: column;
  gap: calc(var(--lh) / 2);
  margin-top: var(--lh);
}
.bulk .note { text-align: center; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
}

@media (min-width: 721px) {
  .viewer-bar { right: calc(var(--gut) + var(--ctl) + 170px); }
  .overlay-tools { top: var(--gut); }
  .looks {
    top: calc(var(--gut) + var(--ctl) + 14px);
    left: var(--gut);
    flex-direction: column;
    gap: 10px;
  }
  .status {
    top: calc(var(--gut) + var(--ctl) + 18px);
    left: calc(var(--gut) + 44px);
  }
  .cat-body {
    overflow: clip;
    height: calc(100vh - var(--head-h, 60px) - var(--bar-h, 70px) - 2 * var(--gap) - var(--pad) - 20px);
    min-height: 260px;
    align-items: stretch;
  }
  .map {
    position: sticky;
    top: calc(var(--head-h, 60px) + var(--gap) + var(--bar-h, 70px) + 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    container-type: size;
  }
  #bigmap {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}
/* Map column: title only when the whole map still fits under it */
@container (min-aspect-ratio: 13 / 20) {
  .map-head h3 { display: none; }
  .map-head:has(.map-reset[hidden]) { display: none; }
}
@media (max-width: 960px) {
  .plate { grid-template-columns: 1fr; }
  .viewer { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 62vw; }
  .method { grid-template-columns: 1fr; }

  .cat-body { grid-template-columns: 300px minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 720px) {
  .about-cols { grid-template-columns: 1fr; }
  .cat-body { grid-template-columns: 1fr; }
  .map {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }
  #bigmap { max-height: none; }
  .cat-list {
    max-height: calc(100vh - var(--head-h, 60px) - var(--bar-h, 70px) - 40px);
    border-bottom: 1px solid var(--rule);
  }
  .intro .facts { white-space: normal; }
  .scalebar { display: none; }
}
@media (max-width: 560px) {
  .sheet {
    --gap: 14px;
    gap: 56px;
    padding: 14px 12px 28px;
  }
  .topline { padding: 6px 12px; font-size: 10px; }
  .band-items { gap: 2px 10px; }
  .mast-in {
    gap: 10px;
    padding: 8px 12px;
  }
  .masthead h1 { font-size: 21px; }
  .mast-tools .tool {
    width: 30px;
    height: 30px;
  }
  .mast-tools { gap: 6px; }
  .about-link { margin-right: 0; font-size: 12px; }
  .lang button { padding: 5px 8px; }
  .mast-in { gap: 8px; }
  .about-link .long { display: none; }
  .about-link .short { display: inline; }
  .totop {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    border-color: var(--ink);
    border-radius: 50%;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 18%, transparent);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .totop.lift { transform: translateY(-56px); }
  .multi-panel { grid-template-columns: 1fr; }
  .viewer {
    min-height: calc(100vh - var(--head-h, 50px) - 2 * var(--gap) - 12px);
    min-height: calc(100svh - var(--head-h, 50px) - 2 * var(--gap) - 12px);
  }
  .viewer .pager { top: calc(var(--gut) + 44px); }
  .viewer .scalebar { top: calc(var(--gut) + 92px); }
  .status { top: calc(var(--gut) + 92px); }
  .viewer .hint { display: none; }
  .viewer .sun input { width: 72px; }
  .viewer .spin { padding: 0 3px; }
  .viewer .spin label,
  .viewer .spin input { display: none; }
  .intro { padding: 32px 6px 28px; }
  .about-cols { grid-template-columns: 1fr; }
  .legend,
  .method,
  .about { padding: var(--lh) 18px; }
  .catalogue { --pad: 18px; }
  .cat-head {
    margin-bottom: 16px;
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .cat-head h2 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 10px; }
  .card .mt .badges {
    top: 10px;
    left: 10px;
  }
  .coord { font-size: 9px; padding: 0 4px; }
  .coord.tl,
  .coord.bl { left: 14px; }
  .coord.tr,
  .coord.br { right: 14px; }
  footer { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { animation: none; }
  .viewer .loader { animation-duration: 3s; }
  .scroll-hint svg { animation: none; }
  .viewer .poster,
  #bigmap .pt,
  #bigmap .borders,
  #bigmap #map-cities { transition: none; }
}
