/* Tessellate: the codebase map. Palette "Landeskarte". Magenta is kept for answers and the one primary button. */
:root {
  --paper: #F6F8F3; --ink: #1F2421; --ink-2: #4A524C; --low: #CFE0B8; --forest: #2F5D3A; --forest-f: #9CC08A;
  --ice: #E3F0F4; --blue: #1F5F86; --rock: #5B5468; --rock-f: #D9D4DE; --contour: #8E7A80; --trail: #D4145A;
  --table: #E4E9E1; --hair: rgba(31, 36, 33, .2);
  --serif: 'Alegreya', 'Iowan Old Style', Georgia, serif;
  --sans: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', sans-serif;
  --mono: 'Fira Code', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(72px, 10vw, 144px); --gut: clamp(20px, 3.2vw, 48px); --nav: 62px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
em, i { font-style: normal; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
svg { display: block; }
svg [hidden] { display: none; }
code { font: 400 13.5px/1.4 var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 2 * var(--gut)); margin-inline: auto; }
.eyebrow { font: 500 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.3vw, 98px); line-height: 1; }
h2 { font-size: clamp(34px, 4.3vw, 62px); line-height: 1.06; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34em; color: var(--ink); }

/* buttons: squared, like a printed label */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 2px; font: 500 17px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; border: 1px solid var(--ink); background-size: 0 100%; background-repeat: no-repeat; transition: background-size .42s var(--ease), color .2s; }
.btn-go { background-color: var(--trail); border-color: var(--trail); color: #fff; background-image: linear-gradient(var(--ink), var(--ink)); }
.btn-ink { background-color: var(--ink); color: var(--paper); background-image: linear-gradient(var(--forest), var(--forest)); }
.btn-line { background-color: transparent; color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) {
  .btn:hover { background-size: 100% 100%; }
  .btn-line:hover { color: var(--paper); }
}
.tlink { display: inline-flex; align-items: center; min-height: 44px; font: 500 17px/1.2 var(--sans); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 7px) / 100% 1px no-repeat; padding: 0; transition: background-size .36s var(--ease); }
.tlink:hover { background-size: 0 1px; background-position: 100% calc(100% - 7px); }
.tlink-s { font-size: 15px; }
.tbtn { font: 500 16px/1.3 var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; min-height: 44px; }
.tbtn:hover { text-decoration-thickness: 2px; }

/* nav: the legend key. Each link is a map symbol beside its name, read like a sheet's key;
   the section in view inks its symbol and underlines its name. One plain hairline below. */
.margin { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.capture .margin { position: static; }
.margin-row { display: flex; align-items: center; gap: 32px; height: calc(var(--nav) - 1px); padding: 0 var(--gut); }
.wordmark { font: 700 22px/1 var(--serif); text-decoration: none; display: flex; align-items: baseline; gap: 12px; margin-right: auto; padding: 13px 0 9px; }
.wm-no { font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.margin-toggle { display: none; }
.margin-panel { display: flex; align-items: center; gap: 36px; }
.margin-links { display: flex; gap: 30px; }
.margin-links a { font: 500 13px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); transition: color .25s var(--ease); }
.ml-t { padding: 5px 0 4px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .36s var(--ease); }
.margin-links a:hover, .margin-links a.here { color: var(--ink); }
.margin-links a:hover .ml-t, .margin-links a.here .ml-t { background-size: 100% 1px; }
.ml-sym { display: block; flex: none; width: 22px; height: 15px; }
.ml-sym .s-line, .ml-sym .s-trail { fill: none; stroke: var(--contour); stroke-width: 1.2; transition: stroke .25s var(--ease); }
.ml-sym .s-trail { stroke-width: 1.6; }
.margin-links a.here .s-line, .margin-links a.here .s-trail { stroke: var(--ink); }

/* 1. cover */
.cover { padding: clamp(40px, 6vw, 88px) 0 var(--pad); overflow: hidden; overflow: clip; }
.cover-in { width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(32px, 5vw, 88px); min-height: min(720px, 100svh - 200px); }
.cover-txt h1 { max-width: 8.4em; }
.cover-txt .lede { margin-top: 30px; }
.cover-cta { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.mapcover { --p: 0; position: relative; width: min(350px, 78%); aspect-ratio: 350 / 610; justify-self: center; margin-right: 13%; transform: rotate(-2.4deg); }
.mc-front { position: absolute; inset: 0; background: var(--paper); border: 1px solid var(--ink); display: flex; flex-direction: column; z-index: 3; }
.mc-band { background: var(--forest); color: #fff; padding: 14px 18px 13px; display: flex; flex-direction: column; gap: 5px; font: 500 12.5px/1.1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.mc-band span:first-child { font: 700 23px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.mc-title { padding: 16px 18px 14px; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 14px; row-gap: 2px; }
.mc-no { font: 500 64px/.86 var(--serif); grid-row: span 2; }
.mc-name { font: 500 13.5px/1.2 var(--mono); align-self: end; }
.mc-scale { font: 500 13px/1.2 var(--sans); letter-spacing: .1em; color: var(--ink-2); }
.mc-art { flex: 1; min-height: 0; width: 100%; border-block: 1px solid var(--ink); }
.mc-foot { display: flex; gap: 16px; align-items: center; padding: 14px 18px; font: 400 13px/1.38 var(--sans); color: var(--ink-2); }
.mc-loc { width: 62px; flex: none; }
.mc-fold { position: absolute; top: 0; bottom: 0; width: 100%; background: var(--paper); border: 1px solid var(--ink); }
.mc-fold1 { left: 9px; z-index: 2; transform: translateX(calc(var(--p) * 10px)); }
.mc-fold2 { left: 18px; z-index: 1; transform: translateX(calc(var(--p) * 22px)); }
.mc-sheet { position: absolute; top: 0; bottom: 0; left: 27px; width: 100%; border: 1px solid var(--ink); overflow: hidden; z-index: 0; transform: translateX(calc(22% + var(--p) * 56%)); background: var(--low); }
.mc-sheet svg { width: 100%; height: 100%; transform: scale(1.5); transform-origin: 80% 30%; }
.js .mapcover { animation: mc-in 1.1s var(--ease) both; }
.js .mc-sheet { animation: mc-out 1.3s .15s var(--ease) both; }
@keyframes mc-in { from { opacity: 0; transform: rotate(-2.4deg) translateY(28px); } }
@keyframes mc-out { from { transform: translateX(0); } }
.capture .mapcover, .capture .mc-sheet { animation: none; }

/* 2. the sheet */
.sheet { padding: 0 0 var(--pad); }
.sh-head { width: min(1680px, 100% - 2 * var(--gut)); margin: 0 auto 30px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sh-note { font: 500 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.frame { width: min(1680px, 100% - 2 * var(--gut) - 12px); margin-inline: auto; height: clamp(660px, 88vh, 940px); display: grid; grid-template-columns: 404px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border: 1px solid var(--ink); outline: 3px solid var(--ink); outline-offset: 5px; background: var(--paper); }
.capture .frame { height: 780px; }
.askbar { grid-column: 1 / -1; display: grid; grid-template-columns: 404px minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.ask { padding: 14px 20px 12px; border-right: 1px solid var(--ink); }
.ask label { display: block; font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.ask-row { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; font: 500 16.5px/1 var(--sans); }
.ask input { text-overflow: ellipsis; }
.ask input:focus-visible { outline-offset: 2px; }
.ask .btn { min-height: 46px; padding: 0 16px; }
.ask-note { font: 400 13.5px/1.3 var(--sans); color: var(--ink-2); margin-top: 7px; min-height: 18px; }
.qs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qs li + li { border-left: 1px solid var(--hair); }
.q { display: flex; align-items: flex-start; gap: 12px; width: 100%; height: 100%; min-height: 44px; padding: 16px 16px 12px; font: 500 16px/1.25 var(--serif); position: relative; transition: background-color .2s; }
@media (hover: hover) { .q:hover { background: rgba(31, 36, 33, .05); } }
.q:focus-visible { outline-offset: -4px; }
.q-n { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 13px/1 var(--sans); transition: background-color .2s, color .2s, border-color .2s; }
.q[aria-pressed="true"] .q-n { background: var(--trail); border-color: var(--trail); color: #fff; }
.q[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); }
.q-s { display: none; }
.answer { border-right: 1px solid var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 16px; scrollbar-width: thin; }
.card-k { font: 500 12.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.card h3 { font: 500 24px/1.14 var(--serif); letter-spacing: -.005em; margin-bottom: 12px; text-wrap: balance; }
.card-p { font-size: 16.5px; line-height: 1.42; margin: -4px 0 12px; }
.steps { border-top: 1px solid var(--hair); }
.steps li { border-bottom: 1px solid var(--hair); }
.step { display: flex; gap: 13px; width: 100%; padding: 8px 6px 8px 2px; font: 400 15.5px/1.36 var(--sans); transition: opacity .35s, background-color .2s; }
@media (hover: hover) { .step:hover { background: rgba(31, 36, 33, .05); } }
.step:focus-visible { outline-offset: -2px; }
.step.wait { opacity: .62; }
.step .n { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--trail); color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--sans); }
.step .n-end, .step .n-ring { background: transparent; border: 2.5px solid var(--trail); position: relative; }
.step .n-end::after, .step .n-ring::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--trail); }
.step .n-flag { border-radius: 0; clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%); width: 27px; padding-right: 6px; height: 21px; margin-top: 2px; }
.step .b { display: block; }
.step b { display: block; font: 500 17.5px/1.25 var(--serif); }
.step code { display: block; margin-top: 2px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; overflow-wrap: anywhere; }
.step-end { border-bottom: 0; }
.card-end { font-size: 15.5px; line-height: 1.42; color: var(--ink-2); padding-top: 12px; }
.route { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.route dt, .facts dt { font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.route dd { font: 500 21px/1.2 var(--serif); white-space: nowrap; }
.profile { width: 100%; height: 48px; margin-bottom: 8px; overflow: visible; }
.pf-a { fill: rgba(212, 20, 90, .09); }
.pf-l { fill: none; stroke: var(--trail); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pf-m { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 3; opacity: .5; }
.facts { border-top: 1px solid var(--hair); margin-bottom: 4px; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 1.35; }
.again li { border-top: 1px solid var(--hair); }
.again .tbtn { width: 100%; padding: 8px 0; font: 500 17px/1.3 var(--serif); text-decoration: none; }
.again .tbtn:hover { text-decoration: underline; }

/* the map window */
.mapslot { min-width: 0; min-height: 0; position: relative; }
.mapwin { position: absolute; inset: 0; overflow: hidden; background: var(--table); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.mapwin.drag { cursor: grabbing; }
.mapwin.free { touch-action: none; }
.mapwin:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
#map { width: 100%; height: 100%; --inv: 1.5; }
#map path, #map polyline, #map rect, #map circle { vector-effect: non-scaling-stroke; }
.t0 { fill: #CFE0B8; }
.forest { fill: #9CC08A; stroke: #7FA871; stroke-width: .8px; }
.ice { fill: #E3F0F4; stroke: #1F5F86; stroke-width: .7px; stroke-dasharray: 2 2.5; }
.marsh { fill: #DCE8CB; }
.quarry { fill: #D9D4DE; stroke: #5B5468; stroke-width: .8px; }
.c { fill: none; stroke: #8E7A80; stroke-width: .65px; }
.c-i { stroke-width: 1.2px; }
.c-r { stroke: #5B5468; opacity: .78; }
.c-b { stroke: #1F5F86; }
.c-int { stroke-width: .5px; stroke-dasharray: 3 2.4; opacity: .7; }
.water { fill: #C3DCE8; stroke: #1F5F86; stroke-width: 1px; }
.shore { fill: none; stroke: #1F5F86; stroke-width: .5px; opacity: .38; }
.riv { fill: none; stroke: #1F5F86; stroke-width: 1.15px; stroke-linecap: round; stroke-linejoin: round; }
.riv-w { stroke-width: 2.1px; }
.grid { fill: none; stroke: #1F2421; stroke-width: .5px; opacity: .15; }
.road-c { fill: none; stroke: #1F2421; stroke-width: 3.2px; stroke-linejoin: round; }
.road { fill: none; stroke: #fff; stroke-width: 1.7px; stroke-linejoin: round; }
.foot { fill: none; stroke: #1F2421; stroke-width: .9px; stroke-dasharray: 4 3; }
.cable { fill: none; stroke: #1F2421; stroke-width: .9px; }
.bld { fill: #1F2421; }
.neat { fill: none; stroke: #1F2421; stroke-width: 1.6px; }
.tr-case { fill: none; stroke: #F6F8F3; stroke-width: 7px; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.tr { fill: none; stroke: var(--trail); stroke-width: 3.2px; stroke-linecap: round; stroke-linejoin: round; }
.tr-walk { stroke-dasharray: 10 6; stroke-linecap: butt; }
#map .catch { vector-effect: none; fill: rgba(212, 20, 90, .1); stroke: var(--trail); stroke-width: calc(2.6px * var(--inv)); stroke-linejoin: round; transition: fill-opacity .9s .2s; }
#map .ring { vector-effect: none; fill: rgba(212, 20, 90, .07); stroke: var(--trail); stroke-width: calc(2.6px * var(--inv)); stroke-dasharray: calc(8px * var(--inv)) calc(5px * var(--inv)); transition: opacity .5s; }
.ans.pre .catch { fill-opacity: 0; }
.ans.pre .ring { opacity: 0; }
.pl-s, .wp-s { transform: scale(var(--inv)); }
.pl { transition: opacity .25s; cursor: default; }
#map[data-tier="1"] .t2, #map[data-tier="1"] .t3, #map[data-tier="2"] .t3 { opacity: 0; pointer-events: none; }
#map:not([data-tier="1"]) .pl.hot { opacity: 1; pointer-events: auto; }
#map text { font-family: var(--serif); font-size: 14px; fill: var(--ink); paint-order: stroke; stroke: #F6F8F3; stroke-width: 3.2px; stroke-linejoin: round; }
#map .hit { fill: #fff; fill-opacity: 0; stroke: none; pointer-events: all; }
#map .r-nm { font-size: 16px; font-weight: 500; letter-spacing: .3em; }
#map .f-nm { font-size: 16.5px; font-weight: 500; letter-spacing: .13em; fill: #2F5D3A; stroke: #C9DFBC; }
#map .w-nm { font-size: 14px; font-weight: 500; letter-spacing: .05em; fill: #1F5F86; }
#map .w-big { font-size: 17px; letter-spacing: .12em; stroke: #C3DCE8; }
#map .w-sub { font-family: var(--sans); font-size: 12.5px; fill: #1F5F86; stroke: #E3F0F4; }
#map .p-nm { font-size: 12.5px; font-weight: 700; letter-spacing: .15em; }
#map .v-nm { font-size: 15.5px; font-weight: 500; }
#map .s-nm { font-size: 13.5px; }
#map .ht { font-family: var(--sans); font-size: 12.5px; font-weight: 500; }
.sym { fill: #1F2421; stroke: #F6F8F3; stroke-width: 1px; }
.sym-l { fill: none; stroke: #1F2421; stroke-width: 1.5px; }
.pl.sel .hit { fill-opacity: .0; }
.wp { pointer-events: none; }
.wp-m { transition: transform .42s cubic-bezier(.34, 1.45, .64, 1), opacity .18s; }
.wp.off .wp-m { transform: scale(.2); opacity: 0; }
.wp-c { fill: var(--trail); stroke: #fff; stroke-width: 2.2px; }
#map .wp-t { font-family: var(--sans); font-weight: 700; font-size: 13px; fill: #fff; stroke: none; }
.wp-ring { fill: rgba(246, 248, 243, .7); stroke: var(--trail); stroke-width: 2.6px; }
.wp-dot { fill: var(--trail); }
.wp-pole { fill: none; stroke: var(--trail); stroke-width: 2.2px; }
.wp-flag { fill: var(--trail); stroke: #fff; stroke-width: 1.2px; }
.rule { position: absolute; background: rgba(246, 248, 243, .93); font: 500 12px/1 var(--sans); color: var(--ink); pointer-events: none; overflow: hidden; }
.rule-x { left: 0; right: 0; top: 0; height: 19px; border-bottom: 1px solid var(--ink); }
.rule-y { left: 0; top: 19px; bottom: 0; width: 19px; border-right: 1px solid var(--ink); }
.rule span { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.rule-x span { padding: 3px 0 0 5px; height: 19px; border-left: 1px solid var(--ink); }
.rule-y span { writing-mode: vertical-rl; padding: 5px 3px 0 0; width: 19px; border-top: 1px solid var(--ink); }
.ctl { position: absolute; right: 14px; top: 33px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); }
.ctl button { width: 44px; height: 44px; display: grid; place-items: center; transition: background-color .15s, color .15s; }
.ctl button + button { border-top: 1px solid var(--ink); }
@media (hover: hover) { .ctl button:hover { background: var(--ink); color: var(--paper); } }
.ctl button:active { background: var(--ink); color: var(--paper); }
.ctl button:focus-visible { outline-offset: -4px; }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ctl .fill { fill: currentColor; stroke: none; }
.mini { position: absolute; right: 14px; bottom: 14px; width: 184px; border: 1px solid var(--ink); outline: 2px solid var(--paper); background: var(--paper); cursor: crosshair; touch-action: none; }
.mini svg { width: 100%; height: auto; }
#mini-view { fill: rgba(31, 36, 33, .1); stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
#mini-tr { fill: none; stroke: var(--trail); stroke-width: 1.8px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chipbar { position: absolute; left: 33px; bottom: 14px; display: flex; align-items: flex-end; gap: 16px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: var(--paper); font: 500 13px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; transition: background-color .15s, color .15s; }
.chip[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .chip:hover { background: var(--ink); color: var(--paper); } }
.scalebar { display: flex; flex-direction: column; gap: 4px; font: 500 12.5px/1 var(--sans); padding: 6px 8px 7px; background: rgba(246, 248, 243, .93); }
.scalebar i { display: block; height: 6px; width: 85px; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.legend-pop { position: absolute; left: 33px; bottom: 68px; width: 262px; padding: 14px 16px 12px; border: 1px solid var(--ink); background: var(--paper); cursor: default; }
.legend-pop li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; line-height: 1.2; padding: 5px 0; color: var(--ink-2); }
.legend-pop b { font: 500 16px/1.2 var(--serif); color: var(--ink); }
.legend-pop .tlink { margin-top: 4px; }
.lp { flex: none; width: 30px; height: 16px; border: 1px solid var(--hair); }
.lp-contour { background: repeating-linear-gradient(160deg, transparent 0 3px, var(--contour) 3px 4px); }
.lp-forest { background: var(--forest-f); }
.lp-ice { background: repeating-linear-gradient(160deg, var(--ice) 0 3px, var(--blue) 3px 4px); }
.lp-river { background: linear-gradient(var(--blue), var(--blue)) 0 50% / 100% 2px no-repeat; border-color: transparent; }
.lp-pass { background: none; border: 0; border-inline: 2px solid var(--ink); border-radius: 50%; width: 14px; margin-inline: 8px; }
.lp-trail { background: linear-gradient(var(--trail), var(--trail)) 0 50% / 100% 3px no-repeat; border-color: transparent; }
.spot { position: absolute; left: 0; top: 0; width: 252px; padding: 12px 14px 12px; border: 1px solid var(--ink); background: var(--paper); pointer-events: none; z-index: 5; }
.spot h4 { font: 500 20px/1.15 var(--serif); }
.spot .sp-k { font: 500 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 3px 0 8px; }
.spot code { display: block; padding: 6px 0; border-block: 1px solid var(--hair); overflow-wrap: anywhere; }
.spot dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 8px; font-size: 14.5px; line-height: 1.35; }
.spot dt { color: var(--ink-2); }
.sh-keys { width: min(1680px, 100% - 2 * var(--gut)); margin: 22px auto 0; font-size: 15px; color: var(--ink-2); }
.gaz { width: min(1680px, 100% - 2 * var(--gut)); margin: 44px auto 0; }
.gaz h3 { font: 500 26px/1.2 var(--serif); padding-bottom: 14px; border-bottom: 1px solid var(--ink); display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.gaz h3 span { font: 400 15px/1.3 var(--sans); color: var(--ink-2); }
.gaz-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 40px); padding-top: 14px; }
.gz-h { font: 500 12.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0 4px; }
.gz { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 36px; padding: 5px 0; }
.gz-n { font: 500 17px/1.2 var(--serif); }
.gz::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted var(--ink-2); transform: translateY(-4px); opacity: .6; }
.gz-r { order: 2; font: 400 12.5px/1 var(--mono); color: var(--ink-2); }
.gz:hover .gz-n, .gz.on .gz-n { text-decoration: underline; text-underline-offset: 4px; }

/* overlays drawn on reused pieces of the sheet */
.ov-case { fill: none; stroke: #F6F8F3; stroke-width: 7px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ov-tr { fill: none; stroke: var(--trail); stroke-width: 3.2px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-wp { fill: var(--trail); stroke: #F6F8F3; stroke-width: 2.4px; vector-effect: non-scaling-stroke; }
.ov-pass { fill: none; stroke: var(--ink); stroke-width: 1.8px; vector-effect: non-scaling-stroke; }
.ov-old { fill: none; stroke: var(--blue); stroke-width: 1.1px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }

/* 3. legend */
.legend { padding: 128px 40px; border-top: 1px solid var(--ink); }
.legend .wrap, .revision .wrap { width: min(1240px, 100%); }
.legend h2 { max-width: 12em; }
.signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 72px) clamp(24px, 3.4vw, 56px); margin-top: clamp(48px, 6vw, 88px); }
.signs svg { width: 100%; height: auto; border: 1px solid var(--ink); background: var(--low); }
.signs h3 { font: 500 28px/1.15 var(--serif); margin-top: 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.signs h3 span { font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.signs p { margin-top: 8px; max-width: 24em; }

/* 4. revision */
.revision { padding: 128px 40px; background: var(--ice); border-block: 1px solid var(--ink); }
.rev-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.rev-txt .lede { margin-top: 28px; }
.rev-priv { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink); max-width: 30em; font-size: 17px; }
.rev-fig { position: relative; padding-bottom: 8px; }
.rev-fig > svg { width: 100%; height: auto; border: 1px solid var(--ink); background: var(--paper); }
.stamp { position: absolute; right: -14px; top: -26px; transform: rotate(3deg); padding: 12px 16px 13px; border: 2.5px solid var(--rock); color: var(--rock); background: rgba(246, 248, 243, .9); font: 500 14px/1.38 var(--sans); max-width: 252px; }
.stamp-k { font: 700 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.stamp-d { font: 500 21px/1.25 var(--mono); letter-spacing: -.02em; padding: 2px 0 5px; margin-bottom: 6px; border-bottom: 1.5px solid var(--rock); white-space: nowrap; }
.rev-fig figcaption { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }

/* 5. series */
.series { padding: var(--pad) 0; }
.scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(48px, 6vw, 88px); }
.sc { border: 1px solid var(--ink); aspect-ratio: 5 / 5.2; display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.scales li:hover .sc { transform: translateY(-6px); }
.sc-band { color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; font: 700 19px/1 var(--serif); }
.sc-band b { font: 500 13px/1 var(--sans); letter-spacing: .12em; }
.sc-25 .sc-band { background: var(--forest); } .sc-50 .sc-band { background: var(--blue); } .sc-100 .sc-band { background: var(--rock); }
.sc svg { flex: 1; min-height: 0; width: 100%; border-top: 1px solid var(--ink); }
.scales h3 { font: 500 30px/1.1 var(--serif); margin-top: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scales h3 span { font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.scales p { margin-top: 8px; max-width: 22em; }
.scales .price { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--ink-2); }
.price span { font: 500 24px/1 var(--serif); color: var(--ink); margin-right: 4px; }
.series-cta { margin-top: clamp(44px, 5vw, 72px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fine { font-size: 15px; color: var(--ink-2); }

/* 6. imprint */
.imprint { border-top: 3px solid var(--ink); padding: 56px 0 64px; font-size: 15.5px; line-height: 1.5; }
.imp-in { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 32px clamp(24px, 4vw, 72px); }
.imp-wm { font: 700 30px/1 var(--serif); margin-bottom: 12px; }
.imp-b div { display: grid; grid-template-columns: 148px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.imp-b dt { font: 500 12.5px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.imp-c a { display: inline-flex; align-items: center; min-height: 36px; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.imp-d { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--ink); color: var(--ink-2); max-width: none; }

/* dialogs */
.dlg { border: 1px solid var(--ink); outline: 3px solid var(--ink); outline-offset: 5px; background: var(--paper); color: var(--ink); padding: 0; }
.dlg::backdrop { background: rgba(31, 36, 33, .62); }
.survey { width: min(480px, 100vw - 40px); padding: 32px 30px 28px; }
.survey h2 { font-size: 34px; }
.dlg-p { margin: 10px 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; font: 400 18px/1 var(--sans); }
.field input[aria-invalid="true"] { border-width: 2px; }
.err { font-size: 15px; font-weight: 500; margin-top: 7px; }
.err::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--ink); margin-right: 8px; }
.dlg-row { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.fullmap { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; outline: 0; }
.fullmap[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.fm-bar { display: flex; align-items: center; gap: 16px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--ink); }
.fm-t { font: 500 18px/1.2 var(--serif); margin-right: auto; min-width: 0; }
.fm-qs { display: flex; gap: 6px; }
.fm-q { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--sans); }
.fm-q[aria-pressed="true"] { background: var(--trail); border-color: var(--trail); color: #fff; }
.fm-x { min-height: 44px; padding: 0 16px; }
.fm-slot { position: relative; min-height: 0; }

/* reveals */
.js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-rv].in, .capture [data-rv] { opacity: 1; transform: none; }
.signs li:nth-child(3n+2), .scales li:nth-child(2) { transition-delay: .08s; }
.signs li:nth-child(3n), .scales li:nth-child(3) { transition-delay: .16s; }

/* phone and narrow screens: stacked, the map edge to edge */
@media (max-width: 1080px) {
  .frame { grid-template-columns: 340px minmax(0, 1fr); }
  .askbar { grid-template-columns: 1fr; }
  .ask { border-right: 0; border-bottom: 1px solid var(--ink); }
  .q { padding: 12px 12px 10px; font-size: 15px; }
  .gaz-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .margin-row { gap: 12px; }
  .margin-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 2px; font: 500 13px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
  .margin-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
  .margin-panel { position: absolute; left: 0; right: 0; top: calc(100% + 1px); max-height: calc(100svh - var(--nav)); overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gut) 24px; display: none; }
  .margin-panel.open { display: flex; }
  .margin-links { flex-direction: column; gap: 0; margin-bottom: 20px; }
  .margin-links a { min-height: 56px; gap: 16px; border-bottom: 1px solid var(--hair); font-size: 14px; }
  .ml-sym { width: 28px; height: 19px; }
}
@media (max-width: 820px) {
  :root { --nav: 60px; }
  body { font-size: 17.5px; }
  .cover { padding-top: 36px; }
  .cover-in { grid-template-columns: 1fr; gap: 52px; min-height: 0; }
  .cover-cta { gap: 22px; margin-top: 32px; }
  .mapcover { width: min(248px, 62%); margin-right: 22%; }
  .mc-name { font-size: 12px; }
  .mc-no { font-size: 46px; } .mc-band span:first-child { font-size: 19px; } .mc-foot { padding: 10px 14px; gap: 12px; } .mc-title { padding: 12px 14px 10px; } .mc-band { padding: 11px 14px 10px; } .mc-loc { width: 50px; }
  .sh-head { margin-bottom: 20px; }
  .frame { width: 100%; height: auto; display: flex; flex-direction: column; border-inline: 0; outline: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
  .capture .frame { height: auto; }
  .askbar { display: block; border-bottom: 0; order: 1; }
  .mapslot { order: 2; }
  .answer { order: 3; }
  .ask { padding: 16px 20px 12px; border-bottom: 0; }
  .qs { grid-template-columns: 1fr 1fr; border-block: 1px solid var(--ink); }
  .qs li:nth-child(3) { border-left: 0; }
  .qs li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .q { align-items: center; padding: 10px 12px 10px 20px; min-height: 52px; font-size: 16px; }
  .q-l { display: none; } .q-s { display: block; }
  .mapslot { height: clamp(430px, 64svh, 600px); }
  .answer { border-right: 0; border-top: 1px solid var(--ink); overflow: visible; padding: 24px 20px 26px; }
  .ctl { right: 10px; top: 29px; }
  .mini { width: 112px; right: 10px; bottom: 10px; }
  .chipbar { left: 29px; bottom: 10px; }
  .scalebar { display: none; }
  .legend-pop { left: 29px; bottom: 62px; }
  .sh-keys { display: none; }
  .gaz { margin-top: 36px; }
  .gaz-cols { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .gz { min-height: 44px; flex-wrap: wrap; row-gap: 0; }
  .gz::after { display: none; } .gz-r { width: 100%; }
  .legend, .revision { padding: 72px 20px; }
  .signs, .scales { grid-template-columns: 1fr; }
  .signs { gap: 44px; } .scales { gap: 52px; }
  .sc { aspect-ratio: 5 / 3.6; }
  .rev-in { grid-template-columns: 1fr; gap: 64px; }
  .stamp { right: -6px; top: -34px; max-width: 232px; }
  .stamp-d { font-size: 18px; }
  .imp-in { grid-template-columns: 1fr; }
  .imp-b div { grid-template-columns: 132px 1fr; }
  .imp-c a { min-height: 44px; }
  .fm-t { font-size: 15.5px; } .fm-bar { gap: 8px; padding: 8px 10px; flex-wrap: wrap; } .fm-qs { gap: 4px; }
}
@media (max-width: 480px) {
  .gaz h3 span { font-size: 14.5px; }
  .fm-t { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { transform: none; transition: opacity .2s; }
  .js .mapcover, .js .mc-sheet { animation: none; }
  .wp-m, .step, .btn, .tlink, .sc, .pl, #map .catch, #map .ring, .margin-links a, .ml-t, .ml-sym .s-line, .ml-sym .s-trail { transition-duration: .01s; transition-delay: 0s; }
  .scales li:hover .sc { transform: none; }
}
