/* HyperActives website. The app's tokens (web/src/styles/tokens.css) and house style: grey ground, white
   cards as the one container, quiet type (500 at most), hierarchy by size and colour. Nothing loads from
   a third party; Jost 500 is the wordmark's face and nothing else. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jost-500-latin.woff2") format("woff2");
}

:root {
  --ha-sky: #1e9be9;
  --ha-midnight: #0b1f3a;
  --ha-gold: #b87a21;
  --ha-accent: #1177c9;
  --ha-ink: #0b1f3a;
  --ha-ground: #ffffff;
  --ha-card: #ffffff;
  --ha-ground-soft: #f7f8fa;
  --ha-secondary: #5b6878;
  --ha-faint: #8a94a3;
  --ha-rule: #e3e7ec;
  --ha-hairline: #eef1f5;
  --ha-ok: #1b7a3e;
  --ha-band: #0b1f3a;
  --ha-on-band: #ffffff;
  --ha-on-band-accent: #8ed0ff;
  --ha-button: #0b1f3a;
  --ha-button-text: #ffffff;
  --ha-font: -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ha-wordmark: "Jost", var(--ha-font);
  --ha-radius-card: 16px;
  --ha-radius-band: 22px;
  --ha-focus: 0 0 0 3px rgb(17 119 201 / 0.4);
  color-scheme: light;
}

/* The site is light only (owner, 12 Oct 2026: the logo must read; a white ground). The app follows the phone. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ha-ground);
  color: var(--ha-ink);
  font-family: var(--ha-font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; }
a { color: var(--ha-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ha-focus); border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 500; }

.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 36px); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ha-card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* The wordmark: Jost 500 capitals, tracked, HYPER in the accent. */
.wordmark {
  font-family: var(--ha-wordmark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 15px;
  color: var(--ha-midnight);
  white-space: nowrap;
}
.wordmark-hyper { color: var(--ha-accent); }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.lockup:hover { text-decoration: none; }
.lockup-mark { width: 34px; height: 34px; }

.site-header { padding: 22px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--ha-secondary); font-size: 15px; }
.site-nav a:hover { color: var(--ha-ink); text-decoration: none; }
/* The group's phone header (agreed 29 Sep 2026): a 60px bar, 16px inset, 32px mark, 10px gap, wordmark 20px. */
@media (max-width: 640px) {
  .site-header { padding: 0; }
  .header-row { height: 60px; width: calc(100% - 32px); }
  .lockup { gap: 10px; }
  .lockup-mark { width: 32px; height: 32px; }
  .site-header .wordmark { font-size: 14px; }
  .site-nav { gap: 16px; }
}

/* Sections: a small grey heading outside, white cards inside. */
.band { padding: 40px 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ha-faint); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--ha-secondary); max-width: 34rem; }
.quiet { color: var(--ha-secondary); }
.small { font-size: 14px; color: var(--ha-faint); }
.gap-top { margin-top: 18px; }
.table-caption { text-align: left; padding-bottom: 6px; }

.card {
  background: var(--ha-card);
  border: 1px solid var(--ha-rule);
  border-radius: var(--ha-radius-card);
  padding: 22px 24px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ha-secondary); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Home */
.hero { padding: 36px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } h1 { font-size: 2rem; } }
.hero h1 { max-width: 12em; margin-bottom: 16px; }
.hero .lede { margin-bottom: 26px; }
.hero-note { color: var(--ha-faint); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.button {
  display: inline-block;
  background: var(--ha-button);
  color: var(--ha-button-text);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 16px;
}
.button:hover { text-decoration: none; opacity: 0.92; }
.button-quiet { background: transparent; color: var(--ha-ink); border: 1px solid var(--ha-rule); }

/* A phone: the screen inside a thin midnight frame, no chrome drawn. */
.phone { width: min(300px, 100%); margin: 0 auto; border-radius: 40px; padding: 10px; background: #0b1f3a; border: 1px solid rgb(255 255 255 / 0.14); box-shadow: 0 30px 60px -30px rgb(11 31 58 / 0.45); }
.phone img { border-radius: 32px; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; align-items: start; }
.phones .phone { width: min(260px, 100%); }
.phones figcaption { text-align: center; margin-top: 14px; color: var(--ha-secondary); font-size: 15px; }
.phones figure { margin: 0; }

/* A feature on the home page: a few sentences beside one phone. The phone is the anchor; .feature-flip
   puts it on the left. On a narrow screen the words come first, then the phone. */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.feature .phone { width: min(260px, 100%); }
.feature-text { max-width: 30rem; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { color: var(--ha-secondary); }
.feature-text p + p { margin-top: 12px; }
.feature-text .eyebrow { color: var(--ha-faint); }
.feature-text .quiet { font-size: 15px; }
.feature-flip .feature-text { order: 2; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip .feature-text { order: 0; }
  h2 { font-size: 1.4rem; }
}
/* The soft grey panel: something the app can also do, set a step back from the rest. */
.soft-panel { background: var(--ha-ground-soft); border-radius: var(--ha-radius-band); padding: 40px; }
@media (max-width: 760px) { .soft-panel { padding: 26px 22px 30px; } }

.points { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Six cards: three to a row on a wide screen, so none is left alone on a row of its own. */
.points.is-three { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* The midnight band on the home page: the live view line. */
.dark-band { background: var(--ha-band); color: var(--ha-on-band); border-radius: var(--ha-radius-band); padding: 36px 40px; }
.dark-band h2 { color: var(--ha-on-band); margin-bottom: 10px; }
.dark-band p { color: #b8c0cc; max-width: 40rem; }
.dark-band .accent { color: var(--ha-on-band-accent); }
@media (max-width: 600px) { .dark-band { padding: 26px 22px; } }

/* A trip shared by link (/t/<token>; site/pages/shared-trip.ts, worker/lib/tripShare.ts). */
.shared-route { color: var(--ha-ink); font-size: 1.05rem; margin-top: 10px; }
.shared-day h2 { font-size: 1.05rem; margin: 0 0 6px; }
.shared-lines { list-style: none; margin: 0; padding: 0; }
.shared-lines li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ha-rule, #e3e7ec); }
.shared-lines li:first-child { border-top: 0; }
.shared-time { flex: none; width: 5.2rem; color: var(--ha-secondary); font-variant-numeric: tabular-nums; }
.shared-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shared-title { color: var(--ha-ink); }
.shared-foot { margin-top: 24px; font-size: 15px; }

/* A trip's expense report (/r/<token>; site/pages/expense-report.ts, worker/lib/expenseReport.ts): a sheet of paper
   on the grey ground, and on paper just the sheet. Classes only: the policy allows no inline style and no script. */
.report-ground { background: var(--ha-ground-soft); border-top: 1px solid var(--ha-hairline); padding: 36px 0 64px; }
body:has(.report-ground) .site-footer { margin-top: 0; }
.report { max-width: 52rem; }
.report-sheet { background: var(--ha-card); border: 1px solid var(--ha-rule); border-radius: 6px; padding: 48px 52px 40px; }
.report-head { padding-bottom: 22px; border-bottom: 1px solid var(--ha-ink); margin-bottom: 6px; }
.report-head h1 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ha-secondary); font-weight: 500; margin-bottom: 14px; }
.report-trip { font-size: 1.9rem; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.report-dates { color: var(--ha-ink); margin-top: 6px; }
.report-made { color: var(--ha-secondary); font-size: 15px; margin-top: 2px; }
.report-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.report-table th, .report-table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ha-rule); vertical-align: top; }
.report-table th:last-child, .report-table td:last-child { padding-right: 0; }
.report-table thead th { font-weight: 500; font-size: 13px; color: var(--ha-secondary); padding-top: 14px; }
.report-table .report-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-date { white-space: nowrap; color: var(--ha-secondary); }
.report-merchant { overflow-wrap: anywhere; }
.report-note { display: block; color: var(--ha-secondary); font-size: 14px; margin-top: 2px; }
.report-table tfoot th, .report-table tfoot td { font-weight: 500; color: var(--ha-ink); border-bottom: 0; padding-top: 12px; padding-bottom: 4px; }
.report-table tfoot tr:first-child th, .report-table tfoot tr:first-child td { border-top: 1px solid var(--ha-ink); }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-count, .report-empty { color: var(--ha-secondary); font-size: 15px; margin-top: 14px; }
.report-empty { margin-top: 22px; }
.report-foot { color: var(--ha-faint); font-size: 13px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--ha-hairline); }
.report-print { color: var(--ha-secondary); font-size: 15px; margin-top: 18px; text-align: center; }
@media (max-width: 600px) {
  .report-ground { padding: 18px 0 40px; }
  .report-sheet { padding: 24px 18px 22px; }
  .report-trip { font-size: 1.5rem; }
  .report-table { font-size: 14px; }
  .report-table th, .report-table td { padding-right: 8px; }
  /* Five columns do not fit a phone: the kind goes, and the paper still has it. */
  .report-table .report-kind { display: none; }
  .report-date { font-size: 13px; }
}
@media print {
  @page { margin: 16mm 14mm; }
  body:has(.report-ground) .site-header, body:has(.report-ground) .site-footer, body:has(.report-ground) .skip, .report-print { display: none; }
  .report-ground { background: #fff; border: 0; padding: 0; }
  .report, .report.wrap { width: 100%; max-width: none; margin: 0; }
  .report-sheet { border: 0; border-radius: 0; padding: 0; }
  .report-sheet, .report-sheet h1, .report-trip, .report-dates, .report-made, .report-table td, .report-date, .report-note, .report-count, .report-foot, .report-table thead th, .report-table tfoot th, .report-table tfoot td { color: #000; }
  .report-head, .report-table tfoot tr:first-child th, .report-table tfoot tr:first-child td { border-color: #000; }
  .report-table th, .report-table td { border-bottom-color: #999; }
  .report-table { font-size: 10.5pt; }
  /* All five columns on paper, whatever the window was. */
  .report-table .report-kind { display: table-cell; }
  .report-table thead { display: table-header-group; }
  /* The totals once, at the end, not at the foot of every page. */
  .report-table tfoot { display: table-row-group; }
  .report-table tr, .report-head, .report-foot { break-inside: avoid; page-break-inside: avoid; }
  .report-table tfoot { break-before: avoid; page-break-before: avoid; }
  .report-foot { border-top-color: #999; }
}

/* Long pages: privacy, terms, support. */
.doc { max-width: 44rem; }
.narrow { max-width: 44rem; }
.doc-head { padding: 28px 0 8px; }
.doc-head h1 { margin-bottom: 12px; }
.doc-meta { color: var(--ha-faint); font-size: 15px; }
.doc .card { margin-top: 20px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc h3 { margin: 22px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--ha-faint); }
.contents { columns: 2; column-gap: 24px; font-size: 15px; list-style: none; padding: 0; }
@media (max-width: 600px) { .contents { columns: 1; } }
.contents li { break-inside: avoid; margin-bottom: 4px; }
.notice { border-left: 3px solid var(--ha-sky); padding: 4px 0 4px 16px; color: var(--ha-secondary); margin: 18px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ha-hairline); vertical-align: top; }
.doc th { font-weight: 500; color: var(--ha-secondary); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ha-hairline); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); color: var(--ha-faint); font-size: 15px; padding-top: 2px; }

/* Footer */
.site-footer { margin-top: 56px; padding: 40px 0 36px; border-top: 1px solid var(--ha-rule); background: var(--ha-ground-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-blurb { color: var(--ha-secondary); margin-top: 14px; max-width: 28rem; }
.footer-note { color: var(--ha-faint); font-size: 15px; margin-top: 6px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ha-secondary); font-size: 15px; }
.footer-col a:hover { color: var(--ha-ink); }
.footer-head { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ha-faint); margin-bottom: 4px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--ha-rule); color: var(--ha-faint); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom a { color: var(--ha-faint); text-decoration: underline; }
.footer-bottom .footer-disclaimer { max-width: 50rem; }

/* ---- Builder B, 13 Oct 2026: the shared trip's lead card, its live notes and its print; the owner's own print
   (/t/<token>, /t/print/<token>; worker/lib/tripShare.ts, worker/lib/tripNow.ts; BUILD-CONTRACT §14). ---- */

/* Where the traveller is now: the page's one lead, on the midnight band (the home page's .dark-band is its cousin). */
.shared-now { background: var(--ha-band); color: var(--ha-on-band); border-radius: var(--ha-radius-card); padding: 22px 24px 20px; margin-top: 22px; }
.doc .shared-now p { margin: 0; }
.shared-now-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #b8c0cc; }
.shared-now-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ha-on-band-accent); flex: none; }
.shared-now.is-landed .shared-now-dot { background: #4cc074; }
.shared-now.is-before .shared-now-dot, .shared-now.is-over .shared-now-dot { background: transparent; border: 1.5px solid #8a94a3; }
.shared-now.is-cancelled .shared-now-dot { background: #f08a80; }
.doc .shared-now .shared-now-title { font-size: 1.55rem; line-height: 1.25; font-weight: 500; margin-top: 10px; overflow-wrap: anywhere; }
.doc .shared-now .shared-now-sub { color: #dfe5ec; margin-top: 6px; }
.doc .shared-now .shared-now-source { color: #9aa8b8; font-size: 14px; margin-top: 14px; }
.shared-now time { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .shared-now { padding: 18px 18px 16px; } .doc .shared-now .shared-now-title { font-size: 1.35rem; } }

/* What the flight feed adds to a flight's own line. Red only for a cancellation. */
.shared-live { font-size: 15px; color: var(--ha-secondary); }
.shared-live.is-late { color: #b85c00; }
.shared-live.is-cancelled { color: #b42318; }
.shared-live.is-done { color: var(--ha-ok); }
/* A cancelled booking stays on its day, struck through and said in grey: no red banner for the person at home. */
.shared-live.is-gone { color: var(--ha-secondary); }
.shared-lines li.is-cancelled .shared-title, .sheet-table tr.is-cancelled .sheet-title { text-decoration: line-through; color: var(--ha-secondary); }
.shared-lines li.is-cancelled .shared-time, .sheet-table tr.is-cancelled .sheet-time { color: var(--ha-faint); }
.shared-title { overflow-wrap: anywhere; }
.shared-checked { margin-top: 10px; font-size: 14px; color: var(--ha-faint); }
/* The day cards: the heading sits at the top of its card (the long pages' h2 margin does not belong here). */
.doc .shared-day h2 { margin: 0 0 4px; }
.doc .shared-lines { padding-left: 0; margin: 0; }
.doc .shared-lines li { margin-bottom: 0; }
@media (max-width: 600px) { .shared-lines li { gap: 12px; } .shared-time { width: 4.6rem; font-size: 15px; } }
.shared-checked time { font-variant-numeric: tabular-nums; }

/* A flight's live link (/f/<token>; worker/lib/flightLink.ts; flight screen v2): the shared trip's frame with one
   flight: where it is in words and a line, its times, the arrival terminal, and when the link stops. Classes only. */
.doc .flight-link-head h1 { font-size: 1.5rem; }
.card.flight-link { padding: 20px 22px 18px; margin-top: 18px; }
.doc .flight-link p { margin: 0; }
.doc .flight-link .flight-link-day { color: var(--ha-secondary); font-size: 15px; }
.doc .flight-link .flight-link-now { font-size: 1.55rem; line-height: 1.25; font-weight: 500; color: var(--ha-ink); margin-top: 10px; overflow-wrap: anywhere; }
.doc .flight-link.is-cancelled .flight-link-now { color: #b42318; }
.flight-link-route { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 1.35rem; font-weight: 500; color: var(--ha-ink); }
.flight-link-line { flex: 1; position: relative; height: 3px; border-radius: 2px; background: var(--ha-rule); }
.flight-link-done { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--ha-accent); }
.flight-link-done::after { content: "\2708\FE0E"; position: absolute; right: -9px; top: -11px; font-size: 17px; line-height: 1; color: var(--ha-gold); }
.flight-link-done.is-p0::after { content: none; }
.flight-link-done.is-p1 { width: 5%; } .flight-link-done.is-p2 { width: 10%; } .flight-link-done.is-p3 { width: 15%; } .flight-link-done.is-p4 { width: 20%; }
.flight-link-done.is-p5 { width: 25%; } .flight-link-done.is-p6 { width: 30%; } .flight-link-done.is-p7 { width: 35%; } .flight-link-done.is-p8 { width: 40%; }
.flight-link-done.is-p9 { width: 45%; } .flight-link-done.is-p10 { width: 50%; } .flight-link-done.is-p11 { width: 55%; } .flight-link-done.is-p12 { width: 60%; }
.flight-link-done.is-p13 { width: 65%; } .flight-link-done.is-p14 { width: 70%; } .flight-link-done.is-p15 { width: 75%; } .flight-link-done.is-p16 { width: 80%; }
.flight-link-done.is-p17 { width: 85%; } .flight-link-done.is-p18 { width: 90%; } .flight-link-done.is-p19 { width: 95%; } .flight-link-done.is-p20 { width: 100%; }
.flight-link-done.is-p20::after { content: none; }
.doc .flight-link .flight-link-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ha-secondary); font-size: 15px; }
.flight-link-ends > span:last-child { text-align: right; }
.doc .flight-link .flight-link-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ha-rule); color: var(--ha-secondary); font-size: 15px; }
.doc .flight-link-stops { margin-top: 14px; font-size: 14px; color: var(--ha-faint); }
@media (max-width: 600px) { .card.flight-link { padding: 18px 18px 16px; } .doc .flight-link .flight-link-now { font-size: 1.35rem; } .flight-link-route { font-size: 1.2rem; } }

/* The owner's print: a sheet of paper on the grey ground (the expense report's pattern), and on paper just the sheet. */
.shared:has(.trip-sheet) { max-width: 52rem; }
.trip-sheet { background: var(--ha-card); border: 1px solid var(--ha-rule); border-radius: 6px; padding: 44px 48px 36px; margin-top: 28px; }
.sheet-head { padding-bottom: 20px; border-bottom: 1px solid var(--ha-ink); }
.doc .sheet-head h1 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ha-secondary); font-weight: 500; margin-bottom: 14px; }
.doc .trip-sheet p { margin: 0; }
.doc .trip-sheet .sheet-trip { font-size: 1.9rem; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.doc .trip-sheet .sheet-dates { margin-top: 6px; }
.doc .trip-sheet .sheet-route { color: var(--ha-secondary); font-size: 15px; margin-top: 2px; }
.doc .sheet-day h2 { font-size: 1.05rem; margin: 26px 0 2px; }
.doc .sheet-table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0; }
.doc .sheet-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ha-rule); vertical-align: top; }
.doc .sheet-table tr:last-child td { border-bottom: 0; }
.sheet-time { width: 7.4rem; white-space: nowrap; color: var(--ha-secondary); font-variant-numeric: tabular-nums; }
.sheet-what { overflow-wrap: anywhere; }
.sheet-title { display: block; color: var(--ha-ink); }
.sheet-note { display: block; color: var(--ha-secondary); font-size: 14px; margin-top: 2px; }
.doc .sheet-table td.sheet-ref { width: 11rem; padding-right: 0; text-align: right; }
.sheet-ref-label { display: block; color: var(--ha-faint); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.sheet-ref-value { display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }
.doc .trip-sheet .sheet-foot { color: var(--ha-faint); font-size: 13px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--ha-hairline); }
.doc .trip-sheet .sheet-empty { color: var(--ha-secondary); margin-top: 22px; }
.doc .sheet-print { color: var(--ha-secondary); font-size: 15px; margin: 18px auto 0; text-align: center; max-width: 36rem; }
@media (max-width: 600px) {
  .trip-sheet { padding: 22px 18px 20px; }
  .doc .trip-sheet .sheet-trip { font-size: 1.5rem; }
  .doc .sheet-table td { padding-right: 10px; }
  .sheet-time { width: 4.4rem; font-size: 14px; }
  .doc .sheet-table td.sheet-ref { width: 7rem; }
}

@media print {
  /* Both pages: no site header or footer, black on white, nothing split across two sheets. */
  body:has(.shared) .site-header, body:has(.shared) .site-footer, body:has(.shared) .skip, .shared-checked, .sheet-print { display: none; }
  .shared, .shared.wrap, .shared:has(.trip-sheet) { width: 100%; max-width: none; margin: 0; padding: 0; }
  .shared, .shared h1, .shared h2, .shared p, .shared .lede, .shared .quiet, .shared .eyebrow, .shared-route, .shared-time, .shared-title, .shared-live, .shared-foot { color: #000; }
  /* The public page on paper: the trip itself. Where the traveller is this minute is no use on paper. */
  .shared-now { display: none; }
  .shared .doc-head { padding-top: 0; }
  .shared .doc-head h1 { font-size: 22pt; }
  .shared .card.shared-day { border: 0; border-top: 1px solid #000; border-radius: 0; padding: 10px 0 0; margin-top: 14px; box-shadow: none; background: none; }
  .shared-lines li { border-top-color: #999; break-inside: avoid; page-break-inside: avoid; }
  .shared-day h2 { break-after: avoid; page-break-after: avoid; }
  .shared-day { break-inside: auto; }
  .shared-foot { break-inside: avoid; page-break-inside: avoid; border-top: 1px solid #999; padding-top: 10px; font-size: 9.5pt; }
  .shared-lines, .shared-foot { font-size: 10.5pt; }
  /* The owner's sheet. */
  .trip-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; }
  .trip-sheet, .trip-sheet h1, .trip-sheet h2, .doc .trip-sheet p, .sheet-time, .sheet-title, .sheet-note, .sheet-ref-label, .sheet-ref-value, .doc .trip-sheet .sheet-route, .doc .trip-sheet .sheet-foot, .doc .sheet-head h1 { color: #000; }
  .sheet-head { border-color: #000; break-inside: avoid; page-break-inside: avoid; }
  .doc .sheet-table { font-size: 10.5pt; }
  .doc .sheet-table td { border-bottom-color: #999; }
  .sheet-note { font-size: 9.5pt; }
  .sheet-table tr { break-inside: avoid; page-break-inside: avoid; }
  .sheet-day h2 { break-after: avoid; page-break-after: avoid; }
  .doc .trip-sheet .sheet-foot { border-top-color: #999; break-inside: avoid; page-break-inside: avoid; }
}

/* final polish, 13 Oct 2026: the owner's print on a phone's screen. Three columns squeezed the middle one to three
   or four lines, so under 600px each line is stacked: the time above, the title and its details below, the reference
   last on one line. Screen only: on paper, and on any wider screen, the table is as it was. */
@media screen and (max-width: 600px) {
  .doc .sheet-table, .doc .sheet-table tbody, .doc .sheet-table tr, .doc .sheet-table td { display: block; width: auto; }
  .doc .sheet-table tr { padding: 11px 0; border-bottom: 1px solid var(--ha-rule); }
  .doc .sheet-table tr:last-child { border-bottom: 0; }
  .doc .sheet-table td, .doc .sheet-table td.sheet-ref { padding: 0; border: 0; width: auto; text-align: left; }
  .doc .sheet-table td.sheet-time { font-size: 13px; margin-bottom: 2px; }
  .doc .sheet-table td.sheet-ref { margin-top: 6px; }
  .doc .sheet-table td.sheet-ref:empty { display: none; }
  .sheet-ref-label, .sheet-ref-value { display: inline; }
  .sheet-ref-label::after { content: " "; }
}

/* Yours to keep (home): the heading sits a little above its paragraph. */
.narrow h2 + .lede { margin-top: 12px; }

/* ---- The portal's way in (15 Oct 2026): a quiet "Sign in" at the end of the header's links, as MyTravelStatus's
   header has; the page itself (/signin) goes straight on to /app when the browser is signed in already, so the static
   pages stay script-free. A hairline sets it apart; on a phone About and Privacy step out of the header (both are in the footer). */
.site-nav { align-items: center; }
.site-nav .site-nav-signin { color: var(--ha-ink); padding-left: 22px; border-left: 1px solid var(--ha-rule); white-space: nowrap; }
.site-nav .site-nav-signin:hover { color: var(--ha-accent); }
@media (max-width: 640px) {
  .site-nav .site-nav-roomy { display: none; }
  .site-nav .site-nav-signin { padding-left: 14px; }
}

/* ---- The globe (Languages, 19 Oct 2026; site/lib/layout.ts): "🌐 EN" as a disclosure of links, no script. The
   Worker takes it out while English is the only live language. In the header it closes the row; in the footer it
   sits under Legal and opens upwards. */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; border-radius: 999px; color: var(--ha-secondary); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::marker { content: ""; }
.lang > summary:hover, .lang[open] > summary { background: var(--ha-ground-soft); color: var(--ha-ink); }
.lang > summary:focus-visible { outline: 2px solid var(--ha-accent); outline-offset: 2px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--ha-card); border: 1px solid var(--ha-rule); border-radius: 14px; box-shadow: 0 10px 30px rgb(11 31 58 / 0.12); }
.lang-list li { margin: 0; }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ha-ink); font-size: 15px; }
.lang-list a:hover { background: var(--ha-ground-soft); text-decoration: none; }
.lang-list a[aria-current="true"] { font-weight: 500; }
.lang-list a[aria-current="true"]::after { content: "✓"; margin-left: auto; padding-left: 12px; color: var(--ha-accent); }
.lang-footer { margin-top: 6px; }
.lang-footer > summary { padding: 0; min-height: 32px; font-size: 15px; }
.lang-footer .lang-list { left: 0; right: auto; top: auto; bottom: calc(100% + 6px); }
.site-nav .lang-header { margin-left: -8px; }
@media (max-width: 640px) {
  .site-nav { gap: 12px; }
  .site-nav .site-nav-signin { padding-left: 12px; }
  .site-nav .lang-header { margin-left: -4px; }
  .site-nav .lang-header > summary { padding: 0 4px; }
}
/* On a phone, with the globe in the row, the mark alone stands for the name (it is the link home; its label says it). */
@media (max-width: 460px) {
  .header-row:has(.lang-header) .wordmark { display: none; }
}
