/* Originally ported verbatim from design/mockup/index.html's inline <style>
 * block -- see design/mockup/NOTES.md for the design rationale behind the
 * tokens, type pairing, and severity ramp below. This file has since
 * diverged from the static mockup based on real usage of the live app
 * (single-day navigation, unread indicators, the aesthetic pass documented
 * inline below); the mockup is a historical reference, not the source of
 * truth, going forward.
 *
 * Hallmark · route: custom (bespoke) · structure: day-strip nav + deterministic day-part forecast table + bottom tab bar
 * idea: "a spreadsheet you'd actually trust at the helm — hairlines and tabular figures, not a weather-app hero"
 * paper: oklch(97% 0.006 235) / oklch(15% 0.012 235) · accent(severity): warm ramp, monotonic L against rising chroma in both schemes · accent(neutral): oklch(40% 0.05 235)
 * display: Space Grotesk · body: IBM Plex Sans · data: IBM Plex Mono
 * axes: light+dark(paired) / geometric-sans / neutral (severity ramp is functional, not decorative) · gates: all-pass · studied: no
 */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-2xs: 0.6875rem;  /* 11px */
  --text-xs:  0.75rem;    /* 12px */
  --text-sm:  0.8125rem;  /* 13px */
  --text-base:0.9375rem;  /* 15px */
  --text-md:  1.0625rem;  /* 17px */
  --text-lg:  1.375rem;   /* 22px */
  --text-xl:  1.75rem;    /* 28px */

  /* space (4pt scale) */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;

  --radius-sm: 3px;
  --radius-md: 6px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short:   180ms;
  --dur-medium:  260ms;
  --dur-pulse:   1.6s;

  --z-sticky: 200; --z-modal: 400;

  /* colour — light (default) */
  --color-paper:     oklch(97% 0.006 235);
  --color-paper-2:   oklch(94% 0.008 235);
  --color-paper-3:   oklch(91% 0.009 235);
  --color-rule:      oklch(85% 0.010 235);
  --color-rule-2:    oklch(90% 0.008 235);
  --color-ink:       oklch(22% 0.014 235);
  --color-ink-2:     oklch(46% 0.012 235);
  --color-muted:     oklch(50% 0.010 235);
  --color-inert:     oklch(62% 0.012 235);
  --color-accent:        oklch(40% 0.055 235);
  --color-accent-ink:    oklch(98% 0.006 235);
  --color-focus:     oklch(52% 0.16 240);

  /* Severity ramp: L decreases monotonically as chroma rises (54/50/46/42/38%
     against 0.14 -> 0.20 chroma) so escalation reads as darkening+saturating
     intensity, not hue drift. Tier 1 is warmed off dark-olive H90 to H75. */
  --sev-0: var(--color-ink-2);
  --sev-1: oklch(54% 0.14 75);
  --sev-2: oklch(50% 0.16 58);
  --sev-3: oklch(46% 0.18 40);
  --sev-4: oklch(42% 0.19 25);
  --sev-5: oklch(38% 0.20 15);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-paper:     oklch(15% 0.012 235);
    --color-paper-2:   oklch(19% 0.014 235);
    --color-paper-3:   oklch(23% 0.015 235);
    --color-rule:      oklch(32% 0.016 235);
    --color-rule-2:    oklch(26% 0.014 235);
    --color-ink:       oklch(93% 0.008 235);
    --color-ink-2:     oklch(74% 0.010 235);
    --color-muted:     oklch(60% 0.012 235);
    --color-inert:     oklch(48% 0.012 235);
    --color-accent:        oklch(74% 0.09 235);
    --color-accent-ink:    oklch(14% 0.010 235);
    --color-focus:     oklch(78% 0.18 240);

    /* Inverted from light: on a 15% paper, severity gets BRIGHTER as chroma
       rises (62 -> 86% L), so the calmest tier never out-contrasts the most
       severe one -- the old ramp ran 78 -> 70%, backwards. */
    --sev-0: var(--color-ink-2);
    --sev-1: oklch(62% 0.12 75);
    --sev-2: oklch(68% 0.14 58);
    --sev-3: oklch(74% 0.17 40);
    --sev-4: oklch(80% 0.19 25);
    --sev-5: oklch(86% 0.20 15);
  }
}

/* ---------- Base ---------- */
body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-medium) var(--ease-out), color var(--dur-medium) var(--ease-out);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-md); top: -3rem;
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm);
  z-index: var(--z-modal); transition: top var(--dur-short) var(--ease-out);
}
.skip-link:focus { top: var(--space-md); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.app {
  max-width: 42rem;
  margin-inline: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md) var(--space-md);
}
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand__mark {
  width: 0.55em; height: 0.55em;
  background: var(--color-accent);
  border-radius: 1px;
  flex: none;
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 500;
  color: var(--color-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: var(--space-2xs);
}

/* ---------- Location switcher ----------
   The location IS the app's identity, so it reads as a heading (display
   face, heading-scale type) rather than a form control, while staying a
   real native <select> -- keyboard-accessible, Turbo-wired, no JS replaces
   it. The chevron is the only visual cue it opens a menu. */
.locationrow { padding: 0 var(--space-md); margin-bottom: var(--space-md); }
.location-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.location-select select {
  appearance: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: var(--space-3xs) var(--space-lg) var(--space-3xs) 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.location-select select:hover,
.location-select select:focus-visible { color: var(--color-accent); }
.location-select select:active { color: var(--color-accent); }
/* The markup is fill="none" + stroke-width with no stroke colour, so without
   an explicit `stroke` this path renders nothing at all -- the switcher has
   been affordance-less since the port. currentColor keeps it tied to the
   hover/focus colour change on the select above. */
.location-select__chevron {
  position: absolute;
  right: var(--space-2xs);
  width: 0.85rem; height: 0.85rem;
  color: var(--color-ink-2);
  stroke: currentColor;
  pointer-events: none;
}
.location-select:hover .location-select__chevron { color: var(--color-accent); }

/* ---------- Day-strip ---------- */
.daystrip {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: 0 var(--space-md) var(--space-md);
  scrollbar-width: none;
  /* Edge fade hints there is more to scroll to without adding new chrome. */
  -webkit-mask-image: linear-gradient(to right, transparent, black var(--space-md), black calc(100% - var(--space-md)), transparent);
  mask-image: linear-gradient(to right, transparent, black var(--space-md), black calc(100% - var(--space-md)), transparent);
}
.daystrip::-webkit-scrollbar { display: none; }

.chip {
  position: relative;
  flex: none;
  width: 3.1rem;
  min-height: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.chip__dow { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-2); }
.chip__num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--text-md); font-weight: 600; }

.chip[data-state="available"]:hover { background: var(--color-paper-2); }
.chip[data-state="available"]:active { background: var(--color-paper-3); }

.chip[data-state="current"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.chip[data-state="current"] .chip__dow,
.chip[data-state="current"] .chip__num { color: var(--color-accent-ink); }
.chip[data-state="current"]:active { opacity: 0.85; }

/* A dead end, not just a dim one: hatched and dashed, not just muted text. */
.chip[data-state="disabled"] {
  background: repeating-linear-gradient(135deg, transparent, transparent 4px, var(--color-rule-2) 4px, var(--color-rule-2) 5px);
  border-style: dashed;
  cursor: not-allowed;
}
.chip[data-state="disabled"] .chip__dow,
.chip[data-state="disabled"] .chip__num { color: var(--color-muted); }
.chip[disabled] { opacity: 1; }

.chip__unread {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.chip[data-unread="true"] .chip__unread { display: block; }
.chip[data-state="current"] .chip__unread { background: var(--color-accent-ink); }

/* ---------- Main / day sections ---------- */
main { flex: 1; display: flex; flex-direction: column; }

/* Metadata, not a banner: a hairline rule (never a bordered box -- see
   NOTES #4) is enough to separate it from the table above and below. This
   is the least important line on the page and should look like it. */
.freshness-bar {
  margin: 0 var(--space-md) var(--space-lg);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-rule-2);
  font-size: var(--text-2xs);
  color: var(--color-ink-2);
  line-height: 1.6;
}
.freshness-bar b { color: var(--color-ink); font-weight: 600; }

/* First-sync-in-flight state. No spinner -- a slow breathing dot reads as
   "working quietly", matching a page that updates itself with no reload,
   rather than a busy/blocking wait. */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}
.empty-state__pulse {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--color-accent);
  animation: empty-state-pulse var(--dur-pulse) var(--ease-in-out) infinite;
}
.empty-state__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-ink);
}
.empty-state__body {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: 32rem;
  margin-inline: auto;
}
@keyframes empty-state-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .empty-state__pulse { animation: none; opacity: 0.7; }
}

/* Only the day the day-strip/month grid points at is ever shown -- switching
   days is a navigation action, not something you scroll into. */
.day { display: none; padding: 0 var(--space-md) var(--space-2xl); }
.day[data-state="active"] { display: block; }

.day__head { margin-bottom: var(--space-sm); }
.day__head h2 { display: flex; align-items: baseline; gap: var(--space-xs); flex-wrap: wrap; }
.day__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
}
.day--today .day__label { color: var(--color-accent); }
.day__date { font-size: var(--text-sm); color: var(--color-ink-2); font-weight: 500; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: hidden; }

.fc {
  width: 100%;
  table-layout: fixed;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
/* c-time carries a reserved icon slot + "HH:MM" and was overflowing into
   c-wind at both 320 and 390px under the old 14/22% split; wind/sea were
   trimmed to make room since their sub-line no longer carries a bearing
   (see wind_sub_text in forecasts_helper.rb). */
/* Widths are measured, not guessed: worst-case content across a full 24-row
   day at 320px, including the longest call word ("Sporty", 42.6px) which the
   old 18% could never have held the first time the sea got up. Wind had the
   only real slack, so time and call took it. */
.fc col.c-time  { width: 22%; }
.fc col.c-wind  { width: 14%; }
.fc col.c-gust  { width: 14%; }
.fc col.c-sea   { width: 21%; }
.fc col.c-force { width: 12%; }
.fc col.c-call  { width: 17%; }

.fc thead th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-ink-2);
  text-align: right;
  padding: 0 var(--space-2xs) var(--space-xs);
  border-bottom: 1px solid var(--color-rule);
}
.fc thead th:first-child { text-align: left; }
.fc thead th:last-child { text-align: left; padding-left: var(--space-sm); }

.fc tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  vertical-align: middle;
  font-size: 0.9em;
}
/* Reserved whether or not sky_icon returns a glyph (unmapped conditions
   return "") so the hour text always starts at the same x -- previously a
   ragged left edge wherever an icon was missing. */
.sky-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95em;
  margin-right: 0.2em;
}
.sky-icon {
  width: 0.95em;
  height: 0.95em;
  color: var(--color-ink-2);
}
.dir-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.2em;
  vertical-align: -0.15em;
  flex: none;
  stroke-width: 1.6; /* matches the sky icons' authored weight -- markup agrees, see direction_arrow */
}
.fc tbody th, .fc tbody td {
  padding: 0.5rem var(--space-2xs);
  border-bottom: 1px solid var(--color-rule);
  font-size: var(--text-base);
  line-height: 1.25;
}
.fc tbody tr:last-child th, .fc tbody tr:last-child td { border-bottom: none; }

/* The current-hour row on today's table: a quiet accent hairline on the
   leading edge plus a touch more value weight -- no background fill (see
   NOTES #3/#5). Set client-side in forecast_controller.js#markCurrentHour
   from data-row-time, which only exists on today's rows -- a no-op on every
   other day. */
.fc tr[data-row-now] th[scope="row"] {
  border-left: 2px solid var(--color-accent);
  padding-left: calc(var(--space-2xs) - 2px);
}
.fc tr[data-row-now] .v { font-weight: 700; }

.fc td {
  text-align: right;
  vertical-align: middle;
}
.fc .cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15em;
  width: 100%;
}
/* Value + unit on one line ("11 kt"); .sub (direction/period) is the only
   thing allowed to wrap to a second line -- two lines per cell, maximum. */
.fc .val {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.15em;
}
/* Call is a status word, not a number — left-align so long words (Sporty,
   Rough) grow away from the Force column instead of colliding with it. */
.fc td:last-child { text-align: left; padding-left: var(--space-sm); }
.fc td:last-child .cell { align-items: flex-start; }
/* The value carries its emphasis with weight, not size, below 40rem: at 320px
   six columns cannot each afford a 17px figure plus its unit without one
   bleeding into its neighbour. The 40rem block below buys the size back. */
.fc .v { font-size: var(--text-base); font-weight: 700; }
.fc .u { font-size: 0.72em; color: var(--color-ink-2); }
.fc .sub {
  font-size: var(--text-2xs);
  font-weight: 500;
  color: var(--color-ink-2);
  letter-spacing: 0.01em;
}

/* One quiet treatment for every missing value across the table (wind, gust,
   sea, force, call) -- a dash recedes, it does not sit at full ink weight.
   Declared after .v/.call so it wins the cascade at equal specificity. */
.fc .dash {
  font-weight: 500;
  color: var(--color-ink-2);
}

/* The number a sailor came for gets real presence -- but 28px in a 9%-wide
   column overflowed into Sea at every width and made every row shout. 22px
   bold and coloured is plenty of hierarchy against 15px data; the 40rem block
   spends the extra room on --text-xl, where the column can actually hold it. */
.force { font-size: var(--text-lg); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.force[data-tier="0"] { color: var(--sev-0); }
.force[data-tier="1"] { color: var(--sev-1); }
.force[data-tier="2"] { color: var(--sev-2); }
.force[data-tier="3"] { color: var(--sev-3); }
.force[data-tier="4"] { color: var(--sev-4); }
.force[data-tier="5"] { color: var(--sev-5); }

.call {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
}

/* ---------- Legend / scale reference ---------- */
.legend {
  margin: var(--space-lg) var(--space-md) 0;
  border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-sm);
}
.legend summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legend summary:active { color: var(--color-ink); }
.legend summary::-webkit-details-marker { display: none; }
.legend summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-muted); }
.legend[open] summary::after { content: "\2212"; }
.legend__body { padding: 0 var(--space-sm) var(--space-sm); }
.legend__table { width: 100%; border-collapse: collapse; font-size: var(--text-2xs); }
.legend__table th, .legend__table td { text-align: left; padding: var(--space-3xs) var(--space-2xs); border-bottom: 1px solid var(--color-rule-2); }
.legend__table th { color: var(--color-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.legend__table td:first-child { font-family: var(--font-mono); font-weight: 700; }
.legend__table td:nth-child(2) { color: var(--color-ink); }
.legend__table td:last-child { font-family: var(--font-mono); color: var(--color-ink-2); text-align: right; }

.callkey { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); margin-top: var(--space-sm); font-size: var(--text-2xs); color: var(--color-ink-2); }
.callkey span b { color: var(--color-ink); }


/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper-2);
  border-top: 1px solid var(--color-rule);
  padding: var(--space-xs) var(--space-md) calc(var(--space-xs) + env(safe-area-inset-bottom));
}
.tabbar__list {
  max-width: 42rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3xs);
  padding: var(--space-2xs) 0;
  min-height: 2.75rem;
  color: var(--color-muted);
  border-top: 2px solid transparent;
}
.tabbar__item svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; }
.tabbar__item span { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.tabbar__item:hover { color: var(--color-ink-2); }
.tabbar__item:active { color: var(--color-accent); }
.tabbar__item[aria-current="page"] { color: var(--color-accent); border-top-color: var(--color-accent); }
/* Changes/Coasts/Settings: real placeholders, visually and semantically
   inert -- not a link that quietly does nothing when tapped. --color-inert
   is a dedicated text token (~3:1 against paper-2): legible as "clearly
   inactive", not the near-invisible hairline-as-text it used to be. */
.tabbar__item[aria-disabled="true"] { color: var(--color-inert); cursor: default; }

/* ---------- Responsive ---------- */
/* Below 26rem the six columns' true content requirement (measured, worst case
   across a full 24-row day) exceeds the table width. Horizontal cell padding
   is the one thing that can give without shrinking a single figure: 2px a side
   buys back ~24px across the row, which is the whole shortfall. Nothing here
   changes type size -- readability at arm's length on a moving boat is the
   point of this table. */
@media (max-width: 25.999rem) {
  .fc tbody th, .fc tbody td { padding-left: 2px; padding-right: 2px; }
  .fc thead th { padding-left: 2px; padding-right: 2px; }
  .fc td:last-child { padding-left: var(--space-2xs); }
  /* The header row has width to spare where the data row does not ("CALL" is
     34px in a 55px column), so it keeps a wider gap -- at 4px the right-aligned
     F and the left-aligned CALL read as one label, "F CALL". */
  .fc thead th:last-child { padding-left: var(--space-xs); }
  .fc tr[data-row-now] th[scope="row"] { padding-left: 0; }
}

@media (min-width: 26rem) {
  .chip { width: 3.4rem; }
}

@media (min-width: 40rem) {
  .topbar { padding-top: var(--space-xl); }
  .fc thead th { font-size: var(--text-sm); }
  .fc tbody th, .fc tbody td { font-size: var(--text-md); }
  /* Room enough to buy back the figure size the narrow layout gave up. */
  .fc .v { font-size: var(--text-md); }
  .force { font-size: var(--text-xl); }
  /* Time needed a fifth of a phone screen for "HH:MM" + its icon; on a wide
     column that same 20% is just a river of white before the first number. */
  .fc col.c-time  { width: 16%; }
  .fc col.c-wind  { width: 19%; }
  .fc col.c-gust  { width: 13%; }
  .fc col.c-sea   { width: 23%; }
}

/* Above ~60rem the app was a 672px column of mobile chrome stretched across
   a laptop window, complete with a full-bleed fixed tab bar pinned to the
   viewport edges. One breakpoint's worth of honest adaptation: the reading
   column gets a little more room, and the tab bar rejoins the document as a
   plain footer nav instead of floating over it. Same destinations, same
   semantics -- no second design. */
@media (min-width: 60rem) {
  .app { max-width: 46rem; padding-bottom: var(--space-2xl); }
  .tabbar {
    position: static;
    background: none;
    border-top: 1px solid var(--color-rule);
    margin-top: var(--space-xl);
  }
  .tabbar__list { max-width: none; }
}

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