/* Elite Jet Travel Group - shared styles, Window Seat (2026-11-26).
   Cabin materials (cream leather, stitched seams, brushed nickel) around a soft sky that follows
   the visitor's local time (html[data-sky], set in <head> by the SKY_HEAD script in
   scripts/lib/legs.js). Light page at every hour. Newsreader + Albert Sans.
   Phone-first: base rules are the phone layout, min-width queries add the wider ones.
   The old token names (--bg, --text, --gold ...) are kept and mapped to the new palette.
   Phase B (2026-11-26): every page is on this system; the content-page pieces (page head,
   prose, panels, link lists, closer) are near the end; journal and destination pages add
   /assets/ejt/journal.css. */
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400..800&family=Newsreader:opsz,wght@6..72,300..700&display=swap");

:root {
  color-scheme: light;
  /* Window Seat palette */
  --cream: #f6f0e4;
  --cream-2: #ede3d1;
  --paper: #fffcf6;
  --ink: #1d2940;
  --ink-2: #554b41;
  --ink-3: #6b5f52;
  --seam: #c8b28c;
  --seam-soft: #dfcfb4;
  --seam-line: #e2d5bf;
  --field: #8a7c68;
  --navy: #1f3a5f;
  --navy-2: #2b4d7c;
  --caramel: #83542b;
  --caramel-2: #6a4220;
  --err: #a1301f;
  --err-bg: #fff3ee;
  --on-navy: #fbf6ec;
  --nickel: linear-gradient(160deg, #f6f7f7 0%, #cdd1d4 28%, #f0f1f2 50%, #aab0b4 76%, #dcdfe1 100%);
  --metal: conic-gradient(from 210deg, #f7f8f8, #b4b9bd 14%, #eef0f1 30%, #a2a8ac 47%, #e8eaeb 63%, #b6bbbf 80%, #f7f8f8);
  --brush: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, rgba(0,0,0,.028) 1px 2px, rgba(255,255,255,0) 2px 4px);
  --stitch: repeating-linear-gradient(90deg, var(--seam) 0 8px, transparent 8px 14px);
  --stitch-soft: repeating-linear-gradient(90deg, var(--seam-soft) 0 7px, transparent 7px 12px);
  --lift: inset 0 1px 0 #fff, 0 18px 32px -24px rgba(70, 46, 18, .5), 0 2px 6px -2px rgba(70, 46, 18, .12);
  --lift-2: inset 0 1px 0 #fff, 0 26px 40px -24px rgba(70, 46, 18, .55), 0 2px 6px -2px rgba(70, 46, 18, .12);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);

  /* Old names, new values (pages not yet rebuilt read these) */
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --surface: var(--paper);
  --surface-2: #ffffff;
  --text: var(--ink);
  --muted: var(--ink-2);
  --muted-2: var(--ink-3);
  --line: rgba(29, 41, 64, 0.12);
  --line-2: rgba(29, 41, 64, 0.2);
  --gold: var(--caramel);
  --gold-2: var(--caramel-2);
  --gold-ink: #fffaf0;
  --gold-soft: rgba(131, 84, 43, 0.07);
  --gold-line: rgba(131, 84, 43, 0.32);
  --danger: var(--err);
  --danger-line: rgba(161, 48, 31, 0.6);
}

/* The five skies. Default (no attribute) is clear midday. Text never sits on the sky except
   the code chips, which carry their own paper backing. */
:root, :root[data-sky="day"] {
  --s1: #5b97dd; --s2: #93c1ee; --s3: #cde6fb; --s4: #eef8ff;
  --glow: #fff2c6; --sun: #fffdf2; --sun-o: 1; --sun-x: 360px; --sun-y: 140px;
  --c-hi: #ffffff; --c-lo: #a7bfda; --c-far: #e4effa; --wisp: .55;
  --w-hi: #e9eef3; --w-lo: #8d9bad; --w-edge: #66768a;
  --arc: #1b2a44; --stars: 0; --nav-l: 0; --spill: #cfe4fb;
}
:root[data-sky="dawn"] {
  --s1: #8ca5d6; --s2: #c8b4d7; --s3: #f5c2b1; --s4: #ffe0bf;
  --glow: #ffc79a; --sun: #fff0d8; --sun-o: 1; --sun-x: 130px; --sun-y: 388px;
  --c-hi: #fff2ea; --c-lo: #cf9ea8; --c-far: #f7d6cb; --wisp: .6;
  --w-hi: #f1dcd8; --w-lo: #9b8ca5; --w-edge: #7a6d86;
  --arc: #2a2440; --stars: .12; --nav-l: .55; --spill: #ffd0b0;
}
:root[data-sky="golden"] {
  --s1: #7ea2cf; --s2: #e6cfa6; --s3: #fbd48f; --s4: #ffecca;
  --glow: #ffd27a; --sun: #fff6dc; --sun-o: 1; --sun-x: 390px; --sun-y: 300px;
  --c-hi: #fff5df; --c-lo: #d2a671; --c-far: #f8deb1; --wisp: .6;
  --w-hi: #f6e2c2; --w-lo: #a88b64; --w-edge: #86694a;
  --arc: #2b2416; --stars: 0; --nav-l: 0; --spill: #ffdc9e;
}
:root[data-sky="dusk"] {
  --s1: #7c7abd; --s2: #a892c8; --s3: #e1a8bf; --s4: #f8c8b0;
  --glow: #f5a88f; --sun: #ffe2c6; --sun-o: 0; --sun-x: 250px; --sun-y: 430px;
  --c-hi: #f5e2ec; --c-lo: #9783b4; --c-far: #e6c0ce; --wisp: .45;
  --w-hi: #d0c5df; --w-lo: #786e98; --w-edge: #5d547f;
  --arc: #241f3d; --stars: .4; --nav-l: .95; --spill: #dcc0ea;
}
:root[data-sky="night"] {
  --s1: #22336a; --s2: #3b4d8b; --s3: #6e77b3; --s4: #a59bc3;
  --glow: #a8b6e6; --sun: #f4f0e4; --sun-o: 1; --sun-x: 365px; --sun-y: 140px;
  --c-hi: #b3bbe2; --c-lo: #404c84; --c-far: #7f88bd; --wisp: .35;
  --w-hi: #6f7aab; --w-lo: #39436f; --w-edge: #2b3459;
  --arc: #fbf6ec; --stars: 1; --nav-l: 1; --spill: #bcc7ef;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  scrollbar-color: #b8ad9c var(--cream-2);
}
body {
  margin: 0;
  color: var(--ink);
  font: 420 1.0625rem/1.6 var(--sans);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--caramel);
}
::selection { background: #cfe4fb; color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: #b8ad9c; border-radius: 8px; border: 3px solid var(--cream-2); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sky-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100; padding: 12px 18px;
  background: var(--navy); color: var(--on-navy); font-weight: 700; border-radius: 999px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* Stitched seam: a pressed groove with a row of stitches under it */
.seam {
  height: 12px;
  background:
    linear-gradient(var(--seam-line), var(--seam-line)) 0 2px / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)) 0 3px / 100% 1px no-repeat,
    var(--stitch) 0 8px / 100% 1.5px no-repeat;
}

/* Type ------------------------------------------------------------------- */
h1, h2, .display {
  font-family: var(--serif);
  font-weight: 420;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 7.4vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
/* Headings set roman: the old markup's <em> accents read as one calm line (Window Seat). */
h1 em, h2 em, .display em { font-style: normal; font-weight: inherit; color: inherit; }
p, li, dd { text-wrap: pretty; }
h3 { text-wrap: balance; }
.lede { color: var(--ink-2); font-size: clamp(1.0625rem, 1.4vw, 1.1563rem); max-width: 60ch; text-wrap: pretty; }
.text-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--caramel);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--navy-2); }
.icon { width: 18px; height: 18px; flex: none; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* Buttons: stitched navy, and a navy outline pill ------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font: 700 1rem/1.1 var(--sans); white-space: nowrap; text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary {
  background: var(--navy); color: var(--on-navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 18px -12px rgba(20, 32, 60, .7);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 4px; border-radius: inherit;
  border: 1.25px dashed rgba(251, 246, 236, .42); pointer-events: none;
}
.btn-primary:hover { background: var(--navy-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--on-navy); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 0.9688rem; }

/* Header ------------------------------------------------------------------ */
.nav { position: relative; z-index: 60; }
.nav-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding-block: 10px 14px;
}
.nav-inner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px; pointer-events: none;
  background:
    linear-gradient(var(--seam-line), var(--seam-line)) 0 2px / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)) 0 3px / 100% 1px no-repeat,
    var(--stitch) 0 8px / 100% 1.5px no-repeat;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); }
/* The mark: a small cabin window showing the current sky (pure CSS, no markup needed) */
.brand-mark {
  position: relative; flex: none; display: block; width: 30px; height: 36px; padding: 4px;
  border-radius: 13px; background: #efe5d3; box-shadow: inset 0 0 0 1.5px #a3a9ae, 0 2px 4px -2px rgba(70,46,18,.35);
  transform: none; border: 0;
}
.brand-mark::before {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 9px;
  background: linear-gradient(180deg, var(--s1), var(--s2) 45%, var(--s3) 70%, var(--s4) 84%);
  transition: background 1.2s var(--ease);
}
.brand-mark::after {
  content: ""; position: absolute; left: 7px; top: 9px; width: 9px; height: 1.5px; border-radius: 1px;
  background: rgba(255,255,255,.75); transform: rotate(-40deg);
}
.brand-mark span { display: none; }
.brand-name { font: 500 1.25rem/1.1 var(--serif); letter-spacing: -0.015em; white-space: nowrap; }
.brand-name em { font-style: normal; color: inherit; font-weight: inherit; }
.brand-name.stack { display: grid; line-height: 1; }
.brand-name.stack b { font-weight: 520; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand-name.stack i { margin-top: 5px; font: normal 700 0.6875rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -6px; border-radius: 50%; color: var(--ink);
  transition: background-color 0.2s ease;
}
.nav-toggle:hover { background: var(--cream-2); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-links {
  display: none;
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  flex-direction: column; padding: 10px 22px 22px;
  background: var(--paper); border-radius: 26px; box-shadow: var(--lift-2);
}
.nav-links::after {
  content: ""; position: absolute; inset: 7px; border-radius: 19px; border: 1.5px dashed var(--seam-soft); pointer-events: none;
}
.nav-links.open { display: flex; }
.nav-links a:not(.btn) {
  position: relative; display: flex; align-items: center; min-height: 52px;
  color: var(--ink); font-weight: 600; font-size: 1.0625rem;
}
.nav-links a:not(.btn) + a:not(.btn)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--stitch-soft);
}
.nav-links .btn { margin-top: 14px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--caramel); text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 2px;
    padding: 0; background: none; border-radius: 0; box-shadow: none;
  }
  .nav-links::after { display: none; }
  .nav-links a:not(.btn) {
    min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 1rem;
    transition: background-color 0.2s ease;
  }
  .nav-links a:not(.btn) + a:not(.btn)::before { display: none; }
  .nav-links a:not(.btn):hover { background: var(--cream-2); }
  .nav-links .btn { margin: 0 0 0 10px; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(52px, 7vw, 88px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.band { background: var(--cream-2); }

/* Fields: label above the control. The markup keeps the old order (control, then label)
   so pages built before the redesign still work; grid rows put the label on top. --------- */
.field { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.field > label { grid-row: 1; margin-bottom: 6px; color: var(--ink); font: 700 0.9063rem/1.3 var(--sans); }
.field > input, .field > select, .field > textarea { grid-row: 2; }
.field > .ac-list { grid-row: 2; }
.field > .field-error { grid-row: 3; }
.field > .field-hint { grid-row: 4; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--field); border-radius: 14px;
  color: var(--ink); font: 550 1rem/1.3 var(--sans);
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #6f6558; font-weight: 450; opacity: 1; }
.field select {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%231d2940' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .28); }
.field [aria-invalid="true"] { border-color: var(--err); background-color: var(--err-bg); }
.field-error {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 6px;
  color: var(--err); font-size: 0.875rem; font-weight: 650; line-height: 1.35;
}
.field-error::before {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: 1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill-rule='evenodd' d='M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0zM6.1 3.2h1.8l-.3 5H6.4zM7 9.4a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill-rule='evenodd' d='M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0zM6.1 3.2h1.8l-.3 5H6.4zM7 9.4a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-error:empty { display: none; }
.field-hint { margin-top: 6px; color: var(--ink-3); font-size: 0.875rem; line-height: 1.4; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Airport autocomplete: hangs under the input (grid row 2), not under the error line */
.ac-wrap { position: relative; }
.ac-list {
  display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 272px; overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--lift-2), 0 0 0 1px var(--seam-soft);
}
.ac-list.open { display: block; }
.ac-item { padding: 11px 12px; border-radius: 10px; font-size: 0.9688rem; font-weight: 550; cursor: pointer; color: var(--ink); }
.ac-item:hover, .ac-item.active { background: var(--cream-2); }
.ac-item .ac-iata { margin-left: 8px; color: var(--ink-3); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* Date picker (flatpickr, light theme) */
.flatpickr-calendar {
  background: var(--paper) !important; border-radius: 18px !important; border: 0 !important;
  box-shadow: var(--lift-2), 0 0 0 1px var(--seam-soft) !important; font-family: var(--sans) !important;
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none !important; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-weekdays, span.flatpickr-weekday { background: transparent !important; color: var(--ink) !important; fill: var(--ink) !important; }
.flatpickr-current-month { font-family: var(--serif) !important; font-weight: 500 !important; }
.flatpickr-day { color: var(--ink) !important; border-radius: 10px !important; font-variant-numeric: tabular-nums; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--cream-2) !important; border-color: var(--cream-2) !important; }
.flatpickr-day.today { border-color: var(--caramel) !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover { background: var(--navy) !important; border-color: var(--navy) !important; color: var(--on-navy) !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #a99d8c !important; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm { color: var(--ink) !important; }
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus { background: var(--cream-2) !important; }

/* Cabin windows: nickel ring > cream bezel > deep reveal > pane ----------------------- */
.win { --ring: 5px; --bz: 18px; --rv: 11px; --pr: 120px; }
.win {
  padding: var(--ring); border-radius: calc(var(--pr) + var(--rv) + var(--bz) + var(--ring)); background: var(--metal);
  box-shadow: 0 30px 50px -30px rgba(70, 46, 18, .55), 0 8px 16px -8px rgba(70, 46, 18, .22);
}
.bz {
  padding: var(--bz); border-radius: calc(var(--pr) + var(--rv) + var(--bz));
  background: radial-gradient(130% 95% at 30% 12%, #fffdf8 0%, #f4ecdd 50%, #e3d5be 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(110, 80, 40, .16);
}
.rv {
  padding: var(--rv); border-radius: calc(var(--pr) + var(--rv));
  background: linear-gradient(180deg, #c9b89c 0%, #e2d5bf 34%, #efe6d6 100%);
  box-shadow: inset 0 4px 9px rgba(76, 52, 22, .30), inset 0 -1px 0 rgba(255, 255, 255, .7);
}
.pane { position: relative; overflow: hidden; border-radius: var(--pr); background: var(--s3); transform: translateZ(0); }
.glass {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: linear-gradient(118deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.12) 20%, rgba(255,255,255,0) 33%, rgba(255,255,255,0) 66%, rgba(255,255,255,.10) 76%, rgba(255,255,255,0) 84%);
  box-shadow: inset 0 0 0 1px rgba(40, 28, 12, .12), inset 0 16px 24px -10px rgba(40, 28, 12, .30), inset 0 -10px 20px -12px rgba(255, 255, 255, .4);
}
.win.sm { --ring: 2.5px; --bz: 7px; --rv: 4px; --pr: 41px; flex: none; box-shadow: 0 12px 18px -12px rgba(70, 46, 18, .5); }
.win.sm .pane { width: 94px; aspect-ratio: 100 / 124; }
.win.sm .rv { box-shadow: inset 0 3px 5px rgba(76, 52, 22, .28), inset 0 -1px 0 rgba(255, 255, 255, .7); }
.win.sm .glass { box-shadow: inset 0 0 0 1px rgba(40, 28, 12, .12), inset 0 8px 12px -6px rgba(40, 28, 12, .28); }
/* sky paint: colours from the data-sky tokens */
.st1 { stop-color: var(--s1); } .st2 { stop-color: var(--s2); } .st3 { stop-color: var(--s3); } .st4 { stop-color: var(--s4); }
.sg { stop-color: var(--glow); } .ch { stop-color: var(--c-hi); } .cl { stop-color: var(--c-lo); } .wh { stop-color: var(--w-hi); } .wl { stop-color: var(--w-lo); }
stop { transition: stop-color 1.2s var(--ease); }
.cl-far { fill: var(--c-far); transition: fill 1.2s; }
.mw-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.mw-arc { fill: none; stroke: var(--arc); stroke-width: 1.5; stroke-dasharray: 3.2 2.6; stroke-linecap: round; opacity: .85; }
.mw-o { fill: none; stroke: var(--arc); stroke-width: 1.5; }
.mw-d, .mw-plane { fill: var(--arc); }
.mw-chip rect { fill: #fffcf6; opacity: .95; }
.mw-chip text { fill: #1d2940; font: 700 10.5px var(--sans); letter-spacing: .04em; }

/* Empty-leg board ----------------------------------------------------------------
   One markup (scripts/lib/legs.js rowHtml) for every layout. Phones and .legs.cards: a card
   with a window, the date beside it, route, aircraft, then price and the request button.
   Wide screens without .cards (the full board, route pages): one row per flight. */
.legs { display: grid; gap: 14px; }
.legs.cards { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.leg {
  position: relative; display: grid; column-gap: 18px; align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto 1fr auto;
  grid-template-areas: "win date" "win meta" "cities cities" "codes codes" "model model" "note note" "buy buy";
  padding: 18px 20px 20px; background: var(--paper); border-radius: 28px; box-shadow: var(--lift);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.leg::after { content: ""; position: absolute; inset: 7px; border-radius: 21px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.leg:not(:has(> .leg-win)) { grid-template-areas: "date date" "meta meta" "cities cities" "codes codes" "model model" "note note" "buy buy"; }
.leg-route, .leg-craft { display: contents; }
.leg-win { grid-area: win; align-self: center; }
.leg-date { grid-area: date; align-self: end; }
.leg-date time { display: grid; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.leg-day { font: 430 2.75rem/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.leg-mon { margin-top: 6px; font-weight: 650; font-size: 0.9688rem; color: var(--ink); }
.leg-date > .leg-mon { font: 430 1.5rem/1.1 var(--serif); }
.leg-meta { grid-area: meta; margin-top: 10px; font-size: 0.9063rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.leg-cities { grid-area: cities; margin-top: 16px; font: 480 1.4375rem/1.18 var(--serif); letter-spacing: -0.012em; text-wrap: balance; color: var(--ink); }
.leg-arrow { display: inline-block; vertical-align: -3px; width: 20px; height: 20px; margin: 0 2px; color: var(--caramel); }
.leg-codes { grid-area: codes; margin-top: 4px; color: var(--ink-3); font-size: 0.8438rem; font-weight: 650; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.leg-model { grid-area: model; margin-top: 8px; font-weight: 650; font-size: 0.9688rem; color: var(--ink); }
.leg-note { grid-area: note; margin-top: 6px; color: var(--ink-2); font-size: 0.9063rem; line-height: 1.45; }
.leg-tag {
  display: inline-block; margin-right: 7px; padding: 2px 10px; border-radius: 999px;
  background: var(--brush), linear-gradient(180deg, #f1f2f3, #d4d8db); box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
  color: var(--ink); font-size: 0.7813rem; font-weight: 700; vertical-align: 1px;
}
.leg-buy {
  grid-area: buy; position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 14px; margin-top: 16px; padding-top: 16px;
}
.leg-buy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--stitch-soft); }
.leg-price { font: 480 1.4375rem/1.1 var(--serif); letter-spacing: -0.015em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.leg-amt { display: grid; gap: 3px; }
.leg-usd { margin: 0; color: var(--muted); font: 500 0.8125rem/1.25 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.leg-price-ask { padding: 8px 14px; border-radius: 999px; background: #f4e8d6; color: var(--caramel); font: 700 0.9063rem/1.1 var(--sans); letter-spacing: 0; }
.leg-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px;
  border-radius: 999px; background: var(--navy); color: var(--on-navy); font: 700 0.9375rem/1 var(--sans); white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 18px -12px rgba(20, 32, 60, .7);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.leg-cta::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1.25px dashed rgba(251, 246, 236, .42); pointer-events: none; }
.leg-cta:hover { background: var(--navy-2); }
.leg-cta:active { transform: translateY(1px); }
.legs.cards .leg-codes { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) {
  .legs.cards .leg:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
}
@media (max-width: 719px) {
  .win.sm { --pr: 36px; }
  .win.sm .pane { width: 84px; }
  .leg { padding: 16px 16px 18px; column-gap: 16px; }
  .leg-day { font-size: 2.5rem; }
  .leg-buy .leg-cta { flex: 1 1 160px; }
}
/* The full board: compact cards on phones, one row per flight on wide screens. Rows far
   off screen skip rendering until they come near (content-visibility). */
.legs:not(.cards) .leg { content-visibility: auto; contain-intrinsic-size: auto 190px; }
@media (max-width: 1039px) {
  .legs:not(.cards) { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
  .legs:not(.cards) .win.sm { --ring: 2px; --bz: 6px; --rv: 3px; --pr: 30px; }
  .legs:not(.cards) .win.sm .pane { width: 66px; }
  .legs:not(.cards) .leg-day { font-size: 2.125rem; }
  .legs:not(.cards) .leg-meta { margin-top: 6px; }
  .legs:not(.cards) .leg-cities { margin-top: 12px; font-size: 1.3125rem; }
  .legs:not(.cards) .leg-buy { margin-top: 12px; padding-top: 12px; }
  .legs:not(.cards) .leg-cta { min-height: 44px; }
}
@media (min-width: 1040px) {
  .legs:not(.cards) { gap: 12px; }
  .legs:not(.cards) .leg {
    contain-intrinsic-size: auto 112px;
    grid-template-columns: 62px 104px minmax(0, 1.25fr) minmax(0, 1fr) 332px;
    /* flexible spacer rows above and below keep the route text centred on the window */
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: "win date . . buy" "win date cities model buy" "win date codes meta buy" "win date note note buy" "win date . . buy";
    align-items: center; column-gap: 22px; padding: 14px 18px 14px 14px; border-radius: 24px;
  }
  .legs:not(.cards) .leg::after { border-radius: 17px; }
  .legs:not(.cards) .leg:not(:has(> .leg-win)) {
    grid-template-columns: 104px minmax(0, 1.25fr) minmax(0, 1fr) 332px;
    grid-template-areas: "date . . buy" "date cities model buy" "date codes meta buy" "date note note buy" "date . . buy"; padding: 18px 18px 18px 22px;
  }
  .legs:not(.cards) .win.sm { --ring: 2px; --bz: 5px; --rv: 3px; --pr: 24px; }
  .legs:not(.cards) .win.sm .pane { width: 48px; }
  .legs:not(.cards) .mw-chip { display: none; }
  .legs:not(.cards) .leg-date { align-self: center; }
  .legs:not(.cards) .leg-day { font-size: 2.25rem; }
  .legs:not(.cards) .leg-cities { margin: 0; font-size: 1.3125rem; align-self: end; }
  .legs:not(.cards) .leg-codes { align-self: start; }
  .legs:not(.cards) .leg-model { margin: 0; align-self: end; }
  .legs:not(.cards) .leg-meta { margin-top: 4px; align-self: start; font-weight: 550; }
  .legs:not(.cards) .leg-win, .legs:not(.cards) .leg-date, .legs:not(.cards) .leg-buy { align-self: center; }
  .legs:not(.cards) .leg-note { margin-top: 4px; }
  .legs:not(.cards) .leg-buy { margin: 0; padding: 0; flex-wrap: nowrap; gap: 18px; justify-content: flex-end; }
  .legs:not(.cards) .leg-buy::before { display: none; }
  .legs:not(.cards) .leg-price { font-size: 1.3125rem; min-width: 7.5ch; text-align: right; }
  .legs:not(.cards) .leg-amt { justify-items: end; text-align: right; }
  .legs:not(.cards) .leg-price-ask { min-width: 0; flex: none; font-size: 0.9063rem; }
  .legs:not(.cards) .leg-cta { flex: none; }
}
.legs-foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  margin-top: 24px; color: var(--ink-2); font-size: 0.9375rem;
}
.legs-note { margin-top: 18px; color: var(--ink-2); font-size: 0.9375rem; max-width: 60ch; }
.legs-empty {
  position: relative; grid-column: 1 / -1; padding: 26px 26px 28px; border-radius: 28px;
  background: var(--paper); box-shadow: var(--lift); color: var(--ink-2); max-width: none;
}
.legs-empty::after { content: ""; position: absolute; inset: 7px; border-radius: 21px; border: 1.5px dashed var(--seam); pointer-events: none; }
.legs-empty .text-link { position: relative; z-index: 1; }

/* Overhead panel (alerts): a brushed nickel frame around stitched leather -------------- */
.overhead { padding: 5px; border-radius: 40px; background: var(--brush), var(--nickel); box-shadow: 0 24px 44px -30px rgba(70, 46, 18, .5); }
.oh-in { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: 35px; background: linear-gradient(180deg, #f1e8d9, #e7dbc6); }
.oh-in::after { content: ""; position: absolute; inset: 8px; border-radius: 28px; border: 1.5px dashed var(--seam); pointer-events: none; }
.oh-in > * { position: relative; z-index: 1; }
.call {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 4px; border-radius: 50%;
  background: var(--metal); box-shadow: 0 8px 14px -8px rgba(70, 46, 18, .55);
}
.call span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: var(--navy);
  background: radial-gradient(circle at 50% 40%, #fffdf6 0%, color-mix(in srgb, var(--spill) 85%, #fff) 62%, var(--spill) 100%);
  box-shadow: inset 0 2px 5px rgba(60, 40, 16, .2), 0 0 0 1px rgba(255, 255, 255, .6);
}
.call svg { width: 26px; height: 26px; }

/* Alerts sign-up ---------------------------------------------------------------------- */
.alerts { display: grid; gap: 24px; }
.alerts-copy { display: grid; gap: 12px; align-content: start; }
.alerts-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 20ch; }
.alerts-copy .lede { max-width: 48ch; }
.alerts-form { display: grid; gap: 14px; align-content: start; }
.alerts-fine { color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; }
.alerts-status { font-size: 0.9375rem; line-height: 1.5; font-weight: 600; }
.alerts-status:empty { display: none; }
.alerts-status.err { color: var(--err); }
.alerts-done {
  position: relative; display: grid; gap: 6px; padding: 22px 24px 24px 68px; border-radius: 24px;
  background: var(--paper); box-shadow: var(--lift); align-self: center;
}
.alerts-done::before {
  content: ""; position: absolute; left: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23fbf6ec' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.alerts-done::after { content: ""; position: absolute; inset: 6px; border-radius: 18px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.alerts-done strong { font: 480 1.4375rem/1.2 var(--serif); color: var(--ink); }
.alerts-done p { color: var(--ink-2); font-size: 0.9688rem; }
.alerts-done:focus { outline: none; }
.alerts-done:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (min-width: 620px) {
  .alerts-form { grid-template-columns: 1fr 1fr; }
  .alerts-form .field-email, .alerts-form .alerts-fine, .alerts-form .alerts-status, .alerts-form .btn { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .alerts { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .alerts-form .btn { justify-self: start; }
}

/* FAQ ------------------------------------------------------------------------------ */
.faq { display: grid; gap: clamp(24px, 4vw, 64px); }
.faq-head { display: grid; gap: 14px; align-content: start; }
.faq-list { position: relative; }
.faq-item { position: relative; }
.faq-item::before, .faq-item:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--stitch);
}
.faq-item::before { top: 0; }
.faq-item:last-child::after { bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 24px 0 18px; cursor: pointer; list-style: none;
  font: 480 clamp(1.1875rem, 2vw, 1.4375rem)/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-2); }
.faq-item summary h3 { font: inherit; }
.faq-sign {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; margin: 0; color: var(--ink);
  background: radial-gradient(circle, #f3f4f5 0 54%, transparent 55%), var(--metal);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px rgba(0, 0, 0, .15);
  transition: transform 0.4s var(--ease);
}
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 1px; background: currentColor;
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign { transform: rotate(45deg); }
.faq-item[open] summary { padding-bottom: 10px; }
.faq-item p { padding: 0 0 24px; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
@media (min-width: 980px) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); align-items: start; }
  .faq-head { position: sticky; top: 32px; }
}

/* Broker disclosure + footer ------------------------------------------------------------ */
.disclosure { padding-block: 0 clamp(40px, 5vw, 64px); }
.disclosure p {
  position: relative; max-width: 64ch; padding: 20px 24px; border-radius: 22px; background: var(--paper);
  color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; line-height: 1.6;
}
.disclosure p::after { content: ""; position: absolute; inset: 5px; border-radius: 17px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.disclosure strong { color: var(--ink); font-weight: 750; }

.footer { background: var(--cream-2); padding-block: 8px 32px; color: var(--ink); }
.footer > .container::before {
  content: ""; display: block; height: 12px; margin-bottom: clamp(32px, 4vw, 44px);
  background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)) 0 3px / 100% 1px no-repeat, var(--stitch) 0 8px / 100% 1.5px no-repeat;
}
.footer-grid { display: grid; gap: 30px 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 40ch; align-content: start; }
.footer-grid > div:last-child:not(:first-child) { grid-column: 1 / -1; }   /* phones: the contact emails get the full width */
.footer-brand p { color: var(--ink-2); font-size: 0.9688rem; }
.footer h2 { margin-bottom: 6px; font: 520 1.125rem/1.3 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.footer li + li { margin-top: 0; }
.footer li a {
  display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-size: 0.9688rem; font-weight: 550;
  overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease;
}
.footer li a:hover { text-decoration-color: var(--caramel); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 28px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(29, 41, 64, .12);
  color: var(--ink-2); font-size: 0.9063rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 650; }
.footer-legal a:hover { text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 0.22em; }
.footer-small { margin-top: 12px; max-width: 60ch; color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; }
.tp { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; }
  .footer-brand, .footer-grid > div:last-child:not(:first-child) { grid-column: auto; }
}

/* Concierge chat launcher --------------------------------------------------------------- */
.chat-fab {
  position: fixed; z-index: 70; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 5px;
  background: var(--paper); border-radius: 999px; color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--seam-soft), 0 18px 34px -16px rgba(70, 46, 18, .6), 0 3px 8px -3px rgba(70, 46, 18, .2);
  transition: transform 0.35s var(--ease), box-shadow 0.25s ease, opacity 0.25s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--seam), 0 22px 38px -16px rgba(70, 46, 18, .65), 0 3px 8px -3px rgba(70, 46, 18, .2); }
.chat-fab img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--metal); }
.chat-fab-text { display: none; padding-right: 18px; text-align: left; line-height: 1.25; }
.chat-fab-text b { display: block; font-size: 0.9375rem; font-weight: 700; }
.chat-fab-text span { display: block; color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; }
.chat-fab-dot { position: absolute; left: 41px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #3d8a5a; border: 2px solid var(--paper); }
body.chat-open .chat-fab { opacity: 0; pointer-events: none; }
@media (min-width: 760px) {
  .chat-fab { right: 24px; bottom: 24px; }
  .chat-fab-text { display: block; }
  /* Once the visitor scrolls, the label folds away so the button never sits on a row's action. */
  body.is-scrolled .chat-fab:not(:hover):not(:focus-visible) .chat-fab-text { display: none; }
}

/* Concierge overlay (thank-you + chat) ------------------------------------------------- */
.ejt-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 0; background: rgba(52, 40, 24, 0.42);
}
.ejt-overlay.open { display: flex; animation: ovIn 0.3s ease both; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.ejt-card {
  display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; height: 100dvh;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.ejt-card-left {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px var(--gutter);
  background: linear-gradient(180deg, #f1e8d9, #e7dbc6);
}
.ejt-card-left::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--stitch); }
.ejt-card-left p { display: none; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.6; }
.sophia-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; padding: 3px; background: var(--metal); box-shadow: 0 6px 12px -6px rgba(70, 46, 18, .5); }
.ejt-card-left h2 { font: 480 1.3125rem/1.2 var(--serif); letter-spacing: -0.01em; margin: 2px 0; color: var(--ink); }
.ejt-card-left h2 em { font-style: normal; color: inherit; }
.ejt-presence { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 0.8438rem; font-weight: 650; }
.ejt-presence::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3d8a5a; }
.ejt-ref { color: var(--ink-2); font-size: 0.8438rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ejt-ref span { color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }
.ejt-chat { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.ejt-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter); }
.ejt-chat-header span { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.35; }
.ejt-chat-close {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--navy); font-weight: 700; font-size: 0.9063rem;
  box-shadow: inset 0 0 0 1.5px var(--navy); transition: background-color 0.2s ease, color 0.2s ease;
}
.ejt-chat-close:hover { background: var(--navy); color: var(--on-navy); }
.ejt-chat-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
  padding: 14px var(--gutter) 20px; background: var(--cream);
  box-shadow: inset 0 10px 12px -12px rgba(70, 46, 18, .35);
}
.ejt-msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 0.9688rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ejt-msg.sophia { align-self: flex-start; background: var(--paper); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px var(--seam-soft), 0 6px 12px -10px rgba(70, 46, 18, .4); }
.ejt-msg.you { align-self: flex-end; background: var(--navy); color: var(--on-navy); border-bottom-right-radius: 6px; }
.ejt-msg.typing .dot { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--ink-2); opacity: 0.4; animation: dotPulse 1.2s ease-in-out infinite; }
.ejt-msg.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.ejt-msg.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ejt-chat-input { display: flex; gap: 8px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); position: relative; }
.ejt-chat-input::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--stitch-soft); }
.ejt-chat-input input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; background: #fff; border: 1.5px solid var(--field); border-radius: 999px;
  color: var(--ink); font: 550 1rem/1.3 var(--sans); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ejt-chat-input input::placeholder { color: #6f6558; font-weight: 450; }
.ejt-chat-input input:hover { border-color: var(--navy); }
.ejt-chat-input input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .28); }
.ejt-chat-input button {
  position: relative; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: var(--on-navy);
  font: 700 0.9688rem/1 var(--sans); transition: background-color 0.2s ease;
}
.ejt-chat-input button::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1.25px dashed rgba(251, 246, 236, .42); pointer-events: none; }
.ejt-chat-input button:hover { background: var(--navy-2); }
.ejt-chat-input button:disabled { opacity: 0.55; cursor: progress; }
.ejt-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.ejt-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--field); font-size: 0.9063rem; font-weight: 650;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.ejt-chip:hover { background: var(--navy); color: var(--on-navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.ejt-chip:disabled { opacity: 0.45; cursor: default; }
.ejt-chip:disabled:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--field); }
.ejt-countdown { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--seam-soft); color: var(--ink-2); font-size: 0.875rem; }
.ejt-countdown b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ejt-countdown-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); }
.ejt-urgent-banner { align-self: stretch; padding: 10px 14px; border-radius: 12px; background: var(--err-bg); box-shadow: inset 0 0 0 1px rgba(161, 48, 31, .35); color: var(--err); font-size: 0.9063rem; font-weight: 650; }
/* Assistant replies with short lists */
.ejt-msg.rich { white-space: normal; }
.ejt-msg.rich p { margin: 0; }
.ejt-msg.rich p + p, .ejt-msg.rich p + ul, .ejt-msg.rich ul + p { margin-top: 8px; }
.ejt-msg.rich ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.ejt-msg.rich li { margin: 2px 0; }
.ejt-msg.rich li::marker { color: var(--caramel); }
/* Empty legs the concierge mentioned, as requestable cards */
.ejt-legs { align-self: stretch; display: grid; gap: 10px; }
.ejt-leg {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 16px;
  border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: var(--lift); text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.ejt-leg::after { content: ""; position: absolute; inset: 5px; border-radius: 13px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.ejt-leg:hover { box-shadow: var(--lift-2); transform: translateY(-1px); }
.ejt-leg b { font: 520 1.0938rem/1.25 var(--serif); }
.ejt-leg span { grid-column: 1; color: var(--ink-2); font-size: 0.8438rem; line-height: 1.4; }
.ejt-leg strong { grid-column: 2; grid-row: 1; font: 520 1.0938rem/1.25 var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; text-align: right; }
.ejt-leg strong small { display: block; margin-top: 2px; color: var(--ink-2); font: 500 0.75rem/1.3 var(--sans); }
.ejt-leg em { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; font-style: normal; color: var(--navy); font-size: 0.8438rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 0.2em; }
.ejt-partner {
  position: relative; display: grid; gap: 3px; margin: 2px 0 6px; padding: 14px 16px; border-radius: 18px;
  background: var(--cream-2); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--seam);
  transition: background-color 0.2s ease;
}
.ejt-partner:hover { background: #e6dac4; }
.ejt-partner b { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9688rem; }
.ejt-partner b::after {
  content: ""; width: 14px; height: 14px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3.5A1.5 1.5 0 0 0 2 4.5v8A1.5 1.5 0 0 0 3.5 14h8a1.5 1.5 0 0 0 1.5-1.5V10M9 2h5v5M14 2 7.5 8.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3H3.5A1.5 1.5 0 0 0 2 4.5v8A1.5 1.5 0 0 0 3.5 14h8a1.5 1.5 0 0 0 1.5-1.5V10M9 2h5v5M14 2 7.5 8.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ejt-partner span { color: var(--ink-2); font-size: 0.8438rem; line-height: 1.4; }
/* Contact card under a reply (lead capture) */
.ejt-contact {
  position: relative; align-self: stretch; display: grid; gap: 10px; padding: 16px 16px 14px; border-radius: 20px;
  background: var(--paper); box-shadow: var(--lift);
}
.ejt-contact::after { content: ""; position: absolute; inset: 5px; border-radius: 15px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.ejt-contact > * { position: relative; z-index: 1; }
.ejt-contact > p { margin: 0; font: 480 1.0938rem/1.3 var(--serif); color: var(--ink); }
.ejt-contact label { display: grid; gap: 5px; font-size: 0.8438rem; font-weight: 700; color: var(--ink); }
.ejt-contact input {
  min-height: 46px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff;
  color: var(--ink); font: 550 1rem/1.3 var(--sans); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ejt-contact input:hover { border-color: var(--navy); }
.ejt-contact input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 58, 95, .28); }
.ejt-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ejt-contact-actions button { position: relative; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 700 0.9375rem/1 var(--sans); }
.ejt-contact-actions button[type=submit] { background: var(--navy); color: var(--on-navy); }
.ejt-contact-actions button[type=submit]::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1.25px dashed rgba(251, 246, 236, .42); pointer-events: none; }
.ejt-contact-actions button[type=submit]:hover { background: var(--navy-2); }
.ejt-contact-actions button[type=submit]:disabled { opacity: 0.55; cursor: progress; }
.ejt-contact-actions .later { color: var(--navy); background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.ejt-contact-actions .later:hover { background: var(--cream-2); }
.ejt-contact-err { margin: 0; min-height: 1em; color: var(--err); font-size: 0.875rem; font-weight: 650; }
@media (min-width: 820px) {
  .ejt-overlay { padding: 24px; }
  .ejt-card {
    grid-template-rows: none; grid-template-columns: 300px minmax(0, 1fr);
    width: min(960px, 100%); height: min(680px, 92vh); border-radius: 30px;
    box-shadow: 0 0 0 5px rgba(255,255,255,.55), 0 50px 90px -40px rgba(40, 28, 12, .7);
  }
  .ejt-card-left { flex-direction: column; align-items: flex-start; gap: 16px; padding: 34px 28px; }
  .ejt-card-left::after { left: auto; top: 0; bottom: 0; right: 0; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--seam) 0 8px, transparent 8px 14px); }
  .ejt-card-left p { display: block; }
  .sophia-avatar { width: 116px; height: 116px; padding: 4px; }
  .ejt-card-left h2 { font-size: 1.75rem; }
  .ejt-chat-header { padding: 12px 22px; }
  .ejt-chat-body { padding-inline: 22px; }
  .ejt-chat-input { padding: 14px 18px; }
  .ejt-msg { max-width: 80%; }
}

/* Content pages (phase B: guides, routes, partners, about, contact, legal, 404, journal) ----
   Markup from scripts/lib/shell.mjs and the page generators. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 18px; color: var(--ink-2); font-size: 0.9375rem; }
.crumbs a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 650;
  text-decoration: underline; text-decoration-color: var(--caramel); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em;
}
.crumbs a:hover { color: var(--navy-2); }
.page-head { padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); max-width: 18ch; }
.page-head .lede { margin-top: 18px; max-width: 42rem; }
.page-meta { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; font-weight: 550; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Long-form text */
.prose { max-width: 40rem; }   /* about 72 characters of Albert Sans */
.prose > * + *, .prose > section > * + * { margin-top: 16px; }
.prose h2 { margin-top: clamp(44px, 5.5vw, 64px); font-size: clamp(1.75rem, 3.4vw, 2.375rem); }
.prose h3 { margin-top: 32px; font: 480 clamp(1.25rem, 2vw, 1.4375rem)/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose > :first-child, .prose section > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose a:not([class]) {
  color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--caramel);
  text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; transition: color 0.2s ease;
}
.prose a:not([class]):hover { color: var(--navy-2); }
.prose ul:not([class]), .prose ol:not([class]), .prose .g-list, .prose .g-steps { display: grid; gap: 10px; }
.prose ul:not([class]) > li, .prose .g-list > li { position: relative; padding-left: 24px; }
.prose ul:not([class]) > li::before, .prose .g-list > li::before {
  content: ""; position: absolute; left: 4px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--caramel);
}
.prose ol:not([class]), .prose .g-steps { counter-reset: step; }
.prose ol:not([class]) > li, .prose .g-steps > li { position: relative; min-height: 34px; padding-left: 48px; counter-increment: step; }
.prose ol:not([class]) > li::before, .prose .g-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, #f3f4f5 0 56%, transparent 57%), var(--metal);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px rgba(0, 0, 0, .15), 0 4px 8px -5px rgba(70, 46, 18, .5);
  font: 500 1.0625rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums;
}

/* Stitched paper callout and panel */
.note, .panel { position: relative; background: var(--paper); box-shadow: var(--lift); }
.note { padding: 18px 22px; border-radius: 22px; color: var(--ink); font-size: 0.9688rem; line-height: 1.6; }
.note::after, .panel::after { content: ""; position: absolute; inset: 5px; border-radius: 17px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.prose .note { color: var(--ink); }
.panel { padding: 6px clamp(20px, 3vw, 34px); border-radius: 30px; }
.panel::after { inset: 7px; border-radius: 23px; }
.panel > * { position: relative; z-index: 1; }

/* Rows of links with an arrow (Keep reading, related routes, related guides) */
.link-list { position: relative; display: grid; padding: 6px 22px; border-radius: 28px; background: var(--paper); box-shadow: var(--lift); }
.link-list::after { content: ""; position: absolute; inset: 7px; border-radius: 21px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.link-list li { position: relative; z-index: 1; }
.link-list li + li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--stitch-soft); }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 0;
  color: var(--ink); font: 480 1.125rem/1.35 var(--serif); letter-spacing: -0.005em; transition: color 0.2s ease;
}
.link-list a:hover { color: var(--navy-2); }
.link-list .icon { color: var(--caramel); transition: transform 0.35s var(--ease); }
.link-list a:hover .icon { transform: translateX(4px); }
.link-list .meta { flex: none; color: var(--ink-2); font: 600 0.9063rem/1.3 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 760px) {
  .link-list.two { grid-template-columns: 1fr 1fr; column-gap: 44px; padding-inline: 30px; }
  .link-list.two li:nth-child(2)::before { display: none; }
}

/* Closing call to action */
.page-closer { padding-block: clamp(8px, 2vw, 16px) clamp(56px, 8vw, 104px); }
.page-closer .seam { margin-bottom: clamp(40px, 5vw, 64px); }
.page-closer-inner { display: grid; gap: 24px; }
.page-closer h2 { max-width: 20ch; }
.page-closer p { margin-top: 14px; color: var(--ink-2); max-width: 54ch; }
.page-closer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .page-closer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
}
@media (max-width: 479px) {
  .page-actions .btn, .page-closer-actions .btn { flex: 1 1 100%; white-space: normal; }
}

/* Referral partner sign-up: the confirmation that replaces the form */
.partner-done {
  position: relative; padding: 22px 24px 24px 68px; border-radius: 24px; background: var(--paper); box-shadow: var(--lift);
  color: var(--ink); font-weight: 600; line-height: 1.55; overflow-wrap: anywhere;
}
.partner-done::before {
  content: ""; position: absolute; left: 22px; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23fbf6ec' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.partner-done::after { content: ""; position: absolute; inset: 6px; border-radius: 18px; border: 1.5px dashed var(--seam-soft); pointer-events: none; }
.partner-done:focus { outline: none; }
.partner-done:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
