/* The map of the public charging stations (src/app/chargers/page.ts). Tokens only: the ground is the map's own tones
   (`--map-*`: the sea, the shore, the land, a town, a road), a station wears the hue of its speed (`--kw-*`: ultra-fast
   and fast filled, alternating current a ring, nothing printed a dashed ring: a shape and a hue, never the hue alone),
   the station open is road paint ("this one"). A phone: the head and its figures, the search, the pills, the map and
   the list of cards, one page that scrolls (a thumb on the map scrolls it too; two fingers move the map). With room:
   the list at the left, the map beside it for the height of the screen. */

.bn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 1480px; margin: 0 auto; padding: 16px var(--pad) 32px; }

/* The head: the title, then what the map holds as three figures on one card. */
.bn-head { display: grid; gap: 12px; }
.bn-h { font: 800 1.875rem/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.bn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); box-shadow: var(--lift-1); }
.bn-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; padding: 12px 12px 11px; }
.bn-stat + .bn-stat { border-inline-start: 1px solid var(--line); }
.bn-stat dd { display: flex; align-items: center; gap: 7px; margin: 0; font: 800 1.75rem/1 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.bn-stat dt { font: 550 0.75rem/1.25 var(--body); color: var(--soft); text-wrap: balance; }
/* The fast ones wear the legend's own mark. */
.bn-stat.is-fast dd::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--kw-fast); }
.bn-sub { margin: -2px 0 0; font: 500 0.75rem/1.3 var(--label); color: var(--soft); }

/* The search and "Ma position". The field is 16 px: under it a phone zooms the page when it is tapped. */
.bn-find { display: flex; align-items: center; gap: 8px; }
.bn-field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1.5px solid var(--edge); border-radius: var(--r-pill); background: var(--card); cursor: text; transition: border-color var(--quick), box-shadow var(--quick); }
.bn-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--line); }
.bn-field .ic { flex: none; width: 20px; height: 20px; color: var(--soft); }
.bn-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; font: 500 1rem/1 var(--body); color: var(--ink); }
.bn-field input::placeholder { color: var(--soft); opacity: 1; }
.bn-field input::-webkit-search-cancel-button { display: none; }
.bn-here { flex: none; gap: 6px; min-height: 48px; padding-block: 8px; padding-inline: 11px 14px; white-space: nowrap; }
.bn-here[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.bn-here[aria-busy] .ic { opacity: 0.45; }
/* What only a script can do or say is not offered without one: the place asked, the zoom, the scale of the real size. */
@media (scripting: none) { .bn-here, .bn-zoom, .bn-whole, .bn-scale { display: none; } }

/* The three pills, each its icon: one width each, whatever they say, so that none moves when one changes. */
.bn-tools { margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
/* On a phone in French and English the middle one ("Prise", and a plug's short name) leaves the two long words their room. */
.bn-pills { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.84fr) minmax(0, 1.08fr); gap: 6px; }
.bn-pills:dir(rtl) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bn-pills .pick { min-width: 0; height: 44px; justify-content: flex-start; gap: 3px; padding-block: 0; padding-inline: 8px 3px; font-size: 0.8125rem; letter-spacing: -0.01em; }
.bn-pills .pick > .ic:first-child { flex: none; width: 16px; height: 16px; }
.bn-pills .pick > .ic:last-child { flex: none; width: 14px; height: 14px; margin-inline-start: auto; }
.bn-pills .pick b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── The map ─────────────────────────────────────────────────────────────────────────────────────────── */

/* The drawing reads left to right in every language: a name's anchor is a side of the map, not of the sentence, and what
   stands on the map stands on the drawing (the legend over the ocean, the zoom and the credits east of the land, the
   station's sheet over the ocean with room): the map lays out left to right, and the words inside each piece read their
   own way (a piece's own direction would also turn the side it is placed by). */
.bn-map { position: relative; z-index: 4; height: clamp(320px, 60svh, 560px); border-radius: var(--r-l); outline-offset: 2px; scroll-margin-top: calc(var(--bar-h) + 8px); direction: ltr; user-select: none; -webkit-user-select: none; }
.bn-map:dir(rtl) :is(.bn-legend > span, .bn-card > *) { direction: rtl; }
.bn-map:focus-visible { outline: 2px solid var(--ink); }
.bn-svg { display: block; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: inherit; background: var(--map-sea); box-shadow: var(--lift-1); }
/* A finger scrolls the page over the map as anywhere else; the browser's own pinch is the map's (app.ts, two fingers). */
.bn.is-live .bn-svg { touch-action: pan-x pan-y; cursor: grab; }
.bn.is-live .bn-map.is-held .bn-svg { cursor: grabbing; }
/* The country, drawn twice from one outline: its shore, a wide soft line in the shallows' tone, then the land over it. */
.bn-shore { fill: none; stroke: var(--map-shore); stroke-width: 9; stroke-opacity: 0.45; stroke-linejoin: round; }
.bn-land { fill: var(--map-land); stroke: var(--map-shore); stroke-width: 1.25; stroke-linejoin: round; }
/* The ground under the stations: the towns' built-up footprints, the roads thin lines, the motorways wider and warm. */
.bn-built { fill: var(--map-built); stroke: none; }
.bn-road { fill: none; stroke: var(--map-road); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bn-road.is-major { stroke: var(--map-major); stroke-width: 2.5; }
/* Close up the coast is not drawn (model.ts, `coastShown`): the land and the sea are one ground. */
.bn-map.is-close .bn-svg { background: var(--map-land); }
.bn-map.is-close :is(.bn-land, .bn-shore) { stroke: none; }
.bn-name { font: 550 12px/1 var(--label); fill: var(--soft); stroke: var(--map-land); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.bn-name.is-station { font-weight: 700; fill: var(--ink); }
.bn-city-dot { fill: var(--edge); }

/* A station, or several counted as one. A station wears its speed (a shape and a hue); several are one ink disc with
   their count, a soft ring around it; the one open is road paint. */
.bn-pt { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.bn-hit { fill: transparent; stroke: none; }
.bn-dot { stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke-width var(--quick); }
.bn-pt.is-ultra .bn-dot { fill: var(--kw-ultra); stroke: var(--map-land); }
.bn-pt.is-fast .bn-dot { fill: var(--kw-fast); stroke: var(--map-land); }
.bn-pt.is-normal .bn-dot { fill: var(--map-land); stroke: var(--kw-normal); stroke-width: 2.5; }
.bn-pt.is-unknown .bn-dot { fill: var(--map-land); stroke: var(--edge); stroke-dasharray: 3 2.5; }
.bn-n { font: 750 12px/1 var(--display); font-variant-numeric: tabular-nums; text-anchor: middle; fill: var(--ink); pointer-events: none; }
.bn-many.is-dc .bn-dot { fill: var(--ink); stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 7; paint-order: stroke; }
.bn-many.is-dc .bn-n { fill: var(--paper); }
.bn-many:not(.is-dc) .bn-dot { fill: var(--map-land); stroke: var(--ink); }
.bn-pt.is-on .bn-dot { fill: var(--paint); stroke: var(--paint-edge); stroke-width: 2.5; stroke-dasharray: none; }
.bn-pt.is-on .bn-n { fill: var(--on-paint); }
.bn-pt:focus-visible .bn-hit { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
@media (hover: hover) { .bn-pt:not(.bn-many):hover .bn-dot { stroke-width: 4; } }
/* Where the visitor is: a target, as the button that asks for it. */
.bn-you { pointer-events: none; }
.bn-you-ring { fill: color-mix(in srgb, var(--map-land) 70%, transparent); stroke: var(--ink); stroke-width: 2; }
.bn-you-dot { fill: var(--ink); }
.bn-you-ticks { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* Where scripts run, the marks come in once the script has drawn them for the map's real size (three seconds at most). */
@media (scripting: enabled) {
  .bn:not(.is-live) :is(.bn-marks, .bn-cities) { opacity: 0; animation: bn-late 0s 3s forwards; }
  .bn.is-live :is(.bn-marks, .bn-cities) { animation: bn-in var(--quick) both; }
}
@keyframes bn-late { to { opacity: 1; } }
@keyframes bn-in { from { opacity: 0; } }

/* What stands on the map, where the country leaves room at the whole view: its legend over the ocean at the top left,
   the zoom and the credits its data ask for at the bottom right, east of the land. */
.bn-legend, .bn-credit { position: absolute; z-index: 1; margin: 0; font: 550 0.75rem/1.4 var(--body); color: var(--soft); }
.bn-legend { top: 10px; inset-inline-start: 10px; display: grid; gap: 3px; padding-block: 8px; padding-inline: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 90%, transparent); color: var(--ink); pointer-events: none; }
.bn-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bn-credit { inset-inline-end: 8px; bottom: 6px; display: grid; justify-items: end; padding: 3px 7px; border-radius: 8px; background: color-mix(in srgb, var(--map-sea) 80%, transparent); text-align: end; }
.bn-map.is-close .bn-credit { background: color-mix(in srgb, var(--map-land) 80%, transparent); }
.bn-credit a { color: inherit; white-space: nowrap; text-underline-offset: 2px; }
.bn-scale { display: inline-flex; align-items: center; gap: 6px; min-height: 1.4em; font-variant-numeric: tabular-nums; color: var(--ink); }
.bn-scale i { box-sizing: border-box; height: 6px; border: 1.5px solid var(--ink); border-top: 0; }
.bn-mark { flex: none; display: inline-block; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; }
.bn-mark.is-ultra { background: var(--kw-ultra); }
.bn-mark.is-fast { background: var(--kw-fast); }
.bn-mark.is-normal { border: 2.5px solid var(--kw-normal); background: var(--map-land); }
.bn-mark.is-unknown { border: 1.5px dashed var(--edge); background: var(--map-land); }
.bn-zoom { position: absolute; inset-inline-end: 8px; bottom: 74px; z-index: 1; display: grid; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--lift-1); }
.bn-zoom .ib { border-radius: 14px; color: var(--ink); cursor: pointer; }
.bn-zoom .ib + .ib { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.bn-zoom .ic { width: 20px; height: 20px; }
.bn-whole { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--ink); box-shadow: var(--lift-1); font: 650 0.8125rem/1 var(--body); cursor: pointer; }
.bn-whole::after { content: ""; position: absolute; inset: -4px 0; }
.bn-whole[hidden] { display: none; }
/* Said when one finger tried to move the map on a touch screen: it scrolls the page, two move the map. */
.bn-hint { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 10px 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--paper); font: 600 0.875rem/1.2 var(--body); text-align: center; pointer-events: none; }
.bn-hint[hidden] { display: none; }

/* ── What a station wears, in the list and in its sheet ──────────────────────────────────────────────── */

/* Who runs it: the operator's initial on a tile; a charging post where the source prints none. */
.bn-op { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); font: 800 1.0625rem/1 var(--display); color: var(--ink); }
.bn-op .ic { width: 20px; height: 20px; color: var(--soft); }
/* Its power, in the hue of its speed: filled for direct current, soft for alternating, dashed where none is printed. */
.bn-kw { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding-block: 0; padding-inline: 6px 10px; border-radius: var(--r-pill); font: 750 0.8125rem/1 var(--display); letter-spacing: -0.005em; white-space: nowrap; }
.bn-kw .ic { flex: none; width: 15px; height: 15px; }
.bn-kw.is-ultra { background: var(--kw-ultra); color: var(--card); }
.bn-kw.is-fast { background: var(--kw-fast); color: var(--card); }
.bn-kw.is-normal { background: var(--kw-normal-soft); color: var(--kw-normal); }
.bn-kw.is-unknown { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
/* A plug, a price: small chips on one line that wraps. */
.bn-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bn-chip, .bn-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding-block: 2px; padding-inline: 6px 9px; border-radius: var(--r-pill); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); font: 600 0.75rem/1.2 var(--label); color: var(--ink); overflow-wrap: anywhere; }
.bn-chip .ic { flex: none; width: 14px; height: 14px; color: var(--soft); }
.bn-tag { padding-inline: 9px; }
.bn-tag.is-free { background: var(--good-soft); box-shadow: none; color: var(--good); font-weight: 700; }

/* ── A station's sheet: at the foot of a phone, over the map's corner with room ────────────────────────── */

.bn-card { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 58svh; padding-bottom: env(safe-area-inset-bottom, 0px); border-radius: var(--r-l) var(--r-l) 0 0; background: var(--card); color: var(--ink); box-shadow: var(--sheet-shadow); outline: none; user-select: text; -webkit-user-select: text; animation: bn-rise var(--settle) var(--ease) both; }
@keyframes bn-rise { from { opacity: 0; translate: 0 24px; } }
.bn-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding-block: 16px 12px; padding-inline: 18px 6px; }
.bn-card-head .bn-op { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1875rem; }
.bn-card-id { min-width: 0; }
.bn-card-h { margin-top: 3px; font: 750 1.1875rem/1.15 var(--display); letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: anywhere; }
.bn-card-ad { margin-top: 3px; font: 400 0.8125rem/1.35 var(--body); color: var(--soft); overflow-wrap: anywhere; }
.bn-card-x { margin-top: -8px; color: var(--soft); }
.bn-card-body { display: grid; align-content: start; gap: 12px; padding: 0 18px 14px; overflow-y: auto; overscroll-behavior: contain; }
/* Its figures: the power in its speed's soft ground, then its points and how far it is. */
.bn-figs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
.bn-fig { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 10px 12px 11px; border-radius: var(--r-m); background: var(--sunk); }
.bn-fig dt { font: 550 0.75rem/1.2 var(--body); color: var(--soft); }
.bn-fig dd { display: grid; gap: 3px; margin: 0; }
.bn-fig b { font: 800 1.3125rem/1 var(--display); letter-spacing: -0.025em; white-space: nowrap; }
.bn-fig small { font: 650 0.75rem/1.2 var(--label); }
.bn-fig.is-ultra { background: var(--kw-ultra-soft); }
.bn-fig.is-ultra :is(b, small) { color: var(--kw-ultra); }
.bn-fig.is-fast { background: var(--kw-fast-soft); }
.bn-fig.is-fast :is(b, small) { color: var(--kw-fast); }
.bn-fig.is-normal { background: var(--kw-normal-soft); }
.bn-fig.is-normal :is(b, small) { color: var(--kw-normal); }
.bn-plugs { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.bn-plugs li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 2.6em; align-items: center; gap: 2px 10px; min-height: 40px; padding: 6px 0; border-top: 1px solid var(--line); font: 500 0.875rem/1.3 var(--body); }
.bn-plugs .ic { width: 18px; height: 18px; color: var(--soft); }
.bn-plugs b { font: 700 0.9375rem/1.3 var(--display); }
.bn-plugs .bn-plug-n { text-align: end; color: var(--soft); }
.bn-plugs small { grid-column: 2 / -1; font: 500 0.75rem/1.3 var(--body); color: var(--warn); }
.bn-lines { margin: -12px 0 0; border-bottom: 1px solid var(--line); }
.bn-figs + .bn-lines, .bn-card-body > .bn-lines:first-child { margin-top: 0; }
.bn-line { display: grid; grid-template-columns: 7.25em minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; padding: 7px 0; border-top: 1px solid var(--line); }
.bn-plugs + .bn-lines .bn-line:first-child { border-top: 0; }
.bn-line dt { display: flex; align-items: center; gap: 8px; font: 500 0.8125rem/1.3 var(--body); color: var(--soft); }
.bn-line dt .ic { flex: none; width: 16px; height: 16px; }
.bn-line dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font: 650 0.875rem/1.3 var(--body); overflow-wrap: anywhere; }
.bn-line dd small { font: 500 0.75rem/1.3 var(--label); color: var(--soft); }
.bn-line .bn-tag { min-height: 26px; font-size: 0.8125rem; }
.bn-unknown { font-weight: 500; color: var(--soft); }
.bn-card-acts { display: flex; }
.bn-route { flex: 1 1 auto; min-height: 48px; }
.bn-card .whence { justify-self: start; min-height: 32px; margin-block: -4px; font-size: 0.75rem; }
.bn-card .whence-body a, .bn-notes .whence-body a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
@media (prefers-reduced-motion: reduce) { .bn-card, .bn.is-live :is(.bn-marks, .bn-cities) { animation: none; } }

/* ── The list: a card a station ──────────────────────────────────────────────────────────────────────── */

.bn-list-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-top: 8px; text-transform: none; letter-spacing: 0; }
.bn-count { margin: 0; font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.bn-order { font: 500 0.8125rem/1.2 var(--body); color: var(--soft); }
.bn-status { margin: 6px 0 0; font: 500 0.8125rem/1.4 var(--body); color: var(--soft); text-wrap: pretty; }
.bn-status:empty { display: none; }
.bn-rows { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bn-rows + .bn-rows, .bn-more + .bn-rows { margin-top: 8px; }
.bn-row-a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 10px 12px; min-height: 66px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: inherit; text-decoration: none; transition: border-color var(--quick), box-shadow var(--quick); }
.bn-row.is-on .bn-row-a { border-color: var(--ink); box-shadow: inset calc(5px * var(--line-dir)) 0 0 var(--paint), var(--lift-1); }
.bn-row-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .bn-row-a:hover { border-color: var(--edge); box-shadow: var(--lift-1); } .bn-row.is-on .bn-row-a:hover { border-color: var(--ink); box-shadow: inset calc(5px * var(--line-dir)) 0 0 var(--paint), var(--lift-1); } }
.bn-row-t { min-width: 0; align-self: center; }
/* Its plugs and its price, on their own line across the card, under the name. */
.bn-row-a > .bn-chips { grid-column: 2 / -1; }
.bn-row-n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 700 0.9375rem/1.25 var(--display); letter-spacing: -0.005em; overflow-wrap: anywhere; }
.bn-row-t small { display: block; margin-top: 2px; font: 500 0.8125rem/1.3 var(--body); color: var(--soft); }
.bn-row-f { display: grid; justify-items: end; gap: 6px; white-space: nowrap; }
.bn-away { display: inline-flex; align-items: center; gap: 3px; font: 650 0.75rem/1.2 var(--label); color: var(--soft); }
.bn-away .ic { width: 13px; height: 13px; }
.bn-more { display: flex; width: 100%; margin-top: 12px; cursor: pointer; }
#bn-more:not(:checked) ~ .bn-rest, #bn-more:checked + .bn-more { display: none; }
#bn-more:focus-visible + .bn-more { outline: 2px solid var(--ink); outline-offset: 2px; }
.bn-empty { margin: 12px 0; padding: 18px; border-radius: var(--r-m); background: var(--sunk); font: 500 0.9375rem/1.4 var(--body); color: var(--soft); }

/* Under the list: the way to the cars ranked by what 100 km cost, and one line that opens the sources and their limits. */
.bn-notes { display: grid; justify-items: start; gap: 4px; margin-top: 8px; }
.bn-cars { justify-self: stretch; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; font: 650 0.9375rem/1.3 var(--body); text-wrap: balance; }
.bn-cars .ic:first-child { box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 50%; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge); color: var(--on-paint); }
.bn-cars .ic:last-child { width: 18px; height: 18px; color: var(--soft); }
.bn-cars .ic:last-child:dir(rtl) { scale: -1 1; }
@media (hover: hover) { .bn-cars:hover { border-color: var(--edge); } }
.bn-notes .whence-body ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ── With room: the list at the left, the map for the height of the screen ─────────────────────────────── */

@media (min-width: 1000px) {
  .bn { grid-template-columns: 420px minmax(0, 1fr); column-gap: 28px; row-gap: 14px; align-items: start; padding-top: 24px; }
  .bn > * { grid-column: 1; }
  .bn-h { font-size: 2.375rem; }
  .bn-stat { padding: 14px 16px 13px; }
  .bn-stat dd { font-size: 2rem; }
  .bn-tools { margin: 0; padding: 0; }
  .bn-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bn-pills .pick { padding-inline: 12px 8px; gap: 7px; }
  .bn-map { position: sticky; grid-column: 2; grid-row: 1 / span 8; top: calc(var(--bar-h) + 16px); height: calc(100svh - var(--bar-h) - 32px); min-height: 420px; }
  /* The legend on one line along the map's top: the station's sheet stands under it. */
  .bn-legend { inset-inline-start: 12px; top: 12px; grid-auto-flow: column; gap: 16px; padding-inline: 12px 14px; border-radius: var(--r-pill); }
  .bn-credit { inset-inline-end: 12px; bottom: 10px; }
  .bn-zoom { inset-inline-end: 12px; bottom: 82px; }
  .bn-whole { top: 12px; inset-inline-end: 12px; }
  .bn-card { position: absolute; inset-block: 60px auto; inset-inline: 12px auto; width: 380px; max-height: calc(100% - 72px); padding-bottom: 0; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--lift-2); animation-name: bn-in; }
}
