/* Strandline's pages, in Bluegraph's design language: near-black depths, glass
   panels, light headings in Public Sans, numbers and code in JetBrains Mono.
   One dark design for every page. A theme changes the map, not the page. */

@font-face {
  font-family: "Public Sans";
  src: url(fonts/public-sans-latin.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/jetbrains-mono-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05080f;
  --bg-2: #0a111d;
  --bg-3: #0f1828;
  --glass: linear-gradient(160deg, rgb(20 29 47 / 0.96), rgb(8 13 24 / 0.97));
  --glass-thin: linear-gradient(160deg, rgb(24 34 54 / 0.7), rgb(8 13 24 / 0.62));   /* the main site's own */
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.16);
  --ink: #e6ecf5;
  --ink-2: #a8b3c7;
  --ink-3: #7d889c;
  --glow: #59bdf5;
  --link: #8fcaf2;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

/* A panel of glass over the map. It is denser than the main site's, which sits over
   a dark globe: a map has detail and, in the light theme, brightness behind it. */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
}

.eyebrow {
  margin: 0 0 8px;
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Bluegraph's mark and name: the publisher's imprint. */
.imprint { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: 0.01em; }
.imprint svg { display: block; height: 22px; width: auto; color: var(--ink); position: relative; top: -1.5px; }
.imprint:hover { color: var(--ink); }

/* Segmented control: the current choice lit. */
.seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.03); }
.seg > a, .seg > button {
  border: 0; background: none; color: var(--ink-2); font: 500 12px/1 var(--sans); padding: 6px 11px;
  border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.seg > :hover { color: var(--ink); }
.seg > [aria-pressed="true"], .seg > [aria-current] { background: rgb(255 255 255 / 0.13); color: var(--ink); }

/* The one action a page leads with, and the quieter ones beside it. */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 1px solid rgb(143 202 242 / 0.55); border-radius: 999px;
  background: linear-gradient(180deg, rgb(89 189 245 / 0.22), rgb(89 189 245 / 0.1));
  font: 600 13px/1 var(--sans); color: #e3f3ff; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: linear-gradient(180deg, rgb(89 189 245 / 0.3), rgb(89 189 245 / 0.16)); }
.btn--quiet { border-color: var(--line-2); background: rgb(255 255 255 / 0.03); color: var(--ink-2); font-weight: 500; }
.btn--quiet:hover { background: rgb(255 255 255 / 0.07); color: var(--ink); }

/* A link that goes somewhere, in the manner of the main site's "Chart at 44008". */
.more { font: 12px/1.4 var(--mono); color: var(--link); text-decoration: none; white-space: nowrap; }
.more::after { content: " \2192"; }
.more:hover { color: #c3e4fa; }

code, pre, .mono { font-family: var(--mono); }
:not(pre) > code { font: 600 0.82em var(--mono); color: var(--ink); padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; white-space: nowrap; }

/* A sample of code, with a button that copies it. */
.code { position: relative; margin: 14px 0 16px; }
.code pre {
  margin: 0; padding: 11px 14px; overflow-x: auto; tab-size: 2;
  border: 1px solid var(--line); border-radius: 10px; background: rgb(5 8 15 / 0.62);
  font: 12px/1.5 var(--mono); color: #cfd8e6;
}
.code .c { color: var(--ink-3); font-style: italic; }
.code .k { color: #8fcaf2; }
.code .s { color: #e8c28f; }
.code .num { color: #9fe0c4; }
.copy {
  position: absolute; top: 8px; right: 8px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgb(10 17 29 / 0.9); color: var(--ink-2); font: 500 11px/1 var(--sans); cursor: pointer;
}
.copy:hover { color: var(--ink); border-color: rgb(143 202 242 / 0.5); }

/* The map's own controls, on the dark page. */
.maplibregl-ctrl-scale { background: rgb(10 17 29 / 0.55); color: var(--ink-2); border-color: var(--ink-3); font: 10px var(--mono); }
.maplibregl-ctrl-group { background: var(--bg-3); box-shadow: 0 0 0 1px var(--line-2); }
.maplibregl-ctrl-group button + button { border-top-color: var(--line-2); }
.maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1); }

/* --- the front page: cards that scroll over one map --------------------------- */

.front #map { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; }
.front main { position: relative; pointer-events: none; padding: 11vh 0 26vh; }
.front .maplibregl-canvas-container.maplibregl-interactive { cursor: default; }   /* nothing here drags */
.step {
  pointer-events: auto; width: min(430px, calc(100% - 24px)); margin: 0 0 44vh max(12px, 4.5vw);
  padding: 26px 28px 22px;
}
.step--wide { width: min(560px, calc(100% - 24px)); }
/* The title card is thinner glass, the main site's own, so the map shows through it, blurred.
   The cards after it stay dense: each is read over the detail it describes. */
.front .step:first-child { background: var(--glass-thin); }
/* On trial, until the owner names one: ?glass=dense is halfway, ?glass=solid is the card as it was. */
.front.glass-dense .step:first-child { background: linear-gradient(160deg, rgb(22 31 50 / 0.84), rgb(8 13 24 / 0.82)); }
.front.glass-solid .step:first-child { background: var(--glass); }
/* Over the light map the thin glass would turn gray and the text lose its footing. */
.front[data-map="light"] .step:first-child { background: linear-gradient(160deg, rgb(20 29 47 / 0.88), rgb(8 13 24 / 0.86)); }
@media (prefers-reduced-transparency: reduce) { .front .step:first-child { background: var(--glass); } }
.step:last-child { margin-bottom: 0; }
.step h1 { margin: 22px 0 0; font: 300 clamp(38px, 3.6vw, 50px)/1.02 var(--sans); letter-spacing: -0.025em; }
.step .eyebrow { margin-bottom: 10px; }
.step h2 { margin: 0 0 12px; font: 300 26px/1.15 var(--sans); letter-spacing: -0.015em; text-wrap: balance; }
.step p:not([class]) { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.step p a, .facts a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgb(143 202 242 / 0.5); }
/* What the product is, in a line, under its name. */
.tagline { margin: 10px 0 0; font: 200 21px/1.3 var(--sans); letter-spacing: 0.004em; color: var(--ink); text-wrap: balance; }
.deck { margin: 12px 0 16px; font: 300 19px/1.38 var(--sans); letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; }
/* The title card's three buttons share one line on a wider screen. */
.front .step:first-of-type .go { gap: 8px; }
.front .step:first-of-type .go .btn { padding-inline: 14px; }
.watch svg { width: 17px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.watch svg .play { fill: currentColor; stroke: none; }

/* The intro film, over the page: the picture in the middle, a round close button above its corner. */
.film { padding: 0; border: 0; background: none; overflow: visible; max-width: none; max-height: none; color: var(--ink); }
.film::backdrop { background: rgb(3 6 12 / 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.film[open] { animation: film-in 0.2s ease-out; }
@keyframes film-in { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .film[open] { animation: none; } }
.film video {
  display: block; width: min(92vw, calc((100dvh - 132px) * 16 / 9)); aspect-ratio: 16 / 9;
  border-radius: 12px; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 24px 80px rgb(0 0 0 / 0.6);
}
.film[data-shape="tall"] video { width: min(92vw, calc((100dvh - 132px) * 4 / 5)); aspect-ratio: 4 / 5; }
.film-close {
  position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgb(255 255 255 / 0.08); color: var(--ink); cursor: pointer;
}
.film-close:hover { background: rgb(255 255 255 / 0.16); }
.film-close:focus { outline: none; }
.film-close:focus-visible { outline: 2px solid rgb(143 202 242 / 0.6); outline-offset: 2px; }
.film video:focus { outline: none; }
.film video:focus-visible { outline: 1px solid rgb(143 202 242 / 0.4); outline-offset: 0; }
.film-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html:has(.film[open]) { overflow: hidden; }
/* A cue to scroll, under the title card's buttons (the owner's choice); it fades once the reader has. */
.cue {
  display: flex; align-items: center; gap: 9px; margin: 18px 0 0; padding-top: 13px; border-top: 1px solid var(--line);
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in oklab, rgb(53 201 160) 70%, var(--ink)); transition: opacity 0.5s ease;
}
.front.scrolled .cue { opacity: 0; }
.cue svg {
  flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .cue svg { animation: none; } }
/* Each block of the title card's copy in a hue of its own (the owner's choice, 2026-11-17):
   the main site's Notable-now hues, mixed into the text's own ink so the copy stays quiet. */
.front .tagline { color: color-mix(in oklab, rgb(53 201 160) 34%, var(--ink)); }
.front .deck { color: color-mix(in oklab, rgb(82 194 240) 58%, white); }
.front #lede p:first-child { color: color-mix(in oklab, rgb(181 141 255) 46%, var(--ink-2)); }
.front #lede p:last-child { color: color-mix(in oklab, rgb(241 159 69) 44%, var(--ink-2)); }
.step .note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.step .note + .note { margin-top: 4px; }

/* Facts, one a row, on hairlines. */
.facts { margin: 14px 0 12px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.facts li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.facts b { font-weight: 600; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; }

/* Where the map is looking while a card is read. */
.shown {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px;
  margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line);
}
.shown span { font: 11px/1.4 var(--mono); color: var(--ink-3); }

/* A key to the coastal features, each swatch as the map draws it. */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin: 14px 0 4px; font-size: 12.5px; color: var(--ink-2); }
.keys span { display: flex; align-items: center; gap: 9px; }
.keys i { flex: none; width: 26px; height: 15px; border-radius: 3px; border: 1px solid var(--line-2); }

.try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 2px; }
.try span { font: 11px/1.4 var(--mono); color: var(--ink-3); }

/* A narrow screen: the cards run down the middle and the map shows between them. */
@media (max-width: 720px) {
  .front main { padding: 50vh 0 34vh; padding-top: 50svh; }
  .step, .step--wide { width: auto; margin: 0 12px 62vh; padding: 22px 20px 18px; }
  .step h1 { font-size: 36px; }
  .tagline { font-size: 19px; }
  .deck { font-size: 17.5px; }
  .step h2 { font-size: 23px; }
}

/* --- the top bar, on pages that are read ------------------------------------- */

.bar {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
  padding: 12px var(--gutter); background: rgb(5 8 15 / 0.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.bar__crumbs { display: flex; align-items: baseline; gap: 9px; font-size: 13px; line-height: 1; }
.bar__crumbs a { color: var(--ink-2); text-decoration: none; }
.bar__crumbs a:hover { color: var(--ink); }
.bar__crumbs i { font-style: normal; color: var(--ink-3); }
.bar__crumbs b { font-weight: 600; }
.bar__nav { display: flex; gap: 20px; margin-left: auto; line-height: 1; }
.bar__nav a { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.bar__nav a:hover { color: var(--ink); }

/* --- the developer guide: a page of reference --------------------------------- */

/* The guide is set on the blue of the abyssal theme's water, the front page's map: the
   water at about 500 meters, its panels a little shallower. The owner first chose the
   brighter water at 100 meters, then, the same evening (2026-11-17), this darker one:
   "this is turning out to be too bright". The faintest ink is lifted to keep its contrast. */
html.guide {
  --bg: #0d2440; --bg-2: #102c4d; --bg-3: #13345a;
  --line: rgb(150 190 240 / 0.12); --line-2: rgb(150 190 240 / 0.22);
  --ink-3: #8794a9;
}
html.guide .bar { background: rgb(9 27 50 / 0.84); }
html.guide .code pre { background: rgb(4 11 24 / 0.5); border-color: rgb(150 190 240 / 0.1); }
html.guide .copy { background: rgb(10 28 52 / 0.92); }

.ref { max-width: 1480px; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.ref__head h1 { margin: 0 0 10px; font: 300 clamp(32px, 3.4vw, 46px)/1.05 var(--sans); letter-spacing: -0.02em; }
.ref__lede { max-width: 96ch; margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.ref__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; margin-top: 36px; align-items: start; }
.ref__toc { position: sticky; top: 68px; font-size: 13px; max-height: calc(100vh - 88px); overflow: auto; }
.ref__tochead { margin: 0 0 10px; font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ref__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ref__toc a { color: var(--ink-2); text-decoration: none; }
.ref__toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ref__main { max-width: 900px; min-width: 0; }
.ref__section { padding-bottom: 20px; scroll-margin-top: 80px; }
.ref__section + .ref__section { padding-top: 28px; border-top: 1px solid var(--line); }
.ref__section h2 { margin: 0 0 12px; font: 300 28px/1.15 var(--sans); letter-spacing: -0.015em; }
.ref__section h3 { margin: 26px 0 8px; font: 600 14px/1.35 var(--sans); color: var(--ink); scroll-margin-top: 80px; }
.ref__section > p, .ref__section li { max-width: 72ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.ref__section > p { margin: 0 0 12px; }
.ref__section ul { margin: 0 0 12px; padding-left: 18px; }
.ref__section li { margin: 5px 0; }
.ref__section li b, .ref__section p b { font-weight: 600; color: var(--ink); }
.ref__section a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgb(143 202 242 / 0.5); }
.ref__section .code pre { font-size: 12px; }
.ref__caption { margin: 8px 0 16px !important; font-size: 12.5px !important; color: var(--ink-3) !important; }
.ref__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.ref__pick span { font: 11px/1.4 var(--mono); color: var(--ink-3); }

.scroll { overflow-x: auto; margin: 12px 0 18px; }
.ref table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.5; }
.ref th, .ref td { text-align: left; vertical-align: top; padding: 9px 16px 9px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.ref th { padding-top: 0; border-top: 0; font: 600 10px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ref tr:last-child td { border-bottom: 1px solid var(--line); }
.ref td.name { white-space: nowrap; color: var(--ink); }
.ref td .soft, .ref .soft { color: var(--ink-3); }
.ref td .file { font: 11px var(--mono); color: var(--ink-3); }
.ref td.num { font: 12px/1.6 var(--mono); white-space: nowrap; }
.ref td.ids { font-size: 12.5px; line-height: 2; }
.ref td.ids b { font-weight: 600; color: var(--ink); }
.swatch { display: inline-block; width: 26px; height: 14px; border-radius: 3px; border: 1px solid var(--line-2); vertical-align: -2px; margin-right: 8px; }
#demo { height: 420px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }

@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .ref { padding-top: 28px; }
  .ref__body { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 26px; }
  .ref__toc { position: static; max-height: none; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
  .ref__toc ol { display: block; columns: 2; column-gap: 20px; }
  .ref__toc li { padding: 3px 0; break-inside: avoid; }
  .bar__nav { margin-left: 0; width: 100%; }
  #demo { height: 340px; }
}

/* --- the map page: the map, and one panel of what it can show ------------------ */

.viewer #map { position: fixed; inset: 0; }
.viewer #panel {
  position: absolute; top: 12px; left: 12px; width: 248px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  overflow: auto; padding: 16px 16px 13px; font-size: 12.5px;
}
/* The panel rolls up into a small plate in the corner, leaving the whole map: its body's
   one grid row closes to nothing while the plate narrows. The control is a small ring in
   the panel's corner with a faint glow, as of a lit instrument. */
.viewer #panel { --pad: 16px; transition: width 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), padding 0.55s cubic-bezier(0.3, 0.7, 0.2, 1); }
.viewer #panel.rolled { width: 158px; padding-bottom: 15px; overflow: hidden; }
#rolled { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.35s ease, visibility 0s; }
#rolled > div { min-height: 0; min-width: calc(248px - 2 * var(--pad)); overflow: hidden; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.rolled #rolled { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s ease, visibility 0s 0.55s; }
.viewer #panel #roll {
  position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 1px solid rgb(120 200 255 / 0.24); border-radius: 50%; background: rgb(120 200 255 / 0.05); color: #a5dcff;
  box-shadow: 0 0 9px rgb(110 200 255 / 0.16), inset 0 0 5px rgb(110 200 255 / 0.1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.viewer #panel #roll svg { width: 10px; filter: drop-shadow(0 0 3px rgb(120 205 255 / 0.7)); transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1); }
.viewer #panel.rolled #roll svg { transform: rotate(180deg); }
.viewer #panel #roll:hover, .viewer #panel #roll:focus-visible {
  color: #d3eeff; border-color: rgb(120 200 255 / 0.5);
  box-shadow: 0 0 14px rgb(110 200 255 / 0.3), inset 0 0 6px rgb(110 200 255 / 0.16);
}
.viewer #panel.still, .viewer #panel.still * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .viewer #panel, #rolled, .rolled #rolled, .viewer #panel #roll svg { transition: none; } }
.viewer .imprint { font-size: 12px; }
.viewer .imprint svg { height: 18px; }
.viewer h1 { margin: 12px 0 0; font: 300 24px/1.1 var(--sans); letter-spacing: -0.015em; }
.viewer .sub { margin: 6px 0 12px; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.viewer #release { white-space: nowrap; }
.viewer .sub a, .viewer #base a, .viewer #themes a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: rgb(143 202 242 / 0.5); }
.viewer .sub a:hover, .viewer #base a:hover, .viewer #themes a:hover { color: var(--ink); }
.viewer h2 { margin: 16px 0 7px; font: 600 10px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.viewer label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; color: var(--ink-2); }
.viewer label:hover { color: var(--ink); }
.viewer input[type=checkbox] { accent-color: var(--glow); margin: 0; }
/* The places: a button, and under it a list of our own in two headed groups. */
.viewer #panel #goto {
  display: block; width: 100%; padding: 7px 28px 7px 11px; text-align: left; line-height: 1.3;
  background: rgb(255 255 255 / 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238fcaf2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 11px;
}
#goto-list {
  position: fixed; inset: auto; margin: 0; padding: 4px 5px 6px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.25) transparent;
  color: var(--ink); background: rgb(11 17 30); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.5); font: 500 12px/1.3 var(--sans);
}
#goto-list:popover-open { display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 4px; }
#goto-list section + section { border-left: 1px solid var(--line); padding-left: 4px; }
#goto-list h3 {
  margin: 0; padding: 7px 8px 4px;
  font: 700 10.5px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #8fcaf2;
}
.viewer #panel #goto-list button {
  display: block; width: 100%; padding: 3px 8px; border: 0; border-radius: 5px; background: none;
  text-align: left; font: inherit; color: var(--ink-2); cursor: pointer;
}
.viewer #panel #goto-list button:hover, .viewer #panel #goto-list button:focus-visible { color: var(--ink); background: rgb(143 202 242 / 0.12); outline: none; }
@media (pointer: coarse) { .viewer #panel #goto-list button { padding: 6px 8px; } }
.viewer #panel button {
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: none;
  color: var(--ink-2); font: 500 11.5px/1 var(--sans); cursor: pointer;
}
.viewer #panel button:hover { color: var(--ink); border-color: rgb(143 202 242 / 0.5); }
.viewer #base, .viewer #themes { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.viewer #base b, .viewer #themes b { font-weight: 600; color: var(--ink); }
#ramp { height: 12px; border-radius: 3px; border: 1px solid var(--line-2); }
.ticks { display: flex; justify-content: space-between; margin-top: 4px; font: 10px var(--mono); color: var(--ink-3); }
.viewer .keys { gap: 5px 10px; margin: 0; font-size: 11.5px; }
.viewer .keys i { width: 22px; height: 14px; }
/* On the map page each entry of the key is a switch for its feature. */
.viewer #panel .keys button {
  display: flex; align-items: center; gap: 9px; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; border: 0; border-radius: 5px;
  background: none; font: inherit; color: var(--ink-2); text-align: left; cursor: pointer;
}
.viewer #panel .keys button:hover, .viewer #panel .keys button:focus-visible { color: var(--ink); background: rgb(143 202 242 / 0.1); outline: none; }
.viewer #panel .keys button[aria-pressed="false"] { color: var(--ink-3); text-decoration: line-through; }
.viewer #panel .keys button[aria-pressed="false"] i { opacity: 0.25; }
#notice { margin-top: 6px; font: 600 10.5px/1.4 var(--sans, inherit); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
#readout { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font: 11px/1.5 var(--mono); color: var(--ink-3); }
@media (max-width: 560px) {
  .viewer .strandline-credit { --strandline-credit-width: calc(100vw - 240px); }   /* beside the panel, not under it */
  .viewer #panel { --pad: 12px; width: 198px; padding: 12px 12px 10px; }
  .viewer #panel.rolled { width: 146px; padding-bottom: 12px; }
  .viewer #panel #roll { top: 8px; right: 8px; }
  #rolled > div { min-width: calc(198px - 2 * var(--pad)); }
  .viewer .keys { grid-template-columns: 1fr; }
}

/* --- the comparison: Strandline beside other base maps -------------------------- */

/* A strip of the map behind the title, fading into the page's water below it. */
.cmp-hero { position: relative; height: clamp(340px, 44vh, 440px); overflow: hidden; }
.cmp-hero #map { position: absolute; inset: 0; }
.cmp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(13 36 64 / 0) 58%, var(--bg)); }
.cmp-hero__card { position: absolute; z-index: 2; left: var(--gutter); bottom: 34px; width: min(470px, calc(100% - 2 * var(--gutter))); padding: 24px 26px 20px; }
.cmp-hero__card h1 { margin: 0 0 12px; font: 300 clamp(30px, 3vw, 40px)/1.05 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.cmp-lede { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.cmp-hero__place {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; display: flex; gap: 14px; align-items: baseline;
  font: 11px/1.4 var(--mono); color: var(--ink-3);
}
html.compare .bar { background: rgb(9 27 50); backdrop-filter: none; -webkit-backdrop-filter: none; }   /* the rows go under it */
.cmp-key { display: flex; gap: 20px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }

.cmp { max-width: 1480px; margin: 0 auto; padding: 18px var(--gutter) 80px; }
.cmp-pick { display: none; }

/* The matrix. Strandline's column is lit as a band between two hairlines; the headings
   stay under the top bar while the rows go by. */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; line-height: 1.5; }
.cmp-corner { width: 21%; }
.cmp-table th, .cmp-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 400; }
/* Two rows of headings, each aligned along its top: the names, then the price lines. */
.cmp-table thead > tr > * { position: sticky; top: var(--bar-h, 47px); z-index: 3; vertical-align: top; border-top: 0; background: var(--bg); }
.cmp-names > * { padding-top: 18px; padding-bottom: 6px; }
.cmp-table .cmp-prices > td[data-col], .cmp-table .cmp-prices > * {
  top: calc(var(--bar-h, 47px) + var(--names-h, 60px)); padding-top: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
  font: 11px/1.45 var(--mono); color: color-mix(in oklab, rgb(241 159 69) 58%, var(--ink));
}
.cmp-table thead b { display: block; font: 600 15px/1.25 var(--sans); color: var(--ink); }
.cmp-table thead span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.cmp-table [data-col="sl"] { background: rgb(89 189 245 / 0.07); box-shadow: inset 1px 0 0 rgb(89 189 245 / 0.28), inset -1px 0 0 rgb(89 189 245 / 0.28); }
.cmp-table thead [data-col="sl"] { background: rgb(18 47 77); }
.cmp-table thead [data-col="sl"] b { color: color-mix(in oklab, var(--glow) 62%, white); }
.cmp-table thead [data-col="sl"] b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--glow); vertical-align: middle; }
.cmp-table td[data-col="sl"] { color: var(--ink); }
.cmp-table td b { font-weight: 600; color: var(--ink); }
.cmp-table th[scope="row"] { color: var(--ink); font-weight: 500; }
.cmp-table th[scope="row"] small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.cmp-table tbody tr:not(.cmp-group):hover > :not([data-col="sl"]) { background: rgb(255 255 255 / 0.025); }
/* A group's name, where the rows of a kind begin. */
.cmp-table .cmp-group > * { padding-top: 30px; padding-bottom: 8px; border-top: 0; }
.cmp-table .cmp-group th { padding-left: 10px; font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.cmp-table tbody:first-of-type .cmp-group > * { padding-top: 18px; }

/* Offered and not: a check in green, a short gray rule. */
.y::before, .n::before { content: ""; display: inline-block; vertical-align: -2px; }
.y::before {
  width: 15px; height: 15px; margin-right: 7px; background: color-mix(in oklab, rgb(53 201 160) 82%, white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%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'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.n::before { width: 12px; height: 1.5px; margin: 0 7px 0 2px; vertical-align: 4px; background: var(--ink-3); opacity: 0.7; }
.cmp-table td.y, .cmp-table td.n { white-space: normal; }
/* Where Strandline leads: a dot by the row's name, and a line in Strandline's blue that says how. */
.cmp-table th[scope="row"] { position: relative; padding-left: 26px; }
.cmp-table tr.lead th[scope="row"]::before, .lead-key::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--glow);
}
.cmp-table tr.lead th[scope="row"]::before { position: absolute; left: 10px; top: 18px; }
.lead-key::before { margin-right: 8px; vertical-align: 1px; }
.edge { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: color-mix(in oklab, var(--glow) 72%, white); }
.y > .vh + .edge { display: inline; margin-top: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cmp-notes { max-width: 900px; margin-top: 44px; }
.cmp-notes h2 { margin: 0 0 10px; font: 300 24px/1.2 var(--sans); letter-spacing: -0.01em; }
.cmp-notes p { margin: 0 0 12px; max-width: 72ch; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.cmp-notes a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgb(143 202 242 / 0.5); }

@media (max-width: 1200px) {
  .cmp-table { font-size: 12.5px; }
  .cmp-table th, .cmp-table td { padding-inline: 10px; }
  .cmp-table thead b { font-size: 14px; }
}
/* A narrow screen: Strandline and one other, which the reader picks. */
@media (max-width: 900px) {
  .cmp-hero { height: auto; overflow: visible; }
  .cmp-hero #map { position: relative; height: 230px; }
  .cmp-hero::after { bottom: auto; height: 230px; }
  .cmp-hero__card { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 12px 0; padding: 20px 20px 16px; }
  .cmp-hero__place { top: 160px; bottom: auto; right: 14px; }
  .cmp-hero__place span { display: none; }
  .cmp { padding-top: 22px; }
  .cmp-pick {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px;
    font-size: 13px; color: var(--ink-2);
  }
  .cmp-pick select {
    flex: 0 1 auto; min-width: 0; padding: 7px 30px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
    background: rgb(255 255 255 / 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%23a8b3c7' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 11px center / 12px no-repeat;
    color: var(--ink); font: 500 13px/1.2 var(--sans); -webkit-appearance: none; appearance: none;
  }
  /* Each row's name runs the full width, the two values side by side under it. */
  .cmp-table, .cmp-table thead, .cmp-table tbody { display: block; }
  .cmp-table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp-table thead { position: sticky; top: var(--bar-h, 47px); z-index: 3; }
  .cmp-table thead > tr > * { position: static; }
  .cmp-names > * { padding: 12px 12px 2px; }
  .cmp-table .cmp-prices > * { padding: 2px 12px 10px; }
  .cmp-table thead span { display: none; }
  .cmp-table .cmp-corner { display: none; }
  .cmp-table th[scope="row"] { grid-column: 1 / -1; padding: 12px 2px 4px 16px; }
  .cmp-table tr.lead th[scope="row"]::before { left: 2px; top: 19px; }
  .cmp-table th[scope="row"] small { display: inline; margin-left: 6px; }
  .cmp-table th[scope="row"] small::before { content: "· "; }
  .cmp-table tbody td { border-top: 0; padding: 6px 12px 12px; }
  .cmp-table .cmp-group { grid-template-columns: 1fr; }
  .cmp-table .cmp-group > * { padding: 26px 2px 6px; }
  .cmp-table .cmp-group td { display: none !important; }
  .cmp-table [data-col]:not([data-col="sl"]) { display: none; }
  .cmp-table[data-with="mb"] [data-col="mb"], .cmp-table[data-with="mt"] [data-col="mt"], .cmp-table[data-with="es"] [data-col="es"],
  .cmp-table[data-with="no"] [data-col="no"], .cmp-table[data-with="os"] [data-col="os"] { display: block; }
}
