/* Network Buddy pages. Built as a copy of /photobackup/assets/photobackup.css (2026-10-26), so both app
 * pages share one structure; only the app's colors change. Same balance (_design/photobackup-system.md):
 * studio carries fonts, type scale, weights, space, shell, --col-side grid, link treatment; top bar, horizon
 * and footer via /assets/components.css. The app carries every chromatic color, buttons (50 min height,
 * radius 12) and raised surfaces (radius 16).
 * Colors: the app icon's teal (#0E7A74 to #0A615D) for fills, and the app's dark values from
 * Network Buddy/NetworkBuddy/Views/Shared/Theme.swift for text accents, tints and states.
 * Linked after /assets/base.css, which owns fonts, tokens and base element styles. Dark only, like the rest of the site.
 */

/* ---------- App tokens (Network Buddy) ---------- */
:root {
  --nb-teal-50:  #112522;  /* Theme.accentTint, dark */
  --nb-teal-400: #0A615D;  /* icon gradient bottom; Theme.accent, light */
  --nb-teal-500: #0E7A74;  /* icon gradient top */
  --nb-teal-600: #5CCBBF;  /* Theme.accent, dark */
  --nb-on-accent: #FFFFFF; /* on teal 500: 5.18:1; on teal 400: 7.29:1 */
  --nb-surface: #0B1A19;   /* Theme.poster, dark; the icon's dark-mode ground */
  --nb-border: #2F5A54;    /* Theme.ringClose, dark */
  --nb-separator: #23403C; /* Theme.ringMedium, dark */
  --nb-met-fill: #112522;  /* ChipStyle.met, dark */
  --nb-met-ink: #5CCBBF;
  --nb-due-fill: #2E2011;  /* ChipStyle.due, dark */
  --nb-due-ink: #FFB25E;

  --nb-control-min: 3.125rem; /* 50, the same button metrics as the other app pages */
  --nb-row-min: 2.75rem;      /* 44 */
  --nb-radius-chip: 0.375rem;   /* 6 */
  --nb-radius-control: 0.75rem; /* 12 */
  --nb-radius-block: 1rem;      /* 16 */
  --nb-press-scale: 0.98;

  /* The studio's chromatic roles take the app's colors on these pages */
  --color-sun: var(--nb-teal-500);
  --horizon-sun: var(--nb-teal-500); /* components.css: the half sun on the horizon, in the icon's teal */
  --color-sea: var(--nb-teal-600);
  --color-focus: var(--nb-teal-600);
}

@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: var(--nb-teal-600); }
}

/* Lines break only where the column forces them (Dev: no words pushed to a second line), so no
 * text-wrap: balance or pretty. A lone last word is fixed in the copy. A word longer than its
 * column breaks instead of running past the edge. */
h1, h2, h3, p, li, dt, dd, summary { overflow-wrap: break-word; }

/* Every single-column grid gets a track that may shrink below its content's min width;
 * an implicit auto track grows to the widest unbreakable child and overflows a phone.
 * Placed before the media queries that set the desktop columns. */
.masthead, .intro, .proof, .proof__copy, .receipt, .help, .faq, .support, .legal, .toc, .policy,
.policy section, .promise__inner, .section__head, .steps, .step, .place, .place__text {
  grid-template-columns: minmax(0, 1fr);
}

/* Tap feedback. iOS Safari paints :active only once a touchstart listener exists, which
 * /assets/press.js adds (it also puts .press on <html>). Only then does the grey tap flash go:
 * without the script the flash is the only feedback a phone shows (ios-phone-rules.md item 1). */
.btn, .faq__list summary, .toc a { touch-action: manipulation; }
.press .btn, .press .faq__list summary, .press .toc a { -webkit-tap-highlight-color: transparent; }

/* Top bar, brand lockup, horizon and footer come from /assets/components.css (_design/components.md) */

/* Rules sit between rows only: the next section's rule (or the footer's) closes each list */
.rule-row:last-child, .place:last-child { border-bottom: 0; }

/* ---------- Masthead (the home page's, with the app's name in the wordmark slot) ---------- */
.masthead {
  display: grid;
  gap: var(--space-lg);
  padding-block: var(--space-2xl) var(--space-lg);
}
.masthead__name { display: grid; gap: var(--space-md); align-content: end; min-width: 0; }
.masthead__icon {
  width: 64px;  /* images in px, so text zoom does not grow them */
  height: 64px;
  border-radius: var(--radius-icon);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: -0.02em;
  min-width: 0;
}
.wordmark--legal { font-size: var(--text-title); line-height: var(--leading-title); letter-spacing: -0.01em; }
/* Privacy page: the app lockup sits above a short h1, as on Nuri's legal pages, so the title never
 * strands a word of the app name */
.applock {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-xs);
  min-height: var(--nb-row-min);
  font-weight: var(--weight-label);
  color: var(--color-ink);
  text-decoration-color: transparent;
}
.applock img { width: 40px; height: 40px; border-radius: var(--radius-icon); }
@media (hover: hover) and (pointer: fine) {
  .applock:hover { text-decoration-color: var(--nb-teal-600); }
}

.intro { display: grid; gap: var(--space-sm); align-content: end; min-width: 0; }
.intro__line { font-size: var(--text-lead); line-height: var(--leading-lead); }
.intro__meta { color: var(--color-ink-2); }
.intro__meta a { color: var(--nb-teal-600); text-decoration-color: currentColor; }
.avail { color: var(--color-ink-2); font-size: var(--text-label); }
.avail strong { color: var(--color-ink); font-weight: var(--weight-label); }

/* ---------- App buttons (PTPrimaryButton, PTSecondaryButton) ---------- */
.actions { display: grid; gap: var(--space-xs); padding-top: var(--space-2xs); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nb-control-min);
  padding: var(--space-3xs) var(--space-md);
  border: var(--rule) solid transparent;
  border-radius: var(--nb-radius-control);
  font-size: var(--text-body);
  font-weight: var(--weight-label);
  line-height: var(--leading-title);
  text-align: center;
  text-decoration: none;
  /* Release on the critically damped spring from base.css (ios-phone-rules.md section 4); press in fast */
  transition: transform var(--dur-spring) var(--ease-spring),
              background-color var(--dur-quick) var(--ease-out);
}
.btn:active {
  transform: scale(var(--nb-press-scale));
  transition-duration: var(--dur-press);
  transition-timing-function: var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--nb-radius-control); }
.btn--primary { background: var(--nb-teal-500); color: var(--nb-on-accent); }
.btn--primary:active { background: var(--nb-teal-400); }
.btn--secondary { background: var(--nb-surface); border-color: var(--nb-border); color: var(--nb-teal-600); }
.btn--secondary:active { background: var(--nb-teal-50); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--nb-teal-400); }
  .btn--secondary:hover { background: var(--nb-teal-50); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-2xl); }
.section { position: relative; }
/* The rule between sections sits on the content edge, like the home page's rows, not on the gutter */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: var(--rule) solid var(--color-rule);
}
.section__head { display: grid; gap: var(--space-sm); padding-bottom: var(--space-lg); }
.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-title);
  line-height: var(--leading-title);
  letter-spacing: -0.01em;
}
.section__lead { font-size: var(--text-lead); line-height: var(--leading-lead); color: var(--color-ink-2); }
.fineprint { color: var(--color-muted); font-size: var(--text-label); }
.fineprint a { color: var(--color-ink-2); }

/* How it works: a sequence with no pictures. Each step's numeral rests on a hairline, the way the
 * sun rests on the horizon; one column on a phone, two on a tablet, four across on a laptop. */
.steps { display: grid; gap: var(--space-xl); padding: 0; list-style: none; }
.step { display: grid; gap: var(--space-2xs); align-content: start; color: var(--color-ink-2); }
.step__n {
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-2xs);
  border-bottom: var(--rule) solid var(--color-rule);
  font-family: var(--font-display);
  font-size: var(--text-title);
  line-height: var(--leading-title);
  color: var(--nb-teal-600);
  font-variant-numeric: lining-nums; /* Young Serif's default oldstyle 1 reads as a small capital I */
}
.step__title { font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--weight-strong); color: var(--color-ink); }

/* Proof: the rules beside the check illustration */
.proof { display: grid; gap: var(--space-xl); }
.proof__copy { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.proof__copy .section__lead { margin-top: calc(-1 * var(--space-sm)); }
.rules { margin: 0; border-top: var(--rule) solid var(--color-rule); }
.rule-row {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-sm);
  border-bottom: var(--rule) solid var(--color-rule);
}
.rule-row dt { font-weight: var(--weight-label); }
.rule-row dd { margin: 0; color: var(--color-ink-2); }

.receipt { margin: 0; display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.check {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--nb-surface);
  border: var(--rule) solid var(--nb-separator);
  border-radius: var(--nb-radius-block);
}
.check__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.check__file { font-weight: var(--weight-label); overflow-wrap: anywhere; }
.check__size { color: var(--color-muted); font-size: var(--text-label); white-space: nowrap; }
.check__prints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* equal halves: an auto label column left the checksum 5px at 200% text */
  gap: var(--space-2xs) var(--space-md);
  margin: 0;
  font-size: var(--text-label);
}
.check__prints dt { color: var(--color-muted); }
.check__prints dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.check__prints .empty { color: var(--color-muted); }
.chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-2xs);
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--nb-radius-chip);
  font-size: var(--text-label);
  font-weight: var(--weight-label);
}
.chip svg { width: 1rem; height: 1rem; flex: none; }
.chip--ok { background: var(--nb-met-fill); color: var(--nb-met-ink); }
.chip--due { background: var(--nb-due-fill); color: var(--nb-due-ink); }
.receipt figcaption { display: grid; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-label); }

/* Destinations: the home page's app rows. Glyph and name lead; on a laptop the details sit in
 * the --col-side column, under the section's intro. */
.places { border-top: var(--rule) solid var(--color-rule); }
.place {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-bottom: var(--rule) solid var(--color-rule);
}
.place__head { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.place__glyph { flex: none; width: 40px; height: 40px; color: var(--nb-teal-600); } /* px: an image, so text zoom does not grow it */
.place__text { display: grid; gap: var(--space-2xs); color: var(--color-ink-2); }
.place__text p, .faq__answer p, .rule-row dd { max-width: 40rem; }
.place__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-title);
  line-height: var(--leading-title);
  color: var(--color-ink);
  min-width: 0;
}
.place__needs strong { color: var(--color-ink); font-weight: var(--weight-label); }

/* Promise: the one band in the icon's teal. The focus ring turns white here: the light-teal ring
 * measures 2.65:1 on this teal, white measures 5.18:1. */
.promise { background: var(--nb-teal-500); color: var(--nb-on-accent); --color-focus: var(--nb-on-accent); }
.promise__inner { display: grid; gap: var(--space-lg); padding-block: var(--space-2xl); }
.promise__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-title);
  line-height: var(--leading-title);
  letter-spacing: -0.01em;
}
.promise__body { display: grid; gap: var(--space-md); justify-items: start; font-size: var(--text-lead); line-height: var(--leading-lead); }

/* Questions and support */
.help { display: grid; gap: var(--space-2xl); }
.faq { display: grid; gap: var(--space-lg); align-content: start; min-width: 0; }
.faq__list {
  background: var(--nb-surface);
  border: var(--rule) solid var(--nb-separator);
  border-radius: var(--nb-radius-block);
  overflow: hidden;
}
/* iOS inset grouped list: separators start at the text inset and run to the trailing edge */
.faq__list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--nb-row-min);
  padding: var(--space-xs) var(--space-sm);
  font-weight: var(--weight-strong);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-quick) var(--ease-out);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list details + details > summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-sm);
  right: 0;
  border-top: var(--rule) solid var(--nb-separator);
}
/* Concentric corners: the summary sits inside the list's 1px border, so its corner is 16 - 1 = 15;
 * the inset focus ring (offset -2) then draws at 13, 3px in from the 16px edge, concentric with it */
.faq__list { --nb-radius-inner: calc(var(--nb-radius-block) - var(--rule)); }
.faq__list details:first-child > summary { border-radius: var(--nb-radius-inner) var(--nb-radius-inner) 0 0; }
.faq__list details:last-child:not([open]) > summary { border-radius: 0 0 var(--nb-radius-inner) var(--nb-radius-inner); }
.faq__list summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--nb-teal-600);
  border-bottom: 2px solid var(--nb-teal-600);
  transform: translateY(-0.125rem) rotate(45deg);
  transition: transform var(--dur-quick) var(--ease-out);
}
.faq__list details[open] > summary::after { transform: translateY(0.125rem) rotate(-135deg); }
.faq__list summary:active { background: var(--nb-teal-50); }
@media (hover: hover) and (pointer: fine) {
  .faq__list summary:hover { background: var(--nb-teal-50); }
}
.faq__list summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.faq__answer { display: grid; gap: var(--space-xs); padding: 0 var(--space-sm) var(--space-md); color: var(--color-ink-2); }
/* The answer settles in instead of appearing at once: opening a question is occasional, and the
 * motion says where the new text came from. CSS only; closing stays instant. */
.faq__list details[open] > .faq__answer { animation: nb-reveal 200ms var(--ease-out); }
@keyframes nb-reveal { from { opacity: 0; transform: translateY(-4px); } }
@keyframes nb-fade { from { opacity: 0; } }
.faq__answer strong { color: var(--color-ink); font-weight: var(--weight-label); }

.support { display: grid; gap: var(--space-md); align-content: start; justify-items: start; min-width: 0; }
/* justify-items: start sizes each child to its content, so a long unbreakable word would set the width;
 * anywhere lets it break inside the column instead */
.support > .title, .support__include { overflow-wrap: anywhere; }
.support__mail, .intro__mail { font-family: var(--font-display); font-size: var(--text-lead); line-height: var(--leading-title); overflow-wrap: anywhere; }
.support__mail a, .intro__mail a { display: inline-flex; align-items: center; min-height: var(--nb-row-min); }
.intro__mail a { color: var(--nb-teal-600); text-decoration-color: currentColor; }
.support__include { display: grid; gap: var(--space-2xs); color: var(--color-ink-2); }
.support__include ol { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--space-3xs); }
.support__include li::marker { color: var(--nb-teal-600); }
.support .btn { width: 100%; }

/* ---------- Privacy policy ---------- */
.updated { color: var(--color-ink-2); }
.updated strong { color: var(--color-ink); font-weight: var(--weight-label); }

.legal { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl) var(--space-3xl); }
.toc { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.toc__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lead);
  line-height: var(--leading-title);
}
.toc ol { margin: 0; padding: 0; list-style: none; border-top: var(--rule) solid var(--color-rule); }
.toc li { border-bottom: var(--rule) solid var(--color-rule); }
.toc a {
  display: flex;
  align-items: center;
  min-height: var(--nb-row-min);
  padding-block: var(--space-2xs);
  color: var(--color-ink-2);
  text-decoration-color: transparent;
}
.toc a:active { color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) {
  .toc a:hover { color: var(--color-ink); text-decoration-color: var(--nb-teal-600); }
}

.policy { display: grid; gap: var(--space-xl); min-width: 0; }
.policy section { display: grid; gap: var(--space-sm); scroll-margin-top: var(--space-lg); }
.policy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-title);
  line-height: var(--leading-title);
  letter-spacing: -0.01em;
  padding-bottom: var(--space-3xs);
}
.policy p, .policy li { max-width: 40rem; color: var(--color-ink-2); }
.policy strong { color: var(--color-ink); font-weight: var(--weight-label); }
.policy .short p:first-of-type { font-size: var(--text-lead); line-height: var(--leading-lead); color: var(--color-ink); }
.policy ul { display: grid; gap: var(--space-xs); padding-left: 1.25rem; list-style: disc; }
.policy li::marker { color: var(--nb-teal-600); }
.policy .dest { display: grid; gap: var(--space-sm); } /* without display: grid the gap did nothing and the three destinations ran together */
.policy a { color: var(--nb-teal-600); text-decoration-color: currentColor; }
.policy .published { color: var(--color-muted); }
.policy .published strong { overflow-wrap: anywhere; } /* the URL is one unbreakable word; it set the column's width at 320 */

/* ---------- Footer: shared, plus this app's trademark line below it ---------- */
.foot { padding-block: var(--space-xl); } /* components.md override: the trademark line takes the bottom space */
.trademarks { padding-bottom: var(--space-2xl); color: var(--color-muted); font-size: var(--text-label); text-align: center; } /* centered with the footer on phones */

/* ---------- Tablet ---------- */
@media (min-width: 48rem) {
  .trademarks { text-align: start; }
  .masthead__icon { width: 88px; height: 88px; }
  .actions { display: flex; flex-wrap: wrap; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
  .rule-row { grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: var(--space-md); } /* 280: the longest label measures 273 */
  .place__glyph { width: 48px; height: 48px; }
  .support .btn { width: auto; }
}

/* ---------- Laptop and up: the studio's two-column grid, right column = --col-side ---------- */
@media (min-width: 80rem) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) var(--col-side);
    align-items: end;
    gap: var(--space-xl);
    padding-block: var(--space-3xl) var(--space-xl);
  }
  /* The name takes a full-width row, so the app name holds one line from 1280 to 1920; the
   * intro sits in the right-hand column below it (Nuri's masthead--page) */
  .masthead { row-gap: var(--space-lg); }
  .masthead__name { grid-column: 1 / -1; }
  .masthead .intro { grid-column: 2; }
  .wordmark--legal { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: -0.02em; }

  .section { padding-block: var(--space-3xl); }
  .section__head {
    grid-template-columns: minmax(0, 1fr) var(--col-side);
    column-gap: var(--space-xl);
    align-items: end;
    padding-bottom: var(--space-xl);
  }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-lg); }

  .place {
    grid-template-columns: minmax(0, 1fr) var(--col-side);
    column-gap: var(--space-xl);
    align-items: center;
    padding-block: var(--space-lg);
  }

  /* The illustration is shorter than the four rules: it sticks while they scroll past, so the last
   * rows still have it beside them */
  .receipt { position: sticky; top: var(--space-lg); align-self: start; }

  .proof, .help, .legal {
    grid-template-columns: minmax(0, 1fr) var(--col-side);
    column-gap: var(--space-xl);
  }
  .promise__inner {
    grid-template-columns: minmax(0, 1fr) var(--col-side);
    column-gap: var(--space-xl);
    align-items: end;
    padding-block: var(--space-3xl);
  }
  .promise__title { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: -0.02em; }

  /* Sticky, so it stays beside the questions however many answers are open */
  .help .support { grid-column: 2; grid-row: 1; position: sticky; top: var(--space-lg); align-self: start; }
  .help .faq { grid-column: 1; grid-row: 1; }
  /* align-self: start, or the rail stretches to the full row (5133px) and never sticks. Taller than
   * the screen, it scrolls inside itself while it sticks. */
  .legal .toc {
    grid-column: 2; grid-row: 1; position: sticky; top: var(--space-lg); align-self: start;
    max-height: calc(100vh - 2 * var(--space-lg)); overflow-y: auto; overscroll-behavior: contain;
  }
  .legal .policy { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:active { transform: none; }
  .faq__list details[open] > .faq__answer { animation-name: nb-fade; } /* fade only, no movement */
}

/* ---------- Home masthead v2 (Dev chose option 2, 2026-10-20) ----------
 * Nuri's masthead in this app's colors: icon and name as one lockup, the promise, details, buttons and
 * availability down the main column, and where the copies go in --col-side (under the words on a phone).
 * Rhythm: 16 inside the words, 24 between lockup and words, 32 before the route card. Screenshots, when they
 * exist, replace the route card. The privacy page keeps the base .masthead rules above. */
.masthead--home { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); padding-block: var(--space-xl) var(--space-lg); }
.masthead--home .masthead__name { display: flex; align-items: center; gap: var(--space-sm); }
.masthead--home .masthead__icon { width: 56px; height: 56px; flex: none; }
.masthead--home .wordmark { font-size: clamp(2.25rem, 11vw, 3.25rem); } /* two lines beside the icon on a phone */
.masthead--home .intro { align-content: start; }
.masthead--home .actions { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); }
.masthead--home .actions .btn { flex: 1 1 auto; } /* phone: the two buttons share the row, or each takes a full row at 320 */
.hl { color: var(--nb-teal-600); }

.route {
  margin: var(--space-2xs) 0 0; /* the row gap (24) plus 8: the card is its own group; 0 sides undoes figure's default */
  padding: var(--space-2xs) var(--space-md);
  background: var(--nb-surface);
  border: var(--rule) solid var(--nb-separator);
  border-radius: var(--nb-radius-block);
}
.route__from { display: flex; align-items: center; gap: var(--space-xs); padding-block: var(--space-sm); border-bottom: var(--rule) solid var(--nb-separator); color: var(--color-ink-2); font-weight: var(--weight-label); }
.route__list { display: grid; }
.route__to { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; padding-block: var(--space-sm); border-bottom: var(--rule) solid var(--nb-separator); }
.route__to:last-child { border-bottom: 0; }
.route__glyph { flex: none; width: 32px; height: 32px; color: var(--nb-teal-600); } /* px: an image, so text zoom does not grow it */
.route__from .route__glyph { width: 24px; height: 24px; }
.route__name { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--text-body); line-height: var(--leading-title); color: var(--color-ink); }
.route .chip { flex: none; }
/* Narrow phones (320): no room for name and chip side by side, so the chip sits under the name */
@media (max-width: 22.49rem) {
  .route__to { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-2xs); }
  .route__to .route__glyph { grid-row: span 2; }
  .route .chip { justify-self: start; }
}

@media (min-width: 48rem) {
  .masthead--home .masthead__icon { width: 64px; height: 64px; }
  .masthead--home .masthead__name { gap: var(--space-md); }
  .masthead--home .wordmark { font-size: 4.25rem; } /* 68: one line beside the icon from 768 (needs 563 of 584) */
  .masthead--home .actions .btn { flex: none; }
  /* Tablet: the three places side by side, so the card uses the width instead of three thin rows */
  .route__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-md); }
  .route__to { flex-direction: column; align-items: flex-start; gap: var(--space-xs); padding-block: var(--space-md) var(--space-sm); border-bottom: 0; }
  .route__name { flex: none; font-size: var(--text-lead); }
}
@media (min-width: 80rem) {
  .masthead--home {
    grid-template-columns: minmax(0, 1fr) var(--col-side);
    column-gap: var(--space-xl);
    row-gap: var(--space-lg);
    align-items: start;
    padding-block: var(--space-2xl) var(--space-xl);
  }
  .masthead--home .masthead__name { grid-column: 1 / -1; gap: var(--space-lg); }
  .masthead--home .masthead__icon { width: 88px; height: 88px; }
  .masthead--home .wordmark { font-size: var(--text-display); }
  .masthead--home .intro { grid-column: 1; grid-row: 2; gap: var(--space-md); }
  .masthead--home .intro__line { font-family: var(--font-display); font-size: var(--text-title); line-height: var(--leading-title); letter-spacing: -0.01em; }
  .masthead--home .avail { margin-top: calc(-1 * var(--space-2xs)); }
  /* The card runs the full height of the words beside it, so its top and bottom edges line up with them */
  .route { grid-column: 2; grid-row: 2; align-self: stretch; margin-top: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .route__list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .route__from { padding-block: var(--space-2xs); } /* keeps the card no taller than the words, so both edges line up */
  .route__to { flex-direction: row; align-items: center; gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: var(--rule) solid var(--nb-separator); }
  .route__to:last-child { border-bottom: 0; }
  .route__glyph { width: 40px; height: 40px; }
  .route__name { flex: 1 1 auto; }
}
