/* The Salish postcard on the web (ADR 0017, #502): type, layout and the page's parts, on the colours in tokens.css
   (generated from the app's asset catalog). Site/README.md says how the pieces fit. */

/* ── Type ─────────────────────────────────────────────────────────────── */

/* The app's own Bricolage Grotesque instances (OFL), subset by scripts/build-web-fonts.sh. */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/BricolageGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The dusk sky (Kit/Scene/ScenePalette.swift's dusk), for art only: the scenes themselves are #503's. */
  --dusk-top: #3b2f4a;
  --dusk-sky: #c5776a;
  --on-dusk: #ffffff;
  /* White on the action band, whatever the scheme, as in the app's ActionBand. */
  --on-band: #ffffff;

  /* Names, times and headings in Bricolage; reading text in the system's face, as in the app. */
  --display: "Bricolage", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* A fluid scale. Reading sizes are in rem, so they follow the reader's text size (Dynamic Type on iPhone and iPad)
     all the way. Display sizes grow with the width, and by three quarters of what the reading text gains, as Apple's
     text styles do: a large title doesn't triple at the largest sizes. Page zoom scales both (WCAG 1.4.4). */
  --grow: calc((1rem - 16px) * 0.75);
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-1-display: calc(clamp(19px, 17.6px + 0.4vw, 22px) + var(--grow));
  --step--1-display: calc(14px + var(--grow));
  --step-2: calc(clamp(23px, 20.3px + 0.8vw, 30px) + var(--grow));
  --step-3: calc(clamp(28px, 23.2px + 1.4vw, 42px) + var(--grow));
  --step-4: calc(clamp(34px, 25.6px + 2.4vw, 56px) + var(--grow));
  --step-5: calc(clamp(40px, 27.2px + 3.6vw, 76px) + var(--grow));

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* A readable line, and the widest a page's content runs; art can run past both. */
  --measure: 40rem;
  --page: 72rem;
  --gutter: 16px;
  --inset-left: max(var(--gutter), env(safe-area-inset-left));
  --inset-right: max(var(--gutter), env(safe-area-inset-right));

  --radius: 16px;
  --focus: var(--sound);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* On iPhone and iPad the page follows the reader's text size (Dynamic Type), as the app does. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
    font-family: var(--body);
    line-height: 1.5;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--mist);
  color: var(--ink);
  font-size: var(--step-0);
  /* The last resort: a word too long for the line breaks rather than push the page sideways (at the largest text on
     a phone, "Bainbridge" alone can be wider than the screen). */
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  margin: 0 0 var(--space-4);
}

h2 {
  font-size: var(--step-2);
  margin: var(--space-7) 0 var(--space-3);
}

h3 {
  font-size: var(--step-1-display);
  font-weight: 700;
  margin: var(--space-5) 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-4);
}

.caption {
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* How fresh a live page is, under its title (#537): "Live · updated 3:47 PM". Words, never a colour or a pulse. */
.live-updated {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 600;
}

/* Times line up, as the app's monospaced digits do. */
.time {
  font-family: var(--display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--sound);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

/* Hidden is hidden, whatever display a class gives it. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────── */

/* Content at the page's width, clear of the notch and the home indicator; .prose keeps to a readable line. */
.wrap {
  box-sizing: content-box;
  max-width: var(--page);
  margin-inline: auto;
  padding-left: var(--inset-left);
  padding-right: var(--inset-right);
}

.prose {
  max-width: var(--measure);
}

/* A page of prose lines up with the header, its lines kept to the measure. */
.wrap.prose {
  max-width: var(--page);
}

.wrap.prose > * {
  max-width: var(--measure);
}

.holding > * {
  margin-inline: auto;
}

.prose ul,
.prose ol {
  margin: var(--space-5) 0;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--space-3);
}

/* Art edge to edge, whatever wraps it. */
.bleed {
  width: 100%;
}

/* Things one under another, a space apart. */
.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-block-start: var(--stack-space, var(--space-4));
}

/* Things side by side that wrap when they run out of room. */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

/* Side by side while each has --switch-at of room, and one under another when they don't, as the app's layouts stack
   (ViewThatFits) rather than shrink their words. */
.switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.switch > * {
  flex-grow: 1;
  flex-basis: calc((var(--switch-at, 30rem) - 100%) * 999);
}

main {
  flex: 1;
  padding-block: var(--space-6) var(--space-7);
}

/* The skip link's landing: focus moves there, with nothing drawn round the whole page. */
main:focus-visible {
  outline: none;
}

/* ── The page's shell ─────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: var(--inset-left);
  top: max(var(--space-3), env(safe-area-inset-top));
  z-index: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--mist);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

/* Out of sight until it has focus, however big the reader's text. */
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-3);
}

/* The wordmark at the display master's size: at 32 px tall, under 40, the name stands without the rail. */
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.home-link img {
  display: block;
  height: 32px;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Five links: 5 px a side, so they fit on one line under the wordmark from 375 px (#1210); at 320 they take two. */
.site-nav a {
  display: inline-block;
  padding: 10px 5px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sound);
}

.site-footer {
  padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.site-footer .badge {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-5);
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}

.site-footer nav a {
  display: inline-block;
  padding: 10px var(--space-1);
  font-weight: 600;
  color: var(--ink);
}

.site-footer p {
  margin: var(--space-1) 0;
}

/* ── The rail: the section divider and the loading indicator ──────────── */

/* Decoration: an <hr> already says "a break here", and its art is a background, so nothing reads it twice. */
hr.rail {
  display: block;
  width: min(100%, 20rem);
  aspect-ratio: 10 / 1;
  margin: var(--space-7) auto;
  border: 0;
  background: url("../wordmark/rail-light.svg") center / contain no-repeat;
}

/* Your boat sails the crossing while something loads, and back again: the boats are double-ended. With Reduce Motion it
   rests where the rail's own boat does. The boat is 160 of the track's 1200 units across, and as tall: it starts 40
   units in and sails 960, six of its own widths. */
.loading {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 10 / 1;
  background: url("../wordmark/rail-track-light.svg") center / contain no-repeat;
}

.loading-boat {
  position: absolute;
  top: 0;
  left: 3.333%;
  height: 100%;
  aspect-ratio: 4 / 3;
  background: url("../wordmark/rail-boat-light.svg") center / contain no-repeat;
  animation: sail 4s ease-in-out infinite alternate;
}

@keyframes sail {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(600%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-boat {
    animation: none;
    transform: translateX(360%);
  }
}

@media (prefers-color-scheme: dark) {
  hr.rail {
    background-image: url("../wordmark/rail-dark.svg");
  }

  .loading {
    background-image: url("../wordmark/rail-track-dark.svg");
  }

  .loading-boat {
    background-image: url("../wordmark/rail-boat-dark.svg");
  }
}

/* ── Parts ────────────────────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4) var(--space-5);
}

/* A state as a tag (the app's StatusTag): always its words, and a symbol whenever the state is news, so it never rests
   on its colour. Squared off where it starts and round where it ends, like a luggage tag. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.65em 0.2em 0.5em;
  border: 1.5px solid transparent;
  border-radius: 6px 999px 999px 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1-display);
  line-height: 1.25;
  /* One line while there's room; at the largest text sizes it wraps rather than run off a phone. */
  max-width: 100%;
}

.tag svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.tag-on-time {
  background: var(--tag-on-time-fill);
  color: var(--tag-on-time-text);
}

.tag-delayed {
  background: var(--tag-delayed-fill);
  color: var(--tag-delayed-text);
}

.tag-scheduled {
  background: var(--tag-scheduled-fill);
  color: var(--tag-scheduled-text);
}

.tag-cancelled {
  background: var(--tag-cancelled-fill);
  color: var(--tag-cancelled-text);
}

/* Cancelled's red not yet confirmed, and an extra boat (ADR 0023) in the accent: on Paper, with a dashed edge. */
.tag-might-be-cancelled,
.tag-unscheduled {
  background: var(--paper);
  border-style: dashed;
  border-color: currentcolor;
}

.tag-might-be-cancelled {
  color: var(--tag-cancelled-text);
}

.tag-unscheduled {
  color: var(--sound);
}

/* Whose it is (#658's O-Tag, ADR 0031 §1): an ink label with the operator's shape, square at the corners and never
   filled, so it never reads as a status. Shown only while the site shows more than one operator. */
.operator-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0 0.55em 0 0.45em;
  border: 1.5px solid currentcolor;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}

.operator-tag svg {
  width: 0.7em;
  height: 0.7em;
  flex: none;
}

/* The one thing to do next (the app's ActionBand): Evergreen, or Trouble's red when the plan has failed, and its words
   always white. */
.band {
  background: var(--evergreen);
  color: var(--on-band);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  --focus: var(--on-band);
}

.band.trouble {
  background: var(--trouble-band);
}

.band a {
  color: inherit;
}

.band-lead {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.band-note {
  margin: var(--space-1) 0 0;
  font-size: var(--step--1);
}

/* What a page or a card is, above its name: "Terminal", "North Sound · Appletree Cove". */
.eyebrow {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* A departure, or an arrival, the same on every live page (the map's quick look, a terminal's, a route's): the time
   first, with the scheduled one struck through under it when it's moved; what it is and what's worth knowing beside it;
   its tag last. On a narrow line the tag drops under the words, and the time never shrinks. */
.departures {
  margin: 0;
  padding: 0;
  list-style: none;
}

.departure {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-1) var(--space-3);
  padding-block: var(--space-3);
}

.departure + .departure {
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

/* As wide as a time, so the rows line up; never wider than the line, at the largest text on a phone. */
.departure-time {
  flex: 0 0 min(5.4em, 100%);
  display: flex;
  flex-direction: column;
  font-size: var(--step-1-display);
}

.departure-time .time {
  line-height: 1.15;
}

/* "about", over a time that's our own estimate (#430), as the app's TimeStack says it. */
.time-about {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.departure-time .departure-was {
  color: var(--ink-2);
  font-size: var(--step--1);
  text-decoration: line-through;
}

/* The words and the tag: side by side while there's room, the tag under the words when there isn't. */
.departure-body {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-1) var(--space-3);
}

/* Each part only as wide as its words: a boat's name is the link, not the row (#539), and the operator's tag is a label. */
.departure-what {
  flex: 1 1 9rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.departure-lead {
  font-family: var(--display);
  font-weight: 700;
}

.departure-detail {
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* Later today, a late boat's guide (#775), with what the row says of the sailing, after its detail: the row's own ink,
   so it reads apart from the detail. */
.departure-guide {
  font-size: var(--step--1);
  font-weight: 600;
}

/* ── The home page (#503, #504) ───────────────────────────────────────── */

/* The hero, and the header above it, on the sky now: the words on the band's colour (postcards.css's .hero-<phase>,
   dimmed in Dark Mode as the postcards are), a phone with your crossing on its Lock Screen beside them, and under them
   the panorama, whose own flat sky runs into the band. The words never meet the mountains: the hero grows instead. */
.hero-band {
  padding-top: env(safe-area-inset-top);
}

/* The hero runs on from the header, its band unbroken: the page starts at its top, and the notch's inset is the
   header's alone. */
main:has(> .hero:first-child) {
  padding-top: 0;
}

main > .hero {
  padding-top: 0;
}

.hero-band a {
  color: inherit;
  font-weight: 600;
}

.hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-3);
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.hero-mark img {
  display: block;
  height: 32px;
  width: auto;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  padding-top: clamp(var(--space-5), 5vh, var(--space-7));
}

.hero-text {
  flex: 999 1 26rem;
  min-width: 0;
  padding-bottom: var(--space-6);
}

.hero-eyebrow {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 13ch;
  margin: var(--space-3) 0 var(--space-4);
  font-size: var(--step-5);
}

.hero-sub {
  max-width: 34ch;
  margin: 0 0 var(--space-4);
  font-size: var(--step-1);
}

/* Who the app is for, under Apple's badge (#1052). */
.hero-for {
  margin: 0 0 var(--space-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1-display);
}

.hero-text a {
  display: inline-block;
  padding-block: 10px;
}

/* Apple's badge (#1052), unchanged: at least 40 px tall (Apple's floor), with a quarter of its height clear on every
   side, and the site's focus ring around it, never on it. */
.hero-store {
  margin: var(--space-2) 0 var(--space-4);
  line-height: 0;
}

.hero-text a.store-badge,
a.store-badge {
  display: inline-block;
  padding: 0;
  border-radius: 10px;
  outline-offset: 4px;
}

.store-badge img {
  display: block;
  width: auto;
  height: clamp(48px, 44px + 0.6vw, 56px);
}

.hero-mac {
  max-width: 40ch;
  margin: 0 0 var(--space-2);
}

/* A link in a sentence, so its line keeps its height: WCAG's inline exception, not a 44 px target. */
.hero-text .hero-mac a {
  display: inline;
  padding-block: 0;
}

/* The land fills its box, cropped at the sides: the card's middle on a phone, Alki to Magnolia on a laptop, the cranes
   to the Needle on an ultrawide. */
.hero-art {
  display: block;
  width: 100%;
  height: clamp(10rem, 22vw, 26rem);
  object-fit: cover;
  object-position: 50% 100%;
}

/* A phone's screen in its frame: the app's own pictures (#504), 300 points wide on a laptop, narrower on a phone. */
.phone {
  flex: 0 1 300px;
  margin: 0;
  max-width: 300px;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 9px solid #101418;
  border-radius: 46px;
  background: #101418;
}

.hero-phone {
  margin-bottom: calc(-1 * var(--space-8));
  position: relative;
  z-index: 1;
}

.hero-phone img {
  box-shadow: 0 24px 48px rgb(16 20 24 / 0.28);
}

.home-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-block: calc(var(--space-8) * 1.5) var(--space-7);
}

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
}

.feature:nth-of-type(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 999 1 24rem;
  min-width: 0;
}

.feature h3,
.home-plans h2,
.home-gallery h2,
.home-questions h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--step-4);
}

.feature p {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

.feature .feature-quote {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--space-3);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-0);
}

/* Words, not a link: Pro is in the app. */
.pro-tag {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 2px 10px;
  border: 1.5px solid currentcolor;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step--1);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-card {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--paper);
}

.home-card img {
  display: block;
  width: calc(100% + 2 * var(--space-5));
  height: auto;
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4);
  border-radius: var(--radius) var(--radius) 0 0;
}

.home-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--step-2);
}

.home-card p:not(.pro-tag) {
  margin: 0;
  color: var(--ink-2);
}

/* The Mac's beta (#1314): the last thing it does, a card as wide as the cards above, with /mac's picture of the window. */
.home-mac {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) var(--space-8);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
  border-radius: var(--radius);
  background: var(--paper);
}

.home-mac-text {
  flex: 999 1 20rem;
  min-width: 0;
}

.home-mac h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--step-3);
}

.home-mac-text p:not(.pro-tag) {
  max-width: 34rem;
  margin: 0 0 var(--space-3);
}

.home-mac-text a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 600;
}

.home-mac-window {
  flex: 1 1 22rem;
  margin: 0;
}

.home-mac-window img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--space-2);
}

.home-plans {
  padding-block: var(--space-7);
}

.home-plans-intro p {
  max-width: 46rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

.home-plans-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: var(--space-5);
}

.home-plan {
  padding: var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--paper);
}

.home-plan-pro {
  border: 2px solid var(--evergreen);
}

.home-plan h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--step-3);
}

.home-plan h4 {
  margin: var(--space-4) 0 0;
  font-size: var(--step-0);
}

.home-plan h4 + p {
  margin-top: 0;
  color: var(--ink-2);
}

.home-plan-price {
  font-weight: 600;
}

/* The numbers band (#504): what the history has watched, counted nightly, on the action band's evergreen. */
.home-numbers {
  background: var(--evergreen);
  color: #ffffff;
  --focus: #ffffff;
}

.home-numbers .wrap {
  padding-block: var(--space-7);
}

.home-numbers h2 {
  margin: 0 0 var(--space-5);
  font-size: var(--step-2);
}

.home-numbers ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The number above what it counts, in the order they're read. */
.home-number {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-gallery {
  padding-block: var(--space-7) var(--space-5);
}

.home-gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
}

.home-gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.home-gallery li a {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-4);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.home-gallery li a:hover span {
  text-decoration: underline;
}

.home-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.home-gallery span {
  padding-inline: var(--space-1);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1-display);
}

.home-questions {
  padding-block: var(--space-6) var(--space-8);
}

.home-questions details {
  max-width: 46rem;
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

.home-questions summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-2);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1-display);
  cursor: pointer;
}

.home-questions details p {
  margin: 0 0 var(--space-4);
  color: var(--ink-2);
}

.home-credit {
  max-width: 46rem;
  margin-top: var(--space-6);
}

.lede {
  font-size: var(--step-1);
}

/* ── Salish Crossing Pro (#1210) ──────────────────────────────────────── */

/* The hero on mist, as the W-Pro board draws it, in the home hero's grid (.hero-grid, .hero-text, .hero-phone): the words,
   and the Lock Screen with its alert overlapping the panorama at dusk below, the hour of the pictures. */
.pro-hero h1 {
  margin: var(--space-3) 0 var(--space-3);
  font-size: var(--step-5);
}

.pro-lead {
  margin: 0 0 var(--space-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.15;
}

.pro-sub {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

.pro-price {
  max-width: 34rem;
  font-weight: 600;
}

/* Pro's mark (the app's ProMark): "PRO" on an Evergreen burgee, its notch half the text's height deep, edged in Evergreen
   Ink so it holds its shape in Dark Mode (in light the two are one colour). Decorative: the h1 says Pro. */
.pro-mark {
  --notch: 0.5em;
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0.17em calc(0.6em + var(--notch)) 0.17em 0.5em;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1-display);
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.pro-mark::before,
.pro-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--notch)) 50%, 100% 100%, 0 100%);
}

.pro-mark::before {
  inset: 0;
  background: var(--evergreen-ink);
}

.pro-mark::after {
  inset: 1.5px;
  background: var(--evergreen);
}

.pro-section {
  padding-top: var(--space-8);
}

/* The first clears the hero's phone, which hangs over the panorama. */
.pro-hero + .pro-section {
  padding-top: calc(var(--space-8) * 1.5);
}

.pro-section h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--step-4);
}

.pro-intro {
  max-width: 46rem;
}

.pro-intro p {
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* The four places your crossing shows, each above its caption, bottoms lined up. */
.pro-places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  align-items: end;
  gap: var(--space-6) var(--space-5);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.pro-places figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.pro-places figcaption,
.pro-alerts figcaption {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1-display);
  text-align: center;
}

/* A phone's screen in its frame, as .phone draws it, a little smaller beside three others. */
.pro-screen {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  box-sizing: border-box;
  border: 7px solid #101418;
  border-radius: 36px;
  background: #101418;
}

/* The top of the screen only: the frame open at the bottom. */
.pro-island {
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
}

/* The Watch and the car's screen bring their own frames. */
.pro-device {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
}

.pro-device.pro-carplay {
  max-width: 320px;
}

.pro-alerts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6) var(--space-8);
}

.pro-alerts-text {
  flex: 999 1 28rem;
  min-width: 0;
}

.pro-alerts .phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.pro-alerts h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--step-1-display);
}

/* Each alert's name, then when it comes. */
.pro-list {
  margin: 0;
  padding: var(--space-1) var(--space-5);
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--paper);
}

.pro-list div {
  padding-block: var(--space-3);
}

.pro-list div + div {
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

.pro-list dt {
  font-weight: 600;
}

.pro-list dd {
  margin: 0;
  color: var(--ink-2);
}

.pro-respect {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border: 2px solid var(--evergreen);
  border-radius: var(--radius);
  background: var(--paper);
}

.pro-respect h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--step-2);
}

.pro-respect p:last-child {
  margin-bottom: 0;
}

.pro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: var(--space-5);
}

.pro-cards .home-plan h3 {
  font-size: var(--step-2);
}

.pro-cards .home-plan p {
  margin: 0;
  color: var(--ink-2);
}

.pro-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 0 var(--space-6);
  margin: 0;
}

.pro-details div {
  padding-block: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

.pro-details dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1-display);
}

.pro-details dd {
  margin: var(--space-1) 0 0;
  color: var(--ink-2);
}

.pro-steps {
  max-width: 46rem;
  margin: 0 0 var(--space-4);
  padding-left: 1.4em;
}

.pro-steps li + li {
  margin-top: var(--space-2);
}

/* ── The public beta (#1239) ──────────────────────────────────────────── */

/* /testflight, as the W-TestFlight boards draw it: /pro's hero on mist, in the home hero's grid (.hero-grid, .hero-text,
   .hero-phone), with the Lock Screen over the panorama at dusk. Closed, the words alone above the panorama. */
.beta-hero h1 {
  margin: var(--space-3) 0 var(--space-3);
  font-size: var(--step-5);
}

.beta-closed .wrap {
  padding-block: clamp(var(--space-5), 5vh, var(--space-7)) var(--space-6);
}

.beta-eyebrow {
  margin: 0;
  color: var(--sound);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beta-lead {
  margin: 0 0 var(--space-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.15;
}

.beta-sub {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* A link, since it goes to TestFlight, drawn as the support search's button (that rule draws both). */
.beta-join-line {
  margin: var(--space-4) 0 var(--space-3);
}

.hero-text a.beta-join {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hero-text a.beta-join:hover {
  text-decoration: underline;
}

.beta-section {
  padding-top: var(--space-7);
}

/* The words keep to a reading width, lined up with the hero's, under the page's own. */
.beta-section > ul,
.beta-section > p {
  max-width: 46rem;
}

/* The first clears the hero's phone, which hangs over the panorama. */
.beta-hero + .beta-section {
  padding-top: calc(var(--space-8) * 1.5);
}

.beta-section:last-child {
  padding-bottom: var(--space-7);
}

.beta-section h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--step-4);
}

.beta-section li + li {
  margin-top: var(--space-2);
}

@media (forced-colors: active) {
  .hero-text a.beta-join {
    border-color: LinkText;
  }
}

/* /mac (#945), as the W-Mac boards draw it: /testflight's page, with the Mac's main window over the panorama where the
   phone is. The window's picture has its own corners and shadow, as macOS draws them. */
.mac-window {
  flex: 0 1 640px;
  max-width: 640px;
  margin: 0 0 calc(-1 * var(--space-8));
  position: relative;
  z-index: 1;
}

.mac-window img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgb(16 20 24 / 0.28);
}

@media (forced-colors: active) {
  .mac-window img {
    border: 1px solid CanvasText;
  }
}

/* ── Postcards (#503) ─────────────────────────────────────────────────── */

/* A postcard is an object on the page (the canvas's A): cream card stock, the art inset, its words underneath, and a
   slight lean. Its colours are the card's own, the same in both schemes. */
.postcard {
  --card-stock: #fbf8f2;
  --card-ink: #1e2a2b;
  --card-ink-2: #4e5b5c;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.postcard-frame {
  position: relative;
  width: 100%;
  padding: 10px 10px 0;
  background: var(--card-stock);
  color: var(--card-ink);
  border-radius: 4px;
  box-shadow: 0 14px 30px rgb(10 12 24 / 0.22);
  transform: rotate(-0.8deg);
}

.postcards > li:nth-child(even) .postcard-frame {
  transform: rotate(0.7deg);
}

.postcard-art {
  aspect-ratio: 390 / 240;
  border-radius: 2px;
  overflow: hidden;
}

.postcard-art svg,
.postcard-art img,
.play-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.postcard-art svg.fresh,
.play-art svg.fresh {
  animation: develop 0.9s ease-out;
}

@keyframes develop {
  from {
    opacity: 0;
  }
}

.postcard figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
  padding: var(--space-3) 2px var(--space-3);
}

.postcard-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-1-display);
  line-height: 1.15;
}

/* A card's name links its terminal (#504) in the card's own ink: the page's link colour is for the page's ground, not
   the card stock, which stays cream in both schemes. */
a.postcard-name {
  --focus: var(--card-ink);
  color: inherit;
}

.postcard-place {
  font-family: var(--display);
  font-weight: 700;
  color: var(--card-ink-2);
}

.postcard-now,
.postcard-note {
  flex-basis: 100%;
  font-size: var(--step--1);
  color: var(--card-ink-2);
}

.postcard-note:not([hidden]) {
  font-weight: 600;
  color: var(--card-ink);
}

.postcard-play {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--sound);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sound);
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.postcard-play:hover {
  background: var(--mist);
}

/* The flagship leads, larger, with the postmark on it as a stamp. */
.postcard.lead {
  max-width: 52rem;
  margin: var(--space-6) auto var(--space-7);
}

.postcard.lead .postcard-frame {
  padding: 16px 16px 0;
  transform: rotate(-1.5deg);
}

.postcard-stamp {
  position: absolute;
  top: -18px;
  right: 0;
  width: clamp(64px, 14%, 112px);
  height: auto;
  padding: 6px;
  background: var(--card-stock);
  border: 2px dashed #c8c1b4;
  transform: rotate(7deg);
  box-shadow: 0 6px 14px rgb(10 12 24 / 0.2);
}

.postcard-region h2 {
  margin-top: var(--space-7);
}

.postcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-6) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

/* Play: the card large, and what to change. */
dialog.play {
  width: min(100% - 2 * var(--gutter), 48rem);
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: var(--space-4) var(--space-4) var(--space-5);
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgb(10 12 24 / 0.4);
}

dialog.play::backdrop {
  background: rgb(10 12 24 / 0.55);
}

.play-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.play-head h2 {
  margin: 0;
}

.play-art {
  aspect-ratio: 390 / 240;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mist);
}

.play-note {
  min-height: 1.5em;
  margin: var(--space-2) 0;
  font-weight: 600;
}

.play-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-3) var(--space-4);
}

.play fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.play legend {
  margin-bottom: var(--space-1);
  font-family: var(--display);
  font-weight: 700;
}

.play fieldset label,
.play-special {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
}

.play input[type="radio"],
.play input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  margin: 0;
  accent-color: var(--sound);
}

.play-special {
  margin-top: var(--space-3);
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}

.play-close,
.play-actions button {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--sound);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sound);
  font: inherit;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.play-actions button[aria-pressed="true"] {
  background: var(--sound);
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .postcard-art svg.fresh,
  .play-art svg.fresh {
    animation: none;
  }
}

/* ── Asked-for looks ──────────────────────────────────────────────────── */

/* More contrast: every card has an edge on the Mist ground, and every tag the edge of its words (#545). */
@media (prefers-contrast: more) {
  .card,
  .home-plan:not(.home-plan-pro),
  .pro-list {
    border-color: var(--ink-2);
  }

  .tag {
    border-color: currentcolor;
  }

  .operator-tag {
    border-width: 2px;
  }
}

/* Windows' contrast themes repaint every colour: the edges the fills stood for come back, in the theme's own. */
@media (forced-colors: active) {
  .card,
  .band,
  .tag,
  .home-plan,
  .pro-list,
  .pro-respect {
    border-color: CanvasText;
  }

  /* Pro's burgee keeps its own colours, white on Evergreen, well past AA: repainted, its fill would go. */
  .pro-mark {
    forced-color-adjust: none;
  }

  .postcard-frame {
    border: 1px solid CanvasText;
  }

  .tag-might-be-cancelled,
  .tag-unscheduled {
    border-style: dashed;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .skip,
  .site-nav,
  hr.rail,
  .loading {
    display: none;
  }
}

/* ── Support (#1211) ──────────────────────────────────────────────────── */

/* /support, a topic and search, as the W-Support, W-Topic and W-Search boards draw them: the words at the measure, the
   app's own pictures beside them on a laptop and under them on a phone. */
.support-hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.support-hero h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--step-5);
}

.support-hero .lede {
  color: var(--ink-2);
}

/* The search form: its label, the field and Search, the button wrapping under the field when there's no room. */
.support-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
}

.support-search label {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1-display);
}

.support-search div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.support-search input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--ink-2);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-1);
}

/* The site's one filled button: Support's search, and the public beta's Join the beta link (#1239). */
.support-search button,
.hero-text a.beta-join {
  min-height: 48px;
  padding: 0 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--sound);
  color: var(--mist);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  cursor: pointer;
}

.support-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-6);
}

.support-body h2,
.topic h2 {
  margin: 0 0 var(--space-3);
}

/* A list of links to topics: each its title, and its line under it. */
.topic-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-links li {
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

.topic-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) 0;
  text-decoration: none;
}

.topic-links a span:first-child {
  color: var(--sound);
  font-weight: 650;
}

.topic-links a:hover span:first-child {
  text-decoration: underline;
}

.topic-links .topic-line {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.support-common {
  max-width: var(--measure);
}

.support-common a span:first-child {
  font-size: var(--step-1);
}

.support-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: var(--space-5);
  align-items: start;
}

.support-group,
.support-stuck,
.topic-answer {
  border-radius: var(--radius);
  background: var(--paper);
}

.support-group {
  padding: var(--space-5) var(--space-5) var(--space-3);
  scroll-margin-top: var(--space-5);
}

.support-group h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--step-2);
  font-weight: 800;
}

.support-stuck {
  padding: var(--space-5) var(--space-5) var(--space-2);
  max-width: 46rem;
}

/* A topic: the breadcrumb, its title, the short answer, then its sections. */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.crumbs li + li::before {
  content: "›";
  margin-right: var(--space-2);
  color: var(--ink-2);
}

.crumbs a {
  display: inline-block;
  padding-block: 10px;
}

.topic {
  padding-top: var(--space-6);
}

.topic h1 {
  margin: var(--space-2) 0 var(--space-4);
  font-size: var(--step-5);
  max-width: 20ch;
}

.topic-answer {
  max-width: var(--measure);
  margin: 0;
  padding: var(--space-5);
  font-size: var(--step-1);
  line-height: 1.4;
}

.topic-contents {
  max-width: var(--measure);
  margin-top: var(--space-4);
}

.topic-contents h2 {
  margin: 0;
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-2);
}

.topic-contents ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-contents a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 600;
}

.topic-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-8);
}

.topic-details section {
  max-width: var(--measure);
  scroll-margin-top: var(--space-5);
}

.topic-details section > :last-child {
  margin-bottom: 0;
}

/* A section and its picture: side by side when there's room, the picture under the words when there isn't. */
.topic-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-6) var(--space-8);
}

.topic-pair section {
  flex: 1 1 30rem;
}

.topic-pair .phone {
  flex: 0 1 260px;
  max-width: 260px;
}

.topic-pair figcaption {
  margin-top: var(--space-2);
  text-align: center;
}

/* A list of statuses or words: the tag or the words, then what they mean. */
.topic-terms {
  margin: 0;
}

.topic-terms > div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: var(--space-1) var(--space-5);
  align-items: start;
  padding: var(--space-3) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

.topic-terms dt {
  font-weight: 650;
}

.topic-terms dd {
  margin: 0;
}

/* Too narrow for two columns, the meaning goes under its tag. */
@media (max-width: 30rem) {
  .topic-terms > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.topic-more {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-8);
}

.topic-more section {
  max-width: var(--measure);
}

.topic-all a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 600;
}

/* Search's results: each its group, its title as a heading, and the passage with the words found marked. Bold as well as
   tinted, so a mark isn't colour alone. */
.search-results {
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results li {
  padding: var(--space-4) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink-2) 30%, transparent);
}

.search-results h2 {
  margin: var(--space-1) 0;
  font-size: var(--step-1-display);
  font-weight: 700;
}

.search-results p {
  margin: 0;
}

.search-group {
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 600;
}

.search-results mark {
  border-radius: 3px;
  padding: 0 2px;
  background: var(--tag-delayed-fill);
  color: var(--ink);
  font-weight: 650;
}

.search-count {
  font-size: var(--step-1);
}

@media (forced-colors: active) {
  .support-group,
  .support-stuck,
  .topic-answer {
    border: 1px solid CanvasText;
  }

  .search-results mark {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }
}

/* The app's pictures that aren't a whole screen, such as the widgets (#1211): rounded, with no phone round them. */
.shot {
  flex: 0 1 300px;
  max-width: 300px;
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.topic-pair .shot figcaption {
  margin-top: var(--space-2);
  text-align: center;
}

/* Staging's view of a page or a section waiting for an app release (ADR 0041 §6): labelled in words, with an outline
   round the section, so it's never colour alone. Production never shows it. */
.unreleased {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--sound);
  border-radius: var(--radius);
}

.unreleased-label {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 0.125rem 0.625rem;
  border: 1.5px solid currentcolor;
  border-radius: 6px;
  color: var(--sound);
  font-weight: 700;
  font-size: var(--step--1);
}
