/* Abroadversity prototype theme
   Navy for trust, marigold for the one action that matters on each screen,
   and a boarding-pass card for every programme (the intake is the "departure"). */

:root {
  --navy: #0f2a4a;
  --navy-2: #1c3a5f;
  --ink: #0f2a4a;
  --ink-2: #3c4f68;
  --muted: #6b7a90;
  --line: #dde3ec;
  --line-2: #c8d1de;
  --paper: #f4f6f9;
  --card: #ffffff;
  --sky: #e9f0f9;
  --marigold: #f4a51c;
  --marigold-dark: #d98c00;
  --marigold-50: #fff4dc;
  --green: #0d7a55;
  --green-50: #e3f5ec;
  --red: #b42318;
  --red-50: #fdecea;
  --amber: #8a5300;
  --amber-50: #fff3df;

  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 42, 74, 0.06), 0 10px 28px -14px rgba(15, 42, 74, 0.28);
  --container: 1180px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); max-width: 60ch; }
.section-head .eyebrow { color: var(--marigold-dark); }
.section-head.row { grid-template-columns: 1fr auto; align-items: end; }
.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--marigold-dark); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); border: 1px solid transparent; padding: 12px 18px;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marigold); color: var(--navy); }
.btn-primary:hover { background: var(--marigold-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Prototype banner + header ---------- */
/* Demo bar: every page, every side */
.demo-bar { background: #0a1d33; color: #c8d6ea; font: 500 12.5px/1.3 var(--f-body); }
.demo-row { display: flex; align-items: center; gap: 14px; min-height: 40px; padding-block: 5px; }
.demo-tag { font: 700 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); background: var(--marigold); padding: 5px 8px; border-radius: 6px; text-decoration: none; flex: none; }
.demo-sides { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.demo-sides::-webkit-scrollbar { display: none; }
.demo-label { color: #8fa3bf; margin-right: 6px; white-space: nowrap; }
.demo-sides a { color: #dfe7f2; text-decoration: none; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.demo-sides a:hover { background: rgba(255, 255, 255, 0.08); }
.demo-sides a[aria-current] { background: rgba(244, 165, 28, 0.16); color: var(--marigold); font-weight: 650; }
.demo-note { color: #8fa3bf; white-space: nowrap; }
.demo-reset { background: none; border: 1px solid rgba(255, 255, 255, 0.22); color: #dfe7f2; border-radius: 6px; padding: 5px 10px; cursor: pointer; white-space: nowrap; font-size: 12.5px; }
.demo-reset:hover { border-color: var(--marigold); color: var(--marigold); }
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: var(--marigold); display: grid; place-items: center; font-size: 17px; position: relative; }
/* A small plane taking off from the corner of the mark, in place of a plain dot. */
.brand-mark::after { content: ""; position: absolute; right: -9px; top: -9px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(45 12 12)' fill='%23f4a51c' stroke='%23ffffff' stroke-width='2.4' stroke-linejoin='round' paint-order='stroke' d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.main-nav { display: flex; gap: 24px; font-weight: 550; font-size: 15px; color: var(--ink-2); }
.main-nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--marigold); }
.head-row .spacer { flex: 1; }
.menu-btn { display: none; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; font-weight: 600; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--card); }
.mobile-nav nav { display: grid; padding-block: 8px 16px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.select, .input {
  width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--card); padding: 11px 14px; font-size: 15.5px; font-weight: 550;
}
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.select:hover, .input:hover { border-color: var(--ink-2); }
.input[aria-invalid="true"] { border-color: var(--red); background: var(--red-50); }
.field .error, .choices .error { font-size: 13px; color: var(--red); font-weight: 550; }

/* ---------- Home hero ---------- */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; padding-block: 56px 64px; align-items: center; }
.hero-copy { display: grid; gap: 18px; }
.hero-copy .lede { font-size: 18.5px; color: var(--ink-2); max-width: 50ch; }
.finder { margin-top: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 14px; }
.finder-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.finder-foot .note { font-size: 13.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .label { font-size: 13.5px; color: var(--muted); margin-right: 2px; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 550; cursor: pointer; color: var(--ink-2); text-decoration: none; }
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Departures board: the subject's own vernacular, used once */
.board { background: var(--navy); color: #dfe8f5; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #8fa6c4; }
.board-head b { color: var(--marigold); font-weight: 600; }
.board-rows { display: grid; gap: 2px; }
.board-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 64px 30px; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 8px; text-decoration: none; font: 500 13.5px/1.25 var(--f-mono); }
.board-row:hover { background: rgba(255, 255, 255, 0.07); }
.board-row .route { color: var(--marigold); font-weight: 600; letter-spacing: 0.04em; }
.board-row .what { font-family: var(--f-body); font-size: 14.5px; font-weight: 550; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .when { color: #b9c9de; text-transform: uppercase; }
.board-row .count { text-align: right; color: #8fa6c4; }
.board-foot { font-size: 12.5px; color: #8fa6c4; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 12px; }

.stats-band { background: var(--card); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat:first-child { padding-left: 0; }
.stat { padding: 22px var(--gutter); display: grid; gap: 2px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font: 700 28px/1.1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.step .num { font: 600 13px/1 var(--f-mono); color: var(--marigold-dark); }
.step p { color: var(--ink-2); }

.countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.country-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.country-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--stripe); }
.country-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cc-head { display: flex; gap: 14px; align-items: center; }
.cc-flag { font-size: 30px; width: 40px !important; height: 30px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(15, 42, 74, 0.12); }
.cc-name { display: grid; gap: 2px; min-width: 0; }
.cc-route { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.2 var(--f-mono); color: var(--muted); }
.cc-route svg { width: 14px; height: 14px; color: var(--marigold-dark); }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.cc-stats div { display: grid; gap: 2px; min-width: 0; }
.cc-stats b { font: 700 17px/1.2 var(--f-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cc-stats span { font-size: 12px; color: var(--muted); }
.cc-work { font-size: 14.5px; color: var(--ink-2); display: grid; gap: 2px; align-content: start; }
.cc-work small { font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cc-go { font-weight: 650; color: var(--navy); font-size: 15px; }
.country-card:hover .cc-go { text-decoration: underline; text-underline-offset: 3px; }

.band { background: var(--navy); color: #fff; border-radius: 20px; padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.band p { color: #c8d6ea; margin-top: 8px; max-width: 56ch; }
.band .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- Boarding-pass programme card ---------- */
.passes { display: grid; gap: 14px; }
.passes.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The card is its own size container: wide cards keep the stub on the right,
   narrow ones (three in a row, or a phone) stack it underneath. */
.pass {
  --notch: var(--paper);
  container-type: inline-size; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pass-in { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 156px; }
.pass:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pass-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pass-title { display: grid; gap: 3px; }
.pass-title h3 { font-size: 18px; }
.pass-title span { color: var(--ink-2); font-size: 14.5px; }
.pass-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-green { background: var(--green-50); color: var(--green); }
.tag-amber { background: var(--amber-50); color: var(--amber); }
.tag-sky { background: var(--sky); color: var(--navy); }
.tag-live { background: var(--green-50); color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(13, 122, 85, 0.5); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(13, 122, 85, 0.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(13, 122, 85, 0); } }
.live-text { color: var(--green) !important; font-weight: 600; }
.live-note { display: grid; gap: 6px; justify-items: start; font-size: 14.5px; }
.pass-facts { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fact { display: grid; gap: 1px; min-width: 0; }
.fact small { font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pass-stub { position: relative; border-left: 2px dashed var(--line-2); padding: 18px 16px; display: grid; align-content: space-between; gap: 10px; background: linear-gradient(var(--card), var(--card)); border-radius: 0 var(--radius) var(--radius) 0; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--notch); border: 1px solid var(--line); }
.pass-stub::before { top: -10px; clip-path: inset(50% 0 0 0); }
.pass-stub::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
/* Both stub fields share one label style and one value style, so they line up. */
.stub-field { display: grid; gap: 6px; }
.stub-field small { font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stub-field b { display: flex; align-items: center; gap: 6px; font: 700 18px/1 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.stub-field b i { font-style: normal; color: var(--marigold-dark); font-size: 14px; }
.stub-go { font-size: 13.5px; font-weight: 650; line-height: 1; color: var(--navy); }
.on-card .pass { --notch: var(--card); }
@container (max-width: 560px) {
  .pass-in { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .pass-main { padding: 18px 18px 16px; }
  .pass-title h3 { font-size: 17px; }
  .pass-title span { font-size: 14px; }
  .pass-facts { gap: 10px; }
  .fact b { font-size: 14.5px; }
  .fact small { font-size: 10.5px; }
  .pass-stub { border-left: 0; border-top: 2px dashed var(--line-2); border-radius: 0 0 var(--radius) var(--radius); grid-template-columns: auto auto 1fr; align-items: end; column-gap: 28px; padding: 14px 18px 16px; }
  .pass-stub::before, .pass-stub::after { top: -10px; bottom: auto; }
  .pass-stub::before { left: -10px; clip-path: inset(0 0 0 50%); }
  .pass-stub::after { left: auto; right: -10px; clip-path: inset(0 50% 0 0); }
  .stub-field b { font-size: 16px; }
  .stub-go { justify-self: end; }
}

/* ---------- Programme list ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); }
.page-head .container { padding-block: 28px 22px; display: grid; gap: 14px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.af { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.af span { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; font-size: 12px; }
.list-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding-block: 28px 64px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 20px; position: sticky; top: 88px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h3 { font-size: 17px; }
.fgroup { display: grid; gap: 8px; }
.fgroup > .label { font: 600 11.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.fgroup.wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgroup.wrap > .label { grid-column: 1 / -1; }
.check em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.range-out { font-weight: 650; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--navy); }
.range-ends { display: flex; justify-content: space-between; gap: 8px; margin-top: -2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters-close, .filters-apply { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar .count { font-weight: 600; }
.results-bar label { display: flex; align-items: center; gap: 8px; }
.results-bar .select { width: auto; min-height: 40px; padding-block: 7px; font-size: 14.5px; }
.filters-btn { display: none; }
.empty { background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 36px; display: grid; gap: 12px; justify-items: start; }
.scrim { position: fixed; inset: 0; background: rgba(15, 42, 74, 0.45); z-index: 40; }

/* ---------- Programme page ---------- */
.prog-head .container { padding-block: 24px 28px; display: grid; gap: 14px; }
.prog-title { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.prog-title .sub { color: var(--ink-2); font-size: 17px; margin-top: 8px; }
.prog-title .sub a { color: var(--navy); font-weight: 600; }
.key-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.key-fact { background: var(--paper); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.key-fact small { font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.key-fact b { font-size: 17px; font-variant-numeric: tabular-nums; }
.key-fact span { font-size: 13px; color: var(--muted); }
.prog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 32px 72px; align-items: start; }
.prog-main { display: grid; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.panel h2 { font-size: 22px; }
.panel p, .panel li { color: var(--ink-2); }
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.req { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.req small { font-size: 12.5px; color: var(--muted); }
.req b { font-size: 15.5px; }
.cost-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cost-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cost-table td:last-child { text-align: right; font-weight: 650; }
.cost-table td small { display: block; color: var(--muted); font-weight: 500; }
.cost-table tr.total td { border-bottom: 0; font-size: 17px; color: var(--ink); }
.how { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: how; }
.how li::before { content: counter(how); width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; font: 700 14px/1 var(--f-mono); }
.how b { color: var(--ink); display: block; }
.cta-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; display: grid; gap: 14px; position: sticky; top: 88px; box-shadow: var(--shadow); }
.cta-card h3 { font-size: 20px; }
.cta-card p { color: var(--ink-2); font-size: 15px; }
.cta-card .secondary { text-align: center; font-size: 15px; color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "\2713"; color: var(--green); font-weight: 800; }
.mobile-cta { display: none; }

/* ---------- Eligibility check (dialog) ---------- */
dialog.check-dialog { padding: 0; border: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: 460px; max-width: 100%; background: var(--card); color: var(--ink); box-shadow: -18px 0 40px -16px rgba(15, 42, 74, 0.45); }
dialog.check-dialog::backdrop { background: rgba(15, 42, 74, 0.5); }
.check-wrap { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.check-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.check-head .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.check-head h2 { font-size: 21px; }
.check-head p { color: var(--ink-2); font-size: 14.5px; }
.close-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 20px; line-height: 1; flex: none; }
.progress { display: flex; gap: 6px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--navy); }
.check-body { padding: 20px 22px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result { border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.result.good { background: var(--green-50); }
.result.close { background: var(--amber-50); }
.result.no { background: var(--red-50); }
.result h3 { font-size: 18px; }
.result.good h3 { color: var(--green); }
.result.close h3 { color: var(--amber); }
.result.no h3 { color: var(--red); }
.result ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.result li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.result li::before { font-weight: 800; }
.result li.ok::before { content: "\2713"; color: var(--green); }
.result li.warn::before { content: "!"; color: var(--amber); }
.result li.bad::before { content: "\2715"; color: var(--red); }

/* ---------- Country page ---------- */
.country-hero { background: var(--card); border-bottom: 1px solid var(--line); }
.country-hero .container { padding-block: 36px 40px; display: grid; gap: 22px; }
.country-hero::before { content: ""; display: block; height: 6px; background: var(--stripe); }
.country-hero .title { display: flex; gap: 18px; align-items: center; }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; }
.ch-copy { display: grid; gap: 20px; }
.ch-flag { font-size: 54px; width: 72px !important; height: 54px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(15, 42, 74, 0.12), 0 10px 20px -12px rgba(15, 42, 74, 0.6); }
.route-pass { background: var(--navy); color: #dfe8f5; border-radius: 18px; padding: 20px 22px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.rp-head { display: flex; justify-content: space-between; align-items: center; font: 600 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #8fa6c4; }
.rp-flag { font-size: 18px; width: 24px !important; height: 18px; border-radius: 3px; }
.rp-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rp-route b { display: block; font: 700 34px/1 var(--f-mono); letter-spacing: 0.04em; color: #fff; }
.rp-route small { font-size: 13px; color: #8fa6c4; }
.rp-to { text-align: right; }
.rp-line { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, 0.28); }
.rp-line svg { position: absolute; left: 50%; top: -1px; transform: translate(-50%, -50%); width: 24px; height: 24px; padding: 0 6px; box-sizing: content-box; color: var(--marigold); background: var(--navy); }
.rp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.22); }
.rp-facts div { display: grid; gap: 3px; min-width: 0; }
.rp-facts dt { font: 500 11px/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8fa6c4; }
.rp-facts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #fff; }
.country-hero .lede { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.country-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.subject-link { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.subject-link:hover { border-color: var(--navy); }
.subject-link span { font-size: 13.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.uni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.uni { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 4px; }
.uni span { color: var(--ink-2); font-size: 14.5px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); font: 600 18px/1 var(--f-mono); transition: background 0.15s ease, color 0.15s ease; }
.faq details[open] summary::after { content: "\2212"; background: var(--navy); color: var(--marigold); }
.faq summary:hover { color: var(--navy); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); max-width: 70ch; }
/* ---------- Country page sections ---------- */
.jump { position: sticky; top: 68px; z-index: 15; background: var(--card); border-bottom: 1px solid var(--line); }
.jump .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.jump .container::-webkit-scrollbar { display: none; }
.jump a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.jump a:hover { background: var(--sky); color: var(--navy); }
.jump a.is-on { background: var(--navy); color: #fff; }
main#country section[id] { scroll-margin-top: 130px; }
.band-white { background: var(--card); border-block: 1px solid var(--line); }

.subj-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.subj { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.subj-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--navy); display: grid; place-items: center; flex: none; transition: background 0.15s ease, color 0.15s ease; }
.subj-ic svg, .uni-city svg, .wt-ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subj-ic svg { width: 22px; height: 22px; }
.subj-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.subj-txt b { font-size: 15.5px; font-weight: 650; }
.subj-txt span { font-size: 13.5px; color: var(--muted); }
.subj-go { position: absolute; top: 18px; right: 18px; color: var(--muted); font-size: 18px; transition: transform 0.15s ease, color 0.15s ease; }
.subj:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.subj:hover .subj-ic { background: var(--navy); color: var(--marigold); }
.subj:hover .subj-go { color: var(--navy); transform: translateX(3px); }

.uni-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.uni-card { display: grid; gap: 16px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.uni-card:hover { border-color: var(--navy); background: var(--card); box-shadow: var(--shadow); }
.uni-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.uni-mono { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--marigold); display: grid; place-items: center; flex: none; font: 700 14px/1 var(--f-mono); letter-spacing: 0.02em; }
.uni-txt { display: grid; gap: 3px; min-width: 0; }
.uni-txt h3 { font-size: 16.5px; }
.uni-city { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); }
.uni-city svg { width: 14px; height: 14px; }
.uni-facts { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.uni-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.uni-facts dt { font-size: 13.5px; color: var(--muted); }
.uni-facts dd { margin: 0; font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.uni-go { font-size: 14.5px; font-weight: 650; color: var(--navy); }

.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel h3 { font-size: 19px; }
.cost-total { display: grid; gap: 4px; }
.cost-total b { font: 700 40px/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cost-total span { font-size: 15px; color: var(--ink-2); }
.cost-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; }
.seg-t { background: var(--navy); min-width: 6px; }
.seg-l { background: var(--marigold); }
.cost-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cost-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; }
.cost-legend i { width: 12px; height: 12px; border-radius: 3px; grid-row: 1; }
.cost-legend li > span { font-size: 13px; color: var(--muted); }
.cost-legend b, .cost-legend small { grid-column: 2; }
.cost-legend b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cost-legend small { font-size: 12.5px; color: var(--muted); }
.sw-t { background: var(--navy); }
.sw-l { background: var(--marigold); }

.steps-line { list-style: none; margin: 0; padding: 0; counter-reset: visa; display: grid; }
.steps-line li { position: relative; counter-increment: visa; padding: 3px 0 20px 46px; color: var(--ink-2); }
.steps-line li:last-child { padding-bottom: 0; }
.steps-line li::before { content: counter(visa); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--marigold); display: grid; place-items: center; font: 700 13px/1 var(--f-mono); }
.steps-line li::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; border-left: 2px dashed var(--line-2); }
.steps-line li:last-child::after { display: none; }
.work-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.work-tile { background: var(--paper); border-radius: 12px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.wt-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin-bottom: 4px; }
.wt-ic svg { width: 18px; height: 18px; }
.work-tile small { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.work-tile b { font-size: 15px; line-height: 1.35; }

.vouchers { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.voucher { display: grid; grid-template-columns: 210px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.v-amt { position: relative; background: var(--marigold-50); border-radius: 13px 0 0 13px; border-right: 2px dashed var(--line-2); padding: 20px; display: grid; gap: 6px; align-content: center; }
.v-amt::before, .v-amt::after { content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); }
.v-amt::before { top: -10px; clip-path: inset(50% 0 0 0); }
.v-amt::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
.v-amt small { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.v-amt b { font: 700 19px/1.25 var(--f-display); color: var(--ink); }
.v-body { padding: 20px 22px; display: grid; gap: 6px; align-content: center; }
.v-body h3 { font-size: 17px; }
.v-body p { color: var(--ink-2); font-size: 14.5px; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faq-side { display: grid; gap: 14px; position: sticky; top: 140px; }
.faq-side .btn { justify-self: start; }
.note-box { font-size: 13.5px; color: var(--muted); }

/* ---------- Book a free call ---------- */
dialog.modal { border: 0; padding: 0; margin: auto; width: min(540px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 42, 74, 0.5); }
dialog.modal::backdrop { background: rgba(15, 42, 74, 0.55); }
dialog.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
dialog.modal-sm { width: min(400px, calc(100% - 32px)); }
.modal-wrap { display: grid; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 24px; margin-top: 6px; }
.modal-head p:not(.eyebrow) { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.ctx-chip { display: inline-block; margin-top: 12px; background: var(--sky); color: var(--navy); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.modal-body { padding: 20px 24px; display: grid; gap: 18px; }
.modal-foot { position: sticky; bottom: 0; background: var(--card); padding: 16px 24px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.choice small { white-space: nowrap; }
.phone-in { display: flex; }
.phone-in span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--paper); font-weight: 600; color: var(--ink-2); }
.phone-in .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
fieldset.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
fieldset.choices legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.choice b { font-size: 14.5px; }
.choice small { font-size: 12.5px; color: var(--muted); }
.choice:hover input:not(:disabled):not(:checked) + span { border-color: var(--ink-2); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:checked + span small { color: #c8d6ea; }
.choice input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + span { opacity: 0.45; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--red); }
.done-wrap { padding: 30px 24px 20px; justify-items: center; gap: 12px; text-align: center; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.done-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done-wrap h2 { font-size: 22px; }
.done-wrap p { color: var(--ink-2); }
.done-wrap .btn { margin-top: 6px; }
.auto-close { width: 100%; display: grid; gap: 6px; justify-items: center; }
.auto-bar { width: 100%; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.auto-bar i { display: block; height: 100%; background: var(--green); animation: drain 10s linear forwards; }
@keyframes drain { from { width: 100%; } to { width: 0; } }

/* ---------- Footer + toast ---------- */
.site-foot { background: var(--card); border-top: 1px solid var(--line); padding-block: 40px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-grid h4 { font-size: 14px; font-family: var(--f-body); letter-spacing: 0; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; max-width: 34ch; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14.5px; z-index: 60; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 16px; font-size: 14.5px; }
  .passes.grid-3 { grid-template-columns: 1fr; }
  .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .main-nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
  .list-layout { grid-template-columns: 1fr; }
  .filters-btn { display: inline-flex; }
  .filters { display: none; }
  .filters.is-open { display: grid; position: fixed; inset: auto 0 0 0; top: auto; z-index: 50; max-height: 86vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding-bottom: 24px; }
  .filters.is-open .filters-close, .filters.is-open .filters-apply { display: inline-flex; }
  .filters.is-open .filters-apply { position: sticky; bottom: 0; box-shadow: 0 -12px 16px var(--card); }
  #result-count { display: none; }
  .prog-layout { grid-template-columns: 1fr; padding-bottom: 110px; }
  .cta-card { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px -16px rgba(15, 42, 74, 0.4); }
  .mobile-cta .fee { display: grid; font-size: 13px; color: var(--muted); }
  .mobile-cta .fee b { font-size: 16px; color: var(--ink); }
  .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .subject-grid, .uni-grid { grid-template-columns: 1fr; }
  .ch-grid { grid-template-columns: 1fr; gap: 24px; }
  .subj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uni-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-side { position: static; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-block: 44px; }
  .finder-fields { grid-template-columns: 1fr; }
  .finder-foot .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps, .countries { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 62px minmax(0, 1fr) 54px; }
  .board-row .count { display: none; }
  .section-head.row { grid-template-columns: 1fr; }
  .req-grid, .two { grid-template-columns: 1fr; }
  .prog-title { flex-direction: column; }
  dialog.check-dialog { width: 100%; height: 92%; max-height: 92%; margin: auto 0 0 0; border-radius: 18px 18px 0 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .ch-flag { font-size: 40px; width: 54px !important; height: 40px; }
  .rp-route b { font-size: 26px; }
  .subj-grid, .uni-cards, .work-tiles { grid-template-columns: 1fr; }
  .subj { flex-direction: row; align-items: center; padding: 14px 16px; }
  .subj-go { position: static; }
  .cost-total b { font-size: 32px; }
  .vouchers { grid-template-columns: 1fr; }
  .voucher { grid-template-columns: 1fr; }
  .v-amt { border-right: 0; border-bottom: 2px dashed var(--line-2); border-radius: 13px 13px 0 0; }
  .v-amt::before { top: auto; bottom: -10px; left: -10px; right: auto; clip-path: inset(0 0 0 50%); }
  .v-amt::after { left: auto; right: -10px; clip-path: inset(0 50% 0 0); }
  .jump { top: 64px; }
  .modal-head, .modal-body { padding-inline: 18px; }
  .modal-foot { padding: 12px 18px 16px; }
  .modal-foot .btn { width: 100%; }
  .choice span { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .tag-live::before { animation: none; }
  dialog.modal[open] { animation: none; }
  .auto-bar i { animation: none; }
}


/* =================== Portals (student, counsellor, university, consultant, stays partner) =================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
textarea.input { resize: vertical; min-height: 64px; line-height: 1.45; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.p-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.p-head-row { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.p-head .spacer { flex: 1; }
.p-role { font: 600 12px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--line-2); }
.p-as { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.p-as .select { width: auto; max-width: 300px; padding-block: 8px; }
.p-body { padding-block: 28px 64px; display: grid; gap: 22px; }
.p-body > *, .p-main > *, .p-detail > * { min-width: 0; }
.p-as span { white-space: nowrap; }
.p-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.p-hello h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 6px; }
.p-hello .muted { margin-top: 6px; }

.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.p-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.p-stat b { font: 700 26px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.p-stat span { font-size: 13.5px; color: var(--ink-2); }
.p-stat.is-alert { border-color: var(--marigold); background: var(--marigold-50); }

.p-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.p-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.p-tabs button em { font: 600 11.5px/1 var(--f-mono); font-style: normal; background: var(--sky); color: var(--ink-2); padding: 3px 6px; border-radius: 999px; }
.p-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--marigold); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px; }
.seg button { background: none; border: 0; padding: 8px 14px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.p-split { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.p-list { display: grid; gap: 8px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 2px; }
.p-row { display: grid; gap: 6px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; width: 100%; }
.p-row:hover { border-color: var(--line-2); }
.p-row.is-on { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--marigold); }
.p-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-row-sub { font-size: 13.5px; color: var(--ink-2); }
.p-row-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-detail { display: grid; gap: 16px; min-width: 0; }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.d-head h2 { font-size: 26px; }
.d-head p { margin-top: 4px; }
.d-prog { color: var(--ink-2); font-size: 14.5px; }
.empty-s { padding: 18px; color: var(--muted); font-size: 14px; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }

.pill { font: 600 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; white-space: nowrap; background: var(--sky); color: var(--ink-2); }
.pill-new { background: var(--marigold-50); color: var(--amber); }
.pill-contacted { background: #eef0ff; color: #3b3f9e; }
.pill-applied { background: var(--sky); color: var(--navy); }
.pill-offer, .pill-enrolled { background: var(--green-50); color: var(--green); }
.pill-visa { background: #f1ecfe; color: #5b3fb0; }
.pill-closed { background: #eef1f5; color: var(--muted); }
.chip-s { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-ok { background: var(--green-50); color: var(--green); }
.chip-warn { background: var(--amber-50); color: var(--amber); }
.chip-bad { background: var(--red-50); color: var(--red); }
.chip-sky { background: var(--sky); color: var(--navy); }
.wait { font-size: 12.5px; color: var(--ink-2); }
.wait.is-late { color: var(--red); font-weight: 650; }

.next-card { background: var(--navy); color: #e6edf6; border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; justify-items: start; }
.next-card .eyebrow { color: var(--marigold); }
.next-card h3 { color: #fff; font-size: 21px; }
.next-card p { color: #c8d6ea; }
.next-card b { color: #fff; }
.next-card .input, .next-card .select { background: #fff; color: var(--ink); }
.next-card textarea { width: 100%; }
.next-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.next-card .btn-dark { background: #fff; color: var(--navy); }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; width: 100%; }
.row-form .select { flex: 1; min-width: 200px; width: auto; }

.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tracker li { position: relative; padding: 16px 12px; display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 13.5px; color: var(--muted); }
.tracker li + li { border-left: 1px solid var(--line); }
.tracker i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); }
.tracker li.is-done { color: var(--ink); }
.tracker li.is-done i { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px var(--card); }
.tracker li.is-now { color: var(--ink); font-weight: 650; background: var(--marigold-50); }
.tracker li.is-now i { border-color: var(--marigold); background: var(--marigold); box-shadow: inset 0 0 0 4px var(--marigold-50); }

.p-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.p-switch button { text-align: left; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 14px; display: grid; }
.p-switch button small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.p-switch button[aria-selected="true"] { border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--marigold); }
.p-case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.p-case-head h2 { font-size: 24px; }
.p-case-head p { margin-top: 4px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.p-main, .p-side { display: grid; gap: 16px; min-width: 0; }
.p-side { position: sticky; top: 84px; }

.person { grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 16px 18px; }
.person > div { display: grid; }
.person small { color: var(--muted); font-size: 12.5px; }
.person span:not(.avatar) { font-size: 13.5px; color: var(--ink-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--marigold); display: grid; place-items: center; font: 700 15px/1 var(--f-display); }

.msgs { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.msg { background: var(--paper); border-radius: 12px; padding: 10px 12px; max-width: 92%; }
.msg.is-me { background: var(--sky); justify-self: end; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.msg-meta span { color: var(--muted); }
.msg p { font-size: 14.5px; color: var(--ink); margin-top: 3px; }
.msg-consultant { border-left: 3px solid #8b6be0; }
.msg-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 14px 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.tl li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.tl li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; border-left: 2px solid var(--line); }
.tl li:last-child::after { display: none; }
.tl li small { color: var(--muted); white-space: nowrap; }
.tl-student::before { background: var(--marigold) !important; }
.tl-counsellor::before { background: var(--navy) !important; }
.tl-university::before { background: var(--green) !important; }
.tl-consultant::before { background: #8b6be0 !important; }
.tl-partner::before { background: #0e8fb0 !important; }

.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.docs li div { display: grid; }
.docs li b { font-size: 14.5px; color: var(--ink); }
.docs li small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.doc-ic { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line-2); display: grid; place-items: center; color: #fff; }
.doc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.docs li.is-up .doc-ic { background: var(--green); border: 0; }
.docs .btn { position: relative; }

.steps-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps-check li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.steps-check li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.steps-check li i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.steps-check li.is-done { color: var(--ink); }
.steps-check li.is-done i { background: var(--green); border-color: var(--green); }
.steps-check li small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.steps-check.is-edit li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.steps-check.is-edit label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.steps-check.is-edit input { width: 18px; height: 18px; accent-color: var(--green); }

.bookings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bookings li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bookings li div { display: grid; }
.bookings li small { color: var(--muted); }

.stays { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.stay { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.stay.is-full { opacity: 0.75; }
.stay-top { display: flex; justify-content: space-between; align-items: center; }
.stay h3 { font-size: 17px; }
.stay-dist { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.stay-dist svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; margin-top: 2px; }
.stay-rent { display: grid; }
.stay-rent b { font: 700 20px/1.2 var(--f-display); }
.stay-rent span { font-size: 13px; color: var(--muted); }
.stay-am { font-size: 13px; color: var(--muted); }
.stay .row-form { margin-top: 4px; }

.table-wrap { overflow-x: auto; max-width: 100%; position: relative; }
.panel:has(> .table-wrap) { grid-template-columns: minmax(0, 1fr); }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th { text-align: left; font: 600 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); }
.p-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.p-table td b { color: var(--ink); display: block; }
.p-table td small { color: var(--muted); }
.p-table.progs td:first-child { min-width: 200px; }
.t-actions { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot-ok { background: var(--green); }
.dot-warn { background: var(--marigold); }
.dot-bad { background: var(--red); }
.money-in { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.money-in span { font: 600 12px/1 var(--f-mono); padding: 0 8px; color: var(--muted); }
.money-in .input { border: 0; border-left: 1px solid var(--line); border-radius: 0; width: 110px; padding-block: 8px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(16px); }

.decide { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; width: 100%; }
.decide legend { font-weight: 650; color: #fff; margin-bottom: 6px; }
.radio { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.radio input { accent-color: var(--marigold); width: 17px; height: 17px; }
.decide .btn { justify-self: start; }

.meter { width: 90px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); }
.mini-flag { width: 24px; height: 18px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.facts dt { font: 600 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; color: var(--ink); font-size: 14.5px; }

.req-list { display: grid; gap: 10px; }
.req-item { grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; }
.req-item b { font-size: 16px; }

.verified { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--green); font-weight: 600; }
.verified svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Public pages: universities, demo guide */
.uni-country { display: grid; gap: 16px; margin-bottom: 40px; }
.uni-country-head { display: flex; align-items: center; gap: 12px; }
.uni-country-head h2 { font-size: 24px; }
.uni-country-head a { margin-left: auto; }
.demo-hero .lede { max-width: 64ch; margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.demo-hero h1 { margin-top: 8px; }
.demo-hero .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.demo-hero .stats .stat:first-child { padding-left: var(--gutter); }
.sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; text-decoration: none; align-content: start; transition: border-color 0.15s, transform 0.15s; }
.side-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.side-card small { font: 600 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--marigold-dark); }
.side-card p { color: var(--ink-2); font-size: 14.5px; }
.side-card span { font-weight: 650; margin-top: 4px; }
.story { margin: 0; padding: 0; list-style: none; counter-reset: story; display: grid; gap: 10px; }
.story li { counter-increment: story; position: relative; padding: 14px 16px 14px 58px; background: var(--paper); border-radius: var(--radius-sm); color: var(--ink-2); }
.story li::before { content: counter(story); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--marigold); display: grid; place-items: center; font: 700 13px/1 var(--f-mono); }
.story b { color: var(--ink); margin-right: 6px; }

@media (max-width: 1080px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .p-side { position: static; }
  .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .p-split { grid-template-columns: minmax(0, 1fr); }
  .p-list { position: static; max-height: 320px; }
  .demo-note { display: none; }
  .demo-hero .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .demo-label { display: none; }
  .demo-row { flex-wrap: wrap; gap: 6px 10px; }
  .demo-reset { margin-left: auto; }
  .demo-sides { order: 3; flex-basis: 100%; margin-inline: -10px; }
  .p-head { position: static; }
  .p-head-row { gap: 10px; }
  .p-role { display: none; }
  .p-as { width: 100%; }
  .p-as .select { flex: 1; max-width: none; min-width: 0; width: 100%; }
  .tracker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tracker li:nth-child(4) { border-left: 0; }
  .tracker li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .p-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .req-item { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .msg-form { grid-template-columns: 1fr; }
  .d-head h2 { font-size: 22px; }
}
