/* Dayorb. One family, warm paper and ink, hairlines, gold only for sun. */

@font-face {
  font-family: 'Albert Sans'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('fonts/albert-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Albert Sans'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('fonts/albert-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Type: change the face here and nowhere else. */
  --font: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  /* One type scale. */
  --t-eyebrow: 11px; --t-small: 13px; --t-body: 16px; --t-lead: 19px; --t-h3: 22px; --t-h2: 30px;
  --t-h1: clamp(40px, min(5vw, 9vh), 80px);
  --t-num: 120px;
  /* One spacing scale, 4px base. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Warm paper, warm ink, warm hairlines. */
  --paper: #FAF7F1;
  --sheet: #FFFDF9;
  --ink: #1D1A16;
  --ink-2: #6E665B;
  --ink-3: #786F63;          /* 4.6:1 on paper: small text stays readable (WCAG AA) */
  --rule: #E3DCCF;
  --rule-2: #F0EBE1;
  --stage: #2B2620;          /* behind the 3D while it loads */
  --glass: rgba(250, 247, 241, 0.9);   /* controls over the scene */
  --glass-line: rgba(29, 26, 22, 0.16);
  /* Gold is for sun, and for nothing else. */
  --sun: #E2AD4B;
  --sun-ink: #8F6410;        /* sun as text on paper */
  --sun-wash: #F7ECD3;
  --equinox: #8D8C84;        /* 20 March: muted warm slate */
  --winter: #B8693F;         /* 21 December: muted terracotta */
  --umber: #4A423A;
  --error: #A5422E;
  /* Sun calendar pixels, as r, g, b. */
  --cal-sun: 226, 173, 75; --cal-day: 238, 232, 220; --cal-night: 74, 66, 58;

  --bar-h: 56px;
  --rail-w: 464px;
  --pad: var(--s6);
  --gutter: clamp(24px, 3vw, 48px);
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* The document is exactly the visible viewport: iOS clips sticky boxes against anything taller. */
html, body { height: 100vh; height: 100dvh; margin: 0; overflow: hidden; background: var(--paper); }
body { font: 400 var(--t-body)/1.5 var(--font); color: var(--ink); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; font-variant-numeric: lining-nums; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 300; }
p, li { text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: var(--s2); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); font-weight: 500; }
.skip:focus { top: var(--s2); }
.noscript { position: fixed; inset: auto 0 0 0; padding: var(--s4); background: var(--paper); z-index: 60; }

/* Eyebrow: the one place with tracked capitals. */
.eyebrow, .kicker, .field > span, .search-label, .rail h2, .ctx h3, .offer-get h2, .slider span, .cmp thead th {
  font: 500 var(--t-eyebrow)/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
}

/* ---------- shell: the app is the scroller ---------- */
.app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); background: var(--paper); position: relative; }
.scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; display: flex; flex-direction: column; }
.view { flex: none; animation: reveal 0.45s var(--ease) 0.05s both; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

/* ---------- top bar: light, one hairline ---------- */
.bar { height: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(var(--s5), env(safe-area-inset-right, 0px)) 0 max(var(--s5), env(safe-area-inset-left, 0px)); background: var(--paper); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: var(--s5); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: var(--s3); color: inherit; text-decoration: none; font: 600 13px/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; flex: none; min-height: 44px; }
.mark { width: 22px; height: 22px; display: block; }
/* The mark: an ink orb with the sun's day path in gold. Sources and other sizes: launch/logo/. */
.wordmark { height: 10px; width: auto; display: block; }
.brand-name { display: block; }
.mark-orb { fill: currentColor; }
.mark-arc { fill: var(--sun); }
.bar-place { display: flex; align-items: center; gap: var(--s4); min-width: 0; flex: 1; border-left: 1px solid var(--rule); padding-left: var(--s5); height: 24px; }
.bar-addr { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-floor { flex: none; }
select { appearance: none; -webkit-appearance: none; background-color: transparent; border: 0; padding: 0 20px 0 0; height: 44px; font-size: 15px; font-weight: 400; color: var(--ink-2); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-size: 4px 4px, 4px 4px; background-position: right 8px center, right 4px center; background-repeat: no-repeat; }
select option { color: var(--ink); background: var(--sheet); }
.bar select { field-sizing: content; width: auto; }
.bar-actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; flex: none; }
.bar-btn { background: none; border: 0; color: var(--ink-2); height: 44px; padding: 0 var(--s3); font-size: 15px; white-space: nowrap; transition: color 140ms var(--ease); }
.bar-btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.bar-btn:active { transform: scale(0.97); }
.in-report, .in-place { display: none; }
.app[data-view="report"] .in-report, .app[data-view="report"] .in-place, .app[data-view="preview"] .in-place, .app[data-view="status"] .in-place { display: inline-block; }
.app.no-report .in-report, .app.is-sample .in-report, .app.is-waiting .in-place { display: none !important; }
.app.is-sample #act-print { display: inline-block !important; }
.lang { display: flex; margin-left: var(--s3); }
.lang button { background: none; border: 0; color: var(--ink-3); font: 500 13px/1 var(--font); letter-spacing: 0.06em; height: 44px; min-width: 36px; padding: 0 var(--s1); }
.lang button[aria-pressed="true"] { color: var(--ink); }
.bar-more, .bar-copy { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; padding: 0; flex: none; }
.ico { width: 16px; height: 16px; display: block; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ico-fill { fill: currentColor; stroke: none; }
.ico-close, .bar-more.is-open .ico-menu { display: none; }
.bar-more.is-open .ico-close { display: block; }
.bar-toast { position: absolute; right: var(--s5); top: calc(100% + var(--s2)); background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); font-size: 14px; max-width: min(360px, calc(100vw - 32px)); border-radius: var(--radius); }
.bar-toast.is-error { background: var(--sheet); color: var(--error); border: 1px solid var(--error); }
@media (hover: hover) and (pointer: fine) {
  .bar-btn:hover, .lang button:hover, .bar select:hover { color: var(--ink); }
}

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; transition: transform 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; min-height: 56px; font-size: 17px; }
.btn:disabled { border-color: var(--rule); background: var(--rule-2); color: var(--ink-3); transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 4px; min-height: 44px; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; padding: 0; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--paper); }
  .btn-primary:hover { background: #3A342C; }
  .btn:disabled:hover { background: var(--rule-2); color: var(--ink-3); }
  .link-btn:hover { text-decoration-color: var(--ink); }
}
.field { display: grid; gap: var(--s1); }
.field select { height: 48px; border-bottom: 1px solid var(--rule); font-size: 17px; color: var(--ink); width: 100%; }

/* ---------- search ---------- */
.search { position: relative; display: grid; gap: var(--s2); }
.search-row { display: flex; position: relative; }
.search-in { flex: 1; min-width: 0; height: 56px; padding: 0 var(--s4); font-size: 17px; background: var(--sheet); color: var(--ink); border: 1px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); appearance: none; -webkit-appearance: none; }
.search-in::placeholder { color: var(--ink-3); }
.search-in::-webkit-search-cancel-button { display: none; }
.search-in:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.btn-go { height: 56px; min-height: 56px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--ink); color: var(--paper); padding: 0 var(--s5); font-size: 16px; flex: none; }
.search-list { position: absolute; left: 0; right: 0; top: calc(100% + var(--s1)); z-index: 12; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); max-height: min(244px, 42vh); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 32px -16px rgba(29, 26, 22, 0.35); }
.search-list li { padding: var(--s3) var(--s4); min-height: 48px; display: flex; align-items: center; font-size: 16px; cursor: pointer; }
.search-list li + li { border-top: 1px solid var(--rule-2); }
.search-list li[aria-selected="true"] { background: var(--rule-2); }
@media (hover: hover) and (pointer: fine) { .search-list li:hover { background: var(--rule-2); } }
.search-status { min-height: 21px; font-size: 14px; color: var(--ink-2); display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.search-status.is-error { color: var(--error); }
.search-status .link-btn { min-height: 0; color: var(--ink); }

/* ---------- 3D stage ---------- */
.stage { position: relative; overflow: hidden; background: var(--stage); }
.stage > .stage-gl { position: absolute; inset: 0; }
.stage-gl canvas { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.stage[data-mode="hero"] .stage-gl { pointer-events: none; }
.stage-cover, .stage-fail { position: absolute; inset: 0; z-index: 3; background: var(--rule-2); color: var(--ink); display: grid; align-content: center; justify-items: center; text-align: center; gap: var(--s4); padding: 0 var(--s5); }
.stage-cover { transition: opacity 0.35s ease; }
.stage.is-ready .stage-cover { opacity: 0; pointer-events: none; }
.cover-mark { width: 40px; height: 40px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.cover-phase { font-size: 14px; color: var(--ink-2); min-height: 21px; }
.cover-bar { width: min(240px, 100%); height: 1px; background: var(--rule); }
.cover-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0.04)); transition: transform 0.5s var(--ease); }
.stage-fail { font-size: 17px; }
.stage-fail p { max-width: 32ch; }
.stage[data-mode="hero"] .stage-fail { display: none; }
/* A failed scene keeps only its retry panel: no dead camera, map or playback controls. */
.stage.is-failed ~ .dock, .stage.is-failed ~ .stage-read { display: none; }
.stage-wrap:has(.stage.is-failed) ~ .scrub { display: none; }

/* The compass sits with the docks: a round dial of the same height. */
.stage .dayorb-compass { border-radius: 50%; width: 52px; height: 52px; right: var(--s4); bottom: var(--s4); }
.stage .dayorb-compass svg text { font: 600 9px var(--font); }

/* Focus over the scene: an ink ring in a paper halo reads on the dark stage and on bright ground. */
.stage :focus-visible, .dock :focus-visible, .stage .dayorb-compass:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; box-shadow: 0 0 0 4px var(--paper); }
.stage .dayorb-canvas:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; box-shadow: none; }

/* Controls over the scene: warm glass, thin line, quiet type. */
.dock { position: absolute; z-index: 4; display: flex; gap: var(--s2); align-items: center; }
.dock-tl { left: var(--s4); top: var(--s4); right: 84px; flex-wrap: wrap; }
.dock-bl { left: var(--s4); bottom: var(--s4); right: 84px; }
.seg { display: inline-flex; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; min-height: 36px; padding: 0 var(--s3); font-size: 14px; white-space: nowrap; color: var(--ink-2); border-radius: 2px; }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--glass-line); }
.dock-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); border-radius: var(--radius); font-size: 14px; white-space: nowrap; }
.dock-btn .ico { margin: 0; width: 10px; height: 10px; }
.dock-btn[aria-pressed="true"] { background: var(--sheet); font-weight: 500; }
.lbl-short { display: none; }
.stage-read { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 0 var(--s4); min-height: 44px; display: flex; align-items: center; gap: var(--s3); font-size: 14px; white-space: nowrap; }
.stage-read b { font-weight: 500; font-variant-numeric: tabular-nums; }
.stage-read .read-state { padding-left: var(--s3); border-left: 1px solid var(--glass-line); color: var(--ink-2); }
.stage-read[data-state="sun"] .read-state { color: var(--ink); font-weight: 500; }
.stage-read[data-state="sun"] .read-state::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--sun); border-radius: 50%; margin-right: var(--s2); }
#r-read { position: absolute; left: var(--s4); bottom: var(--s4); z-index: 4; max-width: calc(100% - 100px); }
@media (hover: hover) and (pointer: fine) {
  .seg button:hover, .dock-btn:hover { color: var(--ink); }
}

/* The scrubber: paper, one hairline, thin sliders. */
.scrub { background: var(--paper); border-top: 1px solid var(--rule); padding: var(--s3) var(--s5) var(--s4); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s1) var(--s6); }
.scrub-top { grid-column: 1 / -1; display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.scrub .seg { background: none; border: 0; padding: 0; gap: var(--s1); }
.scrub .seg button { min-height: 44px; padding: 0 var(--s3); border-radius: 0; box-shadow: none; }
.scrub .seg button[aria-pressed="true"] { background: none; box-shadow: inset 0 -1px 0 var(--ink); }
.scrub .dock-btn { background: none; border: 0; color: var(--ink-2); padding: 0 var(--s3); }
.scrub .dock-btn[aria-pressed="true"] { color: var(--ink); }
.seg-days { margin-right: auto; margin-left: calc(var(--s3) * -1); }
.slider { display: grid; grid-template-columns: 48px minmax(0, 1fr) 64px; align-items: center; gap: var(--s3); }
.slider output { font-size: 14px; font-weight: 500; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slider-dock { flex: 1; min-width: 0; max-width: 520px; grid-template-columns: minmax(0, 1fr) 48px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 0 var(--s4); min-height: 44px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--ink-3); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--ink-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--ink); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; background: var(--ink); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); }
.slider-dock input[type="range"]::-webkit-slider-thumb { border-color: #F6F2EA; }
.print-still, .print-head { display: none; }
.print-frame { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: minmax(440px, 40%) minmax(0, 1fr); height: calc(100dvh - var(--bar-h)); min-height: 560px; }
.hero-view { position: relative; min-width: 0; min-height: 0; background: var(--stage); overflow: hidden; }
.hero-stage { position: absolute; inset: 0; }
.hero-block { padding: var(--gutter); padding-right: var(--s7); display: grid; gap: var(--s5); align-content: center; min-width: 0; z-index: 5; animation: reveal 0.55s var(--ease) 0.1s both; }
.hero-block h1 { font-size: var(--t-h1); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.hero-lede { font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.hero-block .search { margin-top: var(--s2); }
.hero-sample { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration-color: var(--ink-3); text-underline-offset: 4px; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); justify-self: start; }
.hero-film { font-size: 15px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .hero-film:hover { color: var(--ink); } }
/* The film (ui/film.js): a modal dialog in the top layer, the video at 16:9, sized to fit the screen. */
.film { padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible;
  width: min(1120px, calc(100vw - 2 * var(--s4)), calc((100dvh - 120px) * 16 / 9)); max-width: none; max-height: none; }
.film::backdrop { background: rgba(29, 26, 22, 0.86); }
.film-box { display: grid; gap: var(--s2); }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.film-title { font-size: var(--t-body); font-weight: 500; letter-spacing: 0; }
.film-close { color: var(--paper); margin-right: calc(-1 * var(--s3)); }
.film :focus-visible { outline-color: var(--paper); }
.film-frame { aspect-ratio: 16 / 9; background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.film-video { display: block; width: 100%; height: 100%; background: var(--stage); }
.film-frame { position: relative; }
.has-film #main { overflow: hidden; }
.hero-stage:not(.is-ready) ~ .hero-caption { display: none; }
.hero-caption { position: absolute; right: var(--s4); bottom: var(--s4); z-index: 4; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); font-size: 13px; line-height: 1; padding: var(--s3) var(--s4); font-variant-numeric: tabular-nums; }
.offer { display: grid; grid-template-columns: minmax(440px, 40%) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.offer-price { padding: var(--s8) var(--s7) var(--s8) var(--gutter); display: grid; align-content: start; gap: var(--s4); }
.offer-chf { font-weight: 200; font-size: clamp(64px, 8vw, 128px); line-height: 0.9; letter-spacing: -0.045em; white-space: nowrap; }
.offer-line { font-size: var(--t-lead); line-height: 1.45; max-width: 24em; color: var(--ink-2); }
.offer-price .btn { justify-self: start; margin-top: var(--s4); }
.offer-get { padding: var(--s8) var(--gutter); border-left: 1px solid var(--rule); }
.offer-get h2 { margin-bottom: var(--s3); }
.offer-get li { font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.offer-get li:last-child { border-bottom: 0; }

/* ---------- workspace: stage and rail ---------- */
/* 40px short of the viewport, so the head of the next band shows there is more below. */
.work { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); height: calc(100dvh - var(--bar-h) - 40px); min-height: 620px; }
@media (min-width: 900px) { #view-preview .work { height: calc(100dvh - var(--bar-h)); } }
.stage-col { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.stage-wrap { position: relative; min-height: 0; display: grid; }
.stage-box { min-height: 0; }
.rail { background: var(--paper); border-left: 1px solid var(--rule); overflow-y: auto; min-height: 0; position: relative; }
#r-body, #p-body { padding: var(--s6) var(--pad) var(--s6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-content: start; }
#p-body { gap: var(--s5); }

/* Facade tabs: letters on one hairline, the chosen one underlined. */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.tab { background: none; border: 0; padding: var(--s1) var(--s1) var(--s3); display: grid; justify-items: center; gap: 2px; min-height: 72px; color: var(--ink-3); min-width: 0; }
.tab b { font-size: 21px; font-weight: 300; line-height: 1.1; letter-spacing: 0.02em; }
.tab small { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tab[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tab[aria-pressed="true"] b { font-weight: 500; }
.tab:disabled { opacity: 0.5; }
@media (hover: hover) and (pointer: fine) { .tab:not(:disabled):hover { color: var(--ink); } }
.glyph { width: 18px; height: 18px; }
.glyph-box { display: none; }
.glyph-wall { stroke: currentColor; stroke-width: 1.6; }
.glyph-arrow { fill: none; stroke: currentColor; stroke-width: 1.2; }
.glyph-dot { fill: currentColor; }
.warn p { font-size: 14px; line-height: 1.45; color: var(--ink-2); padding-left: var(--s4); border-left: 1px solid var(--ink-3); max-width: 60ch; }
.warn p + p { margin-top: var(--s3); }
.warn:empty { display: none; }

/* Key numbers: the headline alone on its row, three quiet cells below. */
.key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key-cell { padding: var(--s4) var(--s3) var(--s4) 0; display: grid; gap: var(--s1); align-content: start; text-align: left; background: none; border: 0; border-top: 1px solid var(--rule); color: var(--ink); min-width: 0; }
.key-main { grid-column: 1 / -1; border-top: 0; padding: 0 0 var(--s5); gap: var(--s2); }
.k { font-size: var(--t-small); line-height: 1.3; color: var(--ink-2); }
.key-cell .v { font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.key-cell .v small { font-size: 0.5em; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 0.1em; }
.key-cell .s { font-size: var(--t-small); line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.key-main .v { font-size: var(--t-num); font-weight: 200; line-height: 0.88; letter-spacing: -0.05em; }
.key-main .v small { font-size: 0.24em; }
.k-short, .s-short { display: none; }
.key-day { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .key-day:hover .k { color: var(--ink); } }
.key-empty { grid-column: 1 / -1; max-width: 60ch; color: var(--ink-2); }
.sample-note { border-bottom: 1px solid var(--rule); padding: var(--s5) var(--pad); display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sheet); }
.sample-note-text { font-size: var(--t-body); line-height: 1.4; max-width: 22em; color: var(--ink-2); }
.sample-note-text strong { display: block; font-weight: 500; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }

/* The strong action: one filled button that catches the light once when it comes into view. */
.btn-cta { position: relative; overflow: hidden; isolation: isolate; min-height: 56px; padding: 0 var(--s6); font-size: 16px; letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(255, 253, 249, 0.10) inset, 0 14px 28px -18px rgba(29, 26, 22, 0.7); }
.btn-cta::after { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 253, 249, 0.20) 48%, rgba(255, 253, 249, 0.04) 58%, transparent 70%);
  transform: translateX(-110%); }
.btn-cta.is-lit::after { animation: cta-light 1600ms var(--ease) 300ms 1 both; }
@keyframes cta-light { to { transform: translateX(110%); } }
@media (hover: hover) and (pointer: fine) {
  .btn-cta { transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease); }
  .btn-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 253, 249, 0.10) inset, 0 18px 32px -18px rgba(29, 26, 22, 0.8); }
  .btn-cta:hover::after { animation: cta-light 1100ms var(--ease) 1; }
}
.offer-price .btn-cta { min-height: 60px; padding: 0 var(--s7); font-size: 17px; }

/* Sample report: a slim bar with the price and the action, once the note above has scrolled away. */
.sample-bar { position: fixed; z-index: 25; right: 0; bottom: 0; width: var(--rail-w); display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) var(--s3) var(--s3) var(--pad); background: var(--sheet); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  box-shadow: 0 -16px 36px -28px rgba(29, 26, 22, 0.5); transform: translateY(110%); visibility: hidden;
  transition: transform 360ms var(--ease), visibility 0s linear 360ms; }
.sample-bar.is-shown { transform: none; visibility: visible; transition: transform 420ms var(--ease); }
.sample-bar-text { font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em; min-width: 0; }
.sample-bar .btn-cta { flex: none; min-height: 48px; padding: 0 var(--s5); font-size: 15px; }
/* Below the 3D view and the rail the page is full width: the bar becomes a full-width bottom bar. */
@media (min-width: 900px) { .sample-bar.is-wide { left: 0; width: auto; border-left: 0; padding: var(--s3) var(--gutter); } }
.app.has-sample-bar .rail { padding-bottom: 88px; }
/* The bar is fixed over the page end: keep the footer links above it. */
.app.has-sample-bar #main { padding-bottom: 72px; }

/* Sun calendar */
.cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.cal-head { display: grid; gap: var(--s1); }
.readout { font-size: 14px; line-height: 1.5; color: var(--ink); min-height: 21px; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); align-items: center; font-variant-numeric: tabular-nums; }
.panel > .readout { min-height: 48px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s1); }
.rd-row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.rd { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; color: var(--ink-2); }
.rd b { font-weight: 500; color: var(--ink); }
.cal-jump { justify-self: start; font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s1) var(--s2); }
.cal-plot { position: relative; min-width: 0; }
.cal-x, .cal-y, .cal-ring { position: absolute; pointer-events: none; }
.cal-x { left: var(--cx, 0); top: 0; bottom: 0; width: 1px; background: rgba(250, 247, 241, 0.85); box-shadow: 0 0 0 0.5px rgba(29, 26, 22, 0.35); }
.cal-y { top: var(--cy, 0); left: 0; right: 0; height: 1px; background: rgba(250, 247, 241, 0.85); box-shadow: 0 0 0 0.5px rgba(29, 26, 22, 0.35); }
.cal-ring { left: var(--cx, 0); top: var(--cy, 0); width: 9px; height: 9px; margin: -4px 0 0 -4px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.is-out .cal-y, .is-out .cal-ring { display: none; }
.cal-canvas { width: 100%; height: clamp(120px, 22vh, 212px); image-rendering: pixelated; display: block; cursor: crosshair; touch-action: pan-y; border-radius: 2px; }
.cal-hours { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; line-height: 1; color: var(--ink-3); padding: 1px 0; font-variant-numeric: tabular-nums; }
.cal-axis { grid-column: 2; position: relative; height: 14px; font-size: 11px; line-height: 1; color: var(--ink-3); }
.cal-axis span { position: absolute; left: var(--x); transform: translateX(-50%); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: var(--t-small); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.legend .legend-break { flex-basis: 100%; height: 0; }
.sw { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 1px; }
.sw-cal-sun { background: rgb(var(--cal-sun)); }
.sw-cal-day { background: rgb(var(--cal-day)); outline: 1px solid var(--rule); outline-offset: -1px; }
.sw-cal-night { background: rgb(var(--cal-night)); }
.sw-weather { background: var(--sun); }
.sw-clear { background: var(--sun-wash); outline: 1px solid #E9D5A4; outline-offset: -1px; }
.sw-line { height: 2px; width: 16px; border-radius: 0; }
.sw-jun { background: var(--sun); } .sw-mar { background: var(--equinox); } .sw-dec { background: var(--winter); }
.sw-terrain { background: #D5CDBE; } .sw-built { background: var(--umber); }
.sw-wall { background: var(--rule-2); outline: 1px solid var(--rule); outline-offset: -1px; }

/* Progress and inline states */
.busy { position: sticky; top: 0; z-index: 6; background: var(--sheet); border-bottom: 1px solid var(--rule); padding: var(--s3) var(--pad); font-size: 14px; display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.busy-bar { display: block; width: 72px; height: 1px; background: var(--rule); position: relative; overflow: hidden; flex: none; color: var(--ink); }
.busy-bar::after { content: ''; position: absolute; inset: 0; background: currentColor; transform-origin: left; animation: sweep 1.3s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-100%) scaleX(0.5); } 100% { transform: translateX(100%) scaleX(0.5); } }
.busy.is-still .busy-bar { display: none; }
.is-busy #r-body { opacity: 0.45; transition: opacity 0.2s ease; }
.state { padding: var(--s6) var(--pad); display: grid; gap: var(--s3); justify-items: start; }
.state h2, .rail .state h2 { font: 300 var(--t-h2)/1.1 var(--font); letter-spacing: -0.025em; text-transform: none; color: var(--ink); }
.state p { color: var(--ink-2); max-width: 44ch; }
.status-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }
/* No report yet: the stage column stays calm. */
.is-empty .scrub, .is-empty .dock, .is-empty #r-read, .is-empty > .switch, .is-empty > .lower, .is-empty > .method { display: none; }
.is-dead .stage-cover { display: none; }
.is-dead .stage { background: var(--rule-2); }

/* ---------- preview rail ---------- */
.place-title { font-size: clamp(32px, 2.8vw, 44px); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; margin-top: calc(var(--s5) * -1); }
.place-sub { font-size: 17px; color: var(--ink-2); margin-top: calc(var(--s5) * -1); }
.place-sub:empty { display: none; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.hint { font-size: 14px; color: var(--ink-2); }
.pick .hint { margin: calc(var(--s1) * -1) 0 var(--s2); }
.today { display: grid; gap: var(--s2); }
.today:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: var(--s2); justify-self: start; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.badge[data-state="sun"] { color: var(--ink); }
.badge[data-state="sun"]::before { background: var(--sun); }
.badge[data-state="night"]::before, .badge[data-state="attached"]::before { background: var(--umber); }
.badge-time { font-weight: 400; color: var(--ink-3); padding-left: var(--s2); border-left: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.today-line { font-size: var(--t-h3); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; }
.today-line.is-error { color: var(--error); font-size: 16px; }
.today-locked { font-size: 14px; color: var(--ink-2); max-width: 44ch; }
.today-wait { display: flex; gap: var(--s3); align-items: center; font-size: 14px; color: var(--ink-2); min-height: 24px; }
/* The building line sits under the address as one quiet line, no rules of its own. An empty
   list takes no grid row at all, so the gaps stay even. */
.teaser { margin-top: calc(var(--s4) * -1); }
.teaser:has(> ul:empty) { display: none; }
.teaser li { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.unlock { border-top: 1px solid var(--rule); padding-top: var(--s5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
/* Without today's line the floor field's own underline already closes the pick: no second rule. */
.today:empty + .unlock { border-top-color: transparent; padding-top: 0; }
.unlock h2 { margin-bottom: 0; }
.unlock-price { font-size: var(--t-h2); font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; }
.unlock-shows { font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.unlock .btn { margin-top: var(--s2); }
.unlock-off { margin-top: var(--s2); font-size: 17px; line-height: 1.4; color: var(--ink); }
.unlock-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s4); font-size: 14px; color: var(--ink-2); }
/* The solar add-on before the report: a quiet locked block under the unlock box. */
.p-solar { border-top: 1px solid var(--rule); padding-top: var(--s5); display: grid; gap: var(--s3); }
.p-solar[hidden] { display: none; }
.p-solar-points { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; gap: var(--s2); }
.p-solar-points li { display: flex; align-items: flex-start; gap: var(--s3); font-size: 15px; line-height: 1.45; color: var(--ink); }
/* The line icons of the solar section (app/ui/solar-icons.js); solar.css is not loaded here. */
.p-solar .sol-ico { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ink-3); }
.p-solar-lead { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.p-solar-price { font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; max-width: 46ch; }
.buy-sticky { display: none; }
.note { font-size: var(--t-small); line-height: 1.45; color: var(--ink-3); }
.status-line { font-size: 14px; }
.status-line:empty { display: none; }
.status-line.is-error { color: var(--error); }

/* ---------- lower sheet: one grid with the rail ---------- */
.switch { display: none; }
.lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.panel { scroll-margin-top: var(--s4); padding: var(--s7) var(--gutter) var(--s7); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-content: start; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--rule); }
.panel-wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--rule); }
.panel h2, .compare h2 { font-size: var(--t-h2); font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: var(--s1); }
.chart { min-width: 0; margin-top: var(--s2); }
.chart-svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; }
.chart-svg text { font: 400 12px var(--font); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.grid line { stroke: var(--rule-2); stroke-width: 1; }
.ax line { stroke: var(--rule); stroke-width: 1; }
.zero { stroke: var(--ink-3) !important; }
.hit { fill: transparent; cursor: crosshair; }
.crosshair { stroke: #8A6A2A; stroke-width: 1; }
.hz-built { fill: var(--umber); }
.hz-terrain { fill: #D5CDBE; }
.hz-wall { fill: var(--rule-2); }
.sp { fill: none; stroke-width: 2; }
.sp-jun { stroke: var(--sun); stroke-width: 2.5; } .sp-mar { stroke: var(--equinox); } .sp-dec { stroke: var(--winter); }
.sp-hidden { stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.8; }
.hm { fill: var(--paper); stroke-width: 1.2; }
.hm-jun { stroke: #C99324; } .hm-dec { stroke: var(--winter); }
.chart-svg .hm-lbl { fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.m-clear { fill: var(--sun-wash); }
.m-weather { fill: var(--sun); }
.mbar.on .m-weather { fill: #C99324; }
.mbar.on .m-clear { fill: #F1E0B8; }
.around { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5) var(--gutter); margin-top: var(--s4); }
.around > .around-note { grid-column: 1 / 3; max-width: 60ch; }
.ctx { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-content: start; min-width: 0; }
.ctx h3 { padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.ctx-none, .ctx-note { font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.ctx-big { font-size: var(--t-h3); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; display: grid; gap: 2px; }
.ctx-mid { font-size: var(--t-h3); }
.ctx-big small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
/* Noise: a slim track, filled to the value, one thin tick for the limit. */
.nrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px; gap: var(--s3); align-items: center; min-height: 28px; }
.nrow-k { font-size: 14px; color: var(--ink-2); }
.nrow-v { font-size: 14px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nbar { position: relative; height: 4px; background: var(--rule-2); display: block; }
.nbar i { position: absolute; top: 0; bottom: 0; }
.nbar-fill { left: 0; width: var(--x); background: var(--ink-2); }
.nbar-fill.is-over { background: var(--ink); }
.nbar-tick { display: none; }
.nbar-limit { left: var(--x); width: 1px; background: var(--ink); top: -6px !important; bottom: -6px !important; }
.nrow-axis { min-height: 0; }
.naxis { position: relative; height: 12px; font-size: 11px; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.naxis span { position: absolute; left: var(--x); transform: translateX(-50%); }
/* Narrow columns side by side: every second step only, so the numbers do not touch. */
@media (min-width: 900px) { .naxis .is-odd { visibility: hidden; } }
.around-note { font-size: var(--t-small); line-height: 1.45; color: var(--ink-3); max-width: 40ch; }
/* Class steps: hairline chips, the current one in ink. */
.steps { display: flex; gap: var(--s1); }
.steps span { flex: 1; text-align: center; padding: var(--s1) 2px; min-height: 28px; display: grid; place-items: center; font-size: var(--t-small); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 2px; min-width: 0; }
.steps .on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.steps-plain span { min-height: 0; height: 4px; padding: 0; border: 0; background: var(--rule-2); border-radius: 0; }
.steps-plain .on { background: var(--ink); }
.steps-ends { display: flex; justify-content: space-between; font-size: 11px; line-height: 1; color: var(--ink-3); margin-top: calc(var(--s1) * -1); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { text-align: right; font-variant-numeric: tabular-nums; }
.method { border-top: 1px solid var(--rule); padding: 0 var(--gutter); }
.method summary { font-size: var(--t-h3); font-weight: 300; letter-spacing: -0.015em; padding: var(--s5) 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: '+'; font-weight: 200; font-size: 26px; line-height: 1; color: var(--ink-2); }
.method[open] summary::after { content: '\2212'; }
.method > div { padding: 0 0 var(--s7); display: grid; gap: var(--s3); max-width: 68ch; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- compare ---------- */
.is-compare > .work, .is-compare > .lower, .is-compare > .method, .is-compare > .switch { display: none; }
.compare { padding: var(--s7) var(--gutter) var(--s8); min-height: calc(100dvh - var(--bar-h) - 60px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-content: start; }
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.compare-head h2 { margin: 0; }
.compare .busy { position: static; border: 0; padding: 0; background: none; color: var(--ink-2); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: var(--s7) var(--gutter); margin-top: var(--s4); }
.cmp { border-collapse: collapse; width: calc(100% + 2 * var(--s2)); margin: 0 calc(var(--s2) * -1); font-variant-numeric: tabular-nums; }
.cmp caption { text-align: left; font-size: var(--t-h3); font-weight: 300; letter-spacing: -0.015em; padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.cmp th, .cmp td { padding: var(--s2) 0 var(--s2) var(--s3); text-align: right; font-size: 14px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; height: 44px; }
.cmp th:first-child { text-align: left; padding-left: var(--s2); font-weight: 400; }
.cmp caption { padding-left: var(--s2); }
.cmp th:last-child, .cmp td:last-child { padding-right: var(--s2); }
.cmp thead th { white-space: normal; vertical-align: bottom; height: auto; padding-top: var(--s3); text-wrap: balance; }
.cmp td { color: var(--ink-2); }
.cmp .cmp-main { width: 38%; text-align: left; }
.cmp-main b { font-weight: 500; font-size: 15px; color: var(--ink); display: inline-block; min-width: 3em; text-align: right; }
.cmp-bar { display: inline-block; position: relative; width: calc(100% - 4.4em); height: 4px; margin-left: var(--s2); vertical-align: middle; background: rgba(29, 26, 22, 0.1); }
.cmp-bar i { position: absolute; left: 0; top: 0; bottom: 0; }
.cmp-clear { width: var(--c); background: #EBD9AE; }
.cmp-weather { width: var(--w); background: var(--sun); }
.cmp .is-here th, .cmp .is-here td { background: var(--rule-2); color: var(--ink); }
.cmp-link { background: none; border: 0; padding: 0; color: inherit; min-height: 44px; text-align: left; }
.cmp .is-here .cmp-link { font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .cmp tbody tr:hover th, .cmp tbody tr:hover td { background: var(--rule-2); } .cmp-link:hover { text-decoration: underline; text-underline-offset: 4px; } }
.cmp-hint { max-width: 60ch; }
.cmp-att, .cmp-wait { text-align: left !important; color: var(--ink-3); padding-left: var(--s3); }
.skel { display: block; height: 4px; background: var(--rule-2); animation: pulse 1.6s ease-in-out infinite; }

/* ---------- status view, sheet, footer ---------- */
.status { flex: 1 0 auto; display: grid; align-content: center; padding: var(--s7) var(--gutter); min-height: 60dvh; }
.status-box { display: grid; gap: var(--s4); justify-items: start; width: 100%; max-width: 560px; margin-inline: auto; }
.status-box h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.status-box p { font-size: var(--t-lead); color: var(--ink-2); max-width: 36em; }
.status-box .status-over { font-size: 15px; font-weight: 500; color: var(--ink); }
.status-box .busy-bar { width: 160px; height: 2px; }
.scrim { position: absolute; inset: calc(var(--bar-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 15; background: rgba(29, 26, 22, 0.4); }
.sheet { position: absolute; inset: 0; z-index: 30; background: rgba(29, 26, 22, 0.4); display: block; }
.sheet-panel { background: var(--paper); padding: calc(var(--s5) + env(safe-area-inset-top, 0px)) max(var(--s5), calc((100% - 720px) / 2)) var(--s6); display: grid; gap: var(--s4); align-content: start; animation: drop 0.22s var(--ease) both; border-bottom: 1px solid var(--rule); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: var(--t-h2); font-weight: 300; letter-spacing: -0.025em; }
.foot { margin-top: auto; border-top: 1px solid var(--rule); color: var(--ink-3); padding: var(--s5) max(var(--gutter), env(safe-area-inset-left, 0px)) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); font-size: var(--t-small); line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); }
.foot-links { display: flex; gap: var(--s4); }
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-links a:hover { color: var(--ink-2, inherit); }
/* 404: both languages are in the page; the script shows one. */
html[data-lang="de"] .l-en, html[data-lang="en"] .l-de { display: none; }
.app[data-view="status"] .lang { display: flex; margin-left: auto; }

/* ---------- wide and narrow desktop ---------- */
@media (min-width: 1680px) {
  :root { --rail-w: 520px; }
  .compare, .panel-wide, .method { padding-left: max(var(--gutter), calc((100% - 1680px) / 2)); padding-right: max(var(--gutter), calc((100% - 1680px) / 2)); }
}
@media (max-width: 1180px) and (min-width: 900px) {
  :root { --rail-w: 380px; --pad: var(--s5); --t-num: 88px; }
  .bar { gap: var(--s4); }
  .bar-btn { padding: 0 var(--s2); font-size: 14px; }
  .around { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--gutter); }
  .hero, .offer { grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); }
  .scrub { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .scrub-top { flex-wrap: nowrap; }
  .scrub .lbl-long { display: none; }
  .scrub .lbl-short { display: inline; }
  .key-cell .v { font-size: 26px; }
  .key-main .v { font-size: var(--t-num); }
}
@media (max-height: 780px) and (min-width: 900px) {
  :root { --t-num: 88px; }
  .cal-canvas { height: 100px; }
  #r-body, #p-body { gap: var(--s5); padding-top: var(--s5); }
  .tab { min-height: 60px; }
}

/* ---------- phone and small tablet ---------- */
@media (max-width: 899px) {
  :root { --bar-h: 52px; --pad: var(--s4); --gutter: var(--s4); --t-num: 64px; --t-h2: 26px; --t-lead: 17px; }
  .bar { gap: var(--s2); padding-left: max(var(--s4), env(safe-area-inset-left, 0px)); padding-right: max(var(--s1), env(safe-area-inset-right, 0px)); }
  .brand-name { display: none; }
  .app[data-view="landing"] .brand-name, .app[data-view="status"] .brand-name { display: block; }
  .bar-place { padding-left: var(--s3); gap: var(--s2); }
  .bar select { font-size: 16px; }
  .bar-more { display: block; }
  .app[data-view="report"]:not(.no-report):not(.is-sample) .bar-copy { display: block; margin-left: auto; }
  .app:not([data-view="report"]) .bar-more, .app.no-report .bar-more { margin-left: auto; }
  .app[data-view="landing"] .bar-more { display: none; }
  .bar-actions { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: var(--s2) var(--s4) var(--s4); gap: 0; z-index: 25; }
  .bar-actions.is-open { display: flex; }
  .app[data-view="landing"] .bar-actions { display: flex; position: static; border: 0; padding: 0; flex-direction: row; background: none; }
  .bar-btn { height: 52px; text-align: left; font-size: 17px; padding: 0; color: var(--ink); border-bottom: 1px solid var(--rule-2); }
  .app[data-view="report"] .in-report, .app[data-view="report"] .in-place, .app[data-view="preview"] .in-place, .app[data-view="status"] .in-place { display: block; }
  .bar-actions .lang { margin: var(--s2) 0 0; }
  .bar-actions .lang button { min-width: 52px; text-align: left; }
  .app[data-view="landing"] .lang { margin: 0; }

  /* Height follows the content: a fixed 100dvh let the scene spill over the price below. */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(300px, 1fr); height: auto; min-height: calc(100dvh - var(--bar-h)); }
  .hero-block { padding: var(--s6) var(--s4) var(--s5); gap: var(--s4); }
  .hero-block h1 { font-size: clamp(34px, 10vw, 48px); }
  .search-in, .btn-go { height: 52px; min-height: 52px; }
  .search-in { font-size: 16px; padding: 0 var(--s3); }
  .btn-go { padding: 0 var(--s4); }
  .hero-caption { right: var(--s2); bottom: var(--s2); font-size: 12px; padding: var(--s2) var(--s3); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer-price, .offer-get { padding: var(--s7) var(--s4); }
  .offer-get { border-left: 0; border-top: 1px solid var(--rule); }
  .offer-price .btn-cta { justify-self: stretch; }
  .sample-note { padding: var(--s4); }
  .sample-note .btn-cta { width: 100%; }
  .sample-bar { left: 0; width: auto; border-left: 0; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); }
  .sample-bar-text { font-size: 14px; }
  .app.has-sample-bar .rail { padding-bottom: 0; }
  .app.has-sample-bar #main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  .work { display: block; height: auto; min-height: 0; }
  .stage-col { display: block; }
  .stage-wrap { display: block; }
  .is-dead .stage-box { display: none; }
  /* 44% of the viewport, less on a short screen so the key numbers stay above the fold. */
  .stage-box { height: clamp(200px, calc(100dvh - 452px), 44dvh); }
  #view-preview .stage-box { height: 38svh; min-height: 232px; }
  .stage .dayorb-compass { width: 44px; height: 44px; right: var(--s2); bottom: var(--s2); }
  .bar-more.is-open { background: var(--rule-2); border-radius: var(--radius); }
  .dock-tl { left: var(--s2); top: var(--s2); right: var(--s2); gap: var(--s1); }
  .dock-bl { left: var(--s2); bottom: var(--s2); right: calc(44px + var(--s4)); gap: var(--s2); }
  .seg button { min-height: 36px; padding: 0 var(--s2); font-size: 13px; }
  .dock-btn { min-height: 44px; padding: 0 var(--s3); font-size: 13px; }
  .stage-read { min-height: 36px; font-size: 13px; padding: 0 var(--s3); gap: var(--s2); }
  #r-read { position: static; max-width: none; border-width: 1px 0 0; border-radius: 0; background: var(--paper); border-color: var(--rule); padding: 0 var(--s4); min-height: 40px; }
  .scrub { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 var(--s4) var(--s1); }
  .scrub-top { gap: 0; flex-wrap: nowrap; }
  .scrub-top .seg-days { flex: 1; min-width: 0; margin-left: 0; }
  .scrub .seg button { flex: 1; padding: 0 2px; font-size: 13px; min-width: 0; overflow: hidden; }
  .scrub .dock-btn { padding: 0 var(--s2); gap: var(--s1); flex: none; }
  #r-play-day { border-left: 1px solid var(--rule); border-radius: 0; padding-left: var(--s3); margin-left: var(--s1); }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .slider { grid-template-columns: 44px minmax(0, 1fr) 60px; gap: var(--s2); }
  .slider-dock { grid-template-columns: minmax(0, 1fr) 44px; padding: 0 var(--s3); }
  input[type="range"] { height: 36px; }
  .slider-dock input[type="range"] { height: 44px; }

  .rail { border-left: 0; overflow: visible; }
  #r-body { padding: var(--s2) var(--pad) var(--s4); gap: var(--s3); }
  #p-body { padding: var(--s6) var(--pad) 96px; gap: var(--s5); }
  .place-title { margin-top: calc(var(--s4) * -1); font-size: 32px; }
  .place-sub { margin-top: calc(var(--s4) * -1); }
  .tab { min-height: 64px; gap: 2px; padding: var(--s2) var(--s1); }
  .tab .glyph { width: 14px; height: 14px; }
  .tab b { font-size: 17px; }
  .tab small { font-size: 12px; }
  .key { column-gap: var(--s4); }
  .key-main { padding: 0 0 var(--s2); gap: 0; }
  .key-cell { padding: var(--s2) 0; gap: 0; }
  .key-cell .v { font-size: 22px; }
  .key-main .v { font-size: var(--t-num); }
  .k-long { display: none; } .k-short { display: block; }
  .k { font-size: 12px; }
  .key-cell .s { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .switch { display: flex; margin: 0 var(--pad); position: sticky; top: 0; z-index: 5; background: var(--paper); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0; gap: 0; }
  .switch button { flex: 1; min-height: 48px; padding: 0 var(--s1); font-size: 15px; border-radius: 0; }
  .switch button[aria-pressed="true"] { background: none; box-shadow: inset 0 -2px 0 var(--ink); }
  .lower { display: block; border-top: 0; }
  .panel { display: none; padding: var(--s5) var(--pad) var(--s6); border: 0 !important; }
  .lower[data-active="months"] [data-panel="months"], .lower[data-active="horizon"] [data-panel="horizon"], .lower[data-active="around"] [data-panel="around"] { display: grid; }
  .panel .cal { margin-top: var(--s5); }
  .panel .cal h2 { font: 500 var(--t-eyebrow)/1.3 var(--font); letter-spacing: 0.1em; margin: 0; }
  .panel > .readout { min-height: 0; }
  .cal-canvas { height: 120px; }
  .around { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .around > .around-note { grid-column: auto; order: 2; margin-top: calc(var(--s5) * -1); }
  .around > .ctx:nth-child(n+3) { order: 3; }
  .method { padding: 0 var(--pad); }
  .compare { padding: 0 var(--pad) var(--s6); }
  .compare-head { position: sticky; top: 0; z-index: 4; background: var(--paper); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
  .compare-head h2 { font-size: 20px; }
  .compare-head .btn { min-height: 44px; padding: 0 var(--s4); }
  .cmp .cmp-main { width: 32%; }
  .cmp th, .cmp td { padding-left: var(--s2); font-size: 13px; }
  .cmp thead th { font-size: 10px; letter-spacing: 0.06em; }
  .cmp-bar { width: calc(100% - 3.8em); margin-left: var(--s1); }
  .unlock-facts { grid-template-columns: minmax(0, 1fr); }
  .buy-sticky { display: block; position: sticky; bottom: 0; z-index: 6; box-shadow: 0 -10px 20px rgba(250, 247, 241, 0.92); margin: 0 calc(var(--pad) * -1) -96px; padding: var(--s3) var(--pad) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--rule); }
  .buy-sticky.is-off { display: none; }
  /* Nothing to buy: no sticky bar, so no room kept for it either. */
  #p-body:has(> .buy-sticky[hidden]) { padding-bottom: var(--s6); }
  .status { padding: var(--s7) var(--s4); }
  .sheet-panel { padding-left: var(--s4); padding-right: var(--s4); }
  .foot { padding-left: var(--s4); padding-right: var(--s4); }
}
/* A tablet in portrait keeps the phone flow but gets its width back. */
@media (min-width: 600px) and (max-width: 899px) {
  :root { --pad: var(--s6); --gutter: var(--s6); --t-num: 88px; }
  .hero-block { padding: var(--s7) var(--s6) var(--s6); }
  .offer-price, .offer-get, .status, .sheet-panel, .foot { padding-left: var(--s6); padding-right: var(--s6); }
  .offer-price .btn-cta { justify-self: start; }
  .unlock-facts { grid-template-columns: 1fr 1fr; }
  .around { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .around > .around-note { grid-column: 1 / 3; order: 0; margin-top: 0; }
  .around > .ctx:nth-child(n+3) { order: 0; }
  .key-cell .v { font-size: 26px; }
  .key-main .v { font-size: var(--t-num); }
  .k-long { display: block; } .k-short { display: none; }
}
@media (max-width: 359px) {
  .hero-block h1 { font-size: 32px; }
  .scrub .seg button { font-size: 12px; }
  .tab b { font-size: 15px; }
  .tab small { font-size: 11px; }
  .key { column-gap: var(--s2); }
  .key-cell .v { font-size: 19px; }
  .key-main .v { font-size: 56px; }
  .stage-read .read-date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- print: one clean report, no link, no controls ---------- */
@media print {
  @page { margin: 14mm; }
  html, body { height: auto; overflow: visible; background: #fff; }
  .app { display: block; height: auto; background: #fff; }
  .scroll { overflow: visible; display: block; }
  .bar, .skip, .sheet, .scrim, .switch, .dock, .scrub, #r-read, .stage-box, .busy, .compare, .sample-note, .sample-bar, .cal-jump, #view-landing, #view-preview, #view-status { display: none !important; }
  .view { animation: none; }
  .print-head { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid #000; margin-bottom: 16px; font-size: 12px; color: var(--ink-2); }
  .print-brand { font: 600 11px var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
  .print-title { font: 300 28px/1.1 var(--font); letter-spacing: -0.025em; color: var(--ink); }
  .work { display: block; height: auto; min-height: 0; }
  .stage-col, .stage-wrap { display: block; }
  .has-still .print-still { display: block; width: 100%; max-height: 80mm; object-fit: cover; margin-bottom: 16px; }
  .rail, .sample-note, .stage-col { border: 0; overflow: visible; background: none; }
  #r-body { padding: 0; gap: 16px; }
  .tab:not([aria-pressed="true"]) { display: none; }
  .tabs { grid-template-columns: 1fr; border: 0; }
  .cal-x, .cal-y, .cal-ring { display: none; }
  .tab[aria-pressed="true"] { box-shadow: none; display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 10px; min-height: 0; padding: 0; }
  .key-main .v { font-size: 64px; }
  .lower { display: block; border: 0; }
  .panel { display: grid !important; padding: 16px 0; border: 0 !important; break-inside: avoid; }
  .panel > .readout { display: none; }
  .around { grid-template-columns: 1fr 1fr; gap: 24px; }
  .method { padding: 0; break-inside: avoid; }
  .method summary::after, .method[open] summary::after { content: ''; }
  /* Printed from the floor comparison: the report, not the hidden comparison view. */
  .is-compare > .work, .is-compare > .lower, .is-compare > .method, .is-compare > .moments, .is-compare > .allf { display: block !important; }
  .foot { padding: 12px 0 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- withdrawal waiver next to the buy button (lane WAIVER) ---------- */
/* Shown only to EU, EEA, UK and unknown-country visitors. Calm: one hairline box, the text in
   the note colour, the error is a red edge on the box plus the status line under the button. */
.waiver { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s2); font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; max-width: 52ch; }
.waiver[hidden] { display: none; }
.waiver-input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--sheet) center / 14px 14px no-repeat; cursor: pointer; transition: background-color 140ms var(--ease), border-color 140ms var(--ease); }
.waiver-input:checked { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4 L5.8 10 L11 4' fill='none' stroke='%23FAF7F1' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E"); }
.waiver-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.waiver.is-invalid .waiver-input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.waiver.is-invalid .waiver-text { color: var(--ink); }
.waiver-text { padding-top: 0; }
.waiver:not([hidden]) + .btn { margin-top: var(--s1); }
.waiver-mail[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .waiver:hover .waiver-input:not(:checked) { border-color: var(--ink); } }

/* Buy status sits right under the buy button. */
.unlock .status-line { margin: 8px 0 0; }

/* ---------- introductory price line and free report links (GIFTS contract) ---------- */
/* The landing price waits for the server's price, so a static number never flashes. */
.offer-chf.is-pending { visibility: hidden; }
.intro-line { font-size: 14px; line-height: 1.45; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.offer-price .intro-line { font-size: 15px; max-width: 30em; margin-top: calc(-1 * var(--s2)); }
.unlock .intro-line { margin-top: calc(-1 * var(--s2)); }
.sample-note-text .intro-line { display: block; margin-top: var(--s1); }
.sample-note-text .intro-line[hidden] { display: none; }
/* The reading over the 3D: one line on wide screens (ellipsis), wrapping on phones. */
.stage-read { min-width: 0; overflow: hidden; }
.stage-read .read-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
  #r-read { white-space: normal; flex-wrap: wrap; row-gap: var(--s1); padding-top: var(--s2); padding-bottom: var(--s2); }
  #r-read .read-state { white-space: normal; }
}
.gift-note { font-size: 15px; line-height: 1.45; color: var(--ink); border-left: 2px solid var(--sun); padding: var(--s1) 0 var(--s1) var(--s3); max-width: 46ch; }
.gift-note.is-off { border-left-color: var(--rule); color: var(--ink-2); }
.hero-gift { margin-top: var(--s4); }
.gift-mail { display: grid; gap: var(--s1); margin-top: var(--s2); max-width: 46ch; }
.gift-mail-label { font-size: 14px; color: var(--ink-2); }
.gift-mail input { height: 48px; width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font-size: 17px; padding: 0; border-radius: 0; }
.gift-mail input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gift-mail input[aria-invalid="true"] { border-bottom-color: var(--error); }

/* ---------- sun at moments and all facades (lane R2) ---------- */
/* Two quiet sections under the panels. Gold bars are sun data; the table follows the floor table. */
.is-compare > .moments, .is-compare > .allf, .is-empty > .moments, .is-empty > .allf { display: none; }
.moments, .allf { padding: var(--s6) var(--gutter); border-top: 1px solid var(--rule); display: grid; gap: var(--s3); align-content: start; }
.moments h2, .allf h2 { font-size: var(--t-h3); letter-spacing: -0.015em; }
.moments .hint, .allf .hint { color: var(--ink-2); font-size: 15px; max-width: 60ch; }
.mom-bands { display: grid; gap: var(--s2); max-width: 640px; margin-top: var(--s2); }
.mom-band { display: grid; grid-template-columns: minmax(9em, auto) minmax(0, 1fr) 5em; align-items: center; gap: var(--s4); min-height: 36px; }
.mom-k { display: grid; line-height: 1.25; }
.mom-k b { font-weight: 500; font-size: 15px; }
.mom-k small { font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mom-bar { position: relative; height: 6px; background: var(--rule-2); }
.mom-bar i { position: absolute; inset: 0 auto 0 0; width: var(--x); background: var(--sun); }
.mom-v { text-align: right; font-size: 19px; font-weight: 300; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.mom-v small { font-size: 0.7em; color: var(--ink-2); }
.mom-facts { display: grid; grid-template-columns: minmax(12em, auto) minmax(0, 1fr); gap: var(--s2) var(--s5); margin-top: var(--s4); max-width: 760px; font-size: 15px; }
.mom-facts dt { color: var(--ink-2); }
.mom-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.mom-none { color: var(--ink-2); max-width: 60ch; }
.moments .note, .allf .note { max-width: 70ch; }
.allf-table { border-collapse: collapse; width: calc(100% + 2 * var(--s2)); max-width: 820px; margin: var(--s2) calc(var(--s2) * -1) 0; font-variant-numeric: tabular-nums; }
.allf-table th, .allf-table td { padding: var(--s2) var(--s2) var(--s2) var(--s3); text-align: right; font-size: 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.allf-table thead th { font: 500 var(--t-eyebrow)/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); vertical-align: bottom; text-wrap: balance; }
.allf-table th:first-child { text-align: left; padding-left: var(--s2); font-weight: 400; }
.allf-table td { color: var(--ink-2); }
.allf-table td.allf-main { color: var(--ink); font-weight: 500; font-size: 15px; }
.allf-table tbody th, .allf-table tbody td { vertical-align: middle; }
.allf-day b { display: block; font-weight: 400; color: var(--ink); }
.allf-day small { display: block; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.allf-att { text-align: left !important; color: var(--ink-3) !important; }
.allf .is-here th, .allf .is-here td { background: var(--rule-2); color: var(--ink); }
.allf-link { background: none; border: 0; padding: 0; color: inherit; min-height: 44px; text-align: left; font-size: 14px; }
.allf .is-here .allf-link { font-weight: 600; }
.allf-link:disabled { color: var(--ink-3); cursor: default; }
@media (hover: hover) and (pointer: fine) { .allf-link:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; } }
/* The key days are buttons: they say so with an underline, and the day on screen is marked. */
.key-day .k { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.key-day[aria-pressed="true"] { box-shadow: inset 0 2px 0 var(--ink); }
.key-day:focus-visible { outline-offset: -2px; }
.chart:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 899px) {
  .moments, .allf { padding: var(--s5) var(--pad); }
  .mom-band { grid-template-columns: 7.5em minmax(0, 1fr) 4.2em; gap: var(--s3); }
  .mom-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mom-facts dd { margin-bottom: var(--s3); }
  .allf-table th, .allf-table td { padding-left: var(--s2); font-size: 13px; }
  .allf-table thead th { font-size: 10px; letter-spacing: 0.06em; }
  .allf-day small { font-size: 11px; }
  .allf .lbl-long { display: none; } .allf .lbl-short { display: inline; }
  /* A key day with breaks takes two lines rather than an ellipsis. */
  .key-day .s { white-space: normal; overflow: visible; }
  /* The floor table: short floor names, so the 21 June column stays on a 390 px screen. */
  .cmp .lbl-long { display: none; } .cmp .lbl-short { display: inline; }
}
/* Desktop: bars and facts side by side, so the section fills the width instead of one narrow column. */
@media screen and (min-width: 900px) {
  .moments { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--s8); }
  .moments > h2, .moments > .hint, .moments > .note, .moments > .mom-none { grid-column: 1 / -1; }
  .mom-bands { max-width: none; align-self: start; }
  .mom-facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s2); max-width: none; align-self: start; padding-left: var(--s6); border-left: 1px solid var(--rule-2); }
  .mom-facts dt { font-size: var(--t-small); }
  .mom-facts dd { margin-bottom: var(--s4); font-size: 17px; }
  .mom-facts dd:last-child { margin-bottom: 0; }
  .allf-table { max-width: 1100px; }
}
/* Print for the two sections. After their screen and phone rules, so these win on paper (A4 is phone width). */
@media print {
  .moments, .allf { padding: 16px 0; border-top: 0; break-inside: avoid; }
  .allf-table { width: 100%; max-width: none; margin: 0; }
  .allf-link { min-height: 0; }
  .allf .lbl-long { display: inline; } .allf .lbl-short { display: none; }
  .allf .is-here th, .allf .is-here td { background: none; font-weight: 600; }
  .mom-band { grid-template-columns: 9em minmax(0, 1fr) 5em; min-height: 0; }
  .mom-facts { grid-template-columns: 14em minmax(0, 1fr); gap: 4px 24px; }
  .mom-facts dd { margin-bottom: 0; }
  .key-day .k { text-decoration: none; }
  .key-day[aria-pressed="true"] { box-shadow: none; }
}

/* Mouse and trackpad: scrolling stops hard at the top and the bottom. contain (.scroll, .search-list)
   still lets Chrome and Safari on the Mac rubber-band inside the element, an empty paper gap under
   the bar. Touch keeps contain: the native feel on iOS, and no pull-to-refresh. Last in the file,
   so it wins over the contain above. */
@media (pointer: fine) { .scroll, .rail, .search-list { overscroll-behavior: none; } }
