/* esigatavs.lv — the sticky navbar (DESIGN-ROOM §10). Self-contained: its own tokens, "eb-"
   classes only, so /now/, /checklist/ and /first-hour/ can include it next to their own CSS.
   The theme follows the device on a first visit (night when it says nothing) and the reader's choice
   after that (data-theme, set by js/theme.js; the button says "Day" or "Night").
   Phone (< 1024 px): row 1 = wordmark · day/night · language; row 2 = the four modes, each with a
   one-word subtitle. SIRENS NOW, 112 and Where to go (/map/) sit in a dock at the bottom of the screen, in
   thumb reach; while a sheet is open the sheet's own foot carries SIRENS NOW and 112 (room.css).
   Desktop: one 64 px row = wordmark · modes · SIRENS NOW · 112 · Walk · night/day · language.
   Amber is spent once: SIRENS NOW. The active mode is ink with an underline; Walk is an outline. */
/* ONE token set for every page (craft review): colours, the two font stacks and the type scale.
   Every stylesheet (room.css, site.css, first-hour.css) reads these; none redefines them. */
:root {
  --bg: #0B1220; --ink: #F4F1EA; --muted: #A3ACBB; --rule: rgba(244, 241, 234, .18); --lit: #F2A900; --on-lit: #0B1220;
  --sans: "Inter", "Inter var", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  /* the type scale: 14 / 17 / 21 / 26 / 36 px, nothing a reader needs below 14 px (--t2 is the small UI step) */
  --t1: 14px; --t2: 14px; --t3: 17px; --t4: 21px; --t5: 26px; --t6: 36px;
  color-scheme: dark;
}
:root[data-theme="light"] { --bg: #F6F4EF; --ink: #1F1D1A; --muted: #4F545D; --rule: rgba(31, 29, 26, .2); --lit: #0F5F6B; --on-lit: #F6F4EF; color-scheme: light; }
/* JavaScript off: no theme script ran, so the device decides (light devices get the day theme) */
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --bg: #F6F4EF; --ink: #1F1D1A; --muted: #4F545D; --rule: rgba(31, 29, 26, .2); --lit: #0F5F6B; --on-lit: #F6F4EF; color-scheme: light; } }
.eb {
  --eb-bg: var(--bg); --eb-ink: var(--ink); --eb-muted: var(--muted); --eb-rule: var(--rule); --eb-lit: var(--lit); --eb-on-lit: var(--on-lit);
  position: sticky; top: 0; z-index: 40; background: var(--eb-bg); color: var(--eb-ink);
  border-bottom: 1px solid var(--eb-rule);
  font: 400 var(--t1)/1.2 var(--sans);
}
/* JavaScript off (js/theme.js swaps no-js for js before the first paint): the controls that need it hide.
   The modes re-light the Room and Walk the flat steps through it; without JS the home page is the list. */
.no-js .eb-modes, .no-js .eb-walk, .no-js .eb-theme { display: none !important; }
/* The bar's height, for pages that stick something below it or offset anchors (scroll-padding). */
:root { --eb-h: 92px; --dock-h: 0px; }
/* One type scale (craft review): every page's h1 is this one token, weight 500 */
:root { --h1: var(--t5); }
@media (min-width: 1024px) { :root { --h1: var(--t6); } }
@media (max-width: 1023.98px) { :root { --dock-h: 61px; } body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { :root { --eb-h: 65px; } }
/* (the scripts replace the --eb-h fallbacks with the bar's measured height) */
.eb *, .eb *::before, .eb *::after { box-sizing: border-box; }
.eb a { color: inherit; text-decoration: none; }
.eb a:focus-visible, .eb button:focus-visible { outline: 2px solid var(--eb-ink); outline-offset: 2px; }
.eb svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eb-in {
  display: grid; align-items: center; column-gap: 8px;
  grid-template-columns: 1fr auto auto auto; grid-template-areas: "mark walk theme lang" "modes modes modes modes";
  max-width: 1600px; margin: 0 auto; padding: 0 16px;
}
.eb-mark { grid-area: mark; display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.eb-mark span { color: var(--eb-muted); font-weight: 400; }
.eb-theme {
  grid-area: theme; display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--eb-rule); border-radius: 4px; background: transparent; color: var(--eb-ink);
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
}
.eb-tw { font-size: 14px; }
/* the button shows what it switches to: a sun and "Day" at night, a moon and "Night" by day */
.eb-theme .eb-moon { display: none; }
:root[data-theme="light"] .eb-theme .eb-moon { display: block; }
:root[data-theme="light"] .eb-theme .eb-sun { display: none; }
/* EN is a marker, not a control, until a Latvian edition exists: plain text, no box */
.eb-lang { grid-area: lang; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px 0 6px; color: var(--eb-muted); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1; cursor: default; }
.eb-maplink { display:none; color:var(--eb-ink); font:500 14px/1.1 var(--sans); text-decoration:underline; text-underline-offset:.2em; }
/* the language marker says Latvian is coming (desktop; phones keep it in the title and for screen readers) */
.eb-ln { display: none; margin-left: 6px; font-size: 14px; color: var(--eb-muted); white-space: nowrap; }
@media (min-width: 1440px) { .eb-ln { display: inline; } }
.eb-modes { grid-area: modes; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; margin: 0 -16px; padding: 0 12px; border-top: 1px solid var(--eb-rule); }
.eb-modes a {
  display: grid; place-content: center; justify-items: center; row-gap: 2px; min-height: 46px; min-width: 44px; padding: 2px 6px 0; white-space: nowrap; border-bottom: 3px solid transparent;
  color: var(--eb-muted);
}
.eb-ml { font: 600 var(--t1)/1 var(--mono); letter-spacing: .04em; color: var(--eb-ink); opacity: .78; }
/* the one-word subtitle says what a mode is (pensioner review): Sirens, Blackout, Evacuate, Facts */
.eb-sub { font: 400 var(--t1)/1.05 var(--sans); color: var(--eb-muted); }
.eb-modes a[aria-current="true"] { border-bottom-color: var(--eb-ink); }
.eb-modes a[aria-current="true"] .eb-ml { opacity: 1; font-weight: 700; }
.eb-modes a[aria-current="true"] .eb-sub { color: var(--eb-ink); }
.eb-modes a:not([aria-current="true"]):hover { color: var(--eb-ink); }

/* the actions: a bottom dock on phones, inline on desktop */
.eb-act {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 6px;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); background: var(--eb-bg); border-top: 1px solid var(--eb-rule);
}
.eb-sirens, .eb-112, .eb-walk { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 8px; border-radius: 4px; text-align: center; }
.eb-sirens { min-width: 76px; padding: 0 10px; }
@media (max-width: 1023.98px) { .eb-sirens { max-width: 88px; } }
.eb-sirens svg { display: none; }
.eb-sirens { background: var(--eb-lit); color: var(--eb-on-lit) !important; font-weight: 700; font-size: var(--t1); letter-spacing: .02em; line-height: 1.05; }
/* 112 + the §11 note, side by side: "Gas, fire, unexploded shells, injury: yes. Questions: no." (never a half rule) */
.eb-112 { border: 1px solid var(--eb-ink); gap: 10px; padding: 2px 10px; justify-content: flex-start; text-align: left; }
.eb-112n { font-weight: 700; font-size: 17px; line-height: 1; white-space: nowrap; }
.eb-112t { font-size: 14px; line-height: 1.1; color: var(--eb-ink); white-space: normal; }
.eb-112t > span, .sf-note > span { display: block; text-wrap: balance; }
/* the whole rule and the note: on hover or keyboard focus (desktop) and on a long press (phones) */
.eb-112, [data-112] { position: relative; }
.eb-112p {
  position: absolute; z-index: 45; right: 0; bottom: calc(100% + 8px); width: min(300px, 80vw); padding: 10px 12px; text-align: left;
  border: 1px solid var(--eb-ink, currentColor); border-radius: 4px; background: var(--eb-bg, var(--bg, #0B1220)); color: var(--eb-ink, inherit); font-size: 14px; font-weight: 400; line-height: 1.35; white-space: normal; visibility: hidden;
}
.eb-112p b { display: block; margin-bottom: 4px; font-size: 14px; }
[data-112].show-note .eb-112p { visibility: visible; }
.eb-112.show-note .eb-112p { visibility: visible; }
.eb-call { display: none; }
.eb-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Where to go (/map/) on phones: the dock's third cell, a pin pictogram over its label, so the map is one tap
   away on every page at every width (the desktop row has .eb-maplink instead). The 112 note keeps its three
   lines and the dock its height (chrome budget), so the label folds with the width: "Where / to go" from
   360 px, one line from 480 px, "Map" below 360 px (where "Where to go" stays in the name, visually hidden). */
.eb-map {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 48px;
  padding: 0 6px; border: 1px solid var(--eb-rule); border-radius: 4px; color: var(--eb-ink); font: 500 14px/1 var(--sans); text-align: center;
}
.eb-mapl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eb-mapl > span { display: block; white-space: nowrap; }
@media (min-width: 360px) { .eb-mapl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; } .eb-maps { display: none; } }
@media (min-width: 480px) { .eb-map { flex-direction: row; gap: 6px; padding: 0 12px; } .eb-mapl > span { display: inline; } }
/* Walk the flat: on phones it sits in the bar's first row (the dock keeps SIRENS NOW and 112 only) */
.eb-walk { grid-area: walk; border: 1px solid var(--eb-rule); font-weight: 500; font-size: 14px; gap: 6px; line-height: 1.05; min-height: 40px; margin: 2px 0; padding: 0 10px; white-space: nowrap; }
.eb-walk .eb-ws { display: none; }
.eb-act a[aria-current="page"] { outline: 2px solid var(--eb-ink); outline-offset: 2px; }
@media (min-width: 480px) and (max-width: 1023.98px) {
  .eb-sirens svg { display: block; }
}
/* narrow phones: the theme button keeps its word (Day/Night; pensioner review, pass 7), Walk keeps its words */
@media (max-width: 399.98px) { .eb-theme { padding: 0 8px; gap: 4px; } .eb-walk svg { display: none; } .eb-walk { padding: 0 10px; } }
@media (max-width: 359.98px) { .eb-theme svg { display: none; } }

@media (max-width: 359.98px) {
  /* the 112 note ("…unexploded shells…", pass 7) stays three lines, so the dock keeps the chrome budget */
  .eb-sirens { min-width: 70px; max-width: 74px; padding: 0 6px; }
  .eb-112 { gap: 7px; padding: 2px 7px; }
  .eb-112t > span { text-wrap: wrap; }
  .eb-in { padding: 0 10px; }
  .eb-modes { margin: 0 -10px; padding: 0 4px; }
  .eb-modes a { padding: 3px 3px 2px; }
  .eb-ml { letter-spacing: 0; }
  .eb-theme { padding: 0 8px; }
  .eb-act { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .eb-walk { padding: 0 8px; }
  .eb-walk svg { display: none; }
  .eb-112t { line-height: 1.05; }
  .eb-mark { font-size: var(--t2); }
}
/* the room the dock's third cell takes: SIRENS NOW at its two-line width, 112 and the dock a little tighter */
@media (max-width: 479.98px) { .eb-sirens { max-width: 76px; padding: 0 8px; } .eb-112 { gap: 7px; padding: 2px 6px; } }
@media (max-width: 374.98px) {
  .eb-act { gap: 3px; padding-left: 3px; padding-right: 3px; }
  .eb-sirens { min-width: 0; max-width: 64px; padding: 0 2px; }
  .eb-112 { gap: 5px; padding: 2px; }
}
@media (max-width: 359.98px) { .eb-map { width: 44px; padding: 0; } }
@media (min-width: 1024px) {
  .eb-in {
    grid-template-columns: auto 1fr auto auto auto auto auto; grid-template-areas: "mark modes map act walk theme lang";
    column-gap: 12px; min-height: 64px; padding: 0 24px;
  }
  .eb-maplink { display:inline-flex; grid-area:map; align-items:center; min-height:44px; white-space:nowrap; }
  .eb-map { display: none; }
  .eb-modes { display: flex; justify-content: center; margin: 0; padding: 0; border: 0; gap: 4px; }
  .eb-modes a { padding: 0 12px; min-height: 63px; }
  .eb-sub { display: none; }
  .eb-112p { bottom: auto; top: calc(100% + 8px); }
  .eb-112:hover .eb-112p, .eb-112:focus-visible .eb-112p { visibility: visible; }
  .eb-act { grid-area: act; position: static; display: flex; gap: 10px; padding: 0; border: 0; background: none; }
  .eb-sirens, .eb-112, .eb-walk { min-height: 44px; padding: 0 14px; white-space: nowrap; }
  .eb-112 { flex-direction: row; gap: 8px; border-color: var(--eb-rule); position: relative; }
  .eb-call { display: inline; }
  .eb-112 { min-height: 52px; padding: 2px 12px; }
  .eb-112t { font-size: 14px; line-height: 1.1; color: var(--eb-ink); max-width: 20ch; text-wrap: balance; }
  .eb-walk { gap: 8px; border-color: var(--eb-rule); margin: 0; }
  .eb-walk .eb-ws { display: none; } .eb-walk .eb-wl { display: inline; }
}
/* 1024–1279: the 112 note shows on hover, focus or long-press (spec §10), so the row stays one line */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .eb-in { column-gap: 8px; padding: 0 16px; }
  .eb-modes a { padding: 0 8px; }
  .eb-theme .eb-tw { display: none; } .eb-theme { width: 44px; padding: 0; justify-content: center; }
}
/* 1024–1439: "Where to go" joined the bar, so Walk the flat folds to its icon (its aria-label keeps the name)
   and the bar stays one row with no horizontal overflow on every page, /map/ included (UX-14) */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .eb-in { column-gap: 8px; padding: 0 16px; }
  .eb-modes a { padding: 0 8px; }
  .eb-walk { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .eb-walk .eb-ws, .eb-walk .eb-wl { display: none; }
}
/* wide: the note's first sentence on one line, "Questions: no." under it */
@media (min-width: 1280px) { .eb-112t { max-width: none; } .eb-112t > span:first-child { white-space: nowrap; } }
/* phones: while a sheet is open the dock steps aside; the sheet's own foot carries SIRENS NOW and 112 */
@media (max-width: 1023.98px) { html.sheet-open .eb-act { display: none; } html.sheet-open body { padding-bottom: 0; } }
@media (max-width: 1023.98px) { .eb-walk { min-height: 44px; margin: 0; } }
/* phones, chrome budget (stress gate, ≤ 25 % of the screen in every state): while a sheet is open the bar
   folds to its mode row (the sheet carries its own head, SIRENS NOW and 112); while the First Hour plays,
   the mode row folds instead and its instruments sit under the wordmark row */
@media (max-width: 1023.98px) {
  html.sheet-open .eb-mark, html.sheet-open .eb-walk, html.sheet-open .eb-theme, html.sheet-open .eb-lang { display: none; }
  body.is-playing .eb-modes { display: none; }
}
/* the mode row stays at every scroll position, a sheet or a walk open too (§10): a mode tap re-lights the
   open panel in place. Keyboard focus never lands under the bar or the dock (scroll-padding, WCAG 2.4.11). */
@media (max-width: 1023.98px) { html { scroll-padding-bottom: calc(var(--dock-h) + 16px); } }
/* paper is white with black ink whatever the screen theme (craft gate): the canvas, the page margins
   (color-scheme decides their colour in Chrome) and every token */
@media print {
  :root, :root[data-theme] { color-scheme: light !important; --bg: #fff; --ink: #000; --muted: #333; --rule: #999; --lit: #000; --on-lit: #fff; }
  html, body { background: #fff !important; color: #000 !important; }
  /* the wordmark, the title and the list share one left edge on paper */
  .eb-in { padding-left: 0 !important; padding-right: 0 !important; max-width: none; }
}
@media print { .eb { position: static; background: #fff; color: #000; border-color: #999; } .eb-modes, .eb-act, .eb-walk, .eb-theme, .eb-lang { display: none !important; } .eb-mark span { color: #333; } body { padding-bottom: 0 !important; } }

/* esigatavs.lv — the Room (home page; nav.css, with the shared tokens, is prepended by build.mjs). Night-first; a light theme for daytime and print.
   No gradients, glass, glow or shadows. Amber is only for lit hotspots and the one primary action. */
:root {
  --line: rgba(244, 241, 234, .58);
  --glow: rgba(252, 226, 178, .30);
  --cone: rgba(252, 226, 178, .07);
  --wash-dim: rgba(125, 135, 153, .07);
  --nav-h: 110px;
  --chrome: 190px;
  color-scheme: dark;
}
/* the light theme is the reader's choice (js/theme.js); night is the default */
:root[data-theme="light"] {
  --line: rgba(31, 29, 26, .62);
  --glow: rgba(31, 29, 26, .10);
  --cone: rgba(31, 29, 26, .035);
  --wash-dim: rgba(31, 29, 26, .04);
  color-scheme: light;
}
/* JavaScript off: no theme script ran, so a light device gets the day tokens */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --line: rgba(31, 29, 26, .62); --glow: rgba(31, 29, 26, .10); --cone: rgba(31, 29, 26, .035); --wash-dim: rgba(31, 29, 26, .04); color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t3)/1.5 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg { display: block; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .needs-js, .no-js .eb-modes, .no-js .eb-walk { display: none !important; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--bg); padding: 10px 14px; border: 1px solid var(--ink); }
.skip:focus { top: 8px; }

/* ---- the drawing ----------------------------------------------------------------------- */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.defs * { vector-effect: non-scaling-stroke; }
.art { width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: hidden; }
.stage .art { font-size: 17px; }
/* 1024 px and wider: the drawing renders at about 0.61 px per unit, so its words are set at 23 units (14 px+) */
@media (min-width: 1024px) { .stage .art { font-size: 23px; } }
.slice .art { --lbl: 0; }
/* phone slices: room.js sets --k (screen px per drawing unit), so drawn quantity labels render at 12 px+ */
.slice:not(.overview) .art { font-size: calc(15px / var(--k, 1)); }
.slice.overview .art { font-size: 17px; }
/* below 600 px the construction annotations (level marks, axis bubbles, title block) are noise */
.anno, .lbl.lv, .lbl.ax, .lbl.tb { opacity: var(--anno, 1); }
.labels { opacity: var(--labels, 1); }
@media (max-width: 599.98px) { .slice .art { --anno: 0; } .slice.overview .art { --labels: 0; } }
.ground { stroke-width: 1.5; }
.dash { stroke-dasharray: 4 6; }
.thin { stroke-opacity: .7; }
.hatch { stroke-opacity: .35; }
.spill { stroke-opacity: 0; }
.lbl { fill: var(--muted); stroke: var(--bg); stroke-width: 5px; paint-order: stroke; stroke-linejoin: round; font-family: var(--mono); letter-spacing: .04em; }
.lbl.room { font-family: var(--sans); letter-spacing: 0; opacity: var(--lbl, 1); }
.lbl.small, .lbl.lv, .lbl.ax, .lbl.tb { font-size: .7em; }
/* the construction annotations stay their old size when the room names grow to 14 px (decorative) */
@media (min-width: 1024px) { .lbl.lv, .lbl.ax, .lbl.tb { font-size: .52em; } }
/* desktop: the title block, level marks and grid bubbles are drawing texture, not reading (the drawing is
   aria-hidden): dimmed so the eye does not try to read 7 px text (craft review) */
@media (min-width: 1024px) { .lbl.lv, .lbl.ax, .lbl.tb { --anno: .42; } }
.lbl.tb { font-family: var(--sans); letter-spacing: 0; }
.anno { stroke-width: 1; stroke-opacity: .55; }

.ambient .amb { opacity: 0; transition: opacity .7s ease; }
.glow { fill: var(--glow); stroke: none; }
.cone { fill: var(--cone); stroke: none; }
/* State classes sit on the drawing's own elements (not on <html>): <use> copies restyle only
   when the referenced element itself changes. */
.amb.on, .no-js .amb[data-m~="now"] { opacity: 1; }
.amb.out { opacity: 0; transition-duration: .14s; }

.obj { color: var(--line); stroke: currentColor; opacity: .3; transition: opacity .5s ease var(--d, 0s), color .5s ease var(--d, 0s); }
.obj .wash { fill: var(--wash-dim); stroke: none; }
.obj.lit { opacity: 1; color: var(--lit); stroke-width: 1.75; }
.obj.lit .wash { fill: currentColor; fill-opacity: .14; }
.obj.lit[data-o="city"] .wash { fill-opacity: .05; }
/* OCCUPIED: the city is outlined, not lit; almost no window shows a light */
.obj.lit.occ .wash { fill-opacity: 0; }
.no-js .obj { opacity: 1; }
.obj.out { opacity: .3; color: var(--line); transition-duration: .14s; transition-delay: 0s; }
.obj.out .wash { fill: var(--wash-dim); fill-opacity: 1; }

.q { fill: var(--ink); stroke: var(--bg); stroke-width: 5px; paint-order: stroke; font-family: var(--mono); font-size: 1em; font-weight: 600; opacity: 0; transition: opacity .4s ease; }
/* the walk zoom (desktop, 1.6×): the drawing's words are counter-scaled, so "72 h" and "9 L each" keep their
   reading size instead of growing with the drawing (craft review) */
@media (min-width: 1024px) { .stage.zoomed .art { font-size: calc(23px / 1.6); } }
/* phone slices: drawn quantities at 15 px, ink (pensioner review: at least 14 px) */
.slice:not(.overview) .q { font-size: 1em; }
.q.on { opacity: 1; transition-delay: var(--d, 0s); }
.q.out { opacity: 0; transition: opacity .1s; }
.q.qg { fill: none; stroke: var(--lit); stroke-width: 1.5; }

/* ---- hotspots -------------------------------------------------------------------------- */
.hs-layer { position: absolute; inset: 0; }
.hs {
  position: absolute; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--hs-s, 1)); display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.hs-ring { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--bg); position: relative; transition: border-color .3s, background-color .3s; }
.hs-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--muted); opacity: .6; }
.hs.lit .hs-ring { border: 2px solid var(--lit); width: 24px; height: 24px; }
.hs.lit .hs-ring::after { background: var(--lit); opacity: 1; inset: 6px; }
.hs.on .hs-ring { background: var(--lit); border-color: var(--lit); }
/* a slow pulse on the lit rings says "tap me" to a sound-off thumb; four beats, then still; none under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hs.lit .hs-ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--lit); opacity: 0; animation: hs-pulse 2.4s ease-out .9s 4; pointer-events: none; }
  @keyframes hs-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
}
.hs.on .hs-ring::after { background: var(--on-lit); }
.hs.on .hs-ring::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--ink); opacity: 1; animation: none; transform: none; }
/* in the walk zoom the open object keeps its name in view (the rail keynotes step aside while zoomed) */
.stage.zoomed .hs.on .hs-label { display: block; opacity: 1; border-color: var(--ink); z-index: 2; }
.stage.zoomed .hs.on { z-index: 3; }
.hs:focus-visible { outline: none; }
.hs:focus-visible .hs-ring { outline: 2px solid var(--ink); outline-offset: 4px; }
.hs-label {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: -2px; white-space: nowrap;
  padding: 5px 8px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); color: var(--ink);
  font: 500 var(--t2)/1.1 var(--sans); pointer-events: none; opacity: 0; transition: opacity .15s;
}
.hs.lit .hs-label { border-color: var(--lit); }
.hs:hover .hs-label, .hs:focus-visible .hs-label, .hs.on .hs-label { opacity: 1; }
.hs-label.off { visibility: hidden; }
/* desktop: the drawing offers only this mode's objects; the others are drawn, not clickable (craft review) */
.stage .hs:not(.lit) { pointer-events: none; }


/* ---- pictograms (the §10 sprite: plain class selectors so <use> copies pick them up) ---- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.picto { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--ink); overflow: visible; }
.pg * { vector-effect: non-scaling-stroke; }
.pa { stroke: var(--lit); }
.paf { fill: var(--lit); fill-opacity: .18; stroke: none; }
.pd { stroke-dasharray: 4 4; }
.pt { stroke-width: 1.25; }
.pn { fill: var(--lit); stroke: none; font: 600 12px/1 var(--sans); }
.pn.pl { font-size: 18px; }
.pn.pw { font-size: 22px; }
.glyphs { display: block; height: 24px; width: auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.glyphs .pa { stroke: var(--lit); }

/* ---- buttons ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink);
  font: 500 var(--t2)/1.1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn.ghost { border-color: var(--rule); }
.btn:hover { text-decoration: none; }
.btn[hidden] { display: none; }
.btn.small { min-height: 44px; padding: 0 12px; }

/* ---- hero (home only; the navbar above is sticky) ----------------------------------------- */
.hero { padding: 8px 16px 4px; scroll-snap-align: start; }
.hero h1 { margin: 0; font-size: var(--h1); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.siren-line { margin: 4px 0 0; font-size: var(--t3); line-height: 1.35; }
.siren-line strong { font-size: var(--t5); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
/* phones: the rule is the hero's big line, 36 px, on a line of its own (§8: a 28–40 px rule line) */
@media (max-width: 1023.98px) { .siren-line strong { display: block; font-size: var(--t6); margin: 2px 0; } }
.sl-r { display: block; }
.meta { margin: 4px 0 0; color: var(--muted); font-size: var(--t1); }
.mode-line { margin: 4px 0 0; color: var(--muted); font-size: var(--t2); line-height: 1.35; }
@media (max-width: 1023.98px) { .mode-line { display: none; } }
/* "Tap a circle to see what to do" and the quick entries (Water, Pet) for this mode */
.ov-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; font-size: var(--t2); color: var(--ink); }
.quick { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.q-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px 0 4px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; color: var(--ink); font: 500 var(--t2)/1.1 var(--sans); cursor: pointer; }
.q-btn[hidden] { display: none; }
.q-pic { width: 40px; height: 40px; }
.m-phone { display: none; }

/* ---- leaders + keynotes (desktop: persistent labels for lit objects in the flat) ----------- */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders path { fill: none; stroke: var(--lit); stroke-width: 1; }
.keynotes { position: absolute; inset: 0; pointer-events: none; }
.kn {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 4px 8px; pointer-events: auto; cursor: pointer;
  border: 1px solid var(--lit); border-radius: 3px; background: var(--bg); color: var(--ink); font: 500 var(--t1)/1.2 var(--sans);
}
.zoomed .leaders, .zoomed .keynotes { display: none; }
.hs.railed .hs-label { display: none; }
.hs-label.keep { opacity: 1; }

/* ---- building: desktop stage ------------------------------------------------------------ */
.building { position: relative; }
.stage { position: relative; overflow: hidden; container-type: size; height: max(500px, calc(100svh - var(--chrome))); display: grid; place-items: center; }
.stage-inner { position: relative; width: min(100cqw, calc(100cqh * 1600 / 820)); aspect-ratio: 1600 / 820; transform-origin: 0 0; transition: transform .38s cubic-bezier(.3, .7, .2, 1); }
.illus-tag { position: absolute; left: 16px; bottom: 8px; margin: 0; padding: 4px 6px; background: var(--bg); font: var(--t1)/1 var(--sans); color: var(--muted); }
.phone-building { display: none; }

/* ---- panel (desktop column / phone bottom sheet) ---------------------------------------- */
.panel {
  position: absolute; z-index: 30; top: 0; right: 0; bottom: 0; width: min(480px, 42%);
  display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--rule);
  transform: translateX(102%); visibility: hidden; transition: transform .34s cubic-bezier(.3, .7, .2, 1), visibility 0s linear .34s;
}
.panel.open { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.3, .7, .2, 1), visibility 0s; }
.panel:focus { outline: none; }
.sheet-handle { display: none; }
.panel-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 24px 28px; scroll-padding-top: 64px; }
.p-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-height: 56px; padding: 6px 104px 6px 0; margin: 0 -2px; background: var(--bg); border-bottom: 1px solid var(--rule); }
.p-obj { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t2); color: var(--muted); }
.p-share { position: absolute; top: 6px; right: 52px; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.p-share svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.p-toast { position: absolute; top: 54px; right: 0; margin: 0; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 4px; background: var(--bg); font-size: var(--t2); }
.p-close { position: absolute; top: 6px; right: 0; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.p-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.chip { display: inline-block; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 3px; font: 500 var(--t1)/1.25 var(--mono); letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.chip.mode { border-color: var(--ink); color: var(--ink); font-family: var(--sans); letter-spacing: 0; }
.chip.mode.dim { border-color: var(--rule); color: var(--muted); }
.chip.tag { font-family: var(--sans); letter-spacing: 0; }
.chip.tag[data-tag="OFFICIAL-LV"] { color: var(--ink); border-color: var(--ink); }
.p-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: var(--t2); color: var(--muted); }
.p-lead { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; margin: 10px 0 12px; }
.p-lead .picto { width: 112px; height: 112px; }
.p-rule { margin: 0; font-size: var(--t5); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.p-tagline { margin: 8px 0 0; }
.p-src { display: inline-block; margin-left: 8px; font: var(--t1)/1.3 var(--mono); color: var(--muted); }
.pin .p-src { display: block; margin: 4px 0 0; }
.p-rule:focus { outline: none; }
.p-body { margin: 0 0 14px; font-size: var(--t3); line-height: 1.5; max-width: 60ch; }
.p-sec { border-top: 1px solid var(--rule); padding: 12px 0; }
.p-sec h3, .p-sec summary { font-size: var(--t2); font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.p-num > p, .p-num .legend { margin: 0 0 8px; font-size: var(--t2); color: var(--muted); }
.legend { display: flex; align-items: center; gap: 8px; }
.irows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.irow { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.irow .picto { width: 64px; height: 64px; }
.irow b { display: block; font: 600 var(--t3)/1.2 var(--mono); color: var(--ink); }
.irow span { display: block; font-size: var(--t2); line-height: 1.35; }
.irow a { display: contents; }
.pin { padding: 10px 0; border-top: 1px solid var(--rule); }
.pin .irow { grid-template-columns: 64px 1fr; }
.pin .picto { width: 64px; height: 64px; }
.pin b { font-family: var(--sans); color: var(--ink); font-size: var(--t3); }
.pin a.irow { display: grid; text-decoration: none; min-height: 44px; }
.pin a.irow b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wtab { border-collapse: collapse; width: 100%; }
.wtab th, .wtab td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.wtab thead th { font: 500 var(--t1)/1.2 var(--sans); color: var(--muted); }
.wtab tbody th { font-weight: 400; }
.cell { display: flex; align-items: center; gap: 8px; }
.wtab .num { text-align: right; padding-right: 0; }
.wtab td.who { font: var(--t1)/1 var(--mono); color: var(--muted); }
.water tbody th { border-bottom: 1px solid var(--rule); }
.water tbody tr:first-child td { border-bottom-style: dashed; }
.cell.stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.days { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.days .day { height: 24px; }
/* the ×N people badge: the drawn day clusters are ONE person's; the badge multiplies them by the household */
.xn { display: inline-block; min-width: 2.6em; padding: 2px 6px; border: 1.5px solid var(--ink); border-radius: 4px; font: 600 var(--t2)/1.2 var(--mono); color: var(--ink); text-align: center; white-space: nowrap; }
.wtab td.mul { text-align: center; padding-right: 8px; }
.water .each { display: none; }
.wtab .who { white-space: nowrap; }
/* phones (and any panel under 420 px): the tables reflow into one block per household. Nothing scrolls
   sideways and nothing drawn is cut: the day clusters wrap, the total keeps its own column. */
.p-num { container-type: inline-size; }
@container (max-width: 420px) {
  .wtab, .wtab tbody, .wtab tr, .wtab th, .wtab td { display: block; }
  .wtab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wtab tbody, .bagtab tbody tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  .wtab th, .wtab td { padding: 0; border: 0; }
  .water tbody th { border: 0; }
  .water tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; column-gap: 8px; align-items: center; padding: 6px 0; }
  .water .each { display: block; margin-bottom: 3px; font: var(--t1)/1.2 var(--sans); color: var(--muted); }
  .wtab td.mul { padding-right: 0; }
  .water tr > th { grid-column: 1 / -1; margin-bottom: 4px; }
  .water tr > th .cell.stack { flex-direction: row; align-items: center; gap: 8px; }
  .water tbody tr:first-child td { border: 0; }
  .water tr + tr { border-top: 1px dashed var(--rule); }
  .bagtab tbody { border: 0; padding: 0; }
  .bagtab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 10px; }
  .bagtab tr > th { grid-column: 1 / -1; }
  .bagtab td { display: contents; }
  .bagtab td::before { content: attr(data-label); font: var(--t2)/1.3 var(--sans); color: var(--muted); align-self: center; justify-self: start; text-align: left; }
  .bagtab td > * { justify-self: end; align-self: center; }
}
.n, .cell .n { font: 600 var(--t2)/1 var(--mono); color: var(--ink); white-space: nowrap; }
.cell .who { font: var(--t1)/1 var(--mono); color: var(--muted); }
.p-ua p { margin: 0 0 10px; font-size: var(--t3); }
figure { margin: 0; }
.ph img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ph figcaption { margin-top: 8px; font-size: var(--t2); color: var(--muted); line-height: 1.4; }
.ph-place { display: block; color: var(--ink); }
.ph-credit, .ph-credit a { font-family: var(--mono); font-size: var(--t1); }
details.p-sec > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; margin: -6px 0; }
details.p-sec > summary::-webkit-details-marker { display: none; }
details.p-sec > summary::after { content: "+"; font: 400 var(--t4)/1 var(--mono); color: var(--muted); }
details.p-sec[open] > summary::after { content: "−"; }
details.p-sec[open] > summary { margin-bottom: 8px; }
.p-why p { margin: 0 0 10px; font-size: var(--t3); }
.srcs { margin: 0; padding-left: 22px; font-size: var(--t2); }
.srcs li { margin: 4px 0; }
.srcs li { margin: 0; }
.srcs a { display: inline-flex; align-items: center; min-height: 44px; }
.more-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--rule); }
.more-item:first-of-type { border-top: 0; }
.more-item .picto { width: 56px; height: 56px; }
.more-item h4 { margin: 6px 0 4px; font-size: var(--t3); font-weight: 600; line-height: 1.3; }
.more-item p { margin: 0 0 6px; font-size: var(--t2); }
.more-item .ua { color: var(--muted); }
.more-item details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: var(--t2); }
.p-film video { display: block; width: 100%; height: auto; background: #000; border-radius: 3px; }
.f-play { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--rule); border-radius: 3px; background: none; color: var(--ink); cursor: pointer; overflow: hidden; }
.f-play img { display: block; width: 100%; height: auto; }
.f-badge { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -60%); }
.f-badge circle { fill: var(--bg); fill-opacity: .82; stroke: var(--ink); stroke-width: 2; }
.f-badge path { fill: var(--ink); }
.f-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: var(--bg); border-top: 1px solid var(--rule); font: 500 var(--t2)/1.2 var(--sans); text-align: left; }
.f-play:hover .f-badge circle, .f-play:focus-visible .f-badge circle { fill-opacity: 1; }
.f-fold, .ph-fold { flex-basis: 100%; margin-top: 4px; }
.f-fold > summary, .ph-fold > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--muted); font-size: var(--t2); }
.p-film figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: var(--t2); color: var(--muted); }
.p-links { display: flex; flex-direction: column; gap: 4px; }
.p-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.p-links span { font-size: var(--t2); color: var(--muted); margin-top: -6px; }
.walkbar { order: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--bg); }
.walkbar[hidden] { display: none; }
.sheet-foot { order: 3; }
.walkbar .wb-close { display: none; position: static; }
.walk-pos .wp-o { display: none; }
.walk-pos { margin: 0; text-align: center; font: 600 var(--t3)/1.2 var(--mono); color: var(--ink); }
.walkbar .btn { font-size: var(--t3); }
.walkbar .btn[disabled] { opacity: 1; color: var(--muted); border-color: var(--rule); cursor: default; }

/* ---- list fallback + sources ----------------------------------------------------------- */
.all { margin: 0 24px; border-top: 1px solid var(--rule); }
.all > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 0; cursor: pointer; min-height: 44px; }
.all-title { margin: 0; font-size: var(--t4); font-weight: 500; }
.all-count { font-size: var(--t2); color: var(--muted); }
.all-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.all-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; font-size: var(--t2); }
.l-obj { padding: 12px 0 22px; border-top: 1px solid var(--rule); max-width: 760px; content-visibility: auto; contain-intrinsic-size: auto 1400px; }
/* with JS the list starts closed (room.js closes it and adds .ready); hide its body until then, so
   closing it does not move the page (CLS). Without JS it stays open. */
html.js .all[open]:not(.ready) > :not(summary) { display: none; }
.l-obj h3 { font-size: var(--t4); font-weight: 500; margin: 6px 0 6px; }
.l-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; }
.l-pic { width: 64px; height: 64px; }
.l-card h4 { margin: 6px 0 4px; font-size: var(--t3); font-weight: 600; line-height: 1.3; }
.l-card p { margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.l-ua span { font-weight: 600; }
.l-card details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: var(--t2); }
.sources { margin: 0 24px; padding: 28px 0; border-top: 1px solid var(--rule); max-width: 1100px; }
.sources h2 { font-size: var(--t4); font-weight: 500; margin: 0 0 8px; }
.sources > p { max-width: 64ch; color: var(--muted); }
.ref { max-width: 560px; margin: 18px 0 8px; }
.ref img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ref figcaption { margin-top: 8px; font-size: var(--t2); color: var(--muted); }
.src-h { font-size: var(--t3); margin: 0; }
.src-h4 { font-size: var(--t2); font-weight: 600; margin: 18px 0 6px; }
.src-fold { border-top: 1px solid var(--rule); }
.src-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; }
.src-fold > summary::-webkit-details-marker { display: none; }
.src-fold > summary::after { content: "+"; font: 400 var(--t4)/1 var(--mono); color: var(--muted); }
.src-fold[open] > summary::after { content: "−"; }
.src-fold[open] { padding-bottom: 14px; }
.ai-row p { color: var(--ink) !important; }
.src-list li { content-visibility: auto; contain-intrinsic-size: auto 90px; }
/* What next: the page's own end before the list and the sources */
.next-acts { margin: 0 24px; padding: 18px 0 22px; border-top: 1px solid var(--rule); }
.next-acts h2 { margin: 0 0 8px; font-size: var(--t4); font-weight: 500; }
.next-acts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.next-acts a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; font-weight: 500; }
/* the film offline: its poster and captions are saved; the player is not shown */
.p-film.offline img { display: block; width: 100%; height: auto; border-radius: 3px; }
.p-film .f-off { flex-basis: 100%; margin: 6px 0 0; padding: 8px 10px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); }
.p-film .f-ai { flex-basis: 100%; color: var(--ink); }
/* pinned lines: the site's own conclusion is labelled, and its sources are links */
.pin-label { display: block; margin: 4px 0 2px; font-size: var(--t1); color: var(--muted); }
.pin .pin-srcs { display: flex; flex-wrap: wrap; gap: 0 14px; }
.pin-srcs a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t1); color: var(--muted); }
/* a panel led by two pictograms (the shelter: ≤300 m, then two walls) */
.p-lead.two { grid-template-columns: 1fr; }
.p-lead .pics { display: flex; gap: 12px; }
/* the mode note sits under the rule, in plain words, with a one-tap switch */
.p-note { margin: 0 0 12px; }
.p-also { margin: -2px 0 12px; gap: 8px; }
.p-switched { margin: 8px 0 0; font-size: var(--t2); color: var(--muted); }
.sheet-backdrop { display: none; }
.src-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 28px; }
.src-list li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: var(--t2); overflow-wrap: anywhere; }
.src-list h3 { font-size: var(--t2); margin: 0 0 2px; font-weight: 600; }
.src-list p { margin: 0 0 4px; color: var(--muted); }
.verified { font: var(--t1)/1.3 var(--mono); color: var(--muted); }
.src-list .verified a, .src-list p a, .src-list > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.foot { margin: 0 24px; padding: 22px 0 40px; border-top: 1px solid var(--rule); font-size: var(--t2); color: var(--muted); }
.foot a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
/* the films' captions: the site's own type, on a dark plate, readable with the sound off */
video::cue { font: 500 17px/1.35 var(--sans); color: #F4F1EA; background: rgba(11, 18, 32, .84); }
.foot p { margin: 0 0 6px; max-width: 90ch; }
.change-list { list-style: none; margin: 0 0 12px; padding: 0; max-width: 90ch; }
.change-list li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: var(--t2); }
.sources > p, .sources h3 + p { max-width: 64ch; color: var(--muted); }
.offline-note { scroll-snap-align: start; margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--lit); background: var(--bg); color: var(--ink); font-size: var(--t2); text-align: center; }
.f-credits { flex-basis: 100%; margin: 4px 0 0; padding: 0; list-style: none; font: var(--t1)/1.4 var(--sans); }
.f-credits li { padding: 4px 0; border-top: 1px dashed var(--rule); }
.f-subj { color: var(--ink); }
.f-place { flex-basis: 100%; margin: 2px 0 0; color: var(--ink); font-size: var(--t2); line-height: 1.4; }
.f-credits a { color: var(--muted); }
.p-end { padding: 14px 0 8px; }
.p-end .p-rule { margin-bottom: 8px; }
.end-acts { display: grid; gap: 10px; max-width: 420px; }
.btn.next-walk { border-color: var(--ink); font-weight: 600; }
.ft-mark { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 4px; font: 600 17px/1 var(--sans); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.ft-mark span { color: var(--muted); font-weight: 400; }
.print-legend, .hs-n { display: none; }
/* the sheet foot: Walk controls (desktop); on phones also SIRENS NOW and 112, which stay in view */
.sheet-foot { flex: none; }
.sf-sirens, .sf-112 { display: none; }
.p-film figcaption { flex-wrap: wrap; }
.f-title { color: var(--ink); }

/* ---- desktop ------------------------------------------------------------------------------ */
@media (min-width: 1024px) {
  :root { --nav-h: 65px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 42%); grid-template-areas: "h1 row" "siren row" "meta row"; column-gap: 32px; padding: 14px 24px 10px; }
  .hero-side { grid-area: row; align-self: end; text-align: right; }
  .hero .ov-hint { justify-content: flex-end; }
  .next-acts { margin: 0 24px; }
  .sl-r { display: inline; }
  .hero h1 { grid-area: h1; }
  .siren-line { grid-area: siren; }
  .meta { grid-area: meta; font-size: var(--t2); }
  .building { margin: 0 24px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
  html:not(.no-js) .all:not([open]) { margin-top: 18px; }
}

/* ---- phone + tablet: the vertical building, bottom sheet -------------------------------- */
@media (max-width: 1023.98px) {
  /* no scroll-snap on phones (stress gate): a slow one-handed drag stays exactly where the thumb leaves it */
  html.js { scroll-snap-type: none; scroll-padding-top: calc(var(--nav-h) + 8px); }
  html.js .stage { display: none; }
  .no-js .stage { height: auto; container-type: normal; }
  .no-js .stage-inner { width: 100%; }
  html.js .phone-building { display: block; padding-bottom: 16px; }
  /* the room strip is an index at the top of the building, in the flow: at rest only the bar and the dock
     stay on screen (chrome budget ≤ 25 %, stress gate), so the strip never becomes a third sticky band */
  .strip { position: relative; z-index: 1; background: var(--bg); border-bottom: 1px solid var(--rule); }
  html.sheet-open .strip { visibility: hidden; }
  .strip ul { display: flex; gap: 2px; margin: 0; padding: 0 44px 0 16px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px 44px; }
  /* the strip scrolls sideways: a chevron at the right edge says so */
  .strip::after { content: "›"; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; display: grid; place-items: center; background: var(--bg); border-left: 1px solid var(--rule); color: var(--ink); font: 400 var(--t4)/1 var(--sans); pointer-events: none; }
  .strip.at-end::after { content: "‹"; }
  .strip ul::-webkit-scrollbar { display: none; }
  .strip a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: var(--t2); color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
  .strip a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
  .slice { padding: 10px 16px 14px; border-bottom: 1px solid var(--rule); }
  .slice-cap { margin: 0 0 8px; font-size: var(--t3); font-weight: 500; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
  .slice-cap span { order: 2; font-size: var(--t2); font-weight: 400; color: var(--muted); }
  .slice-box { position: relative; margin: 0 auto; aspect-ratio: var(--r); width: min(100%, calc((100svh - var(--nav-h) - var(--dock-h) - 96px) * var(--r)), calc(360px * var(--r))); }
  .slice-dim { display: none; }
  .slice.unlit { padding-bottom: 10px; }
  .slice.unlit .slice-box { display: none; }
  .slice.unlit .slice-cap { margin-bottom: 4px; }
  .slice.unlit .slice-dim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: var(--t2); color: var(--muted); }
  .dim-btn { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; color: var(--ink); font: 500 var(--t2)/1.1 var(--sans); cursor: pointer; }
  .ov-layer .hs { display: none; }
  .ov-layer .hs.ov-on { display: grid; }
  /* the overview (§11): a simplified drawing of the building, at least 300 px tall on a 375 px phone,
     with callout rows above and below it and leader lines (room.js) */
  .slice.overview { display: flex; flex-direction: column; padding: 0 0 12px; }
  .overview .slice-cap { padding: 6px 16px 0; margin: 0; }
  .m-phone { display: block; margin: 2px 16px 0; color: var(--muted); font-size: var(--t1); }
  html.js .m-desk { display: none; }
  .ov-wrap { position: relative; }
  .ov-rail { position: relative; height: 38px; }
  .ov-rail[data-rail="bot"]:empty { height: 0; }
  /* the phone hero is compact, so the drawing keeps at least 300 px of the first screen */
  .hero { padding: 6px 16px 0; }
  .siren-line { margin-top: 2px; }
  .ov-hint { margin-top: 4px; gap: 2px 10px; }
  .ov-pill {
    position: absolute; top: 2px; padding: 7px 10px; white-space: nowrap; cursor: pointer;
    border: 1px solid var(--lit); border-radius: 3px; background: var(--bg); color: var(--ink); font: 500 var(--t2)/1.2 var(--sans);
  }
  .ov-rail[data-rail="bot"] .ov-pill { top: 3px; }
  .ov-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .ov-leaders path { fill: none; stroke: var(--lit); stroke-width: 1.25; }
  .ov-layer .hs-label { display: none; }
  /* height: the first screen's room under the bar, the hero, the hint row and the two callout rows, but
     never under 300 px (it scrolls on a very short phone) and never wider than the screen */
  .slice-box.ovs-box { width: min(100% - 16px, max(320px, (100svh - var(--nav-h) - var(--dock-h) - var(--hero-h) - 46px) * 320 / 300)); max-width: 560px; aspect-ratio: 320 / 300; margin: 0 auto; }
  /* 320 (pass 7): the overview is the full width, so it is at least 300 px tall (§11), and the three
     callouts fit in the row above it, so no label or leader line runs down behind the dock */
  @media (max-width: 359.98px) { .slice-box.ovs-box { width: 100%; } .ov-pill { padding: 7px 7px; } }
  .ovs { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .ovs * { vector-effect: non-scaling-stroke; }
  .ovs .thin { stroke-opacity: .6; stroke-width: 1; }
  .ovs .hatch { stroke-opacity: .35; }
  .oz { fill: transparent; stroke: none; transition: fill .4s ease; }
  .oz.lit { fill: var(--lit); fill-opacity: .16; }
  /* OCCUPIED: a room with nothing lit stays drawn, dimmed, under one muted line */
  .slice.dark .slice-box .art { opacity: .38; }
  .slice.dark .slice-dim { display: block; margin: 0 0 6px; font-size: var(--t2); color: var(--muted); }
  .slice.dark .dim-btn { display: none; }
  /* while a sheet is open, its foot keeps SIRENS NOW and 112 in view (the dock is under the sheet) */
  .sheet-foot { display: flex; align-items: stretch; gap: 6px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--bg); }
  .sf-sirens, .sf-112 { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border-radius: 4px; text-decoration: none; text-align: center; line-height: 1.05; }
  .sf-sirens { flex: 0 0 auto; min-width: 76px; background: var(--lit); color: var(--on-lit); font: 700 14px/1.05 var(--sans); max-width: 92px; }
  .sf-112 { flex: 1 1 auto; gap: 10px; justify-content: flex-start; text-align: left; border: 1px solid var(--ink); color: var(--ink); font-size: var(--t2); }
  .sf-112 b { font-size: 17px; line-height: 1; }
  .sf-112 .sf-note { display: block; line-height: 1.1; }
  /* walking: the foot takes two rows: SIRENS NOW and 112 with its short note ("Danger: yes. Questions:
     no.", §11), then Back · n of m · Next */
  /* walking: Back · n of N · Next (and End) take the sheet head's row at the top of the sheet; no extra row */
  .walkbar { order: 0; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; padding: 6px 0 2px; margin: 0 16px; border-top: 0; border-bottom: 1px solid var(--rule); }
  .walkbar .btn { min-height: 44px; padding: 0 12px; }
  .walkbar .wb-close { display: grid; position: static; }
  .walk-pos { display: grid; text-align: center; line-height: 1.15; }
  .walk-pos .wp-o { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 var(--t2)/1.15 var(--sans); color: var(--muted); }
  html.walking .p-head { display: none; }
  .slice-box .art { position: absolute; inset: 0; }
  .hs-label { opacity: 1; font-size: var(--t2); padding: 4px 7px; }
  :root { --hero-h: 160px; }
  .panel {
    position: fixed; z-index: 50; top: auto; left: 0; right: 0; bottom: 0; width: auto;
    /* 75–85 % of the screen, and never over the bar and its mode row, which stay in view (§10) */
    height: min(82svh, calc(100svh - var(--nav-h) - 6px), 760px);
    border-left: 0; border-top: 1px solid var(--rule); border-radius: 14px 14px 0 0; transform: translateY(102%);
  }
  .panel.dragging { transition: none; }
  /* a tap above the sheet closes it, as on every native bottom sheet */
  .sheet-backdrop { display: block; position: fixed; z-index: 39; inset: 0; background: transparent; }
  .sheet-backdrop[hidden] { display: none; }
  .sheet-handle { display: grid; place-items: center; position: absolute; z-index: 3; top: 0; left: 50%; width: 96px; height: 12px; transform: translateX(-50%); cursor: grab; touch-action: none; }
  .sheet-handle span { width: 40px; height: 4px; border-radius: 2px; background: var(--muted); opacity: .6; }
  .panel-scroll { padding: 0 16px 24px; }
  .p-head { min-height: 48px; padding-top: 6px; padding-bottom: 2px; }
  .p-head .p-close, .p-head .p-share { top: 4px; }
  .p-lead { grid-template-columns: 96px 1fr; gap: 12px; margin: 8px 0 10px; align-items: start; }
  .p-lead .picto { width: 96px; height: 96px; }
  .walk-pos { white-space: nowrap; }
  .walk-pos .wp-m { display: none; }
  .all, .sources, .foot { margin: 0 16px; }
  .foot { padding-bottom: 24px; }
  .l-card { grid-template-columns: 64px 1fr; gap: 12px; }
  .l-pic { width: 64px; height: 64px; }
  .more-item { grid-template-columns: 64px 1fr; }
  .more-item .picto { width: 64px; height: 64px; }
}
/* short screens: the sheet opens higher, so the reading area is not a letterbox */
@media (max-width: 1023.98px) and (max-height: 640px) { .panel { height: calc(100svh - var(--nav-h) - 4px); } }
@media (max-width: 359.98px) {
  :root { --hero-h: 186px; }
  .sf-112 .sf-note { line-height: 1.05; }
  .sf-sirens { min-width: 70px; max-width: 74px; padding: 0 6px; }
  .sf-112 { gap: 7px; padding: 0 7px; font-size: 14px; }
  .sf-112 .sf-note > span { text-wrap: wrap; }
  .p-lead { grid-template-columns: 80px 1fr; }
  .p-lead .picto { width: 80px; height: 80px; }
  .p-rule { font-size: var(--t4); }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .panel { left: 50%; width: min(640px, 100%); transform: translate(-50%, 102%); }
  .panel.open { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.print-note { display: none; }
@media print {
  :root { --bg: #fff; --ink: #000; --muted: #333; --line: #000; --rule: #999; --lit: #000; --on-lit: #fff; --glow: transparent; --cone: transparent; --wash-dim: transparent; color-scheme: light; }
  body { background: #fff; color: #000; display: block !important; }
  .mode-row, .phone-building, .panel, .leaders, .keynotes, .skip, .walk-fab, .all-nav, .sheet-foot, .ov-wrap, .hero-side, .next-acts, .sheet-backdrop, .src-register, .src-photos .ref { display: none !important; }
  .illus-tag { background: #fff; color: #000; }
  .lbl, .q { stroke: #fff; }
  .src-fold { border: 0; }
  .src-fold > summary { min-height: 0; display: block; }
  .src-fold > summary::after { content: none; }
  .src-h4 { font-size: 8.5pt; margin: 2mm 0 1mm; }
  html.js .all[open]:not(.ready) > :not(summary) { display: revert; }
  .l-obj, .src-list li { content-visibility: visible; }
  /* paper: each object is a numbered dot in the drawing, named in the legend under it */
  .stage .hs-layer { display: block !important; }
  .stage .hs { width: 0; height: 0; transform: none; }
  .stage .hs-ring, .stage .hs-label, .stage .hs-extra { display: none !important; }
  .stage .hs-n { display: grid; place-items: center; position: absolute; left: -2.6mm; top: -2.6mm; width: 5.2mm; height: 5.2mm; border-radius: 50%; background: #fff; border: .6pt solid #000; font: 600 7pt/1 var(--sans); color: #000; }
  .print-legend { display: block; columns: 3; column-gap: 6mm; margin: 3mm 0 0; padding: 0 0 0 5mm; font-size: 8pt; line-height: 1.35; }
  .print-legend li { break-inside: avoid; }
  .print-legend span { color: #444; }
  .stage { display: block !important; height: auto; container-type: normal; break-inside: avoid; padding: 0 6mm; overflow: visible; }
  .stage .art { overflow: visible; }
  .building { break-after: page; }
  .obj.lit .wash, .obj .wash { fill: none !important; fill-opacity: 0 !important; }
  .stage-inner { width: 100% !important; transform: none !important; }
  .building { border: 0; margin: 0; }
  .obj { opacity: 1 !important; color: #000 !important; }
  .obj .wash { fill: none !important; }
  .amb, .q { display: none; }
  .paf { fill: none; }
  .all > summary { display: block; }
  a { text-decoration: none; }
  /* the short print edition: the building, then every step as rule + body in two columns
     (reasons, sources per step and photos stay online), then the source register, compact */
  .print-note { display: block; margin: 1mm 0 0; font-size: 9pt; }
  .stage { margin-bottom: 4mm; }
  .illus-tag { position: static; padding: 0; }
  .all { margin: 0; border: 0; }
  .all > summary { padding: 0 0 2mm; }
  .all-title { font-size: 14pt; }
  .l-obj { columns: 2; column-gap: 6mm; max-width: none; padding: 2mm 0 0; border-top: .5pt solid #999; }
  .l-obj h3 { column-span: all; font-size: 11pt; margin: 0 0 1mm; break-after: avoid; }
  .l-card { grid-template-columns: 8mm 1fr; gap: 2mm; padding: .8mm 0; font-size: 8pt; line-height: 1.25; break-inside: avoid; }
  .l-pic { width: 8mm; height: 8mm; }
  .l-card h4 { margin: 0 0 .4mm; font-size: 8.5pt; }
  .l-card p { margin: 0 0 .4mm; }
  .l-card .chip { padding: 0 1mm; font-size: 6.5pt; }
  .l-card details, .l-ua { display: none; }
  .sources { margin: 0; padding: 4mm 0 0; break-before: page; font-size: 7.5pt; }
  .sources h2 { font-size: 12pt; }
  .ref { display: none; }
  .src-h { font-size: 9pt; margin: 3mm 0 1mm; break-after: avoid; }
  .src-list { display: block; columns: 3; column-gap: 5mm; }
  .src-list li { break-inside: avoid; padding: .6mm 0; border: 0; font-size: 7pt; line-height: 1.2; }
  .src-list h3 { font-size: 7.5pt; }
  .src-list li > p:not(:first-of-type), .src-list .verified { display: none; }
  .change-list li { font-size: 7.5pt; padding: .5mm 0; }
  .foot { margin: 3mm 0 0; padding: 2mm 0 0; font-size: 7.5pt; }
}

/* ---- generated by build.mjs: hotspot positions and slice ratios ---- */
[data-at="d-city"]{left:93.750%;top:48.780%}
[data-at="d-city"] .hs-label{right:100%;left:auto;margin:0 4px 0 0}
[data-at="d-neighbour"]{left:13.000%;top:23.171%}
[data-at="d-stairwell"]{left:6.000%;top:52.439%}
[data-at="d-door"]{left:18.750%;top:47.561%}
[data-at="d-corridor"]{left:25.250%;top:33.902%}
[data-at="d-corridor~b"]{left:43.750%;top:47.317%}
[data-at="d-drawer"]{left:25.813%;top:55.366%}
[data-at="d-fridge"]{left:30.062%;top:43.902%}
[data-at="d-stove"]{left:35.875%;top:53.171%}
[data-at="d-medicine"]{left:40.563%;top:37.439%}
[data-at="d-tap"]{left:40.000%;top:54.390%}
[data-at="d-toilet"]{left:45.188%;top:56.098%}
[data-at="d-window"]{left:53.250%;top:42.927%}
[data-at="d-radio"]{left:48.625%;top:46.098%}
[data-at="d-pet"]{left:48.688%;top:59.512%}
[data-at="d-phone"]{left:54.875%;top:56.585%}
[data-at="d-bed"]{left:62.750%;top:56.341%}
[data-at="d-documents"]{left:67.563%;top:54.146%}
[data-at="d-children"]{left:71.875%;top:54.390%}
[data-at="d-courtyard"]{left:79.750%;top:66.341%}
[data-at="d-warming"]{left:84.438%;top:77.317%}
[data-at="d-car"]{left:92.750%;top:75.610%}
[data-at="d-car"] .hs-label{right:100%;left:auto;margin:0 4px 0 0}
[data-at="d-basement"]{left:26.250%;top:89.756%}
[data-at="v-door"]{left:17.500%;top:48.667%}
[data-at="v-corridor"]{left:21.875%;top:38.667%}
[data-at="v-drawer"]{left:22.500%;top:50.000%}
[data-at="v-fridge"]{left:29.375%;top:42.667%}
[data-at="v-stove"]{left:29.375%;top:50.000%}
[data-at="v-tap"]{left:38.125%;top:44.000%}
[data-at="v-toilet"]{left:38.125%;top:50.667%}
[data-at="v-medicine"]{left:38.125%;top:39.333%}
[data-at="v-window"]{left:48.750%;top:41.333%}
[data-at="v-radio"]{left:45.625%;top:50.000%}
[data-at="v-pet"]{left:46.875%;top:50.000%}
[data-at="v-phone"]{left:48.750%;top:49.333%}
[data-at="v-bed"]{left:59.375%;top:48.667%}
[data-at="v-documents"]{left:61.250%;top:37.333%}
[data-at="v-children"]{left:68.125%;top:46.667%}
[data-at="v-stairwell"]{left:7.500%;top:50.000%}
[data-at="v-neighbour"]{left:13.125%;top:28.000%}
[data-at="v-basement"]{left:40.625%;top:88.000%}
[data-at="v-courtyard"]{left:80.313%;top:67.000%}
[data-at="v-car"]{left:92.500%;top:77.000%}
[data-at="v-warming"]{left:91.875%;top:63.333%}
[data-at="v-city"]{left:95.000%;top:46.667%}
.sb-sky{--r:1.5375}
.sb-outside{--r:0.9785}
[data-at="m-city"]{left:72.527%;top:22.581%}
[data-at="m-courtyard"]{left:10.989%;top:61.290%}
[data-at="m-warming"]{left:31.593%;top:85.484%}
[data-at="m-car"]{left:68.132%;top:81.720%}
.sb-stairwell{--r:0.5947}
[data-at="m-neighbour"]{left:76.106%;top:13.158%}
[data-at="m-stairwell"]{left:26.549%;top:76.316%}
.sb-hallway{--r:0.6803}
[data-at="m-door"]{left:25.000%;top:57.143%}
[data-at="m-corridor"]{left:77.000%;top:19.048%}
[data-at="m-corridor"] .hs-label{right:100%;left:auto;margin:0 2px 0 0}
[data-at="m-drawer"]{left:81.500%;top:78.912%}
[data-at="m-drawer"] .hs-label{right:100%;left:auto;margin:0 2px 0 0}
.sb-kitchen{--r:0.6803}
[data-at="m-fridge"]{left:28.500%;top:46.939%}
[data-at="m-stove"]{left:75.000%;top:72.789%}
[data-at="m-stove"] .hs-label{right:100%;left:auto;margin:0 2px 0 0}
.sb-bathroom{--r:0.6803}
[data-at="m-medicine"]{left:37.500%;top:28.912%}
[data-at="m-tap"]{left:33.000%;top:76.190%}
[data-at="m-toilet"]{left:74.500%;top:80.952%}
[data-at="m-corridor~b"]{left:63.000%;top:56.463%}
.sb-living{--r:0.7687}
[data-at="m-window"]{left:48.673%;top:44.218%}
[data-at="m-radio"]{left:15.929%;top:53.061%}
[data-at="m-pet"]{left:16.372%;top:90.476%}
[data-at="m-phone"]{left:60.177%;top:82.313%}
.sb-bedroom{--r:0.6803}
[data-at="m-bed"]{left:35.000%;top:81.633%}
[data-at="m-documents"]{left:73.500%;top:75.510%}
.sb-children{--r:0.6803}
[data-at="m-children"]{left:40.000%;top:76.190%}
.sb-basement{--r:2.3467}
[data-at="m-basement"]{left:49.432%;top:54.667%}
[data-at="m-corridor~b"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="m-neighbour"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="m-warming"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="d-warming"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="m-city"] .hs-label{right:100%;left:auto;margin:0 2px 0 0}
[data-at="m-car"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="d-corridor~b"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="m-tap"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="m-toilet"] .hs-label{left:100%;right:auto;margin:0 0 0 -2px}
[data-at="m-documents"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="m-bed"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="m-pet"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="m-phone"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="m-radio"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-corridor"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-stairwell"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="v-window"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-phone"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="v-bed"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-documents"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="v-children"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-radio"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-pet"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="v-door"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-drawer"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="v-tap"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-fridge"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-stove"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="v-medicine"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="v-toilet"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="d-neighbour"] .hs-label{left:4px;top:auto;bottom:100%;transform:none;margin:0 0 -4px}
[data-at="d-corridor"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="d-toilet"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="d-documents"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="d-pet"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="d-phone"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
[data-at="d-radio"] .hs-label{left:50%;top:auto;bottom:100%;transform:translateX(-50%);margin:0 0 -6px}
[data-at="d-tap"] .hs-label{right:100%;left:auto;margin:0 2px 0 0}
[data-at="d-bed"] .hs-label{left:50%;top:100%;transform:translateX(-50%);margin:-6px 0 0}
