:root {
  /* Screen edges on phones (iPhone clock area and home bar). In the home screen app iOS reports these as 0 for the
     first frame of each new page, so every page's <head> applies the sizes remembered from earlier pages
     (--sat-p / --sab-p, portrait only) and the larger of the two is used. 12 Nov 2026. */
  --sat: var(--sat-p, 0px); --sab: var(--sab-p, 0px);
  --safe-top: max(env(safe-area-inset-top, 0px), var(--sat));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--sab));
}
@media (orientation: landscape) { :root { --sat: 0px; --sab: 0px; } }

/* Lexend (headings) and Inter (body), served by Jurnified itself (12 Nov 2026) instead of Google Fonts, so pages
   draw in the right font at once and work offline. Latin and Latin Extended only; other scripts use the system font.
   Every page preloads the two Latin files. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: fallback; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: fallback; src: url(../fonts/inter-latin.woff2) format('woff2'); 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: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: fallback; src: url(../fonts/lexend-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: fallback; src: url(../fonts/lexend-latin.woff2) format('woff2'); 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; }

/* ─────────────────────────────────────────────
   Jurnified · UK Transport Guide
   Jurnified design system: teal hero, overlapping
   white cards, Lexend + Inter, pill navigation
   ───────────────────────────────────────────── */
:root {
  --teal-50: #edffff; --teal-100: #d0fafe; --teal-150: #eef9fc; --teal-500: #0097b2;
  --teal-700: #0e859f; --teal-800: #275b72; --teal-900: #0d4b65;
  --orange-50: #fff7ed; --orange-100: #ffedd5; --orange-500: #ff751f; --orange-600: #fa7315; --orange-app: #ff8041;
  --green-500: #22c55f; --navy-800: #00009b;

  --page: #f3f4f6;
  --card: #ffffff;
  --row: #ffffff;
  --row-hover: #f9fafb;
  --heading: #101828;
  --body: #364153;
  --body-strong: #364153;
  --muted: #6a7282;
  --icon-muted: #99a1af;
  --border-subtle: #f3f4f6;
  --border: #e5e7eb;
  --brand: #0097b2;
  --brand-ink: #0e859f;
  --brand-deep: #0d4b65;
  --accent: #ff751f;
  --accent-ink: #fa7315;
  --tint-teal: #edffff;
  --tint-orange: #fff7ed;
  --border-teal: #c6f1f7;
  --border-orange: #fde3c8;
  --chip: #f3f4f6;
  --chip-fg: #364153;
  --badge-teal-bg: #d0fafe; --badge-teal-fg: #0d4b65;
  --badge-orange-bg: #ffedd5; --badge-orange-fg: #c2410c;
  --badge-green-bg: #dcfce7; --badge-green-fg: #15803d;
  --badge-gray-bg: #f3f4f6; --badge-gray-fg: #364153;
  --saving: #15803d;
  --panel-grad: linear-gradient(160deg, #eef9fc 0%, #e2f6fa 55%, #f4fbfd 100%);
  --panel-row: rgba(255,255,255,.78);
  --panel-row-border: rgba(255,255,255,.95);
  --hero: linear-gradient(100deg, #0e859f 0%, #0497b2 45%, #0a9cb6 100%);

  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05);
  --shadow-raised: 0 2px 6px rgba(16,24,40,.06), 0 14px 32px rgba(16,24,40,.08);
  --shadow-pill: 0 2px 8px rgba(13,75,101,.18);
  --shadow-nav: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px rgba(13,75,101,.12);

  --font-display: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --radius-card: 32px; --radius-xl: 24px; --radius-lg: 16px; --radius-md: 12px; --radius-pill: 999px;
  --gutter: 88px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* aliases used by inline styles in the content */
  --fg: var(--heading); --r: var(--radius-xl); --shadow: var(--shadow-card);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0a1316; --card: #111c21; --row: #15232a; --row-hover: #1a2b33;
    --heading: #eef4f6; --body: #c7d1d5; --body-strong: #c7d1d5; --muted: #8796a0; --icon-muted: #6b7c85;
    --border-subtle: #1b2a31; --border: #22343c;
    --brand: #2cc2dc; --brand-ink: #4fd0e6; --brand-deep: #bdeef6;
    --accent: #ff8a3d; --accent-ink: #ff9a55;
    --tint-teal: #0d2a31; --tint-orange: #2a1b10; --border-teal: #164551; --border-orange: #4a2e18;
    --chip: #1a2a31; --chip-fg: #b7c4ca;
    --badge-teal-bg: #0f3a44; --badge-teal-fg: #9fe7f3;
    --badge-orange-bg: #3d2412; --badge-orange-fg: #ffb47f;
    --badge-green-bg: #0f3320; --badge-green-fg: #6ee29b;
    --badge-gray-bg: #1d2c33; --badge-gray-fg: #b7c4ca;
    --saving: #5fd893;
    --panel-grad: linear-gradient(160deg, #0f2a31 0%, #0d232a 60%, #111c21 100%);
    --panel-row: rgba(255,255,255,.05); --panel-row-border: rgba(255,255,255,.08);
    --hero: linear-gradient(100deg, #0a5f73 0%, #0a7088 45%, #0b7891 100%);
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-raised: 0 2px 6px rgba(0,0,0,.35), 0 14px 32px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0a1316; --card: #111c21; --row: #15232a; --row-hover: #1a2b33;
  --heading: #eef4f6; --body: #c7d1d5; --body-strong: #c7d1d5; --muted: #8796a0; --icon-muted: #6b7c85;
  --border-subtle: #1b2a31; --border: #22343c;
  --brand: #2cc2dc; --brand-ink: #4fd0e6; --brand-deep: #bdeef6;
  --accent: #ff8a3d; --accent-ink: #ff9a55;
  --tint-teal: #0d2a31; --tint-orange: #2a1b10; --border-teal: #164551; --border-orange: #4a2e18;
  --chip: #1a2a31; --chip-fg: #b7c4ca;
  --badge-teal-bg: #0f3a44; --badge-teal-fg: #9fe7f3;
  --badge-orange-bg: #3d2412; --badge-orange-fg: #ffb47f;
  --badge-green-bg: #0f3320; --badge-green-fg: #6ee29b;
  --badge-gray-bg: #1d2c33; --badge-gray-fg: #b7c4ca;
  --saving: #5fd893;
  --panel-grad: linear-gradient(160deg, #0f2a31 0%, #0d232a 60%, #111c21 100%);
  --panel-row: rgba(255,255,255,.05); --panel-row-border: rgba(255,255,255,.08);
  --hero: linear-gradient(100deg, #0a5f73 0%, #0a7088 45%, #0b7891 100%);
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-raised: 0 2px 6px rgba(0,0,0,.35), 0 14px 32px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 88px; }
body {
  background: var(--page);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.i { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: -0.125em; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; border-radius: 8px; }

/* ── Hero ── */
.hero {
  background: var(--hero);
  color: #fff;
  border-radius: 0 0 64px 64px;
  padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px)) 124px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1880px; margin: 0 auto; position: relative; z-index: 1; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; }
.wordmark { height: 32px; width: auto; display: block; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: #fff; display: grid; place-items: center; font-size: 20px;
  transition: background .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(255,255,255,.12); } }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 2px #0497b2; }
.topbar-div { width: 1px; height: 44px; background: rgba(255,255,255,.2); }
.who { text-align: right; line-height: 1.3; }
.who-role { font-size: 14px; font-weight: 500; opacity: .92; }
.who-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

.back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 56px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); text-decoration: none;
}
.back .i { font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .back:hover { color: #fff; } }
.back-sep { opacity: .5; }

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 16px;
  text-wrap: balance;
  max-width: 900px;
}
.hero-lead { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); margin-top: 16px; max-width: 860px; }
/* The date a page's facts were last checked, under its title (Visa guidance, 20 Nov 2026): students asked "how do I
   know it's up to date?", so the answer sits on the first screen. Change it with the date in the page's disclaimer. */
.hero-checked { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: #fff; }
.hero-checked .i { font-size: 14px; flex: none; }
@media (max-width: 640px) { .hero-checked { margin-top: 8px; } }

/* Nav pill */
.tabs {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; margin-top: 48px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--shadow-nav);
}
.tab {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px;
  border-radius: var(--radius-pill); text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tab .i { font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .tab:hover { background: rgba(255,255,255,.12); } }
.tab.active { background: #fff; color: #275b72; box-shadow: var(--shadow-pill); }
.tab.active .i { color: #0e859f; }
.tab:active { scale: .97; }

/* Compact sticky strip (appears after hero tabs leave view) */
.strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 12px max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%); transition: transform .2s var(--ease);
}
.strip.show { transform: none; }
.strip-inner { max-width: 1880px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.strip-inner::-webkit-scrollbar { display: none; }
.strip-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: var(--radius-pill); text-decoration: none; color: var(--body);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.strip-btn .i { font-size: 14px; color: var(--icon-muted); }
@media (hover: hover) and (pointer: fine) { .strip-btn:hover { background: var(--chip); } }
.strip-btn.active { background: var(--brand); color: #fff; }
.strip-btn.active .i { color: #fff; }

/* ── Layout: main + side panel, overlapping hero ── */
.layout {
  max-width: calc(1880px + 2 * var(--gutter));
  margin: -64px auto 0;
  padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px;
  position: relative; z-index: 2;
}
.main { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.side { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.side-sticky { position: sticky; top: 24px; }
@media (min-width: 1021px) { .strip { display: none; } }

/* ── Section cards ── */
.section {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px;
  scroll-margin-top: 80px;
}
.sect-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
h2.sect-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.01em;
  color: var(--heading); text-wrap: balance;
}
.sect-intro { font-size: 18px; line-height: 1.625; color: var(--body); margin-top: 12px; max-width: 860px; }

h3 { font-family: var(--font-display) !important; font-weight: 600 !important; font-size: 20px !important; }

/* ── Tip cards ── */
.tip {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 24px 24px; border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.section > .tip:last-child { margin-bottom: 0; margin-top: 28px; }
.tip-teal { background: var(--tint-teal); border: 1px solid var(--border-teal); }
.tip-orange { background: var(--tint-orange); border: 1px solid var(--border-orange); }
.tip-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
}
.tip-teal .tip-icon { background: var(--badge-teal-bg); color: var(--brand); }
.tip-orange .tip-icon { background: var(--badge-orange-bg); color: var(--accent-ink); }
.tip-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); margin-top: 2px; }
.tip p { font-size: 15px; line-height: 1.6; color: var(--body-strong); margin-top: 4px; }
.tip strong { color: var(--heading); font-weight: 600; }

/* ── Links ── */
.content-link {
  color: var(--brand); font-weight: 500; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
}
@media (hover: hover) and (pointer: fine) { .content-link:hover { color: var(--brand-ink); } }

/* ── Railcard steps ── */
.steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; position: relative; }
.step {
  display: flex; gap: 20px; padding: 24px 24px;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: var(--row);
}
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(16,24,40,.12);
}
.step-body { min-width: 0; }
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); line-height: 1.35; margin-top: 6px; }
.step-desc { font-size: 15px; color: var(--body); margin-top: 6px; line-height: 1.6; }
.step-tip {
  display: inline-flex; gap: 8px; align-items: flex-start; margin-top: 12px;
  font-size: 14px; color: var(--brand-deep); background: var(--tint-teal);
  border: 1px solid var(--border-teal); padding: 8px 16px; border-radius: var(--radius-md);
  line-height: 1.5;
}
.step-tip .i { color: var(--brand); font-size: 14px; margin-top: 4px; }

/* ── Option cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--row); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { box-shadow: var(--shadow-card); } }
.card.featured { background: var(--tint-teal); border-color: var(--border-teal); }
.card.featured .card-name { color: var(--brand-deep); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-name {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3;
  color: var(--heading); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-name .content-link { color: inherit; background-size: 0 1px; }
@media (hover: hover) and (pointer: fine) { .card-name .content-link:hover { color: var(--brand); background-size: 100% 1px; } }
.name-icon {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--badge-teal-bg); color: var(--brand); font-size: 15px; flex: none;
}
.card-desc { font-size: 15px; line-height: 1.6; color: var(--body); flex: 1; }

.badge {
  flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.b-teal { background: var(--badge-teal-bg); color: var(--badge-teal-fg); }
.b-amber { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.b-green { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.b-neutral { background: var(--badge-gray-bg); color: var(--badge-gray-fg); }

.card-stat, .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--brand-deep); background: var(--badge-teal-bg);
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.card.featured .stat-pill { background: var(--card); }
.tag, .platform-badge {
  font-size: 13px; font-weight: 500; background: var(--chip); color: var(--chip-fg);
  padding: 4px 12px; border-radius: var(--radius-pill);
}

/* ── Airport cards ── */
.airport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; margin-bottom: 4px; }
.airport-card {
  background: var(--row); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.airport-header {
  padding: 20px 24px 16px; background: var(--panel-grad);
  border-bottom: 1px solid var(--border-teal);
}
.airport-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.airport-code { font-size: 13px; color: var(--brand); font-weight: 500; margin-top: 2px; }
.airport-routes { padding: 8px 12px 12px; display: flex; flex-direction: column; }
.route { display: flex; align-items: flex-start; gap: 16px; padding: 12px; border-radius: var(--radius-lg); }
.route + .route { border-top: 1px solid var(--border-subtle); }
.route-mode {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--badge-teal-bg); color: var(--brand);
}
.route-info { min-width: 0; flex: 1; }
.route-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); line-height: 1.35; }
.route-detail { font-size: 14px; color: var(--body); line-height: 1.5; margin-top: 2px; }
.route-price {
  flex: none; font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--saving); white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--badge-green-bg); padding: 4px 12px; border-radius: var(--radius-pill); margin-top: 2px;
}

/* ── City tabs (segmented pill) ── */
.city-tab-bar {
  display: flex; gap: 4px; padding: 6px; margin-bottom: 24px;
  background: var(--chip); border-radius: var(--radius-pill);
  overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%;
}
.city-tab-bar::-webkit-scrollbar { display: none; }
.city-tab {
  flex: none; height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--body); cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .city-tab:hover { color: var(--heading); } }
.city-tab.active { background: var(--card); color: var(--brand-deep); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.city-panel { display: none; }
.city-panel.active { display: block; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.city-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.city-stat-box {
  background: var(--panel-grad); border: 1px solid var(--border-teal);
  border-radius: var(--radius-xl); padding: 20px 24px;
}
.csb-label { font-size: 13px; font-weight: 500; color: var(--brand); }
.csb-value {
  font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.1;
  color: var(--heading); margin-top: 6px; font-variant-numeric: tabular-nums;
}
.csb-note { font-size: 14px; color: var(--body); margin-top: 4px; }

.transport-list { display: flex; flex-direction: column; gap: 12px; }
.tl-item {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px;
  background: var(--row); border: 1px solid var(--border);
  border-radius: var(--radius-xl); transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .tl-item:hover { background: var(--row-hover); box-shadow: var(--shadow-card); } }
.tl-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; background: var(--brand); color: #fff;
}
.tl-body { min-width: 0; flex: 1; }
.tl-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.tl-desc { font-size: 15px; color: var(--body); line-height: 1.55; margin-top: 2px; }
.tl-price { flex: none; text-align: right; }
.tl-amount { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-per { font-size: 13px; color: var(--muted); }

/* ── Must-have apps (list rows like the product) ── */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; margin-bottom: 4px; }
.app-card {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px;
  background: var(--row); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: 0 1px 2px rgba(16,24,40,.03);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .app-card:hover { background: var(--row-hover); box-shadow: var(--shadow-card); } }
.app-icon {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; color: #fff;
}
.tile-green { background: var(--green-500); }
.tile-navy { background: var(--navy-800); }
.tile-coral { background: var(--orange-app); }
.tile-teal { background: #0097b2; }
.tile-dark { background: #000; }
.app-body { min-width: 0; flex: 1; }
.app-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--heading); line-height: 1.3; }
.app-desc { font-size: 15px; color: var(--body); line-height: 1.55; margin: 4px 0 12px; }
.app-platforms { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Tables ── */
.cost-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.cost-table th {
  background: var(--panel-grad); text-align: left; padding: 16px 20px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--brand-deep);
  border-bottom: 1px solid var(--border-teal); white-space: nowrap;
}
.cost-table td {
  padding: 16px 20px; border-bottom: 1px solid var(--border-subtle);
  background: var(--row); color: var(--body); vertical-align: middle; font-variant-numeric: tabular-nums;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--heading); }
@media (hover: hover) and (pointer: fine) { .cost-table tbody tr:hover td { background: var(--row-hover); } }
.cost-highlight td { background: var(--row); }
.cost-savings { color: var(--saving) !important; font-family: var(--font-display); font-weight: 600; }
.section div[style*="overflow-x"] { border: 1px solid var(--border); box-shadow: none !important; border-radius: var(--radius-xl) !important; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--row);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.faq-item.open { background: var(--tint-teal); border-color: var(--border-teal); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); line-height: 1.4;
}
.faq-chevron {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chip); color: var(--muted); font-size: 13px;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 24px 24px; font-size: 16px; line-height: 1.7; color: var(--body-strong); }
.faq-a-inner strong { color: var(--heading); font-weight: 600; }

/* ── CTA ── */
.cta {
  background: var(--hero); color: #fff; border-radius: var(--radius-card);
  padding: 44px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-copy { position: relative; z-index: 1; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.25; text-wrap: balance; }
.cta p { font-size: 16px; color: rgba(255,255,255,.88); max-width: 520px; margin-top: 8px; }
.cta-btn {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 28px; border-radius: var(--radius-pill);
  background: #fff; color: #275b72; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; box-shadow: var(--shadow-pill);
  transition: background .12s var(--ease);
}
.cta-btn .i { color: #0e859f; transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .cta-btn:hover { background: #f1fbfd; } }
@media (hover: hover) and (pointer: fine) { .cta-btn:hover .i { transform: translateX(3px); } }
.cta-btn:active { scale: .97; }

/* ── Side panels ── */
.panel { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 32px; }
.panel-teal { background: var(--panel-grad); }
.panel-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--heading); display: flex; align-items: center; gap: 12px; }
.panel-title.teal { color: var(--brand-deep); }
.panel-sub { font-size: 15px; color: var(--body); margin-top: 6px; }
.toc { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.toc-row {
  display: flex; align-items: center; gap: 16px; padding: 8px 12px 8px 8px; border-radius: var(--radius-lg);
  text-decoration: none; color: var(--heading); border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .toc-row:hover { background: var(--row-hover); } }
.toc-icon {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--chip); color: var(--muted); font-size: 14px; transition: all .2s var(--ease);
}
.toc-label { flex: 1; font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.toc-arrow { color: var(--icon-muted); font-size: 13px; transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .toc-row:hover .toc-arrow { transform: translateX(3px); } }
.toc-row.active { background: var(--tint-teal); border-color: var(--border-teal); }
.toc-row.active .toc-icon { background: var(--brand); color: #fff; }
.toc-row.active .toc-label { color: var(--brand-deep); font-weight: 600; }
.toc-row.active .toc-arrow { color: var(--brand); }

.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.check-row {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 16px; border-radius: var(--radius-lg);
  background: var(--panel-row); border: 1px solid var(--panel-row-border); cursor: pointer;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: none; width: 22px; height: 22px; border-radius: 8px; margin-top: 1px;
  border: 1.5px solid var(--icon-muted); background: var(--card);
  display: grid; place-items: center; color: transparent; font-size: 12px;
  transition: all .15s var(--ease);
}
.check-row input:checked + .check-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-row input:focus-visible + .check-box { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.check-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--brand-deep); line-height: 1.35; }
.check-hint { display: block; font-size: 14px; color: var(--brand); margin-top: 2px; }
.check-row input:checked ~ span .check-title { text-decoration: line-through; opacity: .6; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 13px; font-weight: 500; color: var(--brand-deep); }
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--panel-row); border: 1px solid var(--border-teal); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .2s var(--ease); }

/* ── Footer ── */
.page-footer { padding: 56px max(var(--gutter), env(safe-area-inset-left, 0px)) 48px; }
.footer-inner {
  max-width: 1880px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--brand); }
.footer-brand span { color: var(--accent); }
.footer-note { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 1240px) {
  :root { --gutter: 48px; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .side-sticky { display: none; }
  .side { order: 2; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hero { border-radius: 0 0 36px 36px; padding-bottom: 96px; }
  .topbar { padding-top: 24px; }
  .wordmark { height: 26px; }
  .who, .topbar-div { display: none; }
  .avatar { width: 40px; height: 40px; }
  .back { margin-top: 36px; }
  .hero-lead { font-size: 16px; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 32px; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .tab { height: 40px; padding: 0 16px; font-size: 14px; }
  .layout { margin-top: -56px; gap: 20px; }
  .main { gap: 20px; }
  .section { padding: 28px 20px; border-radius: 24px; }
  .panel { padding: 24px 20px; border-radius: 24px; }
  .sect-head { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .sect-intro { font-size: 16px; }
  .cards, .airport-grid, .app-grid { grid-template-columns: 1fr; }
  .step { padding: 20px; gap: 16px; }
  .tl-item { padding: 16px; gap: 16px; align-items: flex-start; }
  .tl-icon { width: 44px; height: 44px; font-size: 18px; }
  .csb-value { font-size: 26px; }
  .cta { padding: 32px 24px; border-radius: 24px; }
  .cta h2 { font-size: 22px; }
  .footer-note { text-align: left; }
  .faq-q { padding: 20px; font-size: 16px; }
  .faq-a-inner { padding: 0 20px 20px; }
  .tip { padding: 20px; gap: 16px; }
  .tip-icon { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 420px) {
  .city-info { grid-template-columns: 1fr; }
}
@media (min-width: 1600px) {
  .section { padding: 56px 64px; }
  .card { padding: 28px; }
  .main { gap: 40px; }
}
@media (max-width: 900px) {
  .airport-grid, .app-grid { grid-template-columns: 1fr; }
}

/* ═══ Open layout: sections sit on the page, only the intro card overlaps the hero ═══ */
.main { gap: 104px; }
.intro-card {
  background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 48px; margin-bottom: -24px;
}
.intro-title { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--heading); display: flex; align-items: center; gap: 16px; line-height: 1.2; }
.intro-text { font-size: 18px; line-height: 1.65; color: var(--body); margin-top: 16px; max-width: 1100px; }
.intro-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 28px; }
.intro-tips .tip { margin: 0; }
/* "Send this guide" (20 Nov 2026): a row under the opening paragraph of every public guide, filled in by site.js.
   The empty row holds its height, so nothing moves when the buttons arrive. */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; min-height: 44px; }
.share-note { font-size: 14px; line-height: 1.4; color: var(--muted); }
.share-note:empty { display: none; }
@media (max-width: 640px) { .share-row .btn { padding: 0 16px; } }
@media print { .share-row { display: none; } }

.section { background: none; box-shadow: none; border-radius: 0; padding: 0; scroll-margin-top: 32px; }
.sect-head { margin-bottom: 36px; gap: 20px; }
h2.sect-title { font-size: clamp(26px, 2.6vw, 32px); }

/* inner elements become the white surfaces */
.card, .airport-card, .step, .tl-item, .app-card, .faq-item {
  background: var(--card); border-color: transparent; box-shadow: var(--shadow-card);
}
@media (hover: hover) and (pointer: fine) { .card:hover, .tl-item:hover, .app-card:hover { background: var(--card); box-shadow: var(--shadow-raised); } }
.card.featured { background: var(--tint-teal); border-color: var(--border-teal); box-shadow: none; }
.faq-item.open { background: var(--card); border-color: var(--border-teal); }
.section div[style*="overflow-x"] { background: var(--card); border-color: transparent; box-shadow: var(--shadow-card) !important; }
.cost-table td { background: transparent; }
@media (hover: hover) and (pointer: fine) { .cost-table tbody tr:hover td { background: transparent; } }
@media (hover: hover) and (pointer: fine) { .cost-table tbody tr:hover td { background: var(--row-hover); } }
.city-tab-bar { background: var(--card); box-shadow: var(--shadow-card); }
.city-tab.active { background: var(--brand); color: #fff; box-shadow: none; }
.step-tip { background: var(--tint-teal); }
.section > .tip:last-child { margin-top: 32px; }

@media (min-width: 1600px) { .section { padding: 0; } .main { gap: 120px; } }
@media (max-width: 720px) {
  .main { gap: 64px; }
  .intro-card { padding: 28px 20px; border-radius: 24px; margin-bottom: -8px; }
  .intro-title { font-size: 24px; }
  .intro-tips { grid-template-columns: 1fr; }
  .section { padding: 0; border-radius: 0; }
}

/* ═══ Spacing pass: narrower side rail, consistent rhythm ═══
   Scale: 8 · 12 · 16 · 24 · 32 · 48 · 96
   - section → section 96 · header → content 32 · content → tip 32
   - grid gaps 24 · stacked rows 16 · card padding 28            */
.layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.main { gap: 96px; }
.side, .side-sticky { gap: 24px; }

/* Compact side panels */
.panel { padding: 24px; border-radius: 24px; }
.panel-title { font-size: 18px; gap: 12px; }
.panel-sub { font-size: 14px; margin-top: 4px; }
.toc { margin-top: 16px; gap: 2px; }
.toc-row { gap: 12px; padding: 6px 12px 6px 6px; border-radius: 12px; }
.toc-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.toc-label { font-size: 15px; }
.checks { margin-top: 16px; gap: 8px; }
.check-row { padding: 12px 16px; gap: 12px; border-radius: 12px; }
.check-title { font-size: 15px; }
.check-hint { font-size: 13px; }
.progress { margin-top: 16px; }

/* Intro card */
.intro-card { padding: 40px 48px 48px; margin-bottom: 0; }
.intro-tips { gap: 24px; margin-top: 32px; }

/* Section header → content */
.sect-head { margin-bottom: 32px; }
.sect-intro { margin-top: 8px; }
/* Visa roadmap details: locked in the account but not open on this device (vault.js) */
.vault-note { margin-top: 12px; max-width: 860px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal); border: 1px solid var(--border-teal); font-size: 14px; line-height: 1.5; color: var(--body); }
.vault-note[hidden] { display: none; }
/* The documents passcode pop-up (vault.js JF_VAULT.ask) */
dialog.vd { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; width: min(440px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--card); color: var(--body); box-shadow: 0 24px 64px rgba(4, 50, 63, .28); }
dialog.vd::backdrop { background: rgba(4, 30, 40, .45); }
.vd-card { display: grid; gap: 16px; padding: 24px; }
.vd-head { display: flex; gap: 12px; align-items: flex-start; }
.vd-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tint-teal); color: var(--brand); }
.vd-t { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--heading); }
.vd-s { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.vd-card .field input { background: var(--page); }
.vd-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--body); cursor: pointer; }
.vd-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.vd-err { margin: 0; font-size: 14px; font-weight: 500; color: #b3261e; }
.vd-err:empty { display: none; }
.vd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-forgot { justify-self: start; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.vault-note p { margin: 0; }
.vault-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.vault-bar p .i { color: var(--brand); vertical-align: -2px; margin-right: 4px; }
.vault-bar .vb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vault-bar .vb-acts .btn { margin-top: 0; }
.vault-bar .content-link { font-size: 14px; }
.vault-note .btn { margin-top: 8px; }

/* Grids and stacks */
.cards, .airport-grid, .intro-tips { gap: 24px; }
.app-grid { gap: 16px; }
.steps, .transport-list, .faq-list { gap: 16px; }
.card { padding: 28px; gap: 16px; }
.step { padding: 24px 28px; }
.app-card { padding: 24px 24px; }
.city-info { gap: 24px; margin-bottom: 24px; }
.city-tab-bar { margin-bottom: 32px; }

/* Tips: one consistent gap above/below */
.tip { margin-bottom: 32px; }
.section > .tip:last-child { margin: 32px 0 0; }
.sect-head + .tip { margin-top: 0; }
.steps { margin-bottom: 32px; }
.cards[style*="margin-bottom"] { margin-bottom: 48px !important; }
.section h3 { margin-bottom: 16px !important; }
.section div[style*="overflow-x"] { margin-bottom: 0 !important; }
.section div[style*="overflow-x"] + .tip { margin-top: 32px; }

@media (min-width: 1600px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .main { gap: 112px; }
  .card { padding: 28px; }
}
@media (max-width: 1240px) {
  .layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
}
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main { gap: 64px; }
  .intro-card { padding: 28px 20px; }
  .intro-tips, .cards, .airport-grid { gap: 16px; }
  .card { padding: 24px; }
  .step { padding: 20px; }
  .sect-head { margin-bottom: 24px; }
  .tip { margin-bottom: 24px; }
  .section > .tip:last-child { margin-top: 24px; }
  .cards[style*="margin-bottom"] { margin-bottom: 32px !important; }
  .city-info { gap: 12px; }
}
.card-name { flex-wrap: nowrap; min-width: 0; }
.card-top { align-items: center; }
.card-top .badge { margin-top: 0; }
.cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ═══ Anchored section headers ═══ */
.main { gap: 80px; }
.section { border-top: 1px solid var(--border); padding-top: 28px; }
.sect-head { display: block; margin-bottom: 32px; }
h2.sect-title { font-size: clamp(26px, 2.6vw, 32px); }
.sect-intro { margin-top: 12px; max-width: 860px; }
@media (min-width: 1600px) { .main { gap: 96px; } }
@media (max-width: 720px) {
  .main { gap: 56px; }
  .section { padding-top: 24px; }
  .sect-head { margin-bottom: 24px; }
}
.section { padding-top: 32px; }
@media (max-width: 720px) { .section { padding-top: 24px; } }

/* ═══ Alternating section bands: subtle full-width shade change per section ═══ */
:root { --sec-gap: 80px; --band-alt: #eceef1; }
@media (min-width: 1600px) { :root { --sec-gap: 96px; } }
@media (max-width: 720px) { :root { --sec-gap: 56px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band-alt: #0f1a1f; } }
:root[data-theme="dark"] { --band-alt: #0f1a1f; }
.main { gap: var(--sec-gap); }
.section { position: relative; }
.section::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -1px; bottom: calc(-1 * var(--sec-gap)); left: 0; right: 0;
  background: transparent;
}
.main > .section:nth-child(even of .section)::before {
  background: var(--band-alt);
  box-shadow: 0 0 0 100vmax var(--band-alt);
  clip-path: inset(0 -100vmax);
}
html, body { overflow-x: clip; }
.section { border-top-color: var(--border); }

/* ═══ Visa Roadmap ═══ */
.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin-top: 40px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.vhero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 48px; }
.vhero h1.hero-title { margin-top: 0; }
.vprog-card { flex: none; width: 260px; padding: 20px 20px; border-radius: 24px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); }
.vprog-label { font-size: 12px; font-weight: 500; opacity: .85; }
.vprog-num { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.vprog-num #progPct { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; }
.vprog-sub { font-size: 14px; opacity: .85; }
.vprog-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.22); margin-top: 12px; overflow: hidden; }
.vprog-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 999px; transition: width .3s var(--ease); }
.vprog-meta { font-size: 13px; opacity: .85; margin-top: 8px; }

/* Next up */
.next-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.next-kicker { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 16px; border-radius: 999px; background: var(--tint-orange); color: var(--badge-orange-fg); font-size: 13px; font-weight: 500; }
.next-phase { font-size: 14px; color: var(--muted); font-weight: 500; }
.next-card .intro-title { margin-top: 16px; }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.next-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--muted); line-height: 1.55; }
.next-note .i { color: var(--brand); margin-top: 4px; flex: none; }
.next-note .nn-short { display: none; }
@media (max-width: 640px) { .jf-note-seen .next-note .nn-long { display: none; } .jf-note-seen .next-note .nn-short { display: inline; } .jf-note-seen .next-note { margin-top: 16px; padding-top: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; background: transparent; color: var(--heading); transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.btn .i { font-size: 14px; }
.btn:active { scale: .97; }
.btn.primary { background: var(--brand); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--brand-ink); } }
.btn.ghost { border-color: var(--border); background: var(--card); color: var(--body-strong); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { border-color: var(--brand); color: var(--brand-deep); } }
.btn.link { margin-left: auto; padding: 0 6px; color: var(--muted); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .btn.link:hover { color: var(--brand); } }
.vchev { font-size: 12px; transition: transform .2s var(--ease); }
.vstep.open .vchev { transform: rotate(180deg); }

/* Planner */
.pcard { background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--body-strong); }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--page); color: var(--heading); font: 500 15px var(--font-body); width: 100%; }
.field input:focus, .field select:focus { outline: 3px solid rgba(0,151,178,.25); border-color: var(--brand); }
.dates { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dates li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal); border: 1px solid var(--border-teal); }
.dates li.warn { background: var(--tint-orange); border-color: var(--border-orange); }
.d-lab { font-size: 14px; font-weight: 600; color: var(--brand-deep); }
.d-val { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); text-align: right; font-variant-numeric: tabular-nums; }
.d-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.dates .kd-empty { display: block; background: var(--chip); border-color: transparent; color: var(--muted); font-size: 14px; }
.result { border-top: 1px solid var(--border-subtle); padding-top: 16px; display: grid; gap: 8px; }
.res-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--body); }
.res-row strong { color: var(--heading); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.res-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal); }
.res-total span { font-weight: 600; color: var(--brand-deep); font-size: 15px; }
.res-warn { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; color: var(--accent-ink); }
.res-warn .i { flex: none; margin-top: 4px; }
.res-total strong { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--heading); font-variant-numeric: tabular-nums; }
.pnote { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: auto; }

/* Roadmap toolbar */
.rm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filters { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 600 14px var(--font-display); color: var(--body); }
.filter .fcount { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--chip); font-size: 12px; }
.filter.active { background: var(--brand); color: #fff; }
.filter.active .fcount { background: rgba(255,255,255,.22); color: #fff; }
.reset { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--font-body); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .reset:hover { color: var(--heading); } }
.reset.armed { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }

/* Phases */
.phase + .phase { margin-top: 40px; }
.phase-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.phase-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--heading); }
.phase-desc { font-size: 15px; color: var(--muted); }
.phase-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand-deep); background: var(--badge-teal-bg); padding: 4px 12px; border-radius: 999px; }

/* Steps */
.vstep { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; position: relative; }
.vstep + .vstep { margin-top: 16px; }
.vstep::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: -16px; width: 2px; background: var(--border); }
.phase .vstep:last-child::before { display: none; }
.vrail { padding-top: 6px; }
.vnum { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-card); font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--muted); position: relative; z-index: 1; }
.s-doing .vnum { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(0,151,178,.18); }
.s-done .vnum, .s-na .vnum { background: var(--badge-green-bg); color: var(--badge-green-fg); font-size: 18px; }
.vcard { background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 24px 24px; border: 1.5px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.s-doing .vcard { border-color: var(--border-teal); background: linear-gradient(180deg, var(--tint-teal), var(--card) 140px); }
.s-done .vcard, .s-na .vcard { opacity: .85; }
.vtop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vstep-ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 14px; }
.vno { display: none; font: 600 13px var(--font-display); color: var(--muted); }
@media (max-width: 720px) { .vno { display: inline; } } /* the numbered rail on the left is hidden at this width (below), so the number moves into the card */
.vstatus { height: 26px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; background: var(--badge-gray-bg); color: var(--badge-gray-fg); }
.s-doing .vstatus { background: var(--badge-teal-bg); color: var(--badge-teal-fg); }
.s-done .vstatus { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.s-na .vstatus { background: var(--badge-gray-bg); color: var(--muted); }
.vopt { height: 26px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.vtitle { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--heading); margin-top: 12px; line-height: 1.35; }
.s-done .vtitle { text-decoration: line-through; text-decoration-color: var(--icon-muted); }
.vdesc { font-size: 15px; color: var(--body); margin-top: 4px; line-height: 1.55; }
.vmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--chip-fg); background: var(--chip); padding: 4px 12px; border-radius: 999px; }
.chip .i { font-size: 12px; color: var(--icon-muted); }
.tasks-chip { background: var(--badge-teal-bg); color: var(--badge-teal-fg); }
.tasks-chip .i { color: var(--brand); }
.vbar { height: 4px; border-radius: 999px; background: var(--chip); margin-top: 16px; overflow: hidden; }
.vbar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s var(--ease); }
.s-todo .vbar { display: none; }
.vactions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.vdetails { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-subtle); display: grid; gap: 24px; }
.vdetails[hidden] { display: none; }
.vlabel { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); margin-bottom: 8px; }
.vlabel .i { color: var(--accent-ink); font-size: 14px; }
.vblock p { font-size: 15px; line-height: 1.65; color: var(--body-strong); max-width: 860px; }
.tasks { list-style: none; display: grid; gap: 6px; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px; border-radius: 12px; background: var(--page); cursor: pointer; transition: background .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .task:hover { background: var(--tint-teal); } }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.tbox { flex: none; width: 22px; height: 22px; border-radius: 8px; border: 1.5px solid var(--icon-muted); background: var(--card); display: grid; place-items: center; color: transparent; font-size: 11px; margin-top: 1px; transition: all .15s var(--ease); }
.task input:checked + .tbox { background: var(--brand); border-color: var(--brand); color: #fff; }
.task input:focus-visible + .tbox { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.ttext { font-size: 15px; line-height: 1.5; color: var(--body-strong); }
.task input:checked ~ .ttext { color: var(--muted); text-decoration: line-through; }
.good { list-style: none; display: grid; gap: 8px; }
.good li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--body); }
.good li .i { color: var(--accent-ink); margin-top: 4px; flex: none; font-size: 14px; }
.olinks, .dlinks { display: flex; flex-wrap: wrap; gap: 12px; }
.olink, .dlink { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 600; transition: box-shadow .15s var(--ease); }
.olink { background: var(--tint-teal); border: 1px solid var(--border-teal); color: var(--brand-deep); }
.olink .i { color: var(--brand); font-size: 14px; }
.olink .olink-ext { font-size: 11px; }
.dlink { background: var(--card); border: 1px solid var(--border); color: var(--body-strong); }
.dlink .i { color: var(--brand); }
@media (hover: hover) and (pointer: fine) { .olink:hover, .dlink:hover { box-shadow: var(--shadow-card); } }
.notes { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--page); font: 15px/1.5 var(--font-body); color: var(--heading); resize: vertical; }
.notes:focus { outline: 3px solid rgba(0,151,178,.25); border-color: var(--brand); }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius-xl); }

/* Help */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.hcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); text-decoration: none; transition: box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { a.hcard:hover { box-shadow: var(--shadow-raised); } }
.hcard-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 18px; margin-bottom: 8px; }
.hcard-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); padding-right: 24px; }
.hcard-desc { font-size: 15px; color: var(--body); line-height: 1.55; }
.hcard-arrow { position: absolute; top: 24px; right: 24px; color: var(--icon-muted); font-size: 13px; }
#help > .tip { margin-top: 32px; }

/* Disclaimer */
.disclaimer { padding: 28px 32px; border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--border); }
.disc-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); margin-bottom: 8px; }
.disc-title .i { color: var(--brand); }
.disclaimer p { font-size: 14px; line-height: 1.65; color: var(--body); max-width: 960px; }
.disc-date { margin-top: 8px; color: var(--muted) !important; font-size: 13px !important; }

/* Side */
.sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sp-stats > div { background: var(--panel-row); border: 1px solid var(--panel-row-border); border-radius: 12px; padding: 12px 12px; text-align: center; }
.sp-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--brand-deep); }
.sp-lab { display: block; font-size: 12px; color: var(--brand); font-weight: 500; }
.sp-phases { display: grid; gap: 12px; margin-top: 16px; }
.sp-phase { display: grid; grid-template-columns: 1fr 80px 34px; gap: 12px; align-items: center; font-size: 14px; }
.sp-pname { color: var(--brand-deep); font-weight: 600; }
.sp-pbar { height: 6px; border-radius: 999px; background: var(--panel-row); border: 1px solid var(--border-teal); overflow: hidden; }
.sp-pbar span { display: block; height: 100%; background: var(--brand); }
.sp-pc { text-align: right; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.side-sticky { display: flex; flex-direction: column; gap: 24px; }
.kd { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.kd li { display: flex; flex-direction: column; padding: 12px 12px; border-radius: 12px; background: var(--page); }
.kd-lab { font-size: 13px; color: var(--muted); }
.kd-val { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.kd .kd-empty { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) { .vhero { flex-direction: column; align-items: flex-start; gap: 20px; } .vprog-card { width: 100%; max-width: 360px; } }
@media (max-width: 720px) {
  .vhero { margin-top: 32px; }
  .tabs { margin-top: 28px; }
  .vstep { grid-template-columns: 1fr; gap: 0; }
  .vstep::before, .vrail { display: none; }
  .vcard { padding: 20px; }
  .btn.link { margin-left: 0; }
  .vactions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .disclaimer { padding: 24px 20px; }
  .phase-count { margin-left: 0; }
}
/* Planner layout refinement */
.dates li { display: flex; flex-direction: column; gap: 2px; }
.d-val { text-align: left; font-size: 18px; }
.dates li.kd-empty { grid-column: 1 / -1; }


/* ═══════ Visa v2: multi-page additions ═══════ */
.sub-label { margin-top: 28px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.8); }
.sub-label + .tabs { margin-top: 12px; }
.fields-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.intro-card .fields-row { margin-top: 24px; }
.pcard.wide { gap: 20px; }
.result-wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 32px; }
.result-wide .res-total { grid-column: 1 / -1; }
.panel-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.panel-link .i { font-size: 12px; transition: transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .panel-link:hover .i { transform: translateX(3px); } }
.section-links { margin-top: 24px; }
.olink.sm { height: 34px; padding: 0 12px; font-size: 13px; flex: none; }
.t-sub { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; text-decoration: none; }
.ttext strong { font-weight: 600; color: var(--heading); }
.task input:checked ~ .ttext strong { color: var(--muted); }
.tl-icon.warn { background: var(--badge-orange-bg); color: var(--accent-ink); }

/* Step header extras */
.vtoolchip { height: 26px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--tint-teal); border: 1px solid var(--border-teal); color: var(--brand-deep); }
.vtoolchip .i { font-size: 12px; color: var(--brand); }

/* In-step tools */
.tool { border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--border-teal); padding: 20px; display: grid; gap: 16px; }
.tool-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.tool-head > .i { width: 32px; height: 32px; padding: 8px; border-radius: 12px; background: var(--brand); color: #fff; flex: none; box-sizing: border-box; }
.tool-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand-deep); background: var(--card); padding: 4px 12px; border-radius: 999px; }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tool .field input, .tool .field select { background: var(--card); }
.tool-note { font-size: 14px; color: var(--body); line-height: 1.55; }
.tool-note.warn { padding: 12px 12px; border-radius: 12px; background: var(--tint-orange); border: 1px solid var(--border-orange); color: var(--body-strong); }
.tool-note .i { color: var(--accent-ink); margin-right: 4px; }
.tool-empty { font-size: 14px; color: var(--muted); padding: 16px 16px; border-radius: 12px; background: var(--card); border: 1px dashed var(--border); }
.tool-priv { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.tool-priv .i { font-size: 12px; color: var(--icon-muted); flex: none; margin-top: 4px; }
.tool-dates { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.tool-dates li { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px; border-radius: 12px; background: var(--card); }
.tool-dates span { font-size: 13px; color: var(--muted); }
.tool-dates strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tool-status { font-size: 13px; color: var(--muted); }
.tool .tasks .task { background: var(--card); }
.count { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--card); }
.count-num { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--heading); line-height: 1; }
.count-num span { font-size: 15px; font-weight: 500; color: var(--muted); }
.count-bar { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.count-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s var(--ease); }
.count-bar.over span { background: var(--accent); }

/* Side: documents readiness and countdown */
.dr-top { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.dr-num { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--heading); line-height: 1; }
.dr-num span { font-size: 16px; color: var(--muted); font-weight: 500; }
.dr-lab { font-size: 14px; color: var(--muted); }
.sidecount { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.sc-num { font-family: var(--font-display); font-weight: 600; font-size: 32px; color: var(--heading); line-height: 1; }
.sc-lab { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Planner: timeline */
.timeline { margin-top: 28px; }
.tl-empty { padding: 24px; border-radius: 16px; background: var(--page); border: 1px dashed var(--border); color: var(--muted); font-size: 15px; text-align: center; }
.tl-chart { position: relative; padding-top: 32px; padding-bottom: 8px; }
.tl-ticks { position: absolute; top: 0; left: 170px; right: 0; height: 100%; pointer-events: none; }
.tick { position: absolute; top: 0; bottom: 0; font-size: 12px; color: var(--muted); padding-left: 4px; border-left: 1px dashed var(--border); white-space: nowrap; }
.lane { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; min-height: 52px; }
.lane + .lane { border-top: 1px solid var(--border-subtle); }
.lane-lab { display: flex; flex-direction: column; padding-right: 16px; font-size: 14px; font-weight: 600; color: var(--heading); }
.lane-lab small { font-size: 12px; font-weight: 400; color: var(--muted); }
.lane-track { position: relative; height: 22px; border-radius: 999px; background: var(--page); }
.seg { position: absolute; top: 0; height: 100%; border-radius: 999px; min-width: 8px; }
.seg.teal { background: var(--brand); }
.seg.orange { background: var(--accent); }
.seg.navy { background: #2c3e66; }
.seg.green { background: #2f9e6b; }
.seg-na { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 12px; font-size: 12px; color: var(--muted); }
.tl-today, .tl-start { position: absolute; top: 22px; bottom: 0; width: 0; border-left: 2px solid var(--heading); z-index: 2; }
.tl-start { border-left-color: var(--accent-ink); border-left-style: dashed; }
.tl-today span, .tl-start span { position: absolute; top: -22px; left: 0; transform: translateX(-50%); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--heading); color: #fff; }
.tl-start span { background: var(--accent-ink); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 13px; color: var(--body); }
.tl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 8px; border-radius: 999px; display: inline-block; }
.lg.teal { background: var(--brand); } .lg.orange { background: var(--accent); } .lg.navy { background: #2c3e66; } .lg.green { background: #2f9e6b; }

/* Planner: dates grid */
.dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dates-grid li { background: var(--card); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); padding: 16px 20px; border-radius: 16px; }
.dates-grid li.warn { background: var(--tint-orange); border-color: var(--border-orange); }
.d-cal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.d-cal a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--brand-deep); background: var(--tint-teal); border: 1px solid var(--border-teal); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .d-cal a:hover { border-color: var(--brand); } }
.d-cal .i { font-size: 12px; color: var(--brand); }

/* Guidance: changes */
.changes { list-style: none; margin-top: 28px; display: grid; gap: 0; position: relative; }
.chg { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px 0; position: relative; }
.chg + .chg { border-top: 1px solid var(--border-subtle); }
.chg-date { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--muted); padding-top: 2px; }
.chg.soon .chg-date { color: var(--accent-ink); }
.chg-body { display: grid; gap: 6px; }
.chg-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.chg-badge { height: 24px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.chg-body p { font-size: 15px; color: var(--body); line-height: 1.6; }
.chg-body .content-link { font-size: 14px; justify-self: start; }

/* Mistake / info cards */
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mcard { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.mcard-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--badge-orange-bg); color: var(--accent-ink); font-size: 16px; margin-bottom: 4px; }
#travel .mcard-ic { background: var(--badge-teal-bg); color: var(--brand); }
.mcard-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); line-height: 1.35; }
.mcard p { font-size: 15px; color: var(--body); line-height: 1.6; }

/* Glossary */
.gsearch { display: flex; align-items: center; gap: 12px; max-width: 480px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); margin-bottom: 20px; color: var(--icon-muted); }
.gsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font-body); color: var(--heading); }
.gsearch:focus-within { outline: 3px solid rgba(0,151,178,.25); }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.gterm { padding: 16px 20px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); }
.gterm[hidden] { display: none; }
.gterm dt { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--brand-deep); }
.gterm dd { margin: 4px 0 0; font-size: 15px; color: var(--body); line-height: 1.55; }
.gnone { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* After: countdown + graduate */
.countdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.cd-big { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 24px 24px; border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--border-teal); }
.cd-big.soon { background: var(--tint-orange); border-color: var(--border-orange); }
.cd-num { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1; color: var(--heading); font-variant-numeric: tabular-nums; }
.cd-big .cd-lab { font-size: 16px; font-weight: 600; color: var(--body-strong); }
.cd-date { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--brand-deep); }
.cd-small { display: flex; flex-direction: column; gap: 2px; padding: 16px 16px; border-radius: 12px; background: var(--page); }
.cd-small .cd-lab { font-size: 13px; color: var(--muted); }
.cd-small strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.cd-small > span:last-child { font-size: 13px; color: var(--muted); }
.countdown .tool-empty { grid-column: 1 / -1; background: var(--page); }
.check-field { display: flex; align-items: center; gap: 12px; align-self: end; height: 44px; cursor: pointer; position: relative; }
.check-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-field input:checked + .tbox { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-field input:focus-visible + .tbox { outline: 3px solid rgba(0,151,178,.35); outline-offset: 2px; }
.gv { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px; border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--border-teal); }
.gv-lab { font-size: 13px; color: var(--muted); }
.gv-val { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--heading); }
.gv-note { font-size: 14px; color: var(--body); }
#gradOut .tool-note.warn { margin-top: 12px; }
#gradOut .tool-empty { background: var(--page); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); }
.fact-lab { font-size: 13px; color: var(--muted); }
.fact-val { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--heading); }
.fact-val small { font-size: 13px; font-weight: 500; color: var(--muted); }
.fact-val.sm { font-size: 15px; font-weight: 600; line-height: 1.4; }
.stay li { display: flex; align-items: center; gap: 12px; }
.stay li .task { flex: 1; min-width: 0; background: var(--card); box-shadow: var(--shadow-card); padding: 16px 16px; }

/* More in Visa */
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.more-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); text-decoration: none; transition: box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .more-card:hover { box-shadow: var(--shadow-raised); } }
.more-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 18px; }
.more-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.more-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.more-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.more-arrow { color: var(--icon-muted); font-size: 13px; flex: none; }

@media (max-width: 640px) {
  .lane { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .tl-ticks { left: 0; }
  .tl-today, .tl-start { display: none; }
  .tick { font-size: 11px; }
  .chg { grid-template-columns: 1fr; gap: 6px; }
  .cd-num { font-size: 40px; }
  .cd-date { margin-left: 0; width: 100%; }
  .stay li { flex-direction: column; align-items: stretch; }
  .stay li .olink { align-self: flex-start; }
  .tool { padding: 16px; }
}

/* Print only the arrival pack */
@media print {
  body.print-pack * { visibility: hidden; }
  body.print-pack #arrivalPack, body.print-pack #arrivalPack * { visibility: visible; }
  body.print-pack #arrivalPack { position: absolute; left: 0; top: 0; width: 100%; background: #fff; border: 0; }
  body.print-pack .tool-actions { display: none; }
}
[hidden] { display: none !important; }
.stay li { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 12px; }
.stay li .task { grid-column: 1; }
.stay li .olink { grid-column: 2; justify-self: start; }
@media (max-width: 640px) { .stay li { grid-template-columns: 1fr; } .stay li .olink { grid-column: 1; } }
.fhint { display: block; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.fhint.ok { color: var(--brand-deep); font-weight: 500; }
.fhint.warn { color: var(--accent-ink); font-weight: 500; }
#funds .fields-row { align-items: start; }

/* ═══ Application tracking additions ═══ */
/* Applying from switch */
.from-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.from-lab { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.fseg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); }
.seg-btn { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 600 14px var(--font-display); color: var(--body); cursor: pointer; white-space: nowrap; }
.seg-btn.on { background: var(--brand); color: #fff; }
.from-hint { font-size: 13px; color: var(--muted); }
.from-note { margin: 0 0 24px; }
.section > .tip.from-note:last-child { margin: 0 0 24px; }

/* Document tracker */
.docs { list-style: none; display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 16px 16px; border-radius: 12px; background: var(--card); border: 1px solid transparent; }
.doc.f-soon, .doc.f-check { border-color: var(--border-orange); }
.doc.f-expired { border-color: #e5a0a0; }
.doc.f-na { opacity: .65; }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.doc-sub { font-size: 13px; color: var(--muted); }
.doc-note { font-size: 13px; font-weight: 600; color: var(--brand-deep); margin-top: 2px; }
.f-soon .doc-note, .f-check .doc-note { color: var(--accent-ink); }
.f-expired .doc-note { color: #b3261e; }
.doc-ctrl { display: flex; align-items: flex-end; gap: 12px; flex: none; }
.doc-date, .doc-st { display: grid; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.doc-ctrl input, .doc-ctrl select { height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--page); color: var(--heading); font: 500 14px var(--font-body); }
.doc-ctrl input:focus, .doc-ctrl select:focus { outline: 3px solid rgba(0,151,178,.25); border-color: var(--brand); }
.doc-pill { height: 26px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; white-space: nowrap; align-self: center; }
.doc-ctrl .doc-pill { min-width: 104px; justify-content: center; }
.p-ready { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.p-missing { background: var(--badge-gray-bg); color: var(--badge-gray-fg); }
.p-soon, .p-check { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.p-expired { background: #fde3e1; color: #b3261e; }
.p-na { background: var(--chip); color: var(--muted); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dlink.soon { cursor: default; background: var(--page); border: 1px dashed var(--border); color: var(--muted); }
.dlink.soon .i { color: var(--icon-muted); }
.soon-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }

/* Application details */
.det-groups { display: grid; gap: 24px; }
.dgroup { display: grid; gap: 12px; }
.dgroup + .dgroup { padding-top: 24px; border-top: 1px solid var(--border); }
.dgroup-title { margin: 0; font-size: 16px !important; line-height: 1.4; color: var(--heading); }
.dgroup-sub { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.det-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 20px; }
.dc-list { display: grid; gap: 16px; }
.dc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; gap: 12px 16px; }
.dc-rm { margin-left: 0; }
.dc-add { justify-self: start; }
@media (max-width: 640px) {
  .dc { grid-template-columns: minmax(0, 1fr); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .dc-rm { justify-self: end; margin-top: -4px; }
}
.dg-row { display: flex; gap: 8px; }
.dg-row input, .dg-row select { flex: 1; min-width: 0; }
.dg-copy { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--icon-muted); cursor: pointer; display: grid; place-items: center; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .dg-copy:hover { border-color: var(--brand); color: var(--brand); } }
/* A locked detail (documents passcode not typed on this device): looks like a box, opens the passcode pop-up */
.dg-locked { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--border); background: var(--page); color: var(--muted); font: 500 15px var(--font-body); text-align: left; cursor: pointer; }
.dg-locked .i { flex: none; color: var(--brand); }
.dg-locked:focus-visible { outline: 3px solid rgba(0,151,178,.25); border-color: var(--brand); }
@media (hover: hover) and (pointer: fine) { .dg-locked:hover { border-color: var(--brand); color: var(--body); } }
.field > .dg-locked { margin-top: 0; }
.nm-empty .i { vertical-align: -2px; margin-right: 4px; }
.dg-copy.done { background: var(--badge-green-bg); color: var(--badge-green-fg); border-color: transparent; }
.tool-priv.big { font-size: 14px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal); color: var(--body); align-items: flex-start; line-height: 1.5; }
.tool-priv.big .i { margin-top: 4px; color: var(--brand); }
.tool-priv.big strong { color: var(--heading); }
.try-note { margin-top: 24px; }
/* Visa planner: the 28-day tracker under the money sum, and the plain summary of the rule */
#fundsTool { margin-top: 16px; }
.rules { display: grid; gap: 12px; margin-top: 20px; }
.rules details { border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); }
.rules summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--heading); border-radius: 16px; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary .i { flex: none; font-size: 14px; color: var(--muted); transition: rotate .2s var(--ease); }
.rules details[open] summary .i { rotate: 180deg; }
.rules summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.rules summary:active { opacity: .7; }
.rules details p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 72ch; }
@supports (interpolate-size: allow-keywords) {
  .rules details { interpolate-size: allow-keywords; }
  .rules details::details-content { block-size: 0; overflow: clip; transition: block-size .25s ease-out, content-visibility .25s allow-discrete; }
  .rules details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .rules summary .i, .rules details::details-content { transition: none; } }
.rules + .pnote { margin-top: 16px; }

/* Profile card (Planner) */
.profile-card { margin-top: 24px; padding: 20px 20px; border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--border-teal); display: grid; gap: 12px; }
.pf-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 16px; flex: none; }
.pf-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.pf-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.pf-sub { font-size: 14px; color: var(--body); }
.pf-note, .pf-done { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pf-note .i { color: var(--brand); margin-top: 4px; flex: none; }
.pf-done { color: var(--badge-green-fg); font-weight: 600; }
.pf-done[hidden] { display: none; }
.sync-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.sync-note .i { color: var(--brand); margin-top: 4px; flex: none; }

@media (max-width: 760px) {
  .doc { flex-direction: column; align-items: stretch; gap: 12px; }
  .doc-ctrl { flex-wrap: wrap; }
  .doc-ctrl .doc-pill { min-width: 0; }
  .doc-date, .doc-st { flex: 1; min-width: 130px; }
}
.doc-ctrl .doc-pill { align-self: flex-end; margin-bottom: 6px; }

.doc-files { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); align-self: center; }
.doc-files .i { font-size: 12px; }
#docTracker .doc-ctrl .doc-pill { align-self: center; margin: 0; }

.p-opt { background: var(--chip); color: var(--muted); }

/* ── First-time tour and page tips (16 Nov 2026, tour.js): short cards, each pointing at a real part of the page
   while the rest dims. Home has the tour; Checklist, the Visa roadmap and Documents each show one tip. The dim (.tour-dim) is one layer with a window cut out of it; .tour-block under it stops taps reaching the
   page. tour.js sets every position; it glides between steps (.tour-move) and follows the page instantly while scrolling. */
.tour { position: fixed; inset: 0; z-index: 200; animation: tour-in .18s ease-out; overscroll-behavior: contain; }
.tour-block, .tour-dim { position: absolute; inset: 0; }
.tour-block { touch-action: pinch-zoom; }
/* Measures the part of the screen clear of the notch, rounded corners and home bar (divided by the site zoom) */
.tour-safe { position: fixed; top: calc(var(--safe-top, 0px) / var(--z, 1)); bottom: calc(var(--safe-bottom, 0px) / var(--z, 1)); left: calc(env(safe-area-inset-left, 0px) / var(--z, 1)); right: calc(env(safe-area-inset-right, 0px) / var(--z, 1)); visibility: hidden; pointer-events: none; }
.tour-dim { background: rgba(4, 30, 40, .6); pointer-events: none; }
.tour-probe { position: fixed; left: 0; top: 0; width: 100px; height: 1px; visibility: hidden; pointer-events: none; }
.tour-hole { position: fixed; left: 0; top: 0; border-radius: 20px; pointer-events: none; box-shadow: 0 0 0 2px #fff; }
.tour-card { position: fixed; left: 0; top: 0; box-sizing: border-box; width: min(360px, calc(100% - 24px)); padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(4, 30, 40, .3); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-height: calc(100vh / var(--z, 1) - 24px); max-height: calc(100dvh / var(--z, 1) - 24px); overflow-y: auto; overscroll-behavior: contain; }
.tour-body { display: grid; gap: 4px; }
.tour-n { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.tour-t { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--heading); }
.tour-d { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--body); }
/* The one long label: it may wrap on a small phone with larger text rather than push the card wider */
.tour-more { width: 100%; justify-content: center; white-space: normal; text-align: center; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; }
.tour-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tour-acts .btn.sm { padding: 0 16px; }
@media (max-width: 640px) { .tour-card { padding: 16px; } }
/* A phone on its side has very little height: the card goes wide and flat (text on the left, buttons on the right)
   so there is still room to show the highlighted part */
@media (max-height: 480px) and (orientation: landscape) {
  .tour-card { width: min(560px, calc(100% - 24px)); grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 16px; }
  .tour-body { grid-column: 1; grid-row: 1; }
  .tour-acts { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: auto auto; justify-content: end; }
  .tour-acts .btn.link { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: center; }
  .tour-more { grid-column: 1 / -1; grid-row: 2; }
}
.tour-acts .btn.link { margin: 0 auto 0 -6px; }
.tour-move .tour-hole { transition: translate .26s cubic-bezier(.2, .8, .2, 1), width .26s cubic-bezier(.2, .8, .2, 1), height .26s cubic-bezier(.2, .8, .2, 1); }
.tour-move .tour-dim { transition: clip-path .26s cubic-bezier(.2, .8, .2, 1); }
.tour-move .tour-card { transition: translate .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes tour-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tour { animation: none; } .tour-move .tour-hole, .tour-move .tour-dim, .tour-move .tour-card { transition: none; } }
:root[data-motion="reduce"] .tour { animation: none; }
