/* ==========================================================================
   TRAILISSE DESIGN SYSTEM  v2
   Rebuilt against the design language measured on plaid.com:
     - very large headings at MEDIUM weight (500) with tight negative tracking
     - pill buttons, small label text, weight 600
     - large-radius cards on hairline borders
     - pure white ground alternating with full-bleed deep-navy panels
     - generous vertical rhythm (~150px section padding)
     - geometric sans throughout, no serif
   Brand colours (navy / gold) retained from the Trailisse signage.
   Class API is unchanged from v1 so every existing page inherits this.
   ========================================================================== */

/* ---------- 0. TYPEFACE ----------
   Plus Jakarta Sans, variable, latin subset, self-hosted.
   SIL Open Font License 1.1. Named in Plaid's own fallback stack, so it is
   the closest legitimately licensable match to their intent. */
@font-face {
  font-family: 'Jakarta';
  src: url('/assets/fonts/jakarta.woff2') format('woff2-variations'),
       url('/assets/fonts/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* Ground and ink */
  --paper:      #ffffff;
  --surface:    #ffffff;
  --surface-2:  #faf8ff;
  --surface-3:  #f2eefc;
  --ink:        #15121f;
  --ink-2:      #5b5670;
  --ink-3:      #6b6480;
  --line:       #eae6f4;
  --line-2:     #ddd7ec;

  /* Brand */
  --navy:       #141033;   /* deep indigo panel */
  --navy-mid:   #241d52;
  --navy-soft:  #3a2f6b;
  --gold:       #ff9159;   /* warm coral accent */
  --gold-light: #ffb98a;
  --gold-ink:   #b4441a;   /* accent legible as text on white, 5.55:1 */
  --cream:      #fff4ec;

  /* Semantic */
  --success:    #12694a;
  --success-bg: #eef7f2;
  --danger:     #9b2226;
  --danger-bg:  #fdf1f1;
  --focus:      #2563eb;

  /* Type */
  --font: 'Jakarta', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Scale - tracks Plaid's measured sizes */
  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 0.9375rem;
  --t-md:   1rem;
  --t-lg:   clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  --t-lede: clamp(1.125rem, 0.9vw + 0.95rem, 1.5rem);
  --t-h4:   clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  --t-h3:   clamp(1.25rem, 0.9vw + 1.05rem, 1.625rem);
  --t-h2:   clamp(2rem, 3.4vw + 0.6rem, 3.375rem);
  --t-h1:   clamp(2.375rem, 4.6vw + 0.7rem, 4.375rem);

  /* Tracking */
  --tr-h1: -0.04em;
  --tr-h2: -0.037em;
  --tr-h3: -0.019em;

  /* Space - 8px base, generous sections */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.5rem;  --s-8: 3rem;
  --s-9: 4rem;    --s-10: 5rem;   --s-11: 6rem;   --s-12: 8rem;
  --sec: clamp(64px, 8.5vw, 144px);

  /* Shape */
  --r-sm:      10px;
  --r:         14px;
  --r-card:    20px;
  --r-card-lg: 26px;
  --r-pill:    100px;

  /* Elevation - restrained, Plaid uses borders more than shadow */
  --shadow-sm: 0 1px 2px rgba(17,17,20,.04);
  --shadow:    0 2px 6px rgba(17,17,20,.05), 0 12px 32px rgba(17,17,20,.06);
  --shadow-lg: 0 4px 12px rgba(17,17,20,.06), 0 24px 60px rgba(17,17,20,.09);

  /* Layout */
  --wrap: 1300px;
  --wrap-narrow: 760px;
  --header-h: 78px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1;
}
img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 500;            /* the signature move: big but not bold */
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: 1.06; letter-spacing: var(--tr-h1); }
h2 { font-size: var(--t-h2); line-height: 1.1;  letter-spacing: var(--tr-h2); }
h3 { font-size: var(--t-h3); line-height: 1.32; letter-spacing: var(--tr-h3); }
h4 { font-size: var(--t-h4); line-height: 1.35; letter-spacing: -.012em; font-weight: 600; }

p, li { text-wrap: pretty; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-light); color: var(--navy); }

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-6); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--s-6); }

.section { padding-block: var(--sec); }
.section-sm { padding-block: calc(var(--sec) * .6); }
.section--alt { background: var(--surface-2); }
.section--cream { background: var(--cream); }

/* Full-bleed dark panel - the Plaid alternation */
.section--navy {
  background: var(--navy);
  color: rgba(255,255,255,.78);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a { color: var(--gold-light); }
.section--navy .lede { color: rgba(255,255,255,.72); }

.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-10); }
.prose h3 { margin-top: var(--s-7); }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: var(--s-5); display: grid; gap: var(--s-3); color: var(--ink-2); }
.prose li::marker { color: var(--gold-ink); }
.prose strong { color: var(--ink); }

.lede {
  font-size: var(--t-lede);
  line-height: 1.42;
  letter-spacing: -.014em;
  color: var(--ink-2);
  max-width: 34ch;
}
.prose .lede { max-width: 46ch; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); }

.article-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 320px;
  gap: var(--s-10); align-items: start;
}
.article-layout .prose { max-width: 68ch; }

/* ---------- 4. SKIP LINK ---------- */
.skip-link {
  position: absolute; left: var(--s-4); top: -120px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-sm);
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.0625rem; font-weight: 700; color: var(--ink);
  letter-spacing: .01em;
}
.brand__tag {
  font-size: .5625rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-pill); white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--surface-3); }

.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: 40px; padding: 0 var(--s-4);
  font: inherit; font-size: var(--t-base); font-weight: 500; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; border-radius: var(--r-pill);
}
.has-sub > button:hover { color: var(--ink); background: var(--surface-3); }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 264px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: var(--s-2); display: none; z-index: 110;
}
.has-sub[data-open="true"] .subnav { display: grid; }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-call {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--t-base); color: var(--ink);
  text-decoration: none; min-height: 40px; padding-inline: var(--s-2); white-space: nowrap;
}
.header-call:hover { color: var(--gold-ink); }

.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--surface-3); border: 0; border-radius: var(--r-pill);
  cursor: pointer; color: var(--ink);
}
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
  max-height: 78vh; overflow-y: auto;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; padding: var(--s-3) 0 var(--s-5); margin: 0; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 50px; padding: 0 var(--s-6);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.mobile-nav a:hover { background: var(--surface-2); }
.mobile-nav .mn-head {
  padding: var(--s-4) var(--s-6) var(--s-1); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 600;
}

/* ---------- 6. BUTTONS - pill, small text, weight 600 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 12px 26px;
  font-family: var(--font); font-size: var(--t-base); font-weight: 600; line-height: 1;
  letter-spacing: -.005em;
  border: 1px solid transparent; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: rgba(17,17,20,.84); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: rgba(255,255,255,.86); color: var(--ink); }
.btn--lg { min-height: 54px; padding: 16px 32px; font-size: var(--t-md); }
.btn--block { width: 100%; }
.section--navy .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.section--navy .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff; }

/* ---------- 7. EYEBROW ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: .01em;
  color: var(--gold-light); margin-bottom: var(--s-5);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.eyebrow--dark {
  color: var(--gold-ink); background: var(--cream); border-color: #efe6cf;
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 76% 14%, rgba(255,145,89,.32) 0%, transparent 62%),
    radial-gradient(70% 60% at 8% 96%, rgba(124,131,219,.20) 0%, transparent 60%),
    linear-gradient(104deg, #0d0a22 0%, #141033 42%, #241d52 78%, #34275e 100%);
}
.hero__inner { position: relative; padding-block: clamp(52px, 6vw, 96px) clamp(56px, 6.5vw, 104px); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero__lede {
  font-size: var(--t-lede); line-height: 1.42; letter-spacing: -.014em;
  color: rgba(255,255,255,.76); margin-bottom: var(--s-7); max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 9. TRUST BAR ---------- */
.trustbar { background: var(--surface-2); padding-block: var(--s-8); border-bottom: 1px solid var(--line); }
.trustbar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-6); }
.trustbar__item { display: flex; align-items: flex-start; gap: var(--s-3); }
.trustbar__item svg { color: var(--gold-ink); flex-shrink: 0; margin-top: 1px; }
.trustbar__item strong {
  display: block; font-size: var(--t-base); font-weight: 600; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 2px;
}
.trustbar__item span { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.5; }

/* ---------- 10. CARDS ---------- */
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-3); color: var(--ink);
  margin-bottom: var(--s-2);
}
.card h3 { font-size: var(--t-h3); }
.card p { font-size: var(--t-base); color: var(--ink-2); line-height: 1.55; }
.card__link {
  margin-top: auto; padding-top: var(--s-2);
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-base); font-weight: 600; color: var(--ink); text-decoration: none;
  transition: gap .18s ease;
}
.card__link:hover { color: var(--gold-ink); gap: var(--s-3); }
.card__media { aspect-ratio: 16 / 10; background: var(--surface-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card-link { text-decoration: none; color: inherit; display: block; }
.section--navy .card {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12);
}
.section--navy .card:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.section--navy .card h3 { color: #fff; }
.section--navy .card p { color: rgba(255,255,255,.7); }
.section--navy .card__icon { background: rgba(255,255,255,.1); color: var(--gold-light); }
.section--navy .card__link { color: var(--gold-light); }

/* ---------- 11. PROCESS STEPS ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s-7); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-5); align-items: start; }
.step__num {
  counter-increment: step; width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-size: var(--t-base); font-weight: 600;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--t-h4); margin-bottom: var(--s-2); font-weight: 600; }
.step p { color: var(--ink-2); font-size: var(--t-base); }

/* ---------- 12. TABLES ---------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-card); background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: var(--t-base); min-width: 560px; }
caption {
  text-align: left; padding: var(--s-4) var(--s-5); font-size: var(--t-sm);
  color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--surface-2);
}
th, td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--surface-2); font-weight: 600; color: var(--ink);
  font-size: var(--t-sm); letter-spacing: -.005em; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
th[scope="row"] { color: var(--ink); font-weight: 600; }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: #fff; overflow: hidden; transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-5) var(--s-6); min-height: 60px; cursor: pointer;
  font-size: var(--t-h4); font-weight: 600; color: var(--ink);
  letter-spacing: -.012em; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -5px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq__body { padding: 0 var(--s-6) var(--s-6); color: var(--ink-2); font-size: var(--t-md); }
.faq__body > * + * { margin-top: var(--s-3); }

/* ---------- 14. CTA BAND ---------- */
.cta-band { background: var(--navy); color: #fff; padding-block: var(--sec); }
.cta-band__inner {
  display: grid; grid-template-columns: 1.35fr auto; gap: var(--s-9); align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-4); }
.cta-band p { color: rgba(255,255,255,.72); max-width: 52ch; font-size: var(--t-lg); line-height: 1.5; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--s-3); min-width: 270px; }
.cta-phone {
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em;
  color: var(--gold-light); text-decoration: none; white-space: nowrap;
}
.cta-phone:hover { color: #fff; }

/* ---------- 15. BREADCRUMBS ---------- */
.crumbs { padding-block: var(--s-4); font-size: var(--t-sm); border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- 16. FORMS ---------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-base); font-weight: 600; color: var(--ink); letter-spacing: -.008em; }
.field .hint { font-size: var(--t-sm); color: var(--ink-3); }
.field .req { color: var(--danger); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font-family: var(--font); font-size: var(--t-md); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(17,17,20,.08);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b6480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-4) center; padding-right: var(--s-8);
}
.form-note { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.6; }
.alert { padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); font-size: var(--t-base); border: 1px solid; }
.alert--ok { background: var(--success-bg); border-color: #bfe0d0; color: var(--success); }
.alert--err { background: var(--danger-bg); border-color: #f2c9c9; color: var(--danger); }
.alert ul { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 17. NOTICES ---------- */
.notice {
  border: 1px solid var(--line); background: var(--surface-2);
  padding: var(--s-5) var(--s-6); border-radius: var(--r-card);
  font-size: var(--t-base); color: var(--ink-2); line-height: 1.6;
}
.notice strong { color: var(--ink); }
.notice--plain { background: #fff; }
.section--navy .notice {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.72);
}
.section--navy .notice strong { color: #fff; }

/* ---------- 18. AUTHOR BOX ---------- */
.author-box {
  display: flex; gap: var(--s-5); padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2);
}
.author-box__avatar {
  width: 50px; height: 50px; border-radius: var(--r-pill); background: var(--navy);
  color: var(--gold-light); display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 600; flex-shrink: 0;
}
.author-box h3 { font-size: var(--t-base); font-weight: 600; margin-bottom: var(--s-1); letter-spacing: -.01em; }
.author-box p { font-size: var(--t-base); color: var(--ink-2); }
.meta-line { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-sm); color: var(--ink-3); }

/* ---------- 19. TOC ---------- */
.toc { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); background: var(--surface-2); }
.toc h2 {
  font-size: var(--t-sm); margin: 0 0 var(--s-3); font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}
.toc ol { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); font-size: var(--t-base); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 20. AD SLOTS ---------- */
.ad-slot {
  display: block; margin-block: var(--s-8); text-align: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement"; display: block; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); padding-top: var(--s-3); font-weight: 600;
}
.ad-slot--inarticle, .ad-slot--end { min-height: 280px; }
.ad-slot--sidebar { min-height: 600px; position: sticky; top: calc(var(--header-h) + var(--s-5)); }

/* ---------- 21. FOOTER ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.62);
  padding-block: var(--s-11) var(--s-7); font-size: var(--t-base);
}
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s-5);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: var(--s-8); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.site-footer a { color: rgba(255,255,255,.62); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: rgba(255,255,255,.4); }
.footer-contact { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.footer-contact div { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-legal {
  margin-top: var(--s-9); padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  font-size: var(--t-sm); color: rgba(255,255,255,.45);
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-disclaimer {
  margin-top: var(--s-6); font-size: var(--t-sm); line-height: 1.7;
  color: rgba(255,255,255,.42); max-width: 92ch;
}

/* ---------- 22. MOBILE CALL BAR ---------- */
.callbar { display: none; }

/* ---------- 23. UTILITIES ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); } .mb-7 { margin-bottom: var(--s-7); } .mb-8 { margin-bottom: var(--s-8); }
.section-head { max-width: 30ch; margin-bottom: var(--s-9); }
.section-head .lede, .section-head p { max-width: 52ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--s-8); }
  .ad-slot--sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
@media (max-width: 920px) {
  .nav, .header-call { display: none; }
  .nav-toggle { display: inline-flex; }
  .cta-band__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .cta-band__actions { min-width: 0; }
}
@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .wrap, .wrap-narrow { padding-inline: var(--s-5); }
  .form-row { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: var(--s-3); }
  .section-head { max-width: none; }
  .lede { max-width: none; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    border-top: 1px solid var(--line); background: #fff;
    box-shadow: 0 -2px 20px rgba(17,17,20,.1);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 58px; font-size: var(--t-base); font-weight: 600; text-decoration: none;
  }
  .callbar__call { background: var(--ink); color: #fff; }
  .callbar__form { background: #fff; color: var(--ink); }
  body { padding-bottom: 58px; }
}
@media (max-width: 480px) {
  .brand__tag { display: none; }
  .hero__actions .btn { width: 100%; }
  .card__body { padding: var(--s-5); }
}

/* ---------- 25. PRINT ---------- */
@media print {
  .site-header, .site-footer, .callbar, .ad-slot, .cta-band { display: none !important; }
  body { color: #000; font-size: 11pt; padding-bottom: 0; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   26. ORIGINAL GRAPHICS  (see inc/graphics.php)
   ========================================================================== */

/* Ambient route network behind the hero */
.hero__net {
  position: absolute; top: 0; bottom: 0; right: -4%; width: 62%;
  z-index: -1; opacity: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__net animate { display: none; }
}
@media (max-width: 768px) { .hero__net { opacity: .5; } }

/* Hairline flight-path divider */
.arc-rule { width: 100%; height: 40px; display: block; }

/* Stat tiles inside the dark panel */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-card); overflow: hidden;
}
.stat-tile { background: var(--navy); padding: var(--s-7) var(--s-6); }
.stat-tile__fig {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500;
  letter-spacing: -.035em; color: #fff; line-height: 1;
}
.stat-tile__lab {
  margin-top: var(--s-3); font-size: var(--t-base); font-weight: 600; color: var(--gold-light);
  letter-spacing: -.008em;
}
.stat-tile__note { margin-top: var(--s-2); font-size: var(--t-sm); color: rgba(255,255,255,.58); line-height: 1.55; }

/* Feature row: big statement + supporting column, the Plaid two-up */
.feature-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-10); align-items: center;
}
.feature-row--flip > *:first-child { order: 2; }
.feature-media {
  border-radius: var(--r-card-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-3);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.section--navy .feature-media { border-color: rgba(255,255,255,.14); }

/* Inline pill list used under headings */
.pill-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.pill-list li {
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2);
  padding: 7px 15px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: #fff;
}
.section--navy .pill-list li {
  color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05);
}

/* Big link list, used for the airline index on the homepage */
.link-rows { border-top: 1px solid var(--line); }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-5) var(--s-2); border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: padding .18s ease, background .18s ease;
}
.link-row:hover { background: var(--surface-2); padding-inline: var(--s-4); color: inherit; }
.link-row__name { font-size: var(--t-h4); font-weight: 600; letter-spacing: -.014em; color: var(--ink); }
.link-row__note { font-size: var(--t-base); color: var(--ink-3); flex: 1 1 340px; }
.link-row svg { color: var(--ink-3); flex-shrink: 0; }
.link-row:hover svg { color: var(--ink); }

@media (max-width: 920px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--s-7); }
  .feature-row--flip > *:first-child { order: 0; }
  .link-row { flex-wrap: wrap; gap: var(--s-2); }
  .link-row__note { flex-basis: 100%; }
}

/* Hero pills sit on the dark panel - translucent rather than solid white */
.hero .pill-list li {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
}

/* ---------- 27. TAP TARGET SIZING ----------
   Footer and inline links are text-sized by default, which leaves a hit area
   well under the 44px minimum on touch. Give them real height without
   changing how they look. */
.brand { min-height: 44px; }
.header-call { min-height: 44px; }
.site-footer ul { gap: 0; }
.site-footer li > a {
  display: inline-flex; align-items: center; min-height: 44px; padding-block: 2px;
}
.footer-contact a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-legal nav a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; }

@media (max-width: 768px) {
  .site-footer li > a { min-height: 46px; }
  .footer-grid { gap: var(--s-6); }
}
.cta-phone { display: inline-flex; align-items: center; min-height: 48px; }
