/*
 * Skippa website styles.
 *
 * EVERY COLOUR, SPACE, SIZE AND RADIUS BELOW COMES FROM THE APP'S OWN TOKENS
 * (apps/mobile/src/theme/tokens.ts), transcribed into custom properties rather
 * than re-picked by eye. The provenance for each block is in
 * docs/brand-inputs/tokens.md with a file and line for every value. If a token
 * changes in the app, change it here; do not introduce a value that exists in
 * neither place.
 *
 * CLAUDE.md RULE 3 IS THE RULE THIS FILE HAS TO WORK HARDEST TO KEEP.
 * Green, amber and red are reserved EXCLUSIVELY for verdict meaning. On a
 * marketing page the temptation is to use green for a tick, red for a cross, or
 * amber for a highlight, and every one of those would erode the verdict system
 * this product is built on. So:
 *   - --verdict-* is used ONLY inside .verdict-card and the verdict chips.
 *   - Everything decorative uses --accent-*, the indigo-through-cyan tile
 *     accent family, which is deliberately far from all three verdict hues.
 *   - There is no green tick, no red cross and no amber callout anywhere.
 */

:root {
  color-scheme: light;

  /* Dark theme, the app's documented default (themePreference.ts:31). */
  /* KEPT, AND IT IS NOT DECORATION: `check-web` pins this to the app's own `colors.background` in
     tokens.ts, so it is a parity assertion between the site and the app rather than a colour any
     rule paints. Deleting it turned that check red, which is the check doing its job. The LIGHT
     override of it below was the pointless one, and that is the one that went. */
  --bg: #0a1628;
  /* The gradient ends exist in this block too so the contrast check has a dark-theme pair to
     test. There is no gradient here: this block is the base palette and the site is light for
     everyone, so both ends are simply the dark ground. */
  --ground-top: #080f1c;
  --ground-bottom: #080f1c;
  --bg-elevated: #101f33;
  --page-ground: #080f1c;
  --border: #1c2f47;
  --text: #f5f7fa;
  --text-muted: #8ca0b3;

  /**
   * VERDICT INK: the verdict rendered as a WORD, which is what the app does.
   *
   * This file used to say these were deliberately NOT transcribed, because the
   * site rendered every verdict as a filled chip and an unused ink token would
   * be an invitation to colour something green that is not a verdict. That was
   * right while the site had no phone in it. It is wrong now: the phone mock is
   * meant to BE the app, and `VerdictWord.tsx` renders the word in `verdictInk`
   * at 34dp, weight 800, CENTRED, with no pill behind it. Substituting a chip
   * was the owner's "the GO is supposed to be central".
   *
   * These are the app's own dark-theme values and they are NOT the fill
   * palette: ink on navy wants more luminance than a shape does, so the ink GO
   * is brighter than the fill GO. The phone is dark in both themes, so
   * the sunlight ink set is not needed here.
   */
  --verdict-ink-go: #22c55e;
  --verdict-ink-caution: #facc15;
  --verdict-ink-nogo: #ef4444;

  /* Verdict fills. One palette in both themes, by owner decision. */
  /**
   * THE VERDICT MARK'S OWN INKS, WHICH ARE DELIBERATELY NOT THE FILL PALETTE.
   *
   * OWNER DECISION, 3 September 2026, AND IT REVERSES ME. On 2 September I
   * repainted the marks from `--verdict-*` because that is what the app's
   * `verdictMarkTint` uses, and I called the old colours a defect. They were
   * not a defect, they were the softer set the owner wants, and the owner's
   * instruction was: put them back on the site, "I will adjust the app later".
   *
   * SO THE SITE IS AHEAD OF THE APP HERE, ON PURPOSE, AND THAT IS THE ONE
   * THING TO READ BEFORE "FIXING" THIS. `apps/mobile/src/theme/tokens.ts`
   * still paints its marks from the FILL palette, so the two disagree today.
   * A future session comparing them will be tempted to do exactly what I did.
   * Do not. The app is the one that is going to move.
   *
   * THIS IS NOT A RULE 3 LOOSENING. These are the verdict's own colours doing
   * the verdict's own job, on the silhouette that sits directly above the
   * verdict word. What makes it safe is the same thing that makes the fill
   * palette safe: they are used for exactly one meaning and nothing else, and
   * `check-web.mjs` holds them to the mark selectors alone, exactly as it
   * holds the `--verdict-*` fills to the chip and the block. A green anywhere
   * else is still the erosion rule 3 exists to stop, and naming these
   * separately must never become a back door for one.
   */
  /**
   * THE BRAND NAVY. It is already the `theme-color`, the wordmark's own ink and
   * the phone frame's ground; naming it makes the filled controls use the same
   * one instead of a fourth copy free to drift from those three.
   */
  --brand: #0a1628;

  --mark-go: #34d399;
  --mark-caution: #fbbf24;
  --mark-nogo: #f87171;

  /**
   * THE APPROVED WEATHER SUN. **NOTHING ON THIS SITE READS IT TODAY**: it was
   * the ink of the sun inside the GO mark, and Rohan took that sun off on
   * 13 November 2026 (see the GO mark rules, which carry the instruction and
   * the reason). It is kept, in all three palettes, as the ink half of the
   * one-rule restore described there, and because it is the app's own
   * `tokens.weatherIcon.sun` rather than a value invented here.
   *
   * Not a verdict colour and never one, which is the whole reason it has its
   * own name. It follows the theme exactly as the app's does because a
   * near-white ground needs the burnt amber to hold contrast. Measured in the
   * app: dE 25.7 from the CAUTION fill on dark, 31.9 in sunlight, against a
   * floor of 20.
   */
  --mark-sun: #f59e0b;

  --verdict-go: #16a34a;
  --verdict-caution: #facc15;
  --verdict-nogo: #dc2626;
  --verdict-go-border: #15803d;
  --verdict-caution-border: #a16207;
  --verdict-nogo-border: #991b1b;
  --verdict-go-ink: #0b1420;
  --verdict-caution-ink: #0b1420;
  --verdict-nogo-ink: #ffffff;

  /*
   * THE APP'S `verdictInk` PAIR IS DELIBERATELY NOT TRANSCRIBED HERE.
   * It exists so the app can render the verdict WORD as coloured text, and this
   * site renders every verdict as a filled chip instead. Carrying an unused
   * --verdict-*-text token would be an invitation to colour something green
   * that is not a verdict, which is exactly the erosion rule 3 guards against.
   * If the site ever needs verdict text, take the values from
   * docs/brand-inputs/tokens.md section 1.2 and use them on a verdict only.
   */

  /* Tile accents. The decorative family. Never a verdict hue. */
  --accent-wind: #a5b4fc;
  --accent-tide: #67e8f9;
  --accent-buoy: #7dd3fc;
  --accent-window: #c4b5fd;
  --accent-lee: #93c5fd;
  --accent-neutral: #8ca0b3;

  /* Spacing scale. */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;

  /* Type scale. */
  --type-caption: 12px;
  --type-body: 16px;
  --type-subtitle: 18px;
  --type-title: 24px;
  --type-headline: 32px;

  /* Tile geometry. */
  --radius: 16px;
  --tile-padding: 14px;
  --tile-gap: 10px;
  --tile-edge: 2px;

  /*
   * THE ONE THING NOT FROM tokens.ts, AND IT IS DECLARED RATHER THAN SMUGGLED.
   * The app has no font-family token and bundles no font file (see
   * docs/brand-inputs/assets.md section 3), so it renders in the platform system
   * font. The site does the same rather than inventing a brand typeface nobody
   * chose. A real typeface is an owner decision.
   */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/**
 * THE SITE IS LIGHT FOR EVERYONE. Owner instruction, 3 September 2026: "leave
 * it white".
 *
 * IT USED TO FOLLOW THE DEVICE, and that is what caused this. The values above
 * were the navy set and these were an override for `prefers-color-scheme:
 * light`, so a reader with their phone in dark mode got a navy site. The owner
 * saw one and reported the theme as changed; it had not changed, but "it
 * depends on your phone's setting" is not an answer a marketing site should
 * need to give about its own appearance.
 *
 * SO THIS IS NO LONGER A MEDIA QUERY. It is the only palette, and there is no
 * dark path left to drift: a token added to one set and forgotten in the other
 * was a live risk while there were two.
 *
 * THE APP IS NOT AFFECTED AND MUST NOT BE. It has its own dark and sunlight
 * themes, and the PHONE FRAME on this site stays dark always, because it is a
 * picture of an app that is dark. Those tokens are scoped to `.phone` and are
 * deliberately not here.
 */
/**
 * THE GROUND IS WARM SAND, NOT COOL GREY (owner, 5 September 2026: "make the website a little more
 * rich feeling about boating in summer or fishing").
 *
 * THIS IS THE WHOLE CHANGE. No artwork, no new markup, three token values. It was picked over the
 * illustrated options because it is the one that changes the temperature of EVERY page at once,
 * including try.html, and because it is the thing the pictures depend on: a warm sand scene on a
 * cool grey page reads as a foreign object, which is exactly how the launch band failed and had to
 * be reverted. Palette first, pictures second.
 *
 * INK AND CARDS ARE UNTOUCHED. `--text`, `--text-muted` and the white `--bg-elevated` stay as they
 * were, so cards still lift off the ground and nothing gets harder to read. Measured before the
 * change rather than hoped for:
 *
 *     text on bg              16.43:1 cool  ->  16.71:1 warm
 *     text on page-ground     14.99:1       ->  14.62:1
 *     muted on bg              6.81:1       ->   6.92:1
 *     muted on page-ground     6.21:1       ->   6.06:1
 *
 * All far above the 4.5 body minimum, and `check-web` recomputes every pair from these tokens
 * while `a11y.spec.mjs` walks every visible text node on the real pages, so a warm value that did
 * cost a ratio would go red in two places rather than ship.
 */
:root {
  /* THE LIGHT OVERRIDE OF `--bg` IS DELETED, not warmed. It was referenced zero times in
     styles.css, index.html, try.html, 404.html and build-try.mjs. I warmed it in the previous
     commit and quoted its contrast as evidence, which measured a colour nothing paints: the
     16.71:1 figure in that message is real arithmetic about an unused value. `--page-ground` is
     the ground and `--bg-elevated` is the card; those two are what the contrast check actually
     pairs, and both were and are fine. The DARK `--bg` stays, because it is pinned to the app's
     tokens.ts. */
  --bg-elevated: #ffffff;
  --page-ground: #ebe4d6;
  /* The two ends of the scroll gradient. Named tokens rather than literals inside the rule so
     `check-web` can pair text and muted ink against BOTH ends: a gradient nobody checks is a
     contrast regression waiting for the next person who nudges a stop. */
  --ground-top: #faf6ee;
  --ground-bottom: #d6e0e3;
  --border: #d8cfbd;
  --text: #0b1420;
  --text-muted: #48555f;

  /* Ink on a ground rather than a filled shape, so it is read against that
     ground. This is the app's own sunlight value. Unread since the GO sun came
     off on 13 November 2026; kept with the other two, same reason. */
  --mark-sun: #b45309;

  /* No verdict overrides: the fill palette was always one set for both. */
  --accent-wind: #4f46e5;
  --accent-tide: #0e7490;
  --accent-buoy: #0369a1;
  --accent-window: #6d28d9;
  --accent-lee: #1d4ed8;
  --accent-neutral: #48555f;
}

* { box-sizing: border-box; }

/**
 * `hidden` MEANS HIDDEN, ON EVERY ELEMENT.
 *
 * The browser's own `[hidden] { display: none }` is a plain element rule, so
 * ANY `display` an author writes beats it. That is not a corner case here:
 * measured 5 September, **771 elements on the home page, 129 on try.html and 5
 * on 404.html would have stayed visible with `hidden` set on them**, because
 * this stylesheet gives almost everything an explicit display.
 *
 * IT HAS ALREADY SHIPPED ONCE. `.pager` is `display: flex`, so the pager's
 * chevrons were painted with no script running and the attribute did nothing.
 * That was invisible in normal use, because with JavaScript on the attribute is
 * removed milliseconds after load, and it took a no-script test to find. The
 * second instance was found the same way on 5 September: `hidden` on a
 * `.ph-card` does nothing either, and only turned up while negative testing an
 * unrelated guard.
 *
 * `!important` is deliberate and is the only one in this file. A rule this is
 * meant to be un-overridable by accident has to outrank the component rule that
 * caused the bug; anything wanting an element visible should not be setting
 * `hidden` on it. `.pager[hidden]` below is now redundant and stays for its
 * comment, which records the original fault.
 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/**
 * THE HEADER IS STICKY, SO EVERY ANCHOR HAS TO CLEAR IT.
 *
 * Without this, `#ramps` puts the heading exactly under the bar. Measured at
 * 351 before the fix: heading top 57, header bottom 58, on every one of the
 * five section anchors. It reads as landing in the middle of a section rather
 * than at the top of one.
 *
 * IT ONLY BECAME REACHABLE ON A PHONE AN HOUR BEFORE IT WAS FOUND. Below 640px
 * the nav is hidden, so until the Menu button existed there was no way to use
 * these anchors at the width where they break, and the desktop layout happens
 * to clear the bar on section padding alone (105 against 51).
 *
 * `scroll-padding-top` on the scroller rather than `scroll-margin-top` on each
 * target: one declaration covers every anchor, including ones added later, and
 * there is no list to keep in step.
 *
 * 72px IS A FLOOR, NOT A MEASUREMENT, and it is checked rather than trusted:
 * the header is 58px at 351 and 51px at 1280 (the Menu button makes the narrow
 * bar taller), and `pages.spec.mjs` asserts this value clears the header's real
 * height at every project width with room to spare. If the header grows, that
 * test goes red rather than the anchors quietly going wrong.
 */
html { scroll-padding-top: 72px; }

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

/**
 * THE GROUND CHANGES TONE AS YOU SCROLL, AND IT DOES IT IN ONE CONTINUOUS MOVE (owner,
 * 5 September 2026: "It's one colour now and I think it will be better with the tones changing as
 * you scroll").
 *
 * WHY A GRADIENT OVER THE WHOLE DOCUMENT RATHER THAN A TONE PER SECTION. Seven stepped grounds
 * would be seven small hard stops, which is the fault the owner called out an hour ago in its
 * other form: a page that changes in one place and not another. One gradient spanning the whole
 * scroll is a single behaviour from the first pixel to the last, which is what "pick a lane"
 * actually asks for. Nothing on the page is exempt from it and nothing has a ground of its own.
 *
 * IT GOES SAND TO SEA, top to bottom, which is the page's own subject: you start on the beach and
 * end in the water. Four stops rather than two, because a straight two-stop blend over 10,000px
 * spends most of its length in a muddy middle.
 *
 * CONTRAST HOLDS AT BOTH ENDS AND EVERY STOP, measured before it shipped, and `check-web` now
 * pairs ink and muted text against `--ground-top` and `--ground-bottom` as well as the flat
 * `--page-ground`, so a future stop that costs a ratio goes red rather than shipping:
 *
 *     ink on the palest sand   17.16:1      muted on it   7.11:1
 *     ink on the deepest sea   13.77:1      muted on it   5.70:1
 *
 * `--page-ground` is KEPT and still used: it is the flat fallback under the gradient, the colour
 * the sticky showcase band paints to hide copy passing under the pinned phone, and the value the
 * contrast check has always paired against.
 */
body {
  margin: 0;
  background: var(--page-ground);
  background-image: linear-gradient(
    180deg,
    var(--ground-top) 0%,
    #efe7d8 38%,
    #e3e2da 72%,
    var(--ground-bottom) 100%
  );
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--type-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------------------------------------------------------------- header */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page-ground) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  /**
   * VERTICAL ONLY. This element is also a `.wrap`, and `.wrap` sets
   * `padding: 0 var(--space-xl)` for the page's side gutter. The shorthand
   * `padding: var(--space-md) 0` that used to be here has the same specificity
   * and comes later, so it silently ZEROED that gutter: measured at 351, the
   * header's content box ran 0..351 and the wordmark sat hard against the
   * screen edge while every other section on the page was inset by 24px.
   *
   * Invisible above 640px, because `max-width: 1040px` centres the wrap and
   * keeps it off the edges anyway. It only shows on a narrow phone, which is
   * the width nobody was looking at.
   */
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.wordmark { display: block; height: 26px; width: auto; }
/* The site is light for everyone now, so the light cut is simply the one that
   ships. The `on-dark` file is KEPT and still used inside the phone frame,
   which is dark always because it is a picture of the app. */
.wordmark.on-dark { display: none; }
.wordmark.on-light { display: block; }

nav.site-nav {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--type-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.site-nav a { color: var(--text-muted); text-decoration: none; }
nav.site-nav a:hover, nav.site-nav a:focus-visible { color: var(--text); }
@media (max-width: 640px) { nav.site-nav { display: none; } }

/**
 * THE NARROW-SCREEN MENU. Exactly one of these two is ever on the page, so a
 * screen reader never meets the six links twice: `display: none` takes an
 * element out of the accessibility tree, not just out of the picture.
 */
.navmenu { display: none; position: relative; }
@media (max-width: 640px) { .navmenu { display: block; } }

.navmenu > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: var(--type-caption);
  font-weight: 600;
  cursor: pointer;
  /* The default triangle is a browser's idea of a disclosure, not ours. The
     control still announces itself as one either way: this is paint, not
     semantics. */
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu[open] > summary,
.navmenu > summary:hover { color: var(--text); border-color: var(--accent-tide); }

.navmenu-ico { display: block; width: 16px; height: 16px; }
.navmenu-ico svg { width: 100%; height: 100%; display: block; }

/**
 * It hangs BELOW the bar rather than pushing it down, so opening the menu does
 * not shove the whole page and lose the reader's place. `right: 0` anchors it
 * to the button at the right of the bar, and the max-width keeps it from
 * running off a 351dp screen.
 */
.navmenu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  max-width: min(260px, calc(100vw - 2 * var(--space-lg)));
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}
.navmenu-panel a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  /* 44px of touch target on a phone, which is the whole point of this control
     existing at this width. */
  min-height: 22px;
}
.navmenu-panel a:hover,
.navmenu-panel a:focus-visible { background: var(--page-ground); color: var(--text); }

/* ------------------------------------------------------------------ type */

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.6vw, var(--type-headline)); letter-spacing: -0.01em; }
h3 { font-size: var(--type-subtitle); font-weight: 600; }
p { margin: 0; }

.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.small { font-size: var(--type-caption); }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1px solid var(--border); }

.section-head { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-xxl); }
.section-head p { max-width: 64ch; }

/* ------------------------------------------------------------------ hero */

.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 88px); }
.hero-inner { display: flex; flex-direction: column; gap: var(--space-xl); align-items: flex-start; }
/*
 * THE QUESTION IS A SUBHEAD NOW, AND IT IS STILL THE h1.
 *
 * Rohan picked the hero that "leads with the answer" on 18 November 2026, so
 * the app's verdict card is the first thing on the page and "Should I put it in
 * today?" sits under the eyebrow at subhead weight instead of running at
 * display size. The ELEMENT does not change with the type: a page needs exactly
 * one h1 (`pages.spec.mjs` asserts it), the question is still what the page is
 * about, and demoting it to a `<p>` would have cost the document its heading to
 * buy nothing the font size does not already buy.
 */
.hero h1 { max-width: 18ch; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.hero .lede { max-width: 56ch; }

/* The safety line under the call to action, pulled up tight against the button
   because `.hero-inner`'s column gap is sized for the blocks, not for a note
   that belongs to the thing above it. */
.hero-navnote {
  margin: calc(-1 * var(--space-md)) 0 0;
  font-size: var(--type-caption); color: var(--text-muted);
}

/*
 * THE HERO CARD IS A PHOTOGRAPH, so the only job here is to let it keep the
 * app's own proportions and not break the grid.
 *
 * `min-width: 0` for the same reason `.with-phone` needs it on the other
 * column: a grid item floors at its content min-width, and an image's is its
 * intrinsic width, which would hold the hero open at 768px on a narrow phone.
 * The width/height attributes on the tag reserve the right box while the file
 * loads, and `height: auto` is what keeps them from stretching it.
 */
.hero-card { margin: 0; max-width: 480px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-md); }
.hero-card img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}
.hero-card figcaption { font-size: var(--type-caption); color: var(--text-muted); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg);
  font-size: var(--type-caption); color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-tide); flex: none; }

/* ------------------------------------------------------------- verdicts */

.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tile-gap); }
@media (max-width: 800px) { .verdicts { grid-template-columns: 1fr; } }

.verdict-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start;
  /**
   * A GRID ITEM'S `min-width` IS `auto`, WHICH MEANS MIN-CONTENT, and that is
   * the single most common reason a grid refuses to shrink. It never showed
   * here while the marks were `<img>` tags, because an image's min-content is
   * zero and `max-width: 100%` simply squashed it. A masked `<span>` with a
   * fixed height and an `aspect-ratio` has a REAL min-content width (120px for
   * the CAUTION cut), so the track floored at 170px and the page scrolled
   * sideways by 6px at an effective 200% zoom. The reflow test found it, which
   * is the same way the identical fault was found on `.with-phone`.
   *
   * With this, `max-width: 100%` on the mark takes effect and `mask-size:
   * contain` shrinks the glyph inside its box rather than cropping it.
   */
  min-width: 0;
}

/*
 * SIZED BY HEIGHT, NOT WIDTH, AND THAT IS A BUG FIX RATHER THAN A PREFERENCE.
 * The three marks are different aspect ratios in the source artwork (GO is
 * 1012x565, CAUTION 1001x518, NO-GO 1090x1067, see docs/brand-inputs/assets.md).
 * A fixed WIDTH therefore gives them three different heights, which pushed the
 * NO-GO card's chip and heading visibly lower than its neighbours. A fixed
 * height lines the row up; the differing widths are invisible because each mark
 * is left-aligned in its own card.
 */
/*
 * `max-width` AND `object-fit` are both load-bearing, and Playwright found out
 * why. With height fixed and width auto, the image's intrinsic width is derived
 * from its aspect ratio, and it does NOT shrink to fit its column: at a very
 * narrow viewport the widest mark (CAUTION, 359x186) came out about 120px wide,
 * plus 48px of card padding, and pushed the whole card 18px past the page. The
 * fix has to keep the fixed HEIGHT, because that is what lines the three cards
 * up (see the note above), so the width is capped and `object-fit: contain`
 * keeps the artwork undistorted inside the smaller box.
 */
/**
 * EVERY MARK IS A MASK NOW, AND THE COLOUR COMES FROM THE TOKEN.
 *
 * These used to be six pre-coloured PNGs, an `on-dark` and an `on-light` cut
 * per verdict, each carrying its ink baked in. Measured before this change,
 * against the app's `tokens.verdict`: GO shipped `#34d399` where the app
 * paints `--verdict-go`, and CAUTION shipped `#fbbf24` where the app paints
 * `--verdict-caution`. Two of the three verdicts on the page that explains the
 * verdict system were the wrong colour, and nothing could have said so,
 * because a PNG's ink is invisible to a stylesheet.
 *
 * WHAT THE CUTS ACTUALLY ARE, read from `VerdictMark.tsx` rather than assumed:
 * the tinted and navy files are different ARTWORK for a dark and a bright
 * ground, and `verdictMarkTint` paints BOTH from the same palette entry. So
 * the SHAPE follows the theme and the COLOUR does not, which is why the swap
 * below moves `mask-image` and never `background`.
 *
 * GO IS STILL THE EXCEPTION AND IT IS THE APP'S EXCEPTION TOO: it uses the
 * BODY cut in both themes, ignoring the tinted/navy pair entirely. Since
 * 13 November 2026 that is the whole of it, so every mark on this site is now
 * one cut under one verdict ink. See the note above the GO body rule.
 */
.verdict-mark, span.phone-mark {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
}
.verdict-mark { height: 62px; }
span.phone-mark { height: 46px; }

/* ONE LAYER PER MARK. `::after` was the GO sun's layer and nothing stacks on a
   mark any more (13 November 2026), so it is not set up here either: an empty
   absolutely-positioned box over every mark on the page would paint nothing
   and still be there to be found and wondered about. */
.verdict-mark::before, span.phone-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* The artwork's own proportions, so a fixed height gives the right width and
   `contain` never letterboxes the glyph inside its own box. */
.verdict-mark.go, span.phone-mark.go { aspect-ratio: 333 / 186; }
.verdict-mark.caution, span.phone-mark.caution { aspect-ratio: 359 / 186; }
.verdict-mark.nogo, span.phone-mark.nogo { aspect-ratio: 190 / 186; }

/* THE INK IS ON THE SELECTOR'S OWN LINE, deliberately, and every other verdict
   consumer on this page is written the same way. `check-web.mjs` reads the
   stylesheet a LINE at a time with no selector context, so a verdict fill
   sitting alone on its own line cannot be attributed to anything and has to be
   reported as a violation. Keeping the pair together is what lets the guard
   tell a verdict from a decoration. */
.verdict-mark.go::before, span.phone-mark.go::before { background: var(--mark-go); }
.verdict-mark.go::before, span.phone-mark.go::before {
  -webkit-mask-image: url(assets/skippa-verdict-go-body.png);
  mask-image: url(assets/skippa-verdict-go-body.png);
}
/**
 * THE GO MARK HAS NO SUN IN IT (owner instruction, Rohan, 13 November 2026).
 *
 * "The weather icon and the sun built into the GO mark contradict each other.
 * Take the sun off the GO hero image in every state, so the weather icon is
 * the only sky on the card."
 *
 * **THIS REPLACES THE 30 JULY 2026 INSTRUCTION** ("I would also like the sun
 * in the GO icon to be Yellow"), which is what put a second ink in this mark
 * and a second `::after` layer here. The argument that the yellow was safe
 * under rule 3 was that it DEPICTED a sun rather than judging anything; what
 * that argument cannot survive is a REAL forecast sky arriving on the same
 * card. Once the weather unit draws the actual sky under the prediction
 * (CRY-655), a painted sun on the mark is a second, permanent, always-sunny
 * sky sitting directly above a forecast one that says otherwise. The mark is
 * brand art and the forecast is a fact, and the fact wins.
 *
 * The app did this in `apps/mobile/src/components/VerdictMark.tsx`; this is
 * the same change on the website, which had been left behind and was still
 * serving the sun from `main`. The two surfaces draw the same artwork and had
 * no business disagreeing about it.
 *
 * **SO THE MARK IS THE BODY CUT ALONE**, the rule above, painted `--mark-go`
 * exactly as CAUTION takes `--mark-caution` and NO-GO takes `--mark-nogo`.
 * No brand file is redrawn: the sun was 8.0% of the mask's ink (12,398 of
 * 154,468 pixels, measured in the app) and the hull, the water, the cabin and
 * the seven letterforms of the wordmark are untouched.
 *
 * **THE SUN PNG STAYS IN `assets/` AND THAT IS DELIBERATE**, the same decision
 * the app made: deleting an asset is a separate call with its own blast
 * radius. Nothing renders it, and `check-web.mjs` holds both halves of that
 * sentence open.
 *
 * HOW TO PUT THE SUN BACK: restore an `::after` on `.verdict-mark.go,
 * span.phone-mark.go` with `background: var(--mark-sun)` and the sun mask,
 * and put `::after` back in the shared layer rule above. The `--mark-sun`
 * token is still defined in all three palettes for exactly that, and it is
 * the approved weather sun rather than a hex anyone would have to look up.
 */

/* CAUTION and NO-GO are one cut each, and the cut swaps with the ground while
   the ink does not. Nothing is stacked on them, and since 13 November 2026
   nothing is stacked on GO either: all three are one cut under one ink. */
.verdict-mark.caution::before, span.phone-mark.caution::before { background: var(--mark-caution); }
.verdict-mark.nogo::before { background: var(--mark-nogo); }
/**
 * TWO GROUNDS, AND THEY ARE NO LONGER A MEDIA QUERY.
 *
 * The tinted and navy files are different ARTWORK for a dark and a bright
 * ground. Until 3 September 2026 the site followed the device and swapped
 * between them; it is light for everyone now, so the choice is fixed rather
 * than conditional, and it is stated ONCE per surface instead of as a base
 * rule plus an override that contradicts it two lines later.
 *
 *   the PAGE is light, so `.verdict-mark` takes the NAVY cuts
 *   the PHONE is dark always, so `span.phone-mark` takes the TINTED cuts
 *
 * GO is in neither list: it uses the BODY cut on both, which is what the app
 * does too. It had a sun cut stacked over it until 13 November 2026.
 */
.verdict-mark.caution::before {
  -webkit-mask-image: url(assets/skippa-verdict-caution-navy.png);
  mask-image: url(assets/skippa-verdict-caution-navy.png);
}
.verdict-mark.nogo::before {
  -webkit-mask-image: url(assets/skippa-verdict-nogo-navy.png);
  mask-image: url(assets/skippa-verdict-nogo-navy.png);
}
span.phone-mark.caution::before {
  -webkit-mask-image: url(assets/skippa-verdict-caution-tinted.png);
  mask-image: url(assets/skippa-verdict-caution-tinted.png);
}

/*
 * THE VERDICT CHIP. A FILLED PILL WITH INK ON TOP, which is what makes one
 * palette work on both grounds: the colour is not being read against the page.
 * This is the only place --verdict-* fills appear on the whole site.
 */
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: var(--type-caption);
  letter-spacing: 0.1em;
  border: 1px solid transparent;
}
.chip.go { background: var(--verdict-go); color: var(--verdict-go-ink); border-color: var(--verdict-go-border); }
.chip.caution { background: var(--verdict-caution); color: var(--verdict-caution-ink); border-color: var(--verdict-caution-border); }
.chip.nogo { background: var(--verdict-nogo); color: var(--verdict-nogo-ink); border-color: var(--verdict-nogo-border); }

.verdict-card h3 { font-size: var(--type-title); font-weight: 700; }
.verdict-card .said { color: var(--text-muted); }

/* --------------------------------------------------------------- tiles */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tile-gap); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--tile-padding);
  padding-left: calc(var(--tile-padding) + var(--tile-edge) + 6px);
  overflow: hidden;
  display: flex; flex-direction: column; gap: var(--space-xs);
  min-height: 118px;
}
/* The accent edge down the leading side. Trim, not a rule. */
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--tile-edge); background: var(--tile-accent, var(--accent-neutral));
}
.tile .eyebrow { color: var(--tile-accent, var(--accent-neutral)); }
.tile .face { font-size: var(--type-body); line-height: 19px; font-weight: 700; }
.tile .sub { font-size: var(--type-caption); color: var(--text-muted); }

.t-wind   { --tile-accent: var(--accent-wind); }
.t-tide   { --tile-accent: var(--accent-tide); }
.t-buoy   { --tile-accent: var(--accent-buoy); }
.t-window { --tile-accent: var(--accent-window); }
.t-lee    { --tile-accent: var(--accent-lee); }
.t-plain  { --tile-accent: var(--accent-neutral); }

/* --------------------------------------------------------------- prose */

.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xxl); }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

.point { display: flex; flex-direction: column; gap: var(--space-sm); }
.point h3 { color: var(--text); }
.point p { color: var(--text-muted); }

/* --------------------------------------------------------------- ramps */

.ramp-table { width: 100%; border-collapse: collapse; font-size: var(--type-caption); }
.ramp-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.ramp-table th, .ramp-table td { padding: var(--space-md) var(--space-lg); text-align: left; white-space: nowrap; }
.ramp-table thead th {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 700;
}
.ramp-table tbody tr + tr td { border-top: 1px solid var(--border); }
.ramp-table td.name { font-weight: 700; font-size: var(--type-body); color: var(--text); }
.ramp-table td { color: var(--text-muted); }

/**
 * MAKE THE WHOLE TABLE FIT ON A PHONE.
 *
 * Measured on the live site at 351dp with font_scale 1.15, which is the
 * owner's own cover display: the table was 614px wide in a 301px box, so
 * **51% of it was hidden**, and the reader saw Ramp and Most exposed to with
 * no hint that Open water, Sheltered from and Pontoon existed at all. The
 * right edge is a clean cut with no fade and a touch device shows no
 * scrollbar, so it reads as a two column table rather than a clipped five
 * column one.
 *
 * `.ramp-scroll` was doing its job and the page never scrolled sideways, which
 * is why no file check and no overflow test caught this. It is a usability
 * fault, not a layout bug, and the only way to see it was to look at the
 * served page at the width the owner actually uses. Rule 14, third instance.
 *
 * SHRINKING IT WAS TRIED FIRST AND DOES NOT WORK, which is why it stacks
 * instead. Cutting the cell padding took the table from 614px to 402px, still
 * 101px too wide. Measured per column, the width is spent on HEADERS rather
 * than data: "Sheltered from" occupies 103px to display the word "East", and
 * "Pontoon" 73px to display "Yes". Five labelled columns do not fit 301px, and
 * the only ways to force them are inventing shorter headers or dropping
 * columns, which are both losses dressed as fixes.
 *
 * SO EACH RAMP BECOMES A BLOCK. The label comes from `data-label`, which is
 * generated from the table's own `<th>` text, so the two cannot drift; the
 * `<thead>` is hidden VISUALLY but left in the accessibility tree, so the
 * table is still a table to a screen reader. Nothing is hidden from anyone.
 */
@media (max-width: 560px) {
  .ramp-scroll { border-radius: var(--radius); }
  /* Visually hidden, still announced. `display: none` would remove the column
     headers from assistive tech, which is the opposite of the intent. */
  .ramp-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .ramp-table, .ramp-table tbody, .ramp-table tr, .ramp-table td { display: block; }
  .ramp-table tr { padding: var(--space-md) var(--space-lg); }
  .ramp-table tbody tr + tr { border-top: 1px solid var(--border); }
  .ramp-table tbody tr + tr td { border-top: 0; }

  .ramp-table td {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: 2px 0;
    white-space: normal;
  }
  .ramp-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    flex: 0 0 auto;
  }
  /* The name is the block's heading, so it takes no label and sits alone. */
  .ramp-table td.name { font-size: var(--type-subtitle); padding-bottom: var(--space-sm); }
  .ramp-table td.name::before { content: none; }
}
.sector { color: var(--accent-lee); font-weight: 700; }

/* -------------------------------------------------------------- privacy */

.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-window);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
}

.rule-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-md); }
.rule-list li { display: flex; gap: var(--space-md); color: var(--text-muted); }
.rule-list li::before {
  content: ""; flex: none; width: 3px; align-self: stretch; border-radius: 2px;
  background: var(--accent-buoy);
}

/* --------------------------------------------------------- ramp panels */

/**
 * ONE PANEL PER RAMP, ALL EIGHT IN THE PAGE, AND THE DEFAULT IS TO SHOW THEM.
 *
 * That default is the whole design. `try.js` sets `data-selecting` on the
 * section, and only then does anything hide: with no JavaScript, or if the
 * module fails to load, the reader gets all eight in order under their own
 * headings, which is exactly what the eight ramp pages were before they merged
 * into this one. Hiding by default and revealing with script would put the
 * site's only substantive content behind a fetch, which is what the merge had
 * to avoid. `nojs.spec.mjs` asserts all eight are visible with scripting off.
 */
.ramp-panel { display: block; }
[data-ramp-panels][data-selecting] .ramp-panel { display: none; }
[data-ramp-panels][data-selecting] .ramp-panel[data-current] { display: block; }

/* Without script the panels run one after another, so they need a rule between
   them. With script only one is ever shown and the rule would be a stray line
   under the last thing on the page. */
[data-ramp-panels]:not([data-selecting]) .ramp-panel + .ramp-panel {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xxl);
  margin-top: var(--space-xxl);
}

/* ---------------------------------------------------------- store CTAs */

/**
 * THE BADGES, AND THE REASON THE INTERACTIVE HALF IS ON `a.store` ONLY.
 *
 * They ship as `<p class="store">` because there is nowhere to send anyone
 * yet. If the hover, the cursor and the lift lived on `.store`, the badge
 * would advertise a tap it cannot honour, which is a worse lie than "coming
 * soon" told plainly. Hanging every affordance off the `a` means the markup
 * decides, and swapping the tag is the whole change when the links arrive.
 *
 * Sized against the real thing rather than guessed: Google's and Apple's own
 * badges are about 160 by 47 at 1x, so the minimum below keeps ours in the
 * same family and the flex wrap keeps two of them side by side at 351.
 */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 152px;
  padding: 10px var(--space-lg) 10px var(--space-md);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  /* No margin collapse against the surrounding prose: these are controls. */
  margin: 0;
}

.store-ico { flex: none; width: 22px; height: 22px; display: block; color: var(--text-muted); }
.store-ico svg { width: 100%; height: 100%; display: block; }

.store-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.store-text em { font-style: normal; font-size: 11px; letter-spacing: 0.02em; }
.store-text b { color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }

/* The whole of the tappable behaviour, and it applies to nothing today. */
a.store { text-decoration: none; cursor: pointer; transition: border-color 140ms ease, transform 140ms ease; }
a.store:hover, a.store:focus-visible { border-color: var(--accent-tide); transform: translateY(-1px); }
a.store .store-ico, a.store:hover .store-text em { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  a.store { transition: none; }
  a.store:hover, a.store:focus-visible { transform: none; }
}

.store-note { margin-top: var(--space-md); font-size: var(--type-caption); }

/* --------------------------------------------------------------- footer */

/**
 * THE FOOTER RESERVES A GUTTER FOR THE PAGER, WHICH IS THE ONE CASE TUCKING CANNOT FIX.
 *
 * The controls tuck away while the reader scrolls down and come back when they stop, which clears
 * the overlap everywhere except at the very bottom: there the reader IS stopped, so the controls
 * are correctly visible, and they sat on the licence line. MEASURED at the true end of the page:
 * `p.small` was underneath at 351, 690, 900 and 1100, and only 1280 was clear.
 *
 * 44px of control, plus the bottom offset it is pinned at, plus a gap.
 */
footer.site {
  border-top: 1px solid var(--border);
  padding: var(--space-xxl) 0 calc(var(--space-xxl) + 44px + clamp(12px, 2.4vw, 24px));
  color: var(--text-muted);
  font-size: var(--type-caption);
}
.foot-rows { display: flex; flex-direction: column; gap: var(--space-md); }
.status-line { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }

a.inline { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a.inline:hover { color: var(--accent-tide); }

:focus-visible { outline: 2px solid var(--accent-tide); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------- ramp pages */

/*
 * THE FETCH ROSE. Stroked outlines and one accent fill, no verdict hue
 * anywhere: this is a picture of geography, not a judgement about it. Rule 3's
 * DEPICTION versus JUDGEMENT line, and the same reasoning that lets the app's
 * map glyph carry map colours.
 */
.rose-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xxl);
  align-items: start;
}
@media (max-width: 760px) { .rose-layout { grid-template-columns: 1fr; } }

.rose { width: 260px; height: 260px; max-width: 100%; display: block; }
.rose .ring { fill: none; stroke: var(--border); stroke-width: 1; }
.rose .spoke { stroke: var(--border); stroke-width: 1; }
.rose .rose-fill {
  fill: color-mix(in srgb, var(--accent-lee) 26%, transparent);
  stroke: var(--accent-lee);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.rose .rose-label {
  fill: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  font-family: var(--font);
}

.rose-table { overflow-x: auto; }
.rose-table .ramp-table { background: transparent; }
.rose-table .ramp-table th[scope="row"] {
  color: var(--text);
  font-weight: 700;
  font-size: var(--type-caption);
  width: 4.5em;
}
.rose-table .barcell { width: 45%; min-width: 90px; }
.rose-table .bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--accent-lee);
  min-width: 2px;
}

.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--tile-gap); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }
.fact {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--tile-padding);
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.fact .face { font-size: var(--type-body); line-height: 19px; font-weight: 700; }

.ramp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tile-gap); }
@media (max-width: 900px) { .ramp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ramp-grid { grid-template-columns: 1fr; } }
.ramp-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-xs);
  text-decoration: none; color: inherit;
  min-height: 120px;
}
.ramp-card:hover, .ramp-card:focus-visible { border-color: var(--accent-lee); }
.ramp-card-name { font-size: var(--type-subtitle); font-weight: 700; color: var(--text); }
.ramp-card .sub { font-size: var(--type-caption); color: var(--text-muted); }

/* ------------------------------------------------- the demonstration tool */

.field-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tile-gap); }
@media (max-width: 900px) { .field-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--tile-padding);
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.field select, .field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 700;
  padding: var(--space-xs) 0;
  width: 100%;
  min-width: 0;
  border-radius: 0;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-elevated); color: var(--text); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent-tide); outline-offset: 2px; }

.with-unit { display: flex; align-items: baseline; gap: var(--space-xs); }
.with-unit .unit { color: var(--text-muted); font-size: var(--type-caption); flex: none; }

/**
 * THE PRIMARY BUTTON IS THE BRAND NAVY, NOT A BLUE.
 *
 * Owner, 4 September 2026: "the use of blue on white does not work with the
 * pallet. remove the blue button". A royal `--accent-lee` panel on a near-white
 * ground was the loudest thing on the page and belonged to no part of the
 * brand: the wordmark is navy, `theme-color` is navy, and the phone frame is
 * navy. The accents are for small marks on tiles, and blowing one up to a
 * full-size filled control is where it stopped working.
 *
 * `--brand` rather than a raw hex, because it is the same navy those three
 * already use and a fourth copy of it is a fourth chance to drift.
 *
 * IT IS STILL NOT A VERDICT COLOUR, which is the constraint that governs any
 * filled control on this site. A green button says "go" and that is the
 * verdict's job alone.
 */
button.primary {
  margin-top: var(--space-xl);
  background: var(--brand);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 800;
  cursor: pointer;
}
button.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: 0.6; cursor: progress; }

/*
 * PROBLEMS AND FAILURES ARE NOT RED, and that is rule 3 rather than an
 * oversight. Red is the NO-GO fill: a red validation message beside a verdict
 * chip is the verdict palette doing non-verdict work, which is exactly the
 * erosion the rule exists to stop. A bordered panel carries "something is
 * wrong" perfectly well without borrowing the meaning.
 */
.problems {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-window);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: var(--type-caption);
}

.failure {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-window);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
}

#result { margin-top: var(--space-xxxl); }

.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-lg);
  align-items: flex-start;
}
.result-card .chip { font-size: var(--type-subtitle); padding: 10px 22px; }
ul.reasons { margin: 0; padding-left: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); color: var(--text); }
ul.reasons li { line-height: 1.5; }

.facts .fact .sub { font-size: var(--type-caption); color: var(--text-muted); }

/*
 * THE WARNING STRIP. No verdict colour in either state, deliberately: the
 * app's own contract says a non-gating banner must NEVER be amber or red
 * because those mean CAUTION and NO-GO, and a warning is not a verdict. The
 * gating case is separated by WEIGHT and WORDING rather than by hue.
 */
.warning-strip {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-neutral);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.warning-strip.gating { border-left-width: 6px; border-left-color: var(--accent-window); }
.warning-strip.gating > p:nth-of-type(1) { color: var(--text); }
pre.warning-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font);
  font-size: var(--type-caption);
  line-height: 1.5;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: var(--space-md);
}

/* The home page's own call to action, changed with the one above rather than
   left behind. They are the same control in two places, and shipping one navy
   and one blue would be a worse inconsistency than either colour alone. */
a.cta {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-xl);
  font-weight: 800;
  text-decoration: none;
}
a.cta:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------- outlook */

/*
 * THE HOUR BLOCKS CARRY VERDICT COLOUR, AND THAT IS THE RULE OBEYED RATHER
 * THAN BENT: each block IS a verdict for that hour, which is the same use the
 * app's own planner heat map makes. `.hour` is therefore the SECOND and last
 * selector allowed to consume the verdict palette, and check-web.mjs enforces
 * exactly that list.
 *
 * Colour is never the only channel. Every block carries its verdict as text in
 * its accessible label, because a strip read by hue alone fails precisely the
 * people a verdict system exists to protect.
 */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tile-gap); }
@media (max-width: 800px) { .days { grid-template-columns: 1fr; } }

.day {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--tile-padding);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.day-window { font-size: var(--type-caption); font-weight: 700; color: var(--text); }

.hour-strip { display: flex; flex-wrap: wrap; gap: 2px; }
.hour {
  display: block;
  width: 12px; height: 20px;
  border-radius: 2px;
  flex: none;
}
.hour.go { background: var(--verdict-go); }
.hour.caution { background: var(--verdict-caution); }
.hour.nogo { background: var(--verdict-nogo); }
/* An hour the engine did not score. Deliberately NOT a verdict colour and
   deliberately not a fill: a hollow, bordered block reads as "nothing here"
   rather than as a reading, which is the same fill-versus-outline separation
   the app's icon exceptions lean on. It must never be mistaken for GO. */
.hour.unknown {
  background: transparent;
  border: 1px dashed var(--border);
  box-sizing: border-box;
}

.legend { display: flex; gap: var(--space-lg); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.legend-item {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-size: var(--type-caption); color: var(--text-muted); font-weight: 700;
}
.legend-item .hour { width: 12px; height: 12px; }

/*
 * THE OTHER-RAMP CHIPS. Neutral, never verdict coloured, and never ordered by
 * anything: these are navigation, not a recommendation. Which ramp is sheltered
 * today is a call the engine makes with the whole picture (see renderOtherRamps
 * in try.js for why this page refuses to guess at it).
 */
.ramp-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
button.ramp-chip {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font);
  font-size: var(--type-caption);
  font-weight: 700;
  cursor: pointer;
}
button.ramp-chip:hover { border-color: var(--accent-lee); }

/* ---------------------------------------------------------- the phone */

/*
 * SHOWING THE APP AS AN APP.
 *
 * Owner instruction, 30 August 2026: "It is an app, show it as one on the
 * website." The site was describing the product in prose while rendering its UI
 * as loose web cards, so a visitor had no idea what they would actually be
 * holding.
 *
 * **THE SCREEN IS THE REAL COMPONENTS, NOT A PICTURE OF THEM.** The verdict
 * mark, the verdict word and the tiles inside this frame are the same markup
 * and the same tokens the rest of the site uses, so they cannot drift from the
 * design system into a stale screenshot. A screenshot would also have to be
 * recaptured every time the app moved, and would not respond to the theme.
 *
 * The frame stays DARK in both themes, deliberately, because the app's own
 * documented default is the dark marine panel and that is what a skipper sees.
 */
.phone {
  /**
   * THE MAP GLYPH'S TWO COLOURS, rule 3's fourth exception, copied from the
   * app's dark tokens rather than picked here (`theme/tokens.ts`: park
   * `#a5c48a`, pin `#db2777`). They are deliberately NOT the familiar signal
   * green and fire-engine red, because the owner's own constraint on that
   * exception was "do not touch the warning colours": the sage measures dE 38.4
   * from the GO fill and the rose dE 46.5 from NO-GO.
   */
  --map-park: #a5c48a;
  --map-pin: #db2777;

  /* THE PHONE IS ALWAYS DARK INSIDE, so its sun is pinned to the dark value
     and must not follow the page theme. The app picks its weather-icon palette
     from the APP's theme, and the app inside this frame is on navy in both of
     the site's schemes; letting it swap would paint the sunlight amber onto a
     navy card, which is neither theme's answer. Unread since the GO sun came
     off on 13 November 2026, and pinned here for whatever reads it next. */
  --mark-sun: #f59e0b;

  --phone-bg: #0a1628;
  --phone-ground: #080f1c;
  --phone-tile: #101f33;
  --phone-border: #1c2f47;
  --phone-text: #f5f7fa;
  --phone-muted: #8ca0b3;

  /*
   * THE PHONE CARRIES ITS OWN ACCENTS, and this is a bug fix rather than
   * duplication. The frame is deliberately dark in BOTH themes, but the tile
   * labels were reading --accent-* from the page, so in the light theme they
   * took the DEEPENED values meant for a near-white ground: dark indigo on dark
   * navy, which the contrast test failed outright. A component that fixes its
   * own background has to fix its own foregrounds with it.
   */
  --accent-wind: #a5b4fc;
  --accent-tide: #67e8f9;
  --accent-buoy: #7dd3fc;
  --accent-window: #c4b5fd;
  --accent-lee: #93c5fd;
  --accent-neutral: #8ca0b3;

  /*
   * ONE WIDTH VARIABLE DRIVES THE WHOLE HANDSET. Every part below is
   * proportional to it, so the phone can be 264px in the hero and 300px as the
   * centrepiece of a chapter without a second set of numbers to keep in step.
   */
  /*
   * ONE LAYOUT WIDTH FOR EVERY PHONE ON THE PAGE, and this is why.
   *
   * The frame height comes from the content, so a phone laid out NARROWER than
   * another carrying the same screens comes out LONGER. The hero sat at 264
   * while the walkthrough moved to 348, and once both gained the warning, the
   * name, two buttons and the tiles, the hero stretched to 2.47 tall per wide
   * against the walkthrough's 2.10. Same content, two shapes, one of them not
   * a phone.
   *
   * So the width is fixed here and DISPLAY size is a transform, never a
   * different layout width. --phone-display is the only thing a caller sets.
   */
  --phone-w: 348px;
  /**
   * THE LARGEST DISPLAY SCALE THAT STILL FITS THE VIEWPORT.
   *
   * Removing `max-width: 100%` (to stop the content rewrapping) also removed
   * the thing that kept the frame inside a narrow window, and the WCAG 200%
   * zoom test caught it immediately: at a 176px viewport the phone occupied
   * 264px and the page scrolled sideways. Clamping the SCALE rather than the
   * width keeps one layout width everywhere, so nothing rewraps, and still
   * guarantees the frame fits.
   */
  --phone-fit: calc((100vw - 2 * var(--space-xl)) / var(--phone-w));
  --phone-display: min(0.76, var(--phone-fit));
  --phone-pad: calc(var(--phone-w) * 0.034);

  /**
   * THE HANDSET'S PROPORTIONS ARE A FLOOR, NOT AN ACCIDENT OF ITS CONTENT.
   *
   * Measured before this existed: 1.40 tall for every 1 wide in the
   * walkthrough and 1.56 in the hero. A real phone of this generation is
   * **19.5:9, which is 2.167**, so the frame was reading as a squat tablet.
   * The cause was that the height came from whichever SCREEN was tallest, and
   * a screen is as tall as its text happens to be.
   *
   * So the screen carries a MIN height derived from its own width, and the
   * width used is the frame minus its two bezels rather than the frame itself,
   * or the ratio would be wrong by the bezel every time `--phone-w` changed.
   *
   * It is a MINIMUM rather than an `aspect-ratio`, deliberately: `.phone-screen`
   * is `overflow: hidden`, so a hard ratio would CLIP a screen whose content
   * ran long instead of letting the frame grow. A slightly too tall phone still
   * reads as a phone; a clipped one reads as a bug.
   */
  --phone-aspect: 2.167;

  /**
   * THE FRAME'S UNTRANSFORMED HEIGHT, WRITTEN AS ARITHMETIC RATHER THAN GUESSED.
   *
   * The negative margin below has to give back exactly the height the transform
   * is not using, and that is a HEIGHT, so it needs the frame's own height in
   * px. This is the same expression `.phone-screen` uses for its min-height,
   * plus the two bezels, which is why it agrees with the browser: it computes
   * to 726.5 against a measured `offsetHeight` of 726.
   */
  --phone-natural: calc(2 * var(--phone-pad) + (var(--phone-w) - 2 * var(--phone-pad)) * var(--phone-aspect));

  width: var(--phone-w);
  /* It must be able to shrink, or it pushes the page sideways at 200% zoom on
     a narrow phone. Caught by the reflow test, not by looking. */
  max-width: 100%;
  min-width: 0;
  border-radius: calc(var(--phone-w) * 0.145);
  padding: var(--phone-pad);
  background: linear-gradient(160deg, #2a3b52 0%, #0d1522 22%, #05080f 60%, #16233a 100%);
  /*
   * THE BEZEL IS A GRADIENT, NOT A FLAT FILL, and that is most of what makes a
   * silhouette read as hardware rather than a rounded rectangle: real anodised
   * metal catches light on two edges. The inset highlight is the screen glass
   * lip, the outer shadow is the phone sitting above the page.
   */
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;

  /*
   * Display size, never layout size. The negative margins give back the space
   * the transform is not using, so the frame occupies what it appears to.
   *
   * THE VERTICAL ONE MUST NOT BE A PERCENTAGE, AND THAT IS THE WHOLE BUG THIS
   * LINE ONCE CARRIED. A percentage margin resolves against the containing
   * block's WIDTH on every side, including top and bottom, so `100%` here gave
   * back a fraction of the COLUMN WIDTH instead of a fraction of the frame's
   * height. It happened to look plausible and it was never right: measured on
   * develop it left 101px of dead air under the hero phone at 351 and 220px
   * under the walkthrough phone, and the amount changed with the viewport
   * because the column width did. Nothing was red; the ratio guard measures the
   * VISUAL box, which was correctly shaped the whole time, and the wasted space
   * sits outside the frame where no test was looking.
   *
   * The horizontal pair below are percentages of a width by rights, but they
   * are written against `--phone-w` for the same reason: one source for the
   * number, and no dependence on what the parent happens to be.
   */
  transform: scale(var(--phone-display));
  transform-origin: top center;
  max-width: none;
  margin-bottom: calc((var(--phone-display) - 1) * var(--phone-natural));
  margin-left: calc((var(--phone-display) - 1) * var(--phone-w) / 2);
  margin-right: calc((var(--phone-display) - 1) * var(--phone-w) / 2);
}

.phone-screen {
  position: relative;
  /* The hardware proportion, floored. See --phone-aspect above. */
  min-height: calc((var(--phone-w) - 2 * var(--phone-pad)) * var(--phone-aspect));
  border-radius: calc(var(--phone-w) * 0.115);
  background: var(--phone-ground);
  padding: calc(var(--phone-w) * 0.045) calc(var(--phone-w) * 0.045) calc(var(--phone-w) * 0.062);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--tile-gap);
}

/**
 * A SCREEN THAT CARRIES A SCROLL REGION IS CAPPED AT THE HANDSET HEIGHT, NOT
 * ONLY FLOORED BY IT.
 *
 * `min-height` above is a FLOOR, so a screen grows when its content wants
 * more. In the hero that never showed, because those screens are given an
 * explicit height. In the walkthrough it did: filling the planner with four
 * ramps took its screen from 703px to 858px, and because the screens are grid
 * stacked and the row sizes to the TALLEST, the whole walkthrough phone grew
 * 22% and the section's composition went with it. MEASURED, not guessed.
 *
 * **THE CAP IS SCOPED TO SCREENS THAT CAN ABSORB IT, WHICH IS THE WHOLE
 * CARE HERE.** A blanket `max-height` on `.phone-screen` would clip the
 * verdict screen at deep zoom, where the tile grid drops to one column and the
 * content legitimately gets taller with nothing to scroll it. `:has(.ph-list)`
 * caps exactly the screens that own a scroll region, so the overflow lands
 * inside the list where it reads as a list continuing, and every other screen
 * keeps the floor-only behaviour it has always had.
 */
.phone-screen:has(.ph-list) {
  max-height: calc((var(--phone-w) - 2 * var(--phone-pad)) * var(--phone-aspect));
}

/* The status strip: enough to read as a phone, no invented numbers. */
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--phone-text); font-size: calc(var(--phone-w) * 0.038); font-weight: 700;
  padding: calc(var(--phone-w) * 0.008) calc(var(--phone-w) * 0.023) calc(var(--phone-w) * 0.019);
}
/*
 * THE DYNAMIC ISLAND. It was a 4px grey bar, which reads as a seam rather than
 * as a phone. A dark pill sitting IN the status row, with a lens dot, is the
 * single strongest cue that a rectangle is a handset.
 */
.phone-notch {
  width: calc(var(--phone-w) * 0.30);
  height: calc(var(--phone-w) * 0.085);
  border-radius: 999px;
  background: #000;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: calc(var(--phone-w) * 0.022);
  flex: none;
}
.phone-notch::after {
  content: "";
  width: calc(var(--phone-w) * 0.032);
  height: calc(var(--phone-w) * 0.032);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #29405e 0%, #0b1119 70%);
}
/* The home indicator, on the bottom edge of the glass. */
.phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--phone-w) * 0.018);
  transform: translateX(-50%);
  width: calc(var(--phone-w) * 0.32);
  height: calc(var(--phone-w) * 0.014);
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.32);
}

.phone-card {
  background: var(--phone-bg);
  border: 1px solid var(--phone-border);
  border-radius: var(--radius);
  padding: var(--tile-padding);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.phone-ramp { color: var(--phone-muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
/* THE MARK'S GEOMETRY, ITS CUTS AND ITS INKS ARE ALL DEFINED WITH
   `.verdict-mark`, ONE BLOCK, because the two are the same component at two
   sizes. See the note there. The only thing that differs here is the height,
   which is set alongside it. The two cuts share one geometry, so the sun lands
   exactly in its hole in the body cut rather than on top of it: an overlap
   would blend the inks at every edge, which is why the app asserts the cuts
   are disjoint. */
/**
 * THE VERDICT WORD, from VerdictWord.tsx: 34dp, weight 800, letter-spacing
 * 0.5, textAlign center, coloured with verdictInk and NOT filled. The whole
 * hero tile is `alignItems: center` in the app, so the mark, the word and both
 * reason lines share one centre line.
 */
.phone-word {
  display: block;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.05;
}
.phone-word.go { color: var(--verdict-ink-go); }
.phone-word.caution { color: var(--verdict-ink-caution); }
.phone-word.nogo { color: var(--verdict-ink-nogo); }
.phone-reason { color: var(--phone-text); font-size: 11px; font-weight: 600; line-height: 1.4; text-align: center; }
/* RampCard renders TWO reasons: the first at body weight, the second muted and
   smaller. The site was showing one sentence stitched from both. */
.phone-reason2 { color: var(--phone-muted); font-size: 9px; line-height: 1.4; text-align: center; }

.phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-tile {
  position: relative;
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 12px;
  padding: 8px 8px 8px 11px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 1px;
}
.phone-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tile-accent, var(--accent-neutral)); }
.phone-tile .k { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--tile-accent, var(--accent-neutral)); }
.phone-tile .v { font-size: 12px; font-weight: 700; color: var(--phone-text); line-height: 1.25; }
/* TileSub: the line under the value. RampCard renders one on every tile. */
.phone-tile .s { font-size: 8px; color: var(--phone-muted); line-height: 1.3; margin-top: 1px; }

/**
 * THE TAB BAR IS ITS OWN SURFACE, NOT A ROW OF WORDS ON THE PAGE.
 *
 * From `app/(tabs)/_layout.tsx`: `tabBarStyle.backgroundColor` is
 * `backgroundElevated`, NOT the screen ground, with a `borderTopColor`, and
 * every tab carries a `tabBarIcon` above its label. The site had bare text
 * sitting directly on the screen, which is what the owner meant by the buttons
 * not being nested as they are on the phone.
 *
 * The icons are stroked outlines only, which keeps them clear of rule 3: a
 * verdict is always a fill, and these are line drawings of an anchor, a
 * calendar, a boat and an overflow dot row.
 */
.phone-tabs {
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--phone-tile);
  border-top: 1px solid var(--phone-border);
  border-radius: 0 0 10px 10px;
  /* Pulled out to the screen's edges, because a tab bar is full bleed on a
     phone and inset padding would make it look like a card. */
  margin: 2px calc(var(--phone-w) * -0.045) 0;
  padding: 7px 4px calc(var(--phone-w) * 0.05);
  color: var(--phone-muted); font-size: 9px; font-weight: 700;
  /**
   * THE BAR IS PINNED TO THE BOTTOM EDGE ON EVERY SCREEN, NOT ONLY IN THE
   * WALKTHROUGH. Owner, 5 September: "the menu items are in the middle of the
   * screen. Make sure they are always nested on the bottom as with the app."
   *
   * `margin-top: auto` in the screen's flex column is what does it. It lived
   * under `.showcase[data-enhanced]` alone from `300dd25`, so when the hero
   * gained its own planner and ramps screens in `88d4f7a` they inherited
   * nothing and their bars floated wherever the content ended. MEASURED on the
   * live page before the fix: the hero planner left **126px of the 534px
   * screen empty below the bar**, a quarter of the glass, at 1280 and at 351
   * alike. The verdict screen looked right only by accident, because its
   * `.hero-window` is `flex: 1` and had already eaten the slack.
   *
   * On a screen whose content overflows this collapses to zero, so it is safe
   * everywhere and there is no width at which it has to be undone.
   */
  margin-top: auto;
}
.phone-tabs span {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1 1 0;
}
.phone-tabs .on { color: var(--phone-text); }
/**
 * THE ICON SIZE IS THE APP'S OWN PROPORTION, not a number that looked right.
 *
 * `app/(tabs)/_layout.tsx` draws every `tabBarIcon` at **24dp**, and the
 * owner's phone is **351dp** wide (rule 14), so an icon is 6.84% of the screen
 * it sits on. The glass here is `--phone-w` less two pads, or 0.932 of it, so
 * the same proportion is `0.932 * 0.0684 = 0.0638` of `--phone-w`: 22.2px at
 * the 348px frame. It was a flat 15px, which is 4.6% of the glass, a THIRD
 * under the app, and at the 0.76 display scale that is 11.4 real pixels of a
 * four-stroke anchor. Owner: "make the menu icons a little larger and more
 * clear as they are on the phone."
 *
 * Sizing it off `--phone-w` rather than in px is what keeps it honest at the
 * walkthrough's larger scale and inside the OG card, which sets its own frame
 * width. The label moves 8px to 9px in the same breath so the pair keeps the
 * app's ratio (24/10) rather than becoming an icon with a caption.
 */
.tab-ico {
  display: block;
  width: calc(var(--phone-w) * 0.0638);
  height: calc(var(--phone-w) * 0.0638);
}
.tab-ico svg { width: 100%; height: 100%; display: block; }

/**
 * THE RAMP NAME AND ITS CONFIDENCE, which the site had dropped entirely for a
 * generic "Your ramp" label. RampCard.tsx renders the name brighter with
 * "{confidence} confidence" beside it, moved off the name on 30 July.
 */
.phone-titlerow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 0 2px;
}
.phone-rampname { color: var(--phone-text); font-size: 13px; font-weight: 700; }
.phone-confidence { color: var(--phone-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/**
 * THE TWO CONTROLS UNDER THE VERDICT: "Drive to {ramp}" and the trip row's
 * "Launching from here". Both were missing, and they are most of what makes
 * the card an app rather than a readout.
 *
 * **NEITHER IS EVER GREEN.** Rule 3's drive-glyph exception is explicit that
 * the drive BUTTON stays neutral, because a filled green button beside a
 * verdict would be a second opinion on it.
 */
.phone-btn {
  appearance: none;
  font: inherit;
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--phone-border);
  background: var(--phone-tile);
  color: var(--phone-text);
  font-size: 10px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
  cursor: default;
}
.phone-btn.ghost { background: transparent; color: var(--accent-lee); }

/* ------------------------------------------------ more phone screen parts */

.phone-head {
  color: var(--phone-muted); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700; margin: 0 2px 2px;
}
.phone-note {
  color: var(--phone-muted); font-size: 10px; line-height: 1.4;
  margin: 2px 2px 0;
}

/* The planner grid. Six days by five bands of the day. */
.phone-week { display: flex; flex-direction: column; gap: 4px; }
.pw-head, .pw-row { display: grid; grid-template-columns: 26px repeat(5, 1fr); gap: 4px; align-items: center; }
.pw-head span {
  font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--phone-muted); text-align: center;
}
.pw-day { font-size: 9px; font-weight: 700; color: var(--phone-muted); }
/*
 * A PLANNER BLOCK IS A VERDICT, so it takes a verdict colour. Rule 3 is
 * obeyed rather than bent here: this is the same use the app's own planner
 * heat map makes of the palette, and `check-web.mjs` permits the verdict
 * fills to reach `.chip`, `.hour` and `.pw-b` and nothing else.
 */
.pw-b { display: block; height: 14px; border-radius: 3px; }
.pw-b.go { background: var(--verdict-go); }
.pw-b.caution { background: var(--verdict-caution); }
.pw-b.nogo { background: var(--verdict-nogo); }

/**
 * THE MARINE WARNING BANNER, as the app renders it at the top of a ramp card.
 *
 * The site had no warning at all, which made every phone screen a fair-weather
 * mock of an app whose first job is telling you when NOT to go.
 *
 * IT IS THE NON-GATING FORM, deliberately. A gating warning takes a verdict
 * FILL in the app, and a solid verdict colour on a marketing page would be
 * announcing a warning that is not actually current. The severity RING is kept
 * because that is the app's own static marker for severity, and it is the one
 * place a verdict-adjacent colour is sanctioned outside a verdict: CLAUDE.md
 * rule 8 records the reasoning, that a marine warning's severity IS the
 * reading and arrives from the same source rule 5 gates on.
 *
 * The "Full warning" affordance is not decoration either. Rule 8's marquee
 * exception exists ONLY because the complete text stays reachable by a static,
 * tappable control, so a banner drawn without it would be misrepresenting the
 * app in the one way that matters.
 */
.phone-warn {
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-left: 3px solid var(--verdict-caution);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pw-head { color: var(--phone-muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.pw-text { color: var(--phone-text); font-size: 10px; font-weight: 700; line-height: 1.35; }
.pw-attrib { color: var(--phone-muted); font-size: 8px; }
.pw-more { color: var(--accent-lee); font-size: 8px; font-weight: 700; margin-top: 2px; }

/**
 * THE WARNING MARQUEE, rule 8's THIRD loop exception.
 *
 * That exception rests entirely on the second half of the owner's instruction:
 * "the full warning button remains". The complete text must have a static,
 * tappable, non-motion carrier, which is `.pw-more`. IF THAT LINE IS EVER
 * REMOVED THIS GOES BACK TO A TRUNCATED HEADLINE, because otherwise motion is
 * the only way to reach the end of a warning, which rule 8 forbids outright.
 *
 * Without the script it is a clamped single line, which is exactly what the
 * banner looked like before any of this, and that is the reduced-motion state
 * too. The travel and the pause at the head of every pass are in
 * detailplay.mjs, which can measure the real overflow; a CSS keyframe cannot,
 * and would slide text that has no need to slide.
 */
.pw-marquee {
  overflow: hidden;
  white-space: nowrap;
}
.pw-track {
  display: inline-block;
  color: var(--phone-text); font-size: 10px; font-weight: 700; line-height: 1.35;
  /* No transition by default: the first frame must not animate in from zero. */
}
[data-detailplay-on] .pw-track { transition: transform 5200ms linear; }

/**
 * THE RAMP SEARCH, from app/ramps.tsx and features/ramps/rampListModel.ts.
 *
 * Three sections in the app's own order: favourites, nearest, then the
 * catalogue LAST and separate. That separation is structural in the app and
 * worth keeping here: sorting all of them by distance together would put a
 * conditions-only place above a scored one whenever it was nearer, and the
 * reader would have to notice a grey sub-line to tell which is which.
 *
 * The ODbL credit is a LICENCE CONDITION wherever catalogue data appears, not
 * a nicety, so it is on the screen that shows it.
 */
.rl-search {
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--phone-muted);
  font-size: 10px;
}
.rl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  padding: 7px 9px;
}
/* A catalogue row is visibly quieter and carries NO chip, because it has no
   verdict to show. Rule 3 by omission rather than by colour. */
.rl-row.cat { background: transparent; }
.rl-name { display: flex; flex-direction: column; gap: 1px; font-size: 11px; font-weight: 700; color: var(--phone-text); }
.rl-row.cat .rl-name { font-weight: 600; color: var(--phone-muted); }
.rl-name em { font-style: normal; font-size: 8px; font-weight: 400; color: var(--phone-muted); }
.phone-credit { color: var(--phone-muted); font-size: 7px; margin-top: 2px; }

/**
 * THE CONDITIONS SCREEN, from app/conditions/[id].tsx.
 *
 * It lives OUTSIDE the (tabs) group, so it is a pushed stack screen: a back
 * arrow and the place name, and NO tab bar. Its render order is the app's:
 * the limit card first, then NEXT HOURS, then TIDE, then the ODbL credit.
 *
 * NOTHING HERE TAKES A VERDICT COLOUR, and that is the screen's whole point
 * rather than an oversight. A place we have not modelled has no verdict to
 * show, so the absence of a chip IS the reading.
 */
.cd-back {
  display: flex; align-items: center; gap: 5px;
  color: var(--phone-text); font-size: 13px; font-weight: 700; padding: 0 2px 2px;
}
.cd-back span { font-size: 17px; line-height: 0.8; color: var(--phone-muted); }
.cd-card {
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  padding: 8px 9px;
  display: flex; flex-direction: column; gap: 4px;
}
.cd-cardhead {
  display: flex; align-items: center; gap: 5px;
  color: var(--phone-text); font-size: 11px; font-weight: 700;
}
.cd-info { display: block; width: 11px; height: 11px; color: var(--phone-muted); }
.cd-info svg { display: block; width: 100%; height: 100%; }
.cd-body { color: var(--phone-muted); font-size: 9px; line-height: 1.45; margin: 0 2px; }
.cd-hours { display: flex; flex-direction: column; }
.cd-hour {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--phone-border);
  padding: 5px 2px;
  font-size: 9px;
}
.cd-hour span { color: var(--phone-muted); }
.cd-hour em { font-style: normal; color: var(--phone-text); font-weight: 600; }
.cd-hour i { font-style: normal; color: var(--phone-muted); }

/**
 * A TILE POPOUT, from components/tiles/TileExpand.tsx.
 *
 * Every tile is wrapped in `ExpandableTile` and opens a Modal: a scrim over an
 * elevated sheet carrying the tile's own title and icon plus its granular
 * detail. This is what "each tile opens for the full working" means, and the
 * site had an eight-tile grid with a freshness list instead, which corresponds
 * to no component in the app.
 *
 * The sheet sits INSIDE the phone frame, over the ramp card, because that is
 * where it appears: it is a state of the ramps screen, not a screen of its own.
 */
.tile-popout {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(4, 8, 14, 0.72);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.tp-sheet {
  width: 100%;
  background: var(--phone-bg);
  border-top: 1px solid var(--phone-border);
  border-radius: 14px 14px 0 0;
  padding: 12px 12px 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.tp-title { display: flex; align-items: center; gap: 6px; color: var(--phone-text); font-size: 13px; font-weight: 700; }
.tp-ico { display: block; width: 14px; height: 14px; color: var(--accent-wind); }
.tp-ico svg { width: 100%; height: 100%; display: block; }

/* The dial. A STILL needle: the app's wind dial has been static since the
   owner asked for one, and an arrow that moved here would be inventing motion
   the app does not have. */
.tp-dial {
  align-self: center;
  width: 58px; height: 58px;
  border: 2px solid var(--phone-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tp-dial span { font-size: 11px; font-weight: 700; color: var(--phone-text); }
.tp-needle {
  position: absolute; left: 50%; top: 6px;
  width: 2px; height: 18px; border-radius: 1px;
  background: var(--accent-wind);
  transform: translateX(-50%) rotate(45deg);
  transform-origin: bottom center;
}

/* ------------------------------------------------- ramp detail, scrolling */

/**
 * THE RAMP DETAIL PAGE, from app/ramp/[id].tsx, travelling past under its own
 * fixed header.
 *
 * The window/scroll pair is the SAME arrangement `heroplay` already uses: the
 * content sits in normal flow inside an `overflow: hidden` window and is moved
 * by a transform, never by `scrollTop`. That matters for two reasons. A
 * transform is composited, so a long page travelling for twenty seconds costs
 * no layout; and with no script and no `data-detailplay-on` the page simply
 * sits at the top, complete and readable, which is the honest fallback.
 */
.rd-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 2px 6px;
  border-bottom: 1px solid var(--phone-border);
}
.rd-back { font-size: 17px; line-height: 0.8; color: var(--phone-muted); }
/* The fixed word, not the ramp name. See headerLayout.ts: the name is
   duplicated a few lines down at reading size, where it never truncates. */
.rd-title { flex: 1 1 auto; color: var(--phone-text); font-size: 12px; font-weight: 700; }
.rd-star { color: var(--accent-window); font-size: 11px; }

/**
 * `flex: 1 1 0`, AND THE ZERO BASIS IS THE WHOLE POINT.
 *
 * With `auto` the window's base size is its CONTENT, and this content is the
 * entire detail page, so the frame grew to 1014px and stopped being a phone:
 * `min-height` on `.phone-screen` is a floor, never a cap, so nothing pushed
 * back. A zero basis makes the window take the space that is LEFT after the
 * status bar and the header, which is what a scroll view actually does.
 */
.rd-window { flex: 1 1 0; overflow: hidden; min-height: 0; position: relative; }
.rd-scroll {
  display: flex; flex-direction: column; gap: var(--tile-gap);
  padding-top: 8px;
  /* Slow enough to read a tile as it goes by. The travel itself is set by
     detailplay.mjs, which knows the real overflow. */
  transition: transform 2200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.rd-facility { display: flex; flex-direction: column; gap: 2px; }
.rd-rampname { color: var(--phone-text); font-size: 15px; font-weight: 700; }
.rd-facilities { color: var(--phone-muted); font-size: 9px; line-height: 1.4; }

.rd-verdict { display: flex; flex-direction: column; align-items: center; gap: 3px; }

/* A tile on this screen is a full-width card, not a half of a grid: Ramp
   detail stacks `Tile`s down the page rather than pairing them. */
.rd-tile {
  position: relative;
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  padding: 8px 9px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.rd-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--tile-accent, var(--accent-neutral));
}
.rd-eyebrow {
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  color: var(--tile-accent, var(--accent-neutral));
}
.rd-note { color: var(--phone-muted); font-size: 8px; }

/**
 * THE TACHOMETER, which is where the WIND SETTLE lives.
 *
 * Position 0 is the SUSTAINED wind and position 1 is the GUST, so both ends of
 * the marker's travel are real numbers off the forecast. That is the owner's
 * "bounce inside the span only" (30 July 2026) and it is why the amplitude
 * never scales: on this axis a bigger swing would put the marker on a speed
 * that is neither reading. Gustiness is carried by DURATION.
 */
.rd-tach { display: flex; align-items: center; gap: 6px; }
.rd-tach-end { color: var(--phone-muted); font-size: 9px; font-weight: 700; flex: none; }
.rd-tach-track {
  flex: 1 1 auto; position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-wind) 30%, transparent), var(--accent-wind));
}
.rd-tach-mark {
  position: absolute; top: -3px; left: 0; width: 3px; height: 12px;
  border-radius: 2px; background: var(--phone-text);
  /* The settled position is the SUSTAINED end, which is the reading that
     matters, so a glance landing after the motion loses nothing. */
  transform: translateX(-50%);
}

/* The next twelve hours against this boat's own gust ceiling. The ceiling is a
   dashed neutral line, never a verdict colour: it is this skipper's limit, not
   a call on the day. */
.rd-comfort {
  position: relative;
  display: flex; align-items: flex-end; gap: 2px; height: 42px;
}
.rd-comfort span { flex: 1 1 0; background: var(--accent-wind); opacity: 0.8; border-radius: 1px 1px 0 0; }
.rd-ceiling {
  position: absolute; left: 0; right: 0; bottom: 84%;
  border-top: 1px dashed var(--phone-muted);
}
/* The number sits ABOVE the line rather than on it. At `top: -9px` with the
   line higher up, the label collided with its own dashes and ran to the very
   edge of the tile; the small ground behind it is what keeps it legible where
   a bar happens to reach the ceiling. */
.rd-ceiling em {
  position: absolute; right: 0; bottom: 1px;
  padding: 0 2px;
  background: var(--phone-tile);
  font-style: normal; font-size: 7px; font-weight: 700; color: var(--phone-muted);
}

/**
 * THE CHOP WAVEFORM: rule 8's GLYPH DRIFT, whose amplitude IS the reading.
 *
 * The paths are drawn three widths long and translated, so the strokes travel
 * without the shape changing. Every frame is drawn at this chop class's own
 * amplitude, which is why a loop was cheap to grant in the app and why a
 * settled frame here is complete on its own.
 */
.rd-wave { height: 22px; color: var(--accent-wind); opacity: 0.85; overflow: hidden; }
.rd-wave svg { width: 100%; height: 100%; display: block; }
.rd-wave path { transition: none; }

.rd-tidecurve { position: relative; height: 32px; color: var(--accent-tide); }
.rd-tidecurve svg { width: 100%; height: 100%; display: block; }
.rd-tidenow {
  position: absolute; left: 38%; top: 0; bottom: 0; width: 1px;
  background: var(--phone-muted); opacity: 0.7;
}

/**
 * THE DRIVE GLYPH. Rule 3's FOURTH exception, owner-instructed 30 July 2026:
 * a map is a universally-read PICTURE, so familiar map colours on it are
 * DEPICTION rather than JUDGEMENT. The values are the app's own, which are
 * deliberately NOT the signal hues: a muted sage at dE 38.4 from the GO fill
 * and a deep rose at dE 46.5 from NO-GO. The BUTTON is never green.
 */
/* Full width, OUTLINED, never filled and never green. See the note beside the
   markup: a filled green Directions button says "go here", which is the
   verdict's job and nobody else's. */
.rd-drivebtn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 10px;
  border: 1.5px solid var(--accent-lee);
  border-radius: 8px;
  background: var(--phone-tile);
}
.rd-drivebtn span { color: var(--accent-lee); font-size: 11px; font-weight: 800; }
.rd-car { display: block; width: 17px; height: 17px; flex: none; color: var(--phone-text); }
.rd-map { display: block; width: 19px; height: 19px; flex: none; }
.rd-car svg, .rd-map svg { width: 100%; height: 100%; display: block; }

.rd-cam {
  height: 42px; border-radius: 6px;
  background: linear-gradient(160deg, #16283f 0%, #0b1524 100%);
  border: 1px solid var(--phone-border);
}

.rd-bands { display: flex; gap: 2px; }
.rd-bands .pw-b { flex: 1 1 0; height: 8px; border-radius: 2px; }
.rd-bandrow { display: flex; gap: 2px; }
.rd-bandrow span { flex: 1 1 0; text-align: center; color: var(--phone-muted); font-size: 6px; }

/**
 * UV. THE COLOUR IS INK ON THE NUMERAL AND NEVER A FILL BEHIND IT, which is
 * the strongest of rule 3's five separations for this tile: a verdict is
 * ALWAYS a fill, so an inked numeral is structurally not one. The bar carries
 * the whole WHO scale with a marker on it, at full width, which is what makes
 * the eye read a measurement against a range.
 *
 * The five hexes are the WHO's own artwork spec (PMS 375, 102, 151, 032, 265)
 * and match `utils/conditions.ts` exactly. A "nicer" green would stop being
 * the scale that is on the sunscreen bottle, which is the entire justification
 * for the exception.
 */
.rd-uvface { display: flex; align-items: baseline; gap: 6px; }
.rd-uvnum { font-size: 16px; font-weight: 800; color: #f85900; }
.rd-uvface span { color: var(--phone-muted); font-size: 10px; }
.rd-uvbar {
  position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg,
    #289500 0%, #289500 18%,
    #f7e400 27%, #f7e400 45%,
    #f85900 55%, #f85900 64%,
    #d8001d 73%, #d8001d 91%,
    #6b49c8 100%);
}
/* 7 of a scale that tops out at 11, per uvScalePosition(). */
.rd-uvmark {
  position: absolute; top: -3px; left: 63.6%;
  width: 2px; height: 12px; border-radius: 1px;
  background: var(--phone-text); transform: translateX(-50%);
  box-shadow: 0 0 0 1px var(--phone-bg);
}

.tp-rows { display: flex; flex-direction: column; gap: 3px; }
.tp-row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.tp-row span:first-child { color: var(--phone-muted); }
.tp-row span:last-child { color: var(--phone-text); font-weight: 700; }
.tp-head { color: var(--phone-muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }

/* The 24 hour gust chart. Bars only, no verdict colour: a wind SPEED is not a
   verdict, and colouring it would be rule 3's erosion in a new place. */
.tp-chart { display: flex; align-items: flex-end; gap: 1px; height: 34px; }
.tp-chart i { flex: 1 1 0; background: var(--accent-wind); border-radius: 1px 1px 0 0; opacity: 0.85; }
.tp-exposure { color: var(--phone-muted); font-size: 9px; line-height: 1.35; }

/**
 * THE PLANNER, from components/planner/RampHeatmapCard.tsx.
 *
 * SEVEN DAY COLUMNS by FIVE BAND ROWS, which is the orientation the app uses
 * and the opposite of what the site had. Each card is a Tile whose EYEBROW is
 * the ramp name, with a "Best here" line under it. There is one card PER RAMP,
 * not one grid for the week.
 */
.phone-screentitle { color: var(--phone-text); font-size: 15px; font-weight: 700; padding: 0 2px 2px; }
.ph-hero { color: var(--phone-text); font-size: 14px; font-weight: 700; padding: 0 2px 2px; }
.ph-legendrow { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ph-legend { display: flex; align-items: center; gap: 3px; color: var(--phone-muted); font-size: 7px; font-weight: 700; }
.ph-legend .pw-b { width: 8px; height: 8px; border-radius: 2px; margin-left: 4px; }

/**
 * THE RAMP LIST IS A SCROLL REGION, WHICH IS WHAT THE APP'S PLANNER IS.
 *
 * Owner, 5 September: "fill out the ramps in the planner for full screen of
 * available ramps." The screen carried two cards and stopped, leaving a
 * quarter of the glass bare below them.
 *
 * **THE WRAPPER IS THE POINT, NOT THE EXTRA CARDS.** Without it the cards are
 * direct flex children of a screen that is a FIXED height with
 * `overflow: hidden`, so adding enough of them to fill the glass puts the
 * total over the height and every child SHRINKS, tab bar included: a squashed
 * bar rather than a longer list. `flex: 1 1 auto` with `min-height: 0` makes
 * this one child absorb the slack and clip its own overflow, so the list runs
 * to the bottom of the glass, the bar keeps its full height, and a card that
 * does not fit is cut by the screen edge the way a real scrolling list is.
 *
 * It is the same arrangement `.hero-window` already uses on the verdict
 * screen, and for the same reason.
 */
.ph-list {
  display: flex; flex-direction: column; gap: var(--tile-gap);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
/* A card may not be squeezed to make the list fit. Clipping is the honest
   overflow here; a short card would misreport a week. */
.ph-list .ph-card { flex: none; }

.ph-card {
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 12px;
  padding: 8px 9px;
  display: flex; flex-direction: column; gap: 3px;
}
.ph-name { color: var(--accent-neutral); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.ph-best { color: var(--phone-muted); font-size: 9px; font-weight: 600; margin-bottom: 2px; }
/* The label column carries FULL band words ("Afternoon" is the widest), which
   is what the app shows. CLAUDE.md rule 14 is a worked example about exactly
   these labels truncating to "After..." when the column was set from a render
   rather than measured, so the column is generous and the label may not wrap. */
.ph-days, .ph-row { display: grid; grid-template-columns: 44px repeat(7, 1fr); gap: 3px; align-items: center; }
.ph-days span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ph-days b { font-size: 6px; letter-spacing: 0.06em; color: var(--phone-muted); }
.ph-days i { font-size: 7px; font-style: normal; font-weight: 700; color: var(--phone-text); }
.ph-band { font-size: 7px; font-weight: 700; color: var(--phone-muted); white-space: nowrap; }
.ph-row .pw-b { height: 11px; border-radius: 2px; }

/**
 * THE LOGBOOK, from app/logbook.tsx and features/logbook/logbookCopy.ts.
 * Grouped by day ("Today", "Yesterday", then a date), and every row is
 * labelled either "Trip" or "Water report", because the logbook holds both.
 */
.lb-day { color: var(--phone-text); font-size: 10px; font-weight: 700; margin-top: 4px; padding: 0 2px; }
.lb-row {
  background: var(--phone-tile);
  border: 1px solid var(--phone-border);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex; flex-direction: column; gap: 1px;
}
.lb-label { color: var(--phone-muted); font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.lb-ramp { color: var(--phone-text); font-size: 11px; font-weight: 700; }
.lb-line { color: var(--phone-text); font-size: 10px; }
.lb-note { color: var(--phone-muted); font-size: 8px; line-height: 1.35; }

/* The row the ramp card ends with, from RampCard.tsx. */
.phone-detailrow {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--phone-border);
  padding-top: 8px; margin-top: 2px;
  color: var(--accent-lee); font-size: 10px; font-weight: 700;
}

/**
 * THE HERO PLAYS ITSELF: the card scrolls, then the page changes.
 *
 * `.hero-window` is the fixed viewport between the status bar and the tab bar,
 * exactly as on a phone; `.hero-scroll` is the card that travels inside it. So
 * the chrome stays put and only the content moves, which is what makes it read
 * as scrolling rather than as the whole screen sliding.
 *
 * The screens are grid-stacked for the same reason the walkthrough's are: the
 * frame takes the height of the tallest and nothing jumps between pages.
 */
.phone[data-heroplay-on] { display: grid; }
.phone[data-heroplay-on] .phone-screen {
  grid-area: 1 / 1;
  transition: opacity 520ms ease;
  /*
   * A FIXED height, not a floor, and that is what makes the scroll possible.
   * Elsewhere the screen has a min-height and grows with its content, so there
   * is no overflow and `.hero-window` has nothing to clip: the first version
   * changed pages correctly and never scrolled a pixel, because
   * scrollHeight === clientHeight. Pinning the height to the handset
   * proportion gives the card somewhere to travel, and pins the hero to 2.09
   * at the same time.
   */
  height: calc((var(--phone-w) - 2 * var(--phone-pad)) * var(--phone-aspect));
  min-height: 0;
}
.phone[data-heroplay-on] .phone-screen[data-state="off"] { opacity: 0; pointer-events: none; }
.phone[data-heroplay-on] .phone-screen[data-state="on"] { opacity: 1; }

.hero-window { flex: 1 1 auto; overflow: hidden; min-height: 0; }
.hero-scroll {
  display: flex; flex-direction: column; gap: var(--tile-gap);
  transition: transform 1500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/**
 * WITHOUT SCRIPTING, OR WITH REDUCED MOTION, the hero is one still ramp card.
 * `heroplay.mjs` never sets `data-heroplay-on`, so the extra screens stay in
 * normal flow and would stack underneath. They are hidden instead, because the
 * hero is a single illustration rather than an article: three phones stacked
 * in a page masthead reads as a fault, which is not the honest fallback the
 * walkthrough has.
 */
.phone:not([data-heroplay-on]) .phone-screen[data-hero="week"],
.phone:not([data-heroplay-on]) .phone-screen[data-hero="ramps"] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { transform: none !important; }
}

/* The ramp list and the trip log share a row. */
.phone-list { display: flex; flex-direction: column; gap: 5px; }
.pl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--phone-tile); border: 1px solid var(--phone-border);
  border-radius: 10px; padding: 7px 9px;
}
.pl-name { font-size: 11px; font-weight: 700; color: var(--phone-text); display: flex; flex-direction: column; gap: 1px; }
.pl-name em { font-style: normal; font-size: 9px; font-weight: 400; color: var(--phone-muted); }
.pl-meta { font-size: 10px; font-weight: 700; color: var(--phone-muted); white-space: nowrap; }
/* The chips inside a phone are smaller than the page's own. */
.phone-list .chip { font-size: 9px; padding: 2px 7px; }

/* ------------------------------------------------------------- showcase */

/**
 * THE WALKTHROUGH: one phone, five screens, the copy scrolling beside it.
 *
 * **THE BASE STATE HERE IS THE NO-SCRIPT STATE, and that is deliberate.**
 * Everything below the `[data-enhanced]` guard is ordinary document flow: five
 * phones, each above the step describing it, readable top to bottom. Only when
 * `showcase.mjs` sets `data-enhanced` does the stage become sticky and the
 * screens stack. So the page is never broken while the script loads, and a
 * reader with scripting off gets the whole story rather than an empty box.
 *
 * That ordering also means there is no second code path to keep in step, which
 * is the usual cost of a "mobile version" of an animation.
 */
.showcase-grid { display: block; }
.showcase-stage { display: flex; flex-direction: column; align-items: center; gap: var(--space-xxl); }
.showcase-steps { list-style: none; margin: 0; padding: 0; }
.showcase-steps .step { padding: var(--space-xl) 0; max-width: 34ch; }
/* The title is a `p` too, so it has to be excluded here or it inherits the
   muted body colour and the page's largest type is its faintest. */
.showcase-steps .step p:not(.eyebrow):not(.step-title) { color: var(--text-muted); margin: 0; }

/**
 * THE CHAPTER TITLE IS THE PAGE'S LARGEST TYPE, and one word.
 *
 * A step used to open with an ordinary `h3`, which made the walkthrough read as
 * a list of features. One enormous word per chapter turns the same content into
 * a sequence you move THROUGH, which is the difference between a page that
 * scrolls and a page that feels like it is showing you something.
 *
 * `clamp` rather than a breakpoint: it has to be dramatic at 1440 and still fit
 * one word at 351dp without hyphenating.
 */
.step-title {
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
  margin: var(--space-xs) 0 var(--space-lg);
  /* One word per chapter, so it must never break mid word. */
  overflow-wrap: normal;
  hyphens: none;
}

/**
 * ONE HIGHLIGHTED PHRASE PER CHAPTER, in the tile-accent family.
 *
 * **NEVER A VERDICT COLOUR.** Rule 3: green, amber and red mean one thing, and
 * a highlighted word in body copy is decoration, which is exactly the erosion
 * the rule exists to stop. `check-web.mjs` enforces the allowlist, so this
 * cannot quietly become a green.
 */
.step em {
  font-style: normal;
  font-weight: 700;
  color: var(--chapter-accent, var(--accent-tide));
}

/* Unenhanced, the phones sit in the flow with the steps between them. */
.showcase:not([data-enhanced]) .showcase-stage .phone { margin-bottom: var(--space-xl); }

/**
 * ENHANCED. The stage pins, the screens stack, and only one is shown.
 *
 * `position: sticky` rather than `fixed`, so the phone is bounded by its own
 * section and cannot escape onto the rest of the page.
 */
/**
 * THE SCREENS ARE GRID-STACKED, NOT ABSOLUTELY POSITIONED, and that is what
 * fixes the frame rather than a height guess.
 *
 * With `position: absolute` the FIRST screen sets the phone's height and every
 * shorter one floats in the leftover. Measured: the verdict screen is 386px
 * and the planner 261px, so the planner sat in 147px of dead phone. One grid
 * cell makes the frame the height of the TALLEST screen automatically and
 * stretches every screen to fill it, so nothing jumps and nothing floats.
 */
.showcase[data-enhanced] .phone { display: grid; }
.showcase[data-enhanced] .phone-screen {
  grid-area: 1 / 1;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* The tab bar sits on the bottom edge, which is where a real one lives and
   what makes a short screen look deliberate rather than unfinished. THAT RULE
   NOW LIVES ON `.phone-tabs` ITSELF and applies to the hero too, which is why
   there is nothing here: scoping it to the walkthrough is exactly what left
   the hero's planner with a bar floating a quarter of the way up the glass. */
.showcase[data-enhanced] .phone-screen[data-state="out"] {
  opacity: 0;
  transform: translateY(-14px) scale(0.985);
  pointer-events: none;
}
.showcase[data-enhanced] .phone-screen[data-state="in"] {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  pointer-events: none;
}
.showcase[data-enhanced] .phone-screen[data-state="on"] {
  opacity: 1;
  transform: none;
}

/* The step being described lifts; the others recede but stay readable. */
.showcase[data-enhanced] .showcase-steps .step {
  transition: opacity 320ms ease;
  opacity: 0.45;
}
.showcase[data-enhanced] .showcase-steps .step[data-current] { opacity: 1; }

.showcase[data-enhanced] .showcase-stage { z-index: 1; }

/**
 * TWO COLUMNS ONCE THERE IS ROOM, with the phone CENTRED IN THE VIEWPORT
 * rather than pinned near the top.
 *
 * The stage is a full-height sticky flex box, so the phone stays in the middle
 * of the screen whatever its own height is. Pinning it with a `top` offset
 * instead means picking a number that is only right for one screen size, and
 * the first attempt did exactly that: the phone sat at the top while the step
 * text was vertically centred beside it, so the two never lined up.
 */
/**
 * ONE GROUND, THE WHOLE WAY DOWN. THE CHAPTER TINT IS GONE (owner, 5 September 2026: "Colour
 * transition for the background are all over the place. They stop suddenly after the hero, then
 * blend, then stop changing. Pick a lane").
 *
 * WHAT THE PAGE WAS DOING, IN THREE DIFFERENT WAYS. Flat ground with a hairline rule between the
 * hero and the next section, which is a hard stop. Then this section: a radial wash tinted per
 * chapter from `--chapter-accent`, cross-fading over 700ms as you scrolled, which is a blend.
 * Then flat and hairlines again for the last four sections. Three behaviours in one scroll, and
 * the owner read all three correctly from the outside.
 *
 * THE TINT WAS NOT WRONG WHEN IT WAS WRITTEN. It came from a reference site the owner pointed at,
 * and it was designed over the COOL GREY ground this site used to have. Warming the ground to sand
 * is what broke it: the accent family is indigo through cyan, and cyan at 14% over warm sand is a
 * dirty grey-green, not a colour field. So this is my palette change making an older decision
 * wrong, rather than the older decision having been bad.
 *
 * IF CHAPTER COLOUR COMES BACK it has to be re-derived against the sand ground, not restored from
 * here, and it would then need to apply to every section rather than one, or it is back to being
 * a lane of its own. `--chapter-accent` is still set per step and still drives the tile edges, so
 * nothing else was lost.
 */
.showcase { position: relative; isolation: isolate; }

@media (min-width: 860px) {
  /* The PHONE column is `auto`, so it is exactly as wide as the frame, and the
     copy takes the rest. The other way round gives the stage the flexible
     column, the phone centres inside all of it, and the sentence it is
     illustrating ends up on the far side of the screen. */
  /* `max-content` on the copy column keeps the pair together in the middle of
     the page instead of flinging the phone to the far left and the sentence to
     the far right, which is what a flexible column did. */
  .showcase-grid {
    display: grid;
    grid-template-columns: auto minmax(0, max-content);
    justify-content: center;
    gap: clamp(var(--space-xxl), 6vw, 96px);
    align-items: start;
  }
  /* Bigger as the centrepiece than in the hero, driven by the one variable. */
  /* Wide enough that the app's real content fits the app's real
     proportions. The ramp card carries a warning, a name, a verdict, two
     controls and two tile rows, exactly as the phone does, and at 300px that
     came to 723px against a 606px floor: a 2.48 frame. */
  .showcase[data-enhanced] .phone { --phone-display: min(0.86, var(--phone-fit)); }
  .showcase[data-enhanced] .showcase-stage {
    position: sticky;
    /* Measured by showcase.mjs, because the header owns its own height. */
    top: var(--stage-top, 56px);
    height: calc(100vh - var(--stage-top, 56px));
    justify-content: center;
  }
  /* One step per screenful, centred, so a step and its screen arrive together. */
  .showcase-steps .step { min-height: 84vh; display: flex; flex-direction: column; justify-content: center; }
}

/* On a phone the frame shrinks, or a pinned 264px phone plus its shadow
   leaves no room for the sentence it is illustrating. Measured at 351dp. */
@media (max-width: 859px) {
  .showcase[data-enhanced] .showcase-stage {
    position: sticky;
    /* Clears the sticky site header. Measured by showcase.mjs. */
    top: var(--stage-top, 56px);
    /* A band, so the pinned phone does not sit on top of the copy it is
       illustrating as that copy scrolls under it. */
    /*
     * OPAQUE FOR ITS WHOLE HEIGHT, fading only at the very bottom edge.
     *
     * The band is what HIDES copy passing under the pinned phone, and a
     * gradient that started fading at 82% left the lower third translucent, so
     * a chapter title slid under the frame and showed through either side of
     * it. On a sticky layout the copy must travel through this band; the band
     * failing to cover is what turns that from invisible into a collision.
     */
    background: linear-gradient(var(--page-ground) 0%, var(--page-ground) 92%, transparent 100%);
    padding: var(--space-md) 0 var(--space-xl);
  }
  /*
   * SMALLER ON A PHONE, AND THE NUMBER IS THE RESULT OF A MEASUREMENT.
   * At 200px the frame is about 460px tall; with the 51px site header above it
   * that leaves 294px of an 805px viewport for the copy, and the chapter title
   * came to rest UNDERNEATH the pinned phone. At 168px the frame is about
   * 390px, which leaves room for the eyebrow, the title and the paragraph.
   */
  /*
   * SCALED, NOT NARROWED, and that distinction was learned by measuring.
   * Narrowing the frame does NOT make it shorter: the height comes from the
   * tallest SCREEN, whose type is fixed, so a narrower phone just wraps its
   * content and grows. At 200px wide the frame was 441px tall and the chapter
   * title came to rest 178px UNDERNEATH it. A transform scales height and
   * width together, which is the only thing that actually buys vertical room.
   *
   * The negative margin gives back the layout space the transform does not,
   * so the copy below moves up with the shrunken phone instead of leaving a
   * transparent gap where the bottom of the frame used to be.
   */
  .showcase[data-enhanced] .phone {
    /*
     * SMALLER ON A PHONE, and DISPLAY size only. The transform and its
     * compensating margins now live on `.phone` itself, so this sets one
     * number and nothing here can put the frame back onto a different LAYOUT
     * width, which is what produced two differently shaped handsets.
     */
    --phone-display: min(0.48, var(--phone-fit));
  }
  /* The title has to shrink with it, or one word eats the space just freed. */
  .showcase[data-enhanced] .step-title { font-size: clamp(34px, 11vw, 44px); margin-bottom: var(--space-md); }
  .showcase[data-enhanced] .showcase-steps .step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; }
}

/**
 * REDUCED MOTION: THE SCREENS STILL CHANGE, THEY JUST CUT RATHER THAN TRAVEL.
 *
 * Removing the swap entirely would leave four screens unreachable, so the
 * INFORMATION would be gone rather than the animation. Only the movement goes.
 *
 * **THIS BLOCK ONLY HAS TO KILL THE TRANSFORM.** The stylesheet already carries
 * a global `* { transition: none !important }` under this same query, so every
 * transition here is dead before this rule is read and the swap is an instant
 * cut. A first version of this comment claimed a short cross fade survived;
 * measured, the computed value is `none 0s`, so that was a description of
 * something that could not happen. The transform is not a transition property,
 * so it does need saying explicitly.
 */
@media (prefers-reduced-motion: reduce) {
  .showcase[data-enhanced] .phone-screen { transform: none !important; }
}

/* Hero and section layouts that put a phone beside the words. */
.with-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xxxl);
  align-items: center;
}
@media (max-width: 820px) {
  /* minmax(0, 1fr), NOT 1fr. A bare `1fr` is `minmax(auto, 1fr)`, so the column
     floors at its content min-width and the phone made the whole hero 264px
     wide inside a 176px viewport. This is the single most common cause of a
     grid refusing to shrink, and the reflow test is what found it. */
  .with-phone { grid-template-columns: minmax(0, 1fr); gap: var(--space-xxl); justify-items: start; }
}

/*
 * THE PHONE MUST BE ABLE TO GET SMALL, and the blocker was its CONTENTS.
 * `min-width: 0` on the frame is not enough: the inner two-up tile grid has a
 * min-content width of its own (a tile reading "SW 16 Knots" will not wrap),
 * so the frame could not shrink below about 264px and pushed the whole hero
 * sideways at 200% zoom on a narrow phone. Found by the reflow test.
 *
 * 330px is chosen so it never fires on a real handset: the frame is 264px and
 * the narrowest phone this project cares about is 351dp, which leaves 303px of
 * content width. This is purely the deep-zoom escape hatch.
 */
.phone-screen, .phone-card, .phone-tile, .phone-tiles { min-width: 0; }
.phone-tile .v, .phone-reason { overflow-wrap: anywhere; }
@media (max-width: 330px) {
  .phone-tiles { grid-template-columns: 1fr; }
  /* This became a real step down on 5 September and is no longer decoration:
     the bar's default label went 8px to 9px to keep the app's icon-to-label
     ratio, so at deep zoom it now actually gives a pixel back. Do not delete
     it as a no-op, which is what it was until then. */
  .phone-tabs { font-size: 8px; }

  /**
   * THE HEADER AT DEEP ZOOM, and this is the menu button paying its own way.
   *
   * Adding it put a second control in a bar that had held one thing, and the
   * reflow test caught the consequence immediately: at an effective 200% zoom
   * (a 176px viewport) the wordmark, the gap, the button and two 24px gutters
   * came to 265px and the whole page scrolled sideways by 55px. WCAG 1.4.10
   * is the reason that test exists, and it was right.
   *
   * Three things give, in the order that costs the least. The word "Menu" goes
   * VISUALLY but keeps the control's accessible name, the wordmark comes down
   * to 18px, and the page gutter halves. Together: about 154px in a 176px
   * viewport. None of it fires on a real handset, because the narrowest this
   * project cares about is 351dp.
   */
  .wrap { padding: 0 var(--space-md); }
  header.site .wordmark { height: 18px; }
  .navmenu > summary { padding: 6px; gap: 0; }
  .navmenu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/**
 * THE PAGER: back to top on the far left, prev and next chevrons on the far right, both fixed to
 * the bottom of the viewport (owner, 5 September 2026).
 *
 * THEY ARE 44px TARGETS, which is the floor for a control you tap on a phone, and the reason the
 * chevron glyph inside is smaller than the button. The site already learned this on the header
 * search control; a 24px icon with no padding is a control adults miss.
 *
 * THEY SIT ON A SOLID GROUND RATHER THAN FLOATING ON THE PAGE. The ground is now a gradient, so a
 * translucent control would show a different colour at the top of the page than at the bottom and
 * read as two different controls. A filled pill in the brand navy is the same object everywhere.
 *
 * `position: fixed` PUTS THEM OVER CONTENT, so they carry a shadow to lift off whatever passes
 * underneath, and they step out of the way below 400px where the screen has no room to spare.
 */
.to-top,
.pager {
  position: fixed;
  bottom: clamp(12px, 2.4vw, 24px);
  z-index: 40;
}
.to-top { left: clamp(12px, 2.4vw, 24px); }
.pager { right: clamp(12px, 2.4vw, 24px); display: flex; gap: 8px; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px -6px rgba(11, 20, 32, 0.45);
}
.to-top svg { width: 17px; height: 17px; flex: none; }

.pager button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(11, 20, 32, 0.45);
}
.pager button svg { width: 20px; height: 20px; }

/* A disabled control says so rather than sitting there looking live. It keeps its place so the
   pair does not jump around as you reach either end of the page. */
.pager button[disabled] { opacity: 0.32; cursor: default; box-shadow: none; }

/**
 * THEY TUCK AWAY WHILE YOU READ, AND COME BACK WHEN YOU STOP.
 *
 * The comment above says these sit over content and carries a shadow to lift them off it. **THE
 * SHADOW IS NOT ENOUGH, MEASURED 5 September on the live site**: sampling a grid across every
 * control at twelve scroll positions, text sat underneath at **351px (8 distinct elements,
 * including the `<h2>` "In testing on the water"), 390px (8), 690px, 800px, 900px, 1000px and
 * 1100px**. It clears only at 1280, where the content column finally leaves margins wide enough
 * for the controls to live in. **So this was never a phone-only fault**, which is why the
 * behaviour is not behind a breakpoint: one rule at every width is also one thing to test.
 *
 * A fixed control over scrolling content ALWAYS covers something. The only fixes are to give it a
 * lane of its own (an opaque docked bar, costing about 56px of an 800px viewport permanently) or
 * to take it away while it is not wanted. **Tucking costs no viewport and changes nothing about
 * how the page looks at rest**, which is why it won: the controls are for deciding where to go,
 * and nobody decides that mid-flick.
 *
 * `translateY` past its own height plus the bottom offset, so no part of a 44px circle stays
 * clipped at the edge. `pointer-events: none` as well as `opacity: 0`, because an invisible
 * control that still swallows a tap is worse than a visible one.
 */
.to-top,
.pager {
  transition: transform 200ms ease, opacity 200ms ease;
}
.to-top[data-tucked],
.pager[data-tucked] {
  transform: translateY(calc(100% + clamp(12px, 2.4vw, 24px)));
  opacity: 0;
  pointer-events: none;
}
/* Reduced motion keeps the BEHAVIOUR and drops the travel: the point is not covering the words,
   and a reader who has asked for less movement still wants that. */
@media (prefers-reduced-motion: reduce) {
  .to-top,
  .pager { transition: none; }
}

.to-top:hover, .pager button:not([disabled]):hover { background: #16283f; }
.to-top:focus-visible, .pager button:focus-visible { outline: 3px solid var(--accent-buoy); outline-offset: 3px; }

/* Below 400px the label goes and the pill becomes a circle: at 351 the two controls plus a label
   crowd the bottom of a screen that is already the tightest surface this site renders on. */
@media (max-width: 399px) {
  .to-top { padding: 0; width: 44px; justify-content: center; }
  .to-top span { display: none; }
}

/**
 * `display: flex` ON `.pager` BEATS THE BROWSER'S OWN `[hidden] { display: none }`, so the nav was
 * still painted with scripting off: the chevrons appeared, looked live and did nothing, which is
 * the exact failure the `hidden` attribute was there to prevent. Caught by `nojs.spec.mjs` rather
 * than by looking, because with JavaScript on the attribute is removed a few milliseconds after
 * load and the fault is invisible in normal use.
 */
.pager[hidden] { display: none; }

/**
 * EVERY SECTION IS A PAGE, EXCEPT THE ONE THAT CANNOT BE (owner, 5 September 2026: "the pages
 * separated into single pages").
 *
 * THE SHOWCASE IS EXCLUDED AND THAT IS NOT A COMPROMISE, IT IS THE POINT. `#reads` is 5,659px of
 * scroll-choreographed content: a phone pinned in a sticky stage while chapters scroll past it and
 * swap the screen. Its LENGTH is what drives the choreography, so forcing it to one viewport would
 * not make it a page, it would delete the mechanism. Every other section is words and a card, and
 * those become pages happily.
 *
 * NO SCROLL SNAP, DELIBERATELY. Snapping would fight the showcase's sticky stage for control of
 * the same scroll, and `mandatory` in particular can trap a reader inside a section taller than
 * their screen. The chevrons already give page-to-page movement to anyone who wants it, and a
 * reader who prefers to scroll normally is not fought for it.
 *
 * THE HEIGHT IS `100svh` MINUS THE HEADER ALLOWANCE, and both halves matter. `svh` is the SMALL
 * viewport height, so on a phone the section fits with the browser chrome SHOWN rather than
 * overflowing by the height of a toolbar that appears the moment you scroll up. The 72px is the
 * same `scroll-padding-top` the anchors and the pager use: land on a section and its top sits 72px
 * down, so a full-height section has to be 72px short of the viewport or its foot falls past the
 * fold. One number, three consumers, and `pages.spec.mjs` already asserts it clears the real
 * header at every width.
 */
main > section:not(.showcase) {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
