/* =========================================================================
   Soltrium Education Services, site stylesheet (v3, December 2026)
   One family (Archivo, variable width + weight). Width does the expressive work:
   expanded for display, normal for reading, condensed for the departures board.
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette */
  --night: #071e33;
  --night-2: #0b2a46;
  --harbour: #0c3048;
  --harbour-2: #164466;
  --signal: #d7303f;
  --signal-deep: #b52634;
  --signal-bright: #e63946;
  --beacon: #f4c15d;
  --beacon-soft: #fbe7b8;
  --glacier: #eaf1f7;
  --glacier-2: #dce7f1;
  --paper: #ffffff;
  --ink: #10263a;
  --slate: #536779;
  --mist: #9fb3c6;
  --line: rgba(16, 38, 58, 0.12);
  --line-strong: rgba(16, 38, 58, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);
  --ok: #1f9d6b;

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--2: 0.8125rem;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.35rem, 1.15rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.25rem + 1.8vw, 2.35rem);
  --step-4: clamp(2.2rem, 1.35rem + 3.4vw, 3.9rem);
  --step-5: clamp(2.5rem, 1.25rem + 4.9vw, 5.5rem);

  /* Shape and space */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --pill: 999px;
  --container: 1240px;
  --gutter: clamp(20px, 4.2vw, 44px);
  --section: clamp(76px, 10vw, 140px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; text-wrap: balance; }
h1 { font-size: var(--step-5); font-stretch: 125%; font-weight: 800; line-height: 0.97; letter-spacing: -0.022em; }
h2 { font-size: var(--step-4); font-stretch: 120%; line-height: 1.02; letter-spacing: -0.018em; }
h3 { font-size: var(--step-2); font-stretch: 110%; line-height: 1.18; letter-spacing: -0.005em; }
h4 { font-size: var(--step-1); font-stretch: 105%; line-height: 1.25; }
strong { font-weight: 650; }
small { font-size: var(--step--1); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--beacon); color: var(--night); }
:focus-visible { outline: 3px solid var(--beacon); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--beacon); color: var(--night); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--glacier { background: var(--glacier); }
.section--night { background: var(--night); color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 58ch; }
.section--night .lede, .hero .lede, .page-hero .lede { color: rgba(255, 255, 255, 0.78); }
.muted { color: var(--slate); }
.section--night .muted { color: rgba(255, 255, 255, 0.66); }
.fineprint { font-size: var(--step--1); color: var(--slate); line-height: 1.55; }
.section--night .fineprint { color: rgba(255, 255, 255, 0.6); }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.head p { margin: 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--harbour); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: var(--pill);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 650; font-stretch: 104%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--signal { --bg: var(--signal); box-shadow: 0 14px 30px -14px rgba(230, 57, 70, 0.75); }
.btn--signal:hover { --bg: var(--signal-deep); }
.btn--ghost { --bg: rgba(255, 255, 255, 0.07); --bd: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, 0.14); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--line:hover { --bg: rgba(16, 38, 58, 0.05); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 650; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.25em; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- Header (liquid glass) ---------- */
.site-header { position: fixed; z-index: 60; inset: 12px 0 auto 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto; position: relative;
  width: min(var(--container), 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 8px 8px 20px; border-radius: var(--pill);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(16, 38, 58, 0.05), 0 18px 40px -22px rgba(7, 30, 51, 0.45);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.site-header__bar::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  opacity: 0.55; mix-blend-mode: soft-light;
}
.site-header[data-on="dark"] .site-header__bar {
  color: #fff; background: rgba(9, 34, 56, 0.48); border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}
.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.brand__light { display: none; }
.site-header[data-on="dark"] .brand__dark { display: none; }
.site-header[data-on="dark"] .brand__light { display: block; }
.nav { display: none; }
.nav__list { list-style: none; display: flex; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: var(--pill); text-decoration: none; font-weight: 560; font-size: 0.97rem; font-stretch: 100%; transition: background-color 0.2s; }
.nav__link:hover, .nav__link[aria-current="page"] { background: rgba(16, 38, 58, 0.07); }
.site-header[data-on="dark"] .nav__link:hover, .site-header[data-on="dark"] .nav__link[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.site-header[data-on="dark"] .icon-btn { border-color: rgba(255, 255, 255, 0.22); }
.icon-btn svg { width: 20px; height: 20px; }
.header-cta { display: none; }
.menu-btn { display: inline-grid; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (min-width: 560px) and (max-width: 1079px) { .header-cta { display: inline-flex; } }

/* Mobile menu sheet */
.menu-sheet {
  position: fixed; inset: 0; z-index: 80; background: var(--night); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gutter) 28px;
  transform: translateY(-102%); transition: transform 0.45s var(--ease); visibility: hidden;
}
.menu-sheet[data-open] { transform: none; visibility: visible; }
.menu-sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.menu-sheet__top img { height: 36px; width: auto; }
.menu-sheet__list { list-style: none; align-self: center; display: grid; gap: 4px; }
.menu-sheet__link { display: block; padding: 10px 0; font-size: clamp(1.8rem, 7vw, 2.6rem); font-stretch: 118%; font-weight: 750; text-decoration: none; line-height: 1.1; }
.menu-sheet__link:hover { color: var(--beacon); }
.menu-sheet__foot { display: grid; gap: 12px; }
.menu-sheet .icon-btn { border-color: rgba(255, 255, 255, 0.25); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(1100px 620px at 78% 32%, rgba(22, 68, 102, 0.85) 0%, rgba(22, 68, 102, 0) 62%),
    radial-gradient(700px 420px at 8% 90%, rgba(244, 193, 93, 0.09) 0%, rgba(244, 193, 93, 0) 70%),
    var(--night);
  padding: calc(var(--header-h) + 64px) 0 clamp(40px, 6vw, 72px);
}
.hero::after { /* faint meridian grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 30% 40%, #000 0%, transparent 75%);
}
.hero__grid { display: grid; gap: clamp(8px, 3vw, 32px); align-items: center; }
.hero__copy { position: relative; z-index: 2; display: grid; gap: 26px; }
.hero__copy h1 { max-width: 14ch; }
.hero__copy .lede { margin: 0; }
.hero__note { margin: 0; font-size: var(--step--1); color: rgba(255, 255, 255, 0.62); font-stretch: 96%; }
.hero__globe { position: relative; width: min(100%, 680px); aspect-ratio: 1; margin-inline: auto; }
.hero__globe canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.hero__globe canvas:active { cursor: grabbing; }
.hero__globe-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: var(--step--2); color: rgba(255, 255, 255, 0.45); font-stretch: 90%; white-space: nowrap; pointer-events: none; }
.hero__board { margin-top: clamp(20px, 3vw, 36px); }
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 980px); display: grid; align-content: center; }
  .hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
  .hero__globe { margin-right: -4%; }
}
@media (max-width: 959px) {
  .hero__globe { width: min(108%, 560px); margin-top: -8px; }
}

/* ---------- Departures board (split-flap) ---------- */
.board {
  container-type: inline-size;
  --cells: 36; --gaps: 2;
  background: linear-gradient(180deg, #051526, #03101d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(14px, 2.2vw, 22px) clamp(14px, 2.4vw, 26px) clamp(16px, 2.4vw, 24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  color: #fdf6e3;
}
.board__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.board__title { margin: 0; font-size: var(--step--1); font-weight: 650; font-stretch: 88%; color: var(--beacon); letter-spacing: 0.02em; }
.board__clock { font-size: var(--step--2); font-stretch: 80%; color: rgba(253, 246, 227, 0.55); font-variant-numeric: tabular-nums; }
.board__labels, .board__rows { --cw: min(26px, calc((100cqw - 66px) / 37.8)); --c1: calc(10 * var(--cw) + 18px); --c3: calc(16 * var(--cw) + 30px); }
.board__labels, .board__row { display: grid; grid-template-columns: var(--c1) var(--c1) var(--c3); column-gap: calc(var(--cw) * 0.9); }
.board__labels { margin-bottom: 8px; font-size: var(--step--2); font-stretch: 85%; color: rgba(253, 246, 227, 0.5); font-weight: 600; }
.board__rows { display: grid; gap: 6px; }
.board__cell-group { display: flex; gap: 2px; }
.board__row[data-active] .flap { color: var(--beacon); }
@container (max-width: 620px) {
  .board__labels, .board__rows { --cw: min(24px, calc((100cqw - 36px) / 20.9)); }
  .board__labels, .board__row { grid-template-columns: var(--c1) var(--c1); }
  .board__col--field { display: none; }
}
.flap {
  position: relative; flex: none;
  width: var(--cw); height: calc(var(--cw) * 1.42);
  font-size: calc(var(--cw) * 1.02); font-weight: 760; font-stretch: 72%; line-height: 1;
  perspective: 220px; color: #fdf6e3; transition: color 0.4s;
}
.flap__h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #0d2236; }
.flap__h--t { top: 0; border-radius: 3px 3px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.flap__h--b { bottom: 0; border-radius: 0 0 3px 3px; background: #0b1e31; }
.flap__h > span { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; }
.flap__h--t > span { top: 0; }
.flap__h--b > span { bottom: 0; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 0.5px); height: 1px; background: rgba(0, 0, 0, 0.55); z-index: 3; }
.flap__leaf { position: absolute; left: 0; right: 0; top: 0; height: 50%; transform-origin: 50% 100%; transform-style: preserve-3d; z-index: 2; animation: flap-down var(--flap-dur, 90ms) ease-in forwards; }
.flap__leaf .flap__h { height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flap__leaf .flap__h--b { transform: rotateX(180deg); border-radius: 0 0 3px 3px; }
@keyframes flap-down { to { transform: rotateX(-180deg); } }

/* ---------- Doors (audience router) ---------- */
.doors { display: grid; gap: 14px; }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; gap: 16px; } }
.door {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l);
  min-height: 520px; padding: clamp(26px, 3.6vw, 48px); padding-top: clamp(170px, 22vw, 230px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
}
.door__art { position: absolute; inset: 0 0 auto 0; height: clamp(190px, 24vw, 250px); z-index: -1; overflow: hidden; }
.door__art svg { width: 100%; height: 100%; }
.door__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--door-bg)); }
.door--canada { --door-bg: #eaf1f7; }
.door--abroad { --door-bg: #0c3048; }
.door h3 { font-size: var(--step-3); font-stretch: 118%; line-height: 1.04; max-width: 15ch; }
.door p { margin: 0; }
.door__list { list-style: none; display: grid; gap: 8px; }
.door__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.door__list svg { width: 18px; height: 18px; margin-top: 4px; }
.door--canada { background: linear-gradient(180deg, #dce8f3 0%, #eaf1f7 45%, #f4f8fb 100%); color: var(--ink); }
.door--canada .door__list svg { color: var(--signal); }
.door--abroad { background: linear-gradient(180deg, #0b2a46 0%, var(--harbour) 60%); color: #fff; }
.door--abroad .door__list svg { color: var(--beacon); }
.door--abroad p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Itinerary (steps) ---------- */
.itinerary { position: relative; }
.itinerary__stops { list-style: none; display: grid; gap: 28px; }
.itinerary__route, .itinerary__plane { display: none; }
.stop { position: relative; padding-left: 58px; }
.stop::before { /* vertical route on small screens */
  content: ""; position: absolute; left: 17px; top: 40px; bottom: -28px; width: 2px;
  background-image: linear-gradient(var(--line-strong) 60%, transparent 0); background-size: 2px 10px;
}
.stop:last-child::before { display: none; }
.stop__num {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; font-stretch: 90%; font-size: 0.95rem;
  background: var(--paper); color: var(--harbour); border: 2px solid var(--harbour);
  transition: background-color 0.4s, color 0.4s;
}
.section--glacier .stop__num { background: var(--glacier); }
.stop h3 { margin-bottom: 8px; font-size: var(--step-1); }
.stop p { margin: 0; color: var(--slate); font-size: 1rem; }
.section--night .stop p { color: rgba(255, 255, 255, 0.72); }
.section--night .stop__num { background: var(--night); color: var(--beacon); border-color: var(--beacon); }
.section--night .stop::before { background-image: linear-gradient(rgba(255, 255, 255, 0.28) 60%, transparent 0); }
@media (min-width: 900px) {
  .itinerary__stops { grid-template-columns: repeat(var(--stops, 4), 1fr); gap: 32px; padding-top: 62px; }
  .itinerary__route { display: block; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background-image: linear-gradient(90deg, var(--harbour) 55%, transparent 0); background-size: 12px 2px; opacity: 0.5; }
  .section--night .itinerary__route { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 55%, transparent 0); }
  .itinerary__plane { display: block; position: absolute; top: 5px; left: 6px; width: 26px; height: 26px; color: var(--signal); transition: left 3s var(--ease) 0.2s; }
  .itinerary__plane svg { width: 26px; height: 26px; }
  .section--night .itinerary__plane { color: var(--beacon); }
  .itinerary[data-in] .itinerary__plane { left: calc(100% - 32px); }
  .stop { padding-left: 0; }
  .stop::before { display: none; }
  .stop__num { top: -62px; }
  .itinerary[data-in] .stop__num { background: var(--harbour); color: #fff; }
  .section--night .itinerary[data-in] .stop__num { background: var(--beacon); color: var(--night); }
  .itinerary[data-in] .stop:nth-child(2) .stop__num { transition-delay: 0.9s; }
  .itinerary[data-in] .stop:nth-child(3) .stop__num { transition-delay: 1.7s; }
  .itinerary[data-in] .stop:nth-child(4) .stop__num { transition-delay: 2.5s; }
  .itinerary[data-in] .stop:nth-child(5) .stop__num { transition-delay: 3s; }
}

/* ---------- Province map ---------- */
.prov { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .prov { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.prov__map { position: relative; }
.prov__map svg { width: 100%; height: auto; overflow: visible; }
.prov__shape { fill: #d4e1ec; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; transition: fill 0.3s var(--ease); }
.prov__shape:hover { fill: #b9cee0; }
.prov__shape--off { fill: #e9eff5; cursor: default; }
.prov__shape--off:hover { fill: #e9eff5; }
.prov__shape[data-active] { fill: var(--harbour); }
.prov__label { font-size: 17px; font-weight: 700; font-stretch: 112%; fill: var(--harbour); pointer-events: none; transition: fill 0.3s; }
.prov__label[data-active] { fill: #fff; }
.prov__label--off { fill: #9cb0c3; font-weight: 600; }
.prov__city circle { fill: var(--signal); }
.prov__city text { font-size: 13px; font-weight: 650; font-stretch: 92%; fill: #fff; paint-order: stroke; stroke: var(--harbour); stroke-width: 3px; }
.prov__city { opacity: 0; transition: opacity 0.3s; }
.prov__city[data-show] { opacity: 1; }
.prov__tabs { display: inline-flex; padding: 4px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.prov__tab { border: 0; background: transparent; padding: 8px 13px; font-size: 0.94rem; border-radius: var(--pill); font-weight: 620; font-stretch: 104%; cursor: pointer; color: var(--slate); }
.prov__tab[aria-selected="true"] { background: var(--harbour); color: #fff; }
.prov__panel { display: grid; gap: 16px; }
.prov__panel[hidden] { display: none; }
.prov__panel h3 { font-size: var(--step-3); font-stretch: 120%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.facts > div { background: #fff; padding: 14px 16px; }
.facts dt { font-size: var(--step--2); color: var(--slate); font-stretch: 92%; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-stretch: 108%; font-size: 1.05rem; line-height: 1.3; }

/* ---------- Boarding passes (destinations) ---------- */
.passes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
@media (min-width: 1200px) { .passes { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.pass { scroll-snap-align: start; position: relative; display: grid; grid-template-rows: 1fr auto; background: #f7f3ea; color: var(--ink); border-radius: 16px; overflow: hidden; min-height: 300px; }
.section--glacier .pass, .section:not(.section--night) .pass { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pass__main { padding: 18px 18px 16px; display: grid; gap: 10px; align-content: start; }
.pass__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pass__label { font-size: var(--step--2); color: var(--slate); font-weight: 600; font-stretch: 88%; }
.pass__code { font-size: 2.7rem; line-height: 1; font-weight: 850; font-stretch: 125%; letter-spacing: -0.02em; color: var(--harbour); }
.pass__name { font-weight: 700; font-stretch: 108%; font-size: 1.1rem; }
.pass__note { margin: 0; font-size: 0.95rem; color: var(--slate); line-height: 1.45; }
.pass__stub { position: relative; padding: 14px 18px 16px; border-top: 2px dashed rgba(16, 38, 58, 0.2); display: grid; gap: 4px; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--night); }
.section--glacier .pass__stub::before, .section--glacier .pass__stub::after { background: var(--glacier); }
.section:not(.section--night):not(.section--glacier) .pass__stub::before, .section:not(.section--night):not(.section--glacier) .pass__stub::after { background: var(--paper); }
.pass__stub::before { left: -11px; }
.pass__stub::after { right: -11px; }
.pass__intakes { font-weight: 700; font-stretch: 104%; }
.pass__barcode { height: 26px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); opacity: 0.85; border-radius: 2px; }

/* ---------- Country links ---------- */
.countries { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.country {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; border-radius: var(--radius-m); text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); transition: background-color 0.2s, border-color 0.2s;
}
.country:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.country__code { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(244, 193, 93, 0.7); color: var(--beacon); font-weight: 750; font-stretch: 80%; font-size: 0.95rem; }
.country__name { font-weight: 650; font-stretch: 104%; line-height: 1.2; }
.country__name small { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.country svg { width: 18px; height: 18px; opacity: 0.6; }
.section:not(.section--night) .country { background: #fff; border-color: var(--line); }
.section:not(.section--night) .country:hover { border-color: var(--line-strong); background: #fff; }
.section:not(.section--night) .country__code { border-color: rgba(12, 48, 72, 0.45); color: var(--harbour); }
.section:not(.section--night) .country__name small { color: var(--slate); }

/* ---------- Checklists and notes ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist__tick { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(12, 48, 72, 0.08); color: var(--harbour); }
.checklist__tick svg { width: 16px; height: 16px; }
.section--night .checklist__tick { background: rgba(244, 193, 93, 0.14); color: var(--beacon); }
.checklist strong { display: block; font-stretch: 104%; }
.checklist p { margin: 2px 0 0; color: var(--slate); }
.section--night .checklist p { color: rgba(255, 255, 255, 0.7); }
.note { border-left: 3px solid var(--beacon); padding: 6px 0 6px 18px; }
.note p:last-child { margin-bottom: 0; }
.callout { background: var(--glacier); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 12px; }
.section--glacier .callout { background: #fff; }
.callout h3 { font-size: var(--step-2); }
.callout p { margin: 0; }

/* ---------- Two-column layouts ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .split--center { align-items: center; }
  .split__sticky { position: sticky; top: 110px; }
}
.panel { border-radius: var(--radius-l); padding: clamp(26px, 3.6vw, 44px); display: grid; gap: 16px; align-content: start; }
.panel--night { background: var(--night); color: #fff; }
.panel--harbour { background: var(--harbour); color: #fff; }
.panel--white { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.panel p { margin: 0; }
.panel--night p, .panel--harbour p { color: rgba(255, 255, 255, 0.78); }
.panel h3 { font-size: var(--step-3); font-stretch: 118%; line-height: 1.05; }
.points { display: grid; gap: clamp(22px, 3vw, 36px); }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.point h3 { font-size: var(--step-1); margin-bottom: 8px; }
.point p { margin: 0; color: var(--slate); }
.section--night .point p { color: rgba(255, 255, 255, 0.72); }
.point__rule { width: 44px; height: 3px; background: var(--signal-bright); margin-bottom: 18px; border-radius: 2px; }
.section--night .point__rule { background: var(--beacon); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee var(--dur, 80s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); font-weight: 560; white-space: nowrap; font-size: 0.98rem; }
.tag i { font-style: normal; font-size: var(--step--2); font-weight: 700; font-stretch: 80%; color: var(--slate); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee--rev { display: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 16px; align-items: center; padding: 22px 0; font-weight: 680; font-stretch: 106%; font-size: var(--step-1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span:last-child { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq summary svg { width: 14px; height: 14px; }
.faq details[open] summary span:last-child { transform: rotate(45deg); background: var(--harbour); color: #fff; border-color: var(--harbour); }
.faq .faq__a { padding: 0 48px 22px 0; color: var(--slate); }
.faq .faq__a p:last-child { margin-bottom: 0; }
.section--night .faq, .section--night .faq details { border-color: var(--line-dark); }
.section--night .faq .faq__a { color: rgba(255, 255, 255, 0.72); }
.section--night .faq summary span:last-child { border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(900px 500px at 85% 0%, rgba(22, 68, 102, 0.9), rgba(22, 68, 102, 0) 65%), var(--night);
  padding: calc(var(--header-h) + 72px) 0 clamp(56px, 7vw, 96px);
}
.page-hero__grid { display: grid; gap: 32px; align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem); max-width: 16ch; }
.page-hero .lede { margin: 0; }
.page-hero__copy { display: grid; gap: 22px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); color: rgba(255, 255, 255, 0.6); font-stretch: 96%; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.page-hero__art { position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none; }
.page-hero__art svg { width: 100%; height: 100%; }
.page-hero--art { padding-bottom: clamp(120px, 16vw, 220px); }
.page-hero--globe .page-hero__grid { align-items: center; }
@media (min-width: 960px) {
  .page-hero--globe .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}
.page-hero__globe { width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; }
.page-hero__globe canvas { width: 100%; height: 100%; touch-action: pan-y; }

/* ---------- Program explorer ---------- */
.explorer__controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.explorer__controls .search { flex: 1 1 300px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); justify-self: start; }
.seg button { border: 0; background: transparent; padding: 9px 15px; border-radius: var(--pill); font-weight: 620; cursor: pointer; color: var(--slate); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--harbour); color: #fff; }
.search { position: relative; }
.search input { width: 100%; height: 50px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: #fff; padding: 0 18px 0 48px; font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--harbour); box-shadow: 0 0 0 4px rgba(12, 48, 72, 0.12); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--line-strong); background: transparent; border-radius: var(--pill); padding: 8px 14px; font-weight: 580; cursor: pointer; font-size: 0.95rem; color: var(--ink); }
.chip span { color: var(--slate); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
.results__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; color: var(--slate); font-size: var(--step--1); }
.results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.prog { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 18px 16px; display: grid; gap: 10px; align-content: start; }
.prog__top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.prog h3 { font-size: 1.12rem; font-stretch: 104%; line-height: 1.25; }
.prog__prov { flex: none; font-size: var(--step--2); font-weight: 700; font-stretch: 85%; padding: 3px 8px; border-radius: 6px; background: var(--glacier); color: var(--harbour); }
.prog__stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.92rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.prog__stats b { color: var(--ink); font-weight: 650; }
.prog__where { font-size: 0.9rem; color: var(--slate); line-height: 1.45; }
.prog__where summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.prog__where ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.prog__flag { display: inline-block; font-size: var(--step--2); font-weight: 650; color: #8a5a00; background: var(--beacon-soft); padding: 2px 8px; border-radius: 6px; }
.prog__ask { justify-self: start; border: 0; background: none; padding: 4px 0; font-weight: 650; color: var(--signal-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.results__empty { padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-m); color: var(--slate); }
.pdfs { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Fact cards for funding ---------- */
.agencies { display: grid; gap: 14px; }
@media (min-width: 900px) { .agencies { grid-template-columns: repeat(3, 1fr); } }
.agency { background: #fff; border-radius: var(--radius-m); padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: 0 0 0 1px var(--line); }
.agency__prov { font-size: var(--step--2); font-weight: 700; font-stretch: 85%; color: var(--slate); }
.agency h3 { font-size: var(--step-1); }
.agency p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); background: var(--harbour); color: #fff; padding: clamp(32px, 5vw, 64px); display: grid; gap: 22px; }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed rgba(244, 193, 93, 0.35); box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.02), 0 0 0 120px rgba(255, 255, 255, 0.02); }
.cta-band h2 { font-size: var(--step-4); max-width: 16ch; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.78); }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.82); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 0.98rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 255, 255, 0.66); max-width: 34ch; }
.footer__title { font-size: var(--step--1); font-weight: 700; font-stretch: 92%; color: var(--beacon); margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 9px; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); }
.footer__social a:hover { border-color: #fff; text-decoration: none; }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; gap: 10px; font-size: var(--step--1); color: rgba(255, 255, 255, 0.55); }
.footer__legal p { max-width: 110ch; margin: 0; }
address { font-style: normal; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 699px) { .wa-float { display: none; } }
body[data-form-visible] .wa-float { opacity: 0; pointer-events: none; transform: scale(0.8); }
.wa-float { transition: transform 0.25s var(--ease), opacity 0.25s; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Dialog + question flow (the form) ---------- */
.qf-dialog { border: 0; padding: 0; margin: auto; width: min(760px, 100% - 24px); max-height: min(860px, 100% - 24px); border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6); overflow: hidden; }
.qf-dialog::backdrop { background: rgba(5, 18, 31, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qf-dialog[open] { animation: dialog-in 0.4s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
@media (max-width: 640px) { .qf-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; } }
.qf-dialog__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.qf { --qf-pad: clamp(22px, 4.2vw, 48px); position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: min(640px, 100dvh); height: 100%; }
.qf-dialog .qf { max-height: min(860px, 100dvh - 24px); }
@media (max-width: 640px) { .qf-dialog .qf { min-height: 100dvh; max-height: 100dvh; } }
.qf__top { padding: 22px var(--qf-pad) 0; padding-right: 72px; }
.qf__route { position: relative; height: 24px; margin-top: 6px; }
.qf__route-line { position: absolute; left: 10px; right: 10px; top: 11px; height: 2px; background-image: linear-gradient(90deg, var(--line-strong) 60%, transparent 0); background-size: 10px 2px; }
.qf__route-done { position: absolute; left: 10px; top: 11px; height: 2px; background: var(--harbour); width: calc((100% - 20px) * var(--p, 0)); transition: width 0.5s var(--ease); }
.qf__route-dot { position: absolute; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--harbour); background: #fff; }
.qf__route-dot--a { left: 4px; background: var(--harbour); }
.qf__route-dot--b { right: 4px; }
.qf__plane { position: absolute; top: 0; left: calc(10px + (100% - 20px) * var(--p, 0) - 12px); width: 24px; height: 24px; color: var(--signal); transition: left 0.5s var(--ease); }
.qf__count { font-size: var(--step--2); color: var(--slate); font-weight: 600; font-stretch: 90%; }
.qf__body { overflow-y: auto; padding: 18px var(--qf-pad) 8px; }
.qf__step { display: grid; gap: 20px; align-content: start; animation: step-in 0.45s var(--ease); }
.qf__step[data-dir="back"] { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-26px); } }
.qf__q { font-size: var(--step-3); font-stretch: 112%; line-height: 1.1; outline: none; }
.qf__help { margin: -8px 0 0; color: var(--slate); }
.qf__options { display: grid; gap: 10px; }
@media (min-width: 640px) { .qf__options--grid { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; text-align: left;
  min-height: 58px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff;
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.opt:hover { border-color: var(--harbour); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--harbour); background: #eef4fa; box-shadow: inset 0 0 0 1px var(--harbour); }
.opt__key { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 0.82rem; font-weight: 750; font-stretch: 85%; border: 1px solid var(--line-strong); color: var(--slate); }
.opt[aria-pressed="true"] .opt__key, .opt[aria-checked="true"] .opt__key { background: var(--harbour); color: #fff; border-color: var(--harbour); }
.opt__label { font-weight: 620; font-stretch: 102%; line-height: 1.3; }
.opt__hint { display: block; font-weight: 400; color: var(--slate); font-size: 0.92rem; margin-top: 2px; }
.opt--big { min-height: 96px; }
.opt--big .opt__label { font-size: 1.15rem; }
.field { display: grid; gap: 7px; }
.field label, .field .field__label { font-weight: 620; font-size: 0.98rem; }
.field__opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff;
  padding: 12px 14px; font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--harbour); box-shadow: 0 0 0 4px rgba(12, 48, 72, 0.12); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--signal); }
.field__err { color: var(--signal-deep); font-size: 0.9rem; font-weight: 560; }
.field__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field__row--2 { grid-template-columns: 1fr 1fr; } }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; color: var(--slate); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--harbour); }
.qf__inline-note { background: #fff7e3; border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; color: #5b4300; }
.qf__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--qf-pad) 22px; border-top: 1px solid var(--line); background: #fff; }
.qf__back { border: 0; background: none; font-weight: 620; color: var(--slate); cursor: pointer; padding: 10px 6px; display: inline-flex; align-items: center; gap: 6px; }
.qf__kbd { display: none; font-size: var(--step--2); color: var(--slate); }
@media (hover: hover) and (min-width: 700px) { .qf__kbd { display: inline; } }
.qf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qf__error { background: #fdecee; color: #7d1621; border-radius: 12px; padding: 14px 16px; }
.qf__error p { margin: 0 0 8px; }

/* Inline form host (assessment page, home end) */
.qf-host { background: #fff; border-radius: 24px; overflow: hidden; color: var(--ink); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.55); }
.qf-host .qf { min-height: 620px; }

/* Confirmation boarding pass */
.done { display: grid; gap: 22px; justify-items: start; }
.done__pass { width: 100%; display: grid; grid-template-columns: 1fr; border-radius: 18px; overflow: hidden; background: var(--night); color: #fff; box-shadow: 0 30px 60px -30px rgba(7, 30, 51, 0.7); }
@media (min-width: 640px) { .done__pass { grid-template-columns: 1fr 190px; } }
.done__main { padding: 22px; display: grid; gap: 14px; }
.done__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.done__grid dt { font-size: var(--step--2); color: rgba(255, 255, 255, 0.55); font-weight: 600; font-stretch: 88%; }
.done__grid dd { margin: 2px 0 0; font-weight: 700; font-stretch: 104%; line-height: 1.25; }
.done__stub { position: relative; padding: 22px; border-top: 2px dashed rgba(255, 255, 255, 0.25); display: grid; align-content: space-between; gap: 14px; background: var(--harbour); }
@media (min-width: 640px) { .done__stub { border-top: 0; border-left: 2px dashed rgba(255, 255, 255, 0.25); } }
.done__code { font-size: 2.4rem; font-weight: 850; font-stretch: 125%; color: var(--beacon); line-height: 1; }
.done__check { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pop 0.6s var(--ease); }
.done__check svg { width: 26px; height: 26px; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-3); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: var(--step-1); margin: 1.6em 0 0.5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide-sm { display: none; }
@media (min-width: 700px) { .hide-sm { display: initial; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.opt--compact { min-height: 50px; padding: 9px 14px; grid-template-columns: 26px 1fr; gap: 12px; }
.opt--compact .opt__key { width: 26px; height: 26px; }
body:has(.qf-dialog[open]) .wa-float, body:has(.menu-sheet[data-open]) .wa-float { display: none; }

/* ---------- Dark-context variants (hero, panels) ---------- */
.page-hero .checklist__tick, .panel--night .checklist__tick, .panel--harbour .checklist__tick { background: rgba(244, 193, 93, 0.14); color: var(--beacon); }
.page-hero .checklist p, .panel--night .checklist p, .panel--harbour .checklist p { color: rgba(255, 255, 255, 0.72); }
.page-hero .fineprint { color: rgba(255, 255, 255, 0.62); }
.page-hero .fineprint a { color: #fff; }
.page-hero .checklist { margin: 4px 0; }
.panel .checklist { gap: 12px; }
.panel .btn--line { --fg: var(--ink); }
.panel--harbour .textlink, .panel--night .textlink { color: #fff; }
.qf-host .qf { color: var(--ink); }
.section--night .note { border-color: var(--beacon); }
.section--night .note p { color: rgba(255, 255, 255, 0.82); max-width: 80ch; }
.split .stack h3 { font-size: var(--step-2); }
.countries--fields .country__code { font-variant-numeric: tabular-nums; }

/* Assessment page: form first on small screens */
.assess { display: grid; gap: 28px; grid-template-areas: "intro" "form" "next"; }
.assess__intro { grid-area: intro; }
.assess__form { grid-area: form; }
.assess__next { grid-area: next; }
@media (min-width: 960px) {
  .assess { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro form" "next form"; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
}
.countries--fields { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
