/* control-ark.com: a survey sheet of the customer's island.  Deep-sea ground, land in elevation
   bands (drawn by map.js), one lettering family, one legend of symbols, red only where the bot is. */

@font-face { font-family: "Overpass"; src: url("/site/overpass.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/site/overpass-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("/site/overpass-mono.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --sea-0: #071723;
  --sea-1: #0b2232;
  --sea-2: #112f43;
  --sea-3: #1a4a5e;
  --ink: #eef0e6;
  --ink-2: #b3c6c9;
  --ink-3: #85a0a7;
  --rule: rgba(190, 216, 222, 0.16);
  --rule-2: rgba(190, 216, 222, 0.3);
  --water: #8fc9d6;
  --ochre: #e2b94f;
  --ochre-2: #f0cd72;
  --ochre-ink: #1c1606;
  --red: #ef5a3c;
  /* land grounds, dark-adapted from the map's elevation bands: coast, lowland, upland, summit */
  --g-coast: #0d2a2a;
  --g-low: #13291d;
  --g-mid: #232714;
  --g-high: #2b1f12;
  --player: #e9c46a;
  --botname: #8fdfe9;
  --frame: 22px;
  --top-h: 78px;
  --sans: "Overpass", "Segoe UI", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scrollbar-color: var(--sea-3) var(--sea-0); }
body { margin: 0; background: var(--sea-1); color: var(--ink); font: 400 17px/1.6 var(--sans); caret-color: var(--ochre); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ochre); color: var(--ochre-ink); }
a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 3px; }
code { font: 500 0.88em/1.4 var(--mono); font-variant-ligatures: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ochre); color: var(--ochre-ink); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Symbols: one stroke, inherited colour. */
.sym { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- buttons */
.btn, .btn-line {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  font: 800 15px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border-radius: 3px; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn { background: var(--ochre); color: var(--ochre-ink); border: 1px solid var(--ochre); }
.btn:hover { background: var(--ochre-2); color: var(--ochre-ink); }
.btn-line { color: var(--ink); border: 1px solid var(--rule-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* ---- header: the sheet's title block */
.top { position: relative; z-index: 6; border-bottom: 1px solid var(--rule); background: var(--sea-0); }
.home .top { position: absolute; inset: 0 0 auto; background: none; border-bottom: 0; }
.top-in { display: flex; align-items: center; gap: 28px; height: calc(var(--top-h) - 14px); padding: 0 calc(var(--frame) + 12px); max-width: 1600px; margin: 0 auto; }
.mark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--sans); letter-spacing: 0.02em; }
.mark svg { width: 22px; height: 22px; fill: none; stroke: var(--ochre); stroke-width: 2; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font: 700 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }

/* ---- the hero sheet */
.hero { position: relative; height: 185vh; background: var(--sea-0); }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sheet { position: absolute; inset: 0; }
.frame { position: absolute; inset: var(--top-h) var(--frame) var(--frame); border: 1px solid var(--rule-2); pointer-events: none; }
.ticks span { position: absolute; font: 500 10px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ticks-lon span { left: calc(var(--v) * 1%); top: -15px; transform: translateX(-50%); }
.ticks-lon span::after { content: ""; position: absolute; left: 50%; top: 13px; width: 1px; height: 6px; background: var(--rule-2); }
.ticks-lat span { top: calc(var(--v) * 1%); left: -19px; transform: translateY(-50%); width: 16px; text-align: right; }
.plot { position: absolute; inset: var(--top-h) var(--frame) var(--frame); overflow: hidden; }
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route polyline { fill: none; stroke: var(--ink); stroke-opacity: 0.7; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.isle {
  position: absolute; left: 31%; top: 6%; right: 3%; margin: 0;
  font: 900 clamp(2.4rem, 5.2vw, 5.4rem)/0.98 var(--sans); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); paint-order: stroke fill; -webkit-text-stroke: 0.16em var(--sea-0);
  pointer-events: none; z-index: 2;
}
.isle span { display: block; }
.isle span + span { font-style: italic; font-weight: 700; color: var(--water); letter-spacing: 0.09em; font-size: 0.72em; margin-top: 0.12em; }

.marks { position: absolute; inset: 0; z-index: 3; }
.mk { position: absolute; left: calc(var(--lon) * 1%); top: calc(var(--lat) * 1%); }
.mk-btn {
  position: absolute; left: 0; top: 0; transform: translate(-17px, -17px);
  display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
}
.mk-btn .sym {
  width: 34px; height: 34px; padding: 6px; border-radius: 50%;
  background: var(--sea-0); border: 1.5px solid var(--ink); stroke-width: 1.7;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}
.mk-name {
  font: 800 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  paint-order: stroke fill; -webkit-text-stroke: 4px var(--sea-0);
}
.mk.on .mk-btn .sym, .mk-btn:hover .sym { border-color: var(--red); color: var(--red); transform: scale(1.1); }
.mk-btn:focus-visible { outline: none; }
.mk-btn:focus-visible .sym { outline: 2px solid var(--ochre); outline-offset: 3px; }

.call {
  position: absolute; top: 26px; width: 19rem; padding: 12px 14px 10px;
  background: rgba(7, 23, 35, 0.94); border: 1px solid var(--rule-2); border-radius: 3px;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.3s;
  z-index: 4;
}
.call-right { left: -10px; }
.call-left { right: -10px; }
.call-up { top: auto; bottom: 26px; }
.mk.on .call { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.call-h { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.call-ex { font-weight: 600; font-style: italic; letter-spacing: 0.04em; text-transform: none; }
.ln { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ln b { color: var(--player); font-weight: 700; margin-right: 4px; }
.ln-bot b { color: var(--botname); }
.ln code { color: var(--ink); background: rgba(190, 216, 222, 0.1); padding: 1px 5px; border-radius: 2px; }
.call-at { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid var(--rule); font: 500 11px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.ghost {
  position: absolute; left: calc(var(--lon) * 1%); top: calc(var(--lat) * 1%); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(239, 90, 60, 0.28), 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 3; pointer-events: none;
}

/* the sheet's cartouche: north arrow, title, scale bar */
.cartouche { position: absolute; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 9px 14px 8px; background: rgba(7, 23, 35, 0.86); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: 3px; }
.north { width: 16px; height: 24px; }
.north path { fill: var(--ink); }
.north text { font: 700 7px var(--sans); fill: var(--ink); text-anchor: middle; }
.cart-t { margin: 0; font: 800 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.cart-s { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 500 10px/1 var(--mono); color: var(--ink-3); }
.scale { display: inline-flex; border: 1px solid var(--ink); height: 5px; }
.scale i { width: 28px; }
.scale i:first-child { background: var(--ink); }
.tap-hint { display: none; }
.ghost::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--red); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

.legend {
  position: absolute; left: calc(var(--frame) + 20px); bottom: calc(var(--frame) + 20px); width: min(31rem, 36vw); z-index: 4;
  padding: 22px 24px 18px; background: rgba(7, 23, 35, 0.9); border: 1px solid var(--rule-2); border-radius: 3px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}
.legend-lede { margin: 0 0 18px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.legend-act { display: flex; flex-wrap: wrap; gap: 10px; }
.legend-fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---- bands below the sheet */
/* The landing page climbs the island below the map: coast, lowland, upland, summit (the pitch).
   Every band keeps the sheet's graticule and margin ticks, so the map never ends. */
.band { position: relative; background: var(--sea-1); padding: clamp(64px, 9vw, 120px) 0; }
.band-coast { background-color: var(--g-coast); --ink-2: #b9cec7; }
.band-low { background-color: var(--g-low); --ink-2: #bfcfb8; --ink-3: #8fa58a; }
.band-mid { background-color: var(--g-mid); --ink-2: #cdcdb0; --ink-3: #a3a37f; }
.band-summit { background-color: var(--g-high); --ink-2: #d6c7aa; --ink-3: #ad9876; }
.band, .reading main {
  background-image:
    repeating-linear-gradient(to bottom, var(--rule-2) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, var(--rule-2) 0 1px, transparent 1px 80px),
    linear-gradient(to right, rgba(190, 216, 222, 0.045) 1px, transparent 1px);
  background-size: 7px 100%, 7px 100%, 10% 100%;
  background-position: var(--frame) 0, calc(100% - var(--frame)) 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
}
.reading main { display: block; border-inline: 1px solid var(--rule); margin-inline: var(--frame); }
.coast main { background-color: var(--g-coast); --ink-2: #b9cec7; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='22' viewBox='0 0 480 22'%3E%3Cpath d='M0 11c40-9 80-9 120 0s80 9 120 0 80-9 120 0 80 9 120 0' fill='none' stroke='%2385a0a7' stroke-width='1' stroke-dasharray='2 5'/%3E%3C/svg%3E") repeat-x 0 0 / 480px 22px;
}
.band-in { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.band h2 { margin: 0 0 32px; max-width: 22ch; font: 900 clamp(2rem, 3.6vw, 3.2rem)/1.04 var(--sans); letter-spacing: 0.01em; }
.band p { max-width: 62ch; color: var(--ink-2); }
.band-note { margin: 40px 0 0; font-size: 16px; }
.band-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.band-split h2 { margin-bottom: 20px; }
.band-split > div:first-child { position: sticky; top: 32px; }

.route-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; position: relative; }
.route-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 1.5px dashed var(--rule-2); }
.route-steps li { position: relative; counter-increment: step; }
.route-steps .sym { position: relative; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--sea-1); border: 1.5px solid var(--ink); }
.route-steps li:last-child .sym { border-color: var(--ochre); color: var(--ochre); }
.route-steps h3 { margin: 18px 0 6px; font: 800 21px/1.2 var(--sans); }
.route-steps h3::before { content: counter(step) ". "; color: var(--ink-3); font-weight: 600; }
.route-steps p { margin: 0; font-size: 16px; }

.cmds { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmds th { text-align: left; font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 12px 0; border-bottom: 1px solid var(--rule-2); }
.cmds td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.cmds td:first-child { white-space: nowrap; }
.cmds code { color: var(--ochre); font-size: 15px; }

/* the map's key, set like a sheet-margin legend: double rule, symbol, name, note */
.legend-list { margin: 0; max-width: 980px; border: 3px double var(--rule-2); padding: 6px 24px; background: rgba(7, 23, 35, 0.35); }
.legend-list div { display: grid; grid-template-columns: 30px 230px minmax(0, 1fr); align-items: baseline; column-gap: 18px; padding: 14px 0; }
.legend-list div + div { border-top: 1px solid var(--rule); }
.legend-list .sym { width: 24px; height: 24px; color: var(--ochre); align-self: center; }
.legend-list dt { font: 800 13px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.legend-list dd { margin: 0; color: var(--ink-2); font-size: 16px; }

.price { font: 800 clamp(1.4rem, 2.2vw, 1.8rem)/1.25 var(--sans); color: var(--ink) !important; }
.faq { margin: 0; }
.faq dt { font: 800 18px/1.35 var(--sans); padding-top: 18px; border-top: 1px solid var(--rule); }
.faq dd { margin: 6px 0 22px; color: var(--ink-2); font-size: 16px; }

/* ---- reading pages: a title block, a contents rail, the text */
.sheet-head { background: var(--sea-0); border-bottom: 1px solid var(--rule); }
.sheet-head-in { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 32px clamp(32px, 4vw, 48px); }
.sheet-head h1 { margin: 0; font: 900 clamp(2.3rem, 5vw, 4rem)/1.02 var(--sans); letter-spacing: 0.01em; max-width: 18ch; }
.lede { margin: 16px 0 0; font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.updated { margin: 18px 0 0; font: 500 13px/1 var(--mono); color: var(--ink-3); }

.read { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; max-width: 1180px; margin: 0 auto; padding: 48px 32px 112px; }
.read-solo { grid-template-columns: minmax(0, 1fr); }
.rail { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rail-h { margin: 0 0 10px; font: 700 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.rail a { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 12px; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; border-left: 1px solid var(--rule); }
.rail a:hover { color: var(--ink); border-left-color: var(--ochre); }
.rail .sym { width: 17px; height: 17px; color: var(--ink-3); }

.prose { max-width: 72ch; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h1 { display: none; }
.prose h2 { margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); font: 800 26px/1.2 var(--sans); }
.prose h3 { margin: 32px 0 8px; font: 800 19px/1.3 var(--sans); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-3); }
.prose code { background: rgba(190, 216, 222, 0.1); color: var(--ink); padding: 1px 5px; border-radius: 2px; overflow-wrap: anywhere; }
.prose pre { background: var(--sea-0); border: 1px solid var(--rule); border-radius: 3px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.table { overflow-x: auto; margin: 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { text-align: left; font: 700 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule-2); }
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }

/* API endpoints */
.ep { border-top: 1px solid var(--rule); padding: 14px 0 6px; }
.ep-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ep p { margin: 6px 0 0; font-size: 15px; }
.ep pre { margin: 10px 0 0; }
.m { font: 700 12px/1 var(--mono); min-width: 54px; letter-spacing: 0.04em; }
.m-get { color: #9ad48a; } .m-post { color: var(--water); } .m-put, .m-patch { color: var(--ochre); } .m-delete { color: #d9a6c8; }
.prose .path { background: none; padding: 0; font-size: 15px; color: var(--ink); }
.scope { margin-left: auto; font: 600 12px/1 var(--mono); color: var(--ink-3); border: 1px solid var(--rule-2); border-radius: 999px; padding: 4px 9px; }

/* features */
.feats { min-width: 0; max-width: 76ch; }
.feat { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--rule); }
.feat h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: 900 clamp(1.7rem, 2.8vw, 2.3rem)/1.1 var(--sans); }
.feat h2 .sym { width: 30px; height: 30px; color: var(--ochre); }
.feat-intro { font-size: 19px; color: var(--ink); margin: 0 0 14px; }
.feat ul { margin: 0; padding-left: 1.2em; }
.feat li { color: var(--ink-2); margin: 7px 0; }
.feat li::marker { color: var(--ochre); }
.chat { margin: 22px 0 0; padding: 14px 16px 8px; background: var(--sea-0); border: 1px solid var(--rule); border-radius: 3px; }
.chat figcaption { font: 600 italic 12px/1 var(--sans); color: var(--ink-3); margin-bottom: 10px; }
.feat-end { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.feat-end p { margin: 0; font: 800 22px/1.2 var(--sans); }

/* download */
.dl-box { padding: 28px 0 8px; border-top: 1px solid var(--rule-2); }
.dl-box h2 { margin-top: 0 !important; padding-top: 0 !important; border: 0 !important; }
.meta { font: 500 14px/1.4 var(--mono); color: var(--ink-3) !important; }
.notes { white-space: pre-wrap; }

/* ---- footer */
.foot { background: var(--sea-0); border-top: 1px solid var(--rule); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 48px 32px 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; }
.foot-id p { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.foot-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-fine { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }

/* ---- narrow screens */
@media (max-width: 900px) {
  :root { --frame: 12px; --top-h: 100px; }
  .top-in { flex-wrap: wrap; height: auto; min-height: var(--top-h); padding: 12px 16px 10px; gap: 10px 16px; align-content: center; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .top .btn-sm { margin-left: auto; }
  .home .top-in { padding-inline: 16px; }
  .hero { height: auto; }
  .hero-stick { position: relative; height: auto; overflow: visible; }
  /* below the map, a strip the open callout drops into, so it never covers a marker */
  .sheet { position: relative; height: max(610px, 90svh); --strip: 150px; }
  .frame, .plot { bottom: var(--strip); }
  .frame { z-index: 3; }
  .plot { overflow: visible; }
  .terrain { clip-path: inset(0); }
  .tap-hint { display: block; position: absolute; left: 16px; right: 16px; bottom: calc(var(--strip) / 2 - 10px); margin: 0; text-align: center; font: 600 italic 14px/1.3 var(--sans); color: var(--ink-3); }
  .cartouche { display: none; }
  .ticks span { font-size: 9px; }
  .ticks-lat span { left: 4px; width: auto; text-align: left; paint-order: stroke fill; -webkit-text-stroke: 3px var(--sea-0); }
  .ticks-lat span:nth-child(odd), .ticks-lon span:nth-child(even) { display: none; }
  .band-split > div:first-child { position: static; }
  /* no room for margin rails beside the text on a phone: the frame side rules carry the sheet */
  .band, .reading main { background-image: none; }
  .band { border-inline: 1px solid var(--rule); margin-inline: var(--frame); }
  .legend-list { padding: 4px 16px; }
  .legend-list div { grid-template-columns: 26px minmax(0, 1fr); row-gap: 4px; }
  .legend-list dd { grid-column: 2; }
  .isle { left: 4%; right: 4%; top: 3%; font-size: clamp(1.9rem, 8.4vw, 2.6rem); -webkit-text-stroke-width: 0.14em; }
  .mk-name { display: none; }
  /* the callout docks along the bottom of the map instead of beside its marker */
  .mk { position: static; }
  .mk-btn { left: calc(var(--lon) * 1%); top: calc(var(--lat) * 1%); transform: translate(-15px, -15px); }
  .mk-btn .sym { width: 30px; height: 30px; padding: 5px; }
  .call { top: calc(100% + 10px); bottom: auto; left: -2px; right: -2px; width: auto; background: var(--sea-0); }
  .sheet:has(.mk.on) .tap-hint { visibility: hidden; }
  .legend { position: relative; left: auto; bottom: auto; width: auto; margin: 0; border: 0; border-radius: 0; border-top: 1px solid var(--rule); box-shadow: none; padding: 24px 16px 32px; background: var(--sea-0); }
  .band-in { padding: 0 16px; }
  .band-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .route-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .route-steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 1.5px dashed var(--rule-2); }
  .route-steps li { padding-left: 66px; }
  .route-steps .sym { position: absolute; left: 0; top: 0; }
  .route-steps h3 { margin-top: 8px; }
  .legend-list { grid-template-columns: minmax(0, 1fr); }
  .cmds td:first-child { white-space: normal; }
  .sheet-head-in { padding-inline: 16px; }
  .read { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 16px 80px; }
  .rail { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .rail-h { width: 100%; }
  .rail a { border-left: 0; padding: 4px 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); padding: 40px 16px 32px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .hero { height: auto; }
  .hero-stick { position: relative; }
}
