/* Passenger Index: design tokens, plus the site header and footer every page shares (homepage redesign, 2026-10-25).
   Markup comes from pipeline/site_chrome.py; behaviour from chrome.js. Pages keep only their own extra tokens
   (map colours, chart series) and must not redefine the ones below. */
:root {
  color-scheme: light;
  --page: #f5f3ee; --surface: #ffffff; --ink: #0f1b2d; --ink-2: #4a5466;
  --muted: #5f6573;          /* 5.3:1 on --page (was #8a8f99, 2.9:1) */
  --gold: #a8874a;           /* rules and borders only */
  --gold-text: #7f6230;      /* small gold text: 5.1:1 on --page */
  --gold-light: #d9c39a;     /* gold on navy */
  --navy-ink: #13233b; --navy-hover: #1f3557;   /* the same in both themes */
  --border: rgba(15,27,45,0.08); --border-strong: rgba(15,27,45,0.16); --chip: rgba(15,27,45,0.05);
  --grid: #e7e4dc; --axis: #cfcabd; --series: #2a78d6;
  --up: #006300; --down: #d03b3b;
  --live-bg: #e6f3e6; --live-ink: #0a4a0a;
  --link: #1f5fae;
  --shadow-card: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px rgba(15,27,45,.05);
  --shadow-float: 0 2px 4px rgba(15,27,45,.06), 0 24px 60px rgba(15,27,45,.18);
  --font-display: Jost, "Century Gothic", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content: 1240px; --gutter: 32px; --section-gap: 72px;
  /* names the older stylesheets use */
  --navy: var(--navy-ink); --accent: var(--link); --card-shadow: var(--shadow-card);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0a0f17; --surface: #111a27; --ink: #f4f1ea; --ink-2: #b9bcc4; --muted: #828895;
    --gold: #c9a96a; --gold-text: #c9a96a;
    --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.16); --chip: rgba(255,255,255,0.06);
    --grid: #1f2a3a; --axis: #2c394c; --series: #3987e5;
    --up: #0ca30c; --down: #e66767; --live-bg: #0f2e0f; --live-ink: #9ee89e; --link: #7fb0f0;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-float: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a0f17; --surface: #111a27; --ink: #f4f1ea; --ink-2: #b9bcc4; --muted: #828895;
  --gold: #c9a96a; --gold-text: #c9a96a;
  --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.16); --chip: rgba(255,255,255,0.06);
  --grid: #1f2a3a; --axis: #2c394c; --series: #3987e5;
  --up: #0ca30c; --down: #e66767; --live-bg: #0f2e0f; --live-ink: #9ee89e; --link: #7fb0f0;
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-float: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45);
}
@media (width < 720px) { :root { --gutter: 16px; } }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 1000; color: var(--ink);
  background: color-mix(in srgb, var(--page) 92%, transparent); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, color .2s, border-color .2s; font-family: var(--font-body); }
.site-header .sh-in { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); min-height: 76px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.site-header a { color: inherit; }
.sh-logo { display: block; line-height: 0; flex: none; }
.sh-logo img { display: block; height: 36px; width: auto; }
.sh-logo .lg-rev { display: none; }
.sh-nav { display: flex; gap: 28px; }
.sh-nav a { font: 400 12px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid transparent; }
.sh-nav a:hover { border-bottom-color: currentColor; }
.sh-nav a[aria-current] { border-bottom-color: currentColor; }
.sh-sp { flex: 1; }
.sh-tools { display: flex; align-items: center; gap: 10px; }
.sh-search { position: relative; margin: 0; }
.sh-search input { width: 210px; height: 40px; box-sizing: border-box; padding: 0 12px; border-radius: 3px;
  font: 400 14px/1 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); }
.sh-search input::placeholder { color: var(--muted); }
.sh-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.sh-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; z-index: 5; margin: 0; padding: 6px 0;
  list-style: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: var(--shadow-float); max-height: 60vh; overflow: auto; }
.sh-results li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.sh-results li b { font-weight: 600; min-width: 36px; }
.sh-results li span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-results li[aria-selected="true"], .sh-results li:hover { background: var(--chip); }
.sh-results .none { color: var(--muted); cursor: default; }
.sh-icon { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: transparent; color: inherit; border: 1px solid var(--border-strong); border-radius: 3px; cursor: pointer;
  font: 400 15px/1 var(--font-display); letter-spacing: 0; text-transform: none; }
.sh-icon:hover { border-color: currentColor; background: transparent; color: inherit; }
.sh-icon svg { width: 18px; height: 18px; }
.sh-btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 3px;
  border: 0; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 500 11px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  background: var(--navy-ink); color: #fff !important; }
.sh-btn:hover { background: var(--navy-hover); }
/* Sign in sits beside the solid Start Pro+ as an outline button */
.sh-btn.ghost { background: transparent; color: inherit !important; border: 1px solid var(--border-strong); }
.sh-btn.ghost:hover { background: transparent; border-color: currentColor; }
.sh-find, .sh-menu { display: none; }
.sh-acct { position: relative; }
.sh-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 5; padding: 8px 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-float); }
.sh-acct-menu .who { padding: 8px 16px 10px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--border); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; }
.sh-acct-menu .who b { display: block; color: var(--ink); font-weight: 600; }
.sh-acct-menu a { display: block; padding: 10px 16px; font-size: 14px; text-decoration: none; }
.sh-acct-menu a:hover { background: var(--chip); }
.site-header [hidden] { display: none !important; }

/* logo: the navy file on light pages; the reversed file over the photo and in the dark theme */
:root[data-theme="dark"] .sh-logo .lg-ink { display: none; }
:root[data-theme="dark"] .sh-logo .lg-rev { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sh-logo .lg-ink { display: none; }
  :root:not([data-theme="light"]) .sh-logo .lg-rev { display: block; }
}

/* over the homepage photo, until the hero scrolls away */
.site-header.fixed { position: fixed; left: 0; right: 0; }
.site-header.over { background: transparent; border-bottom-color: transparent; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.over .sh-logo .lg-ink { display: none; }
.site-header.over .sh-logo .lg-rev { display: block; }
.site-header.over .sh-search input { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); color: #fff; }
.site-header.over .sh-search input::placeholder { color: rgba(255,255,255,.82); }
.site-header.over .sh-icon { border-color: rgba(255,255,255,.42); }
.site-header.over .sh-icon:hover { border-color: #fff; }
.site-header.over .sh-btn { background: #fff; color: var(--navy-ink) !important; }
.site-header.over .sh-btn:hover { background: #f1ede4; }
.site-header.over .sh-btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.site-header.over .sh-btn.ghost:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* desktops: everything stays on one row. Since the menu has five links (2026-10-27) the full-size spacing no longer fits
   the 1240px header at any width, so this is the desktop header everywhere above the tablet range. */
@media (width >= 1140px) {
  .site-header .sh-in { gap: 0 18px; }
  .sh-logo img { height: 28px; }
  .sh-nav { gap: 18px; }
  .sh-nav a { letter-spacing: .12em; }
  .sh-search input { width: 150px; }   /* room for Sign in and Start Pro+ */
  .sh-tools { gap: 8px; }
  .sh-btn { padding: 0 14px; letter-spacing: .16em; }
}
/* tablet: nav stays, the search field becomes an icon that opens a sheet */
@media (width < 1140px) {
  .site-header .sh-in { gap: 0 18px; }
  .sh-logo img { height: 28px; }
  .sh-nav { gap: 16px; }
  .sh-nav a { letter-spacing: .12em; }
  .sh-tools { gap: 8px; }
  .sh-btn { padding: 0 14px; letter-spacing: .16em; }
  .sh-find { display: inline-flex; }
  .sh-search { display: none; }
  .site-header.search-open .sh-search { display: block; order: 10; flex-basis: 100%; padding: 0 0 14px; }
  .site-header.search-open .sh-search input { width: 100%; height: 44px; font-size: 16px; }
  .site-header.search-open .sh-results { min-width: 0; }
}
/* narrow tablets: the five links fit beside the mark alone (the logo file cropped to its flight-path mark) */
@media (900px <= width < 1000px) {
  .sh-logo img { width: 46px; height: 28px; object-fit: cover; object-position: left center; }
  .sh-nav { gap: 12px; }
  .sh-nav a { letter-spacing: .08em; }
}
/* phone and small tablet (below 900px since the menu has five links): logo, search, menu; the menu holds the nav, the
   theme switch and Sign in */
@media (width < 900px) {
  .site-header .sh-in { min-height: 64px; gap: 0 8px; }
  .sh-logo { padding: 9px 0; }
  .sh-logo img { height: 26px; }
  .sh-icon { width: 44px; height: 44px; }
  .sh-menu { display: inline-flex; }
  /* the tools' children become rows of the header itself, so the open menu can stack them under the links */
  .sh-tools { display: contents; }
  .sh-sp { order: 1; }
  .sh-find { order: 2; }
  .sh-menu { order: 3; }
  .sh-nav, .sh-theme, .sh-signin, .sh-start, .sh-acct { display: none; }
  .site-header.menu-open .sh-nav { display: flex; order: 11; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .site-header.menu-open .sh-nav a { padding: 15px 0; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid var(--border); }
  .site-header.menu-open .sh-nav a[aria-current] { font-weight: 500; }
  .site-header.menu-open .sh-signin, .site-header.menu-open .sh-start { display: inline-flex; order: 12; flex: 1; height: 44px; margin: 4px 10px 16px 0; }
  .site-header.menu-open .sh-acct { display: block; order: 12; flex: 1; margin: 4px 10px 16px 0; }
  .site-header.menu-open .sh-acct > .sh-btn { width: 100%; height: 44px; }
  .site-header.menu-open .sh-acct-menu { left: 0; right: auto; }
  .site-header.menu-open .sh-theme { display: inline-flex; order: 13; margin: 4px 0 16px; }
}
/* an open menu or search sheet always reads as the solid header, even over the photo */
.site-header.over.menu-open, .site-header.over.search-open { background: var(--page); color: var(--ink); border-bottom-color: var(--border); }
.site-header.over.menu-open .sh-logo .lg-ink, .site-header.over.search-open .sh-logo .lg-ink { display: block; }
.site-header.over.menu-open .sh-logo .lg-rev, .site-header.over.search-open .sh-logo .lg-rev { display: none; }
:root[data-theme="dark"] .site-header.over.menu-open .sh-logo .lg-ink, :root[data-theme="dark"] .site-header.over.search-open .sh-logo .lg-ink { display: none; }
:root[data-theme="dark"] .site-header.over.menu-open .sh-logo .lg-rev, :root[data-theme="dark"] .site-header.over.search-open .sh-logo .lg-rev { display: block; }
.site-header.over.menu-open .sh-icon, .site-header.over.search-open .sh-icon { border-color: var(--border-strong); }
.site-header.over.search-open .sh-search input { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.site-header.over.search-open .sh-search input::placeholder { color: var(--muted); }
.site-header.over.menu-open .sh-btn { background: var(--navy-ink); color: #fff !important; }
.site-header.over.menu-open .sh-btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--border-strong); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-ink); color: #fff; font-family: var(--font-body); margin: 0; text-align: left; }
.site-footer .sf-in { max-width: var(--content); margin: 0 auto; padding: 56px var(--gutter) 36px;
  display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.site-footer .sf-word { font: 500 15px/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase; }
.site-footer .sf-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 380px; }
.site-footer .sf-cols { display: grid; grid-template-columns: repeat(5, minmax(120px, auto)); gap: 24px 40px; }
.site-footer .sf-col h2 { margin: 0 0 16px; font: 500 11px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.72); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a { color: var(--gold-light); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .sf-legal { max-width: var(--content); margin: 0 auto; padding: 18px var(--gutter) 28px; font-size: 12px; line-height: 1.6;
  color: rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.12); box-sizing: border-box; }
.site-footer .sf-legal a { font-size: 12px; }
@media (width < 900px) {
  .site-footer .sf-in { padding-top: 40px; gap: 28px; }
  .site-footer .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
  .site-footer ul { gap: 2px; }
  .site-footer a { display: inline-block; padding: 6px 0; }
}
