/* Layout: warm-paper pages, 1200px max column, guide pages = sticky "On this page" rail + one reading column; teal bands mark help moments. */
:root {
  --surface: #FAF7F2;
  --surface-raised: #FFFFFF;
  --line: #E3DDD3;
  --line-strong: #A9B4B2;
  --ink: #14262A;
  --ink-muted: #4F6266;
  --harbour: #0F5257;
    --harbour-soft: #DCEBE8;
  --on-harbour: #FFFFFF;
  --sun: #F2B33D;
  --on-sun: #14262A;
  --success: #2E6B47;
  --critical: #9C3B1F;
  --critical-soft: #F7E4DC;
  --mark-bg: #0F5257;
  --mark-fg: #FAF7F2;
  --band-ink: #FFFFFF;
  --band-bg: #0F5257;
  --band-muted: #DCEBE8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans Devanagari", "Noto Sans Gurmukhi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --night: #061416; --night-2: #0B2A2E; --night-ink: #EAF4F2; --night-muted: #A9C4C0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0F1A1C; --surface-raised: #162427; --line: #26383B; --line-strong: #4A5E61;
    --ink: #EEF2F0; --ink-muted: #A7B6B5; --harbour: #6CC2B9;
    --harbour-soft: #1F4A4C; --on-harbour: #0F1A1C; --sun: #F2B33D; --on-sun: #14262A;
    --success: #7FCB9C; --critical: #F08A6C; --critical-soft: #3A2019;
    --mark-bg: #6CC2B9; --mark-fg: #0F1A1C; --band-ink: #EEF2F0; --band-muted: #A7B6B5; --band-bg: #10292C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0F1A1C; --surface-raised: #162427; --line: #26383B; --line-strong: #4A5E61;
  --ink: #EEF2F0; --ink-muted: #A7B6B5; --harbour: #6CC2B9;
  --harbour-soft: #1F4A4C; --on-harbour: #0F1A1C; --sun: #F2B33D; --on-sun: #14262A;
  --success: #7FCB9C; --critical: #F08A6C; --critical-soft: #3A2019;
  --mark-bg: #6CC2B9; --mark-fg: #0F1A1C; --band-ink: #EEF2F0; --band-muted: #A7B6B5; --band-bg: #10292C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--harbour); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 1.45; }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--harbour); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--sun); color: var(--on-sun); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { left: 16px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.wordmark span { color: var(--harbour); }
.site-header.is-solid { box-shadow: 0 6px 20px rgba(10, 30, 32, .07); }

.main-nav { display: flex; align-items: center; gap: 4px 6px; margin-right: auto; font-size: 15px; font-weight: 600; }
.nav-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--font-body); }
.nav-link:hover { color: var(--harbour); background: var(--harbour-soft); }
.nav-link[aria-current="page"] { color: var(--harbour); box-shadow: inset 0 -3px 0 var(--sun); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.nav-link[aria-expanded="true"] { color: var(--harbour); background: var(--harbour-soft); }
.nav-link .caret { transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-item-small { position: relative; }
.header-actions .btn { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.account-links { display: inline-flex; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--harbour-soft); color: var(--harbour); }
.menu-btn { display: none; }

/* Mega panels */
.mega { position: absolute; top: 100%; z-index: 8; background: var(--surface-raised); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10, 30, 32, .14); }
.mega[hidden] { display: none; }
.mega-visas { left: 0; right: 0; border-width: 1px 0; }
.mega-visas .mega-inner { max-width: 1200px; margin: 0 auto; padding: 28px max(24px, env(safe-area-inset-left, 0px)) 18px; display: grid; grid-template-columns: 1fr 260px; gap: 24px 40px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mega-h { font: 600 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-link { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; margin-inline: -10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.mega-link strong { font-size: 15px; }
.mega-link span { font-size: 13px; line-height: 1.35; color: var(--ink-muted); }
.mega-link:hover { background: var(--harbour-soft); color: var(--ink); }
.mega-promo { align-self: start; background: var(--harbour-soft); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mega-promo-t { font-size: 14px; color: var(--ink-muted); }
.mega-promo-s { font: 600 19px/1.3 var(--font-display); color: var(--ink); margin-bottom: 8px; }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; font-size: 15px; text-decoration: none; }
.mega-all:hover { text-decoration: underline; }
.mega-services { left: 0; width: 340px; border-radius: var(--radius-lg); }
.mega-services .mega-inner { padding: 14px 18px; }
.mega-services .mega-cols { grid-template-columns: 1fr; }

/* Header search */
.site-search { position: absolute; top: 100%; left: 0; right: 0; z-index: 8; background: var(--surface-raised); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(10, 30, 32, .1); }
.site-search[hidden] { display: none; }
.search-row { display: flex; gap: 10px; padding-block: 14px; }
.site-search input, .drawer-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 400 16px/1 var(--font-body); }

/* Mobile drawer */
.drawer { position: fixed; left: 0; right: 0; bottom: 0; top: var(--hdr-h, 69px); z-index: 8; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.drawer[hidden] { display: none; }
.drawer-body { padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: 400 28px/1 var(--font-body); cursor: pointer; }
.drawer-search { display: flex; gap: 8px; margin-bottom: 8px; }
.drawer-link, .drawer-sec-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 17px/1.2 var(--font-body); text-decoration: none; text-align: left; cursor: pointer; }
.drawer-link[aria-current="page"] { color: var(--harbour); }
.drawer-sec-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer-sec-body { padding: 12px 4px 8px; border-bottom: 1px solid var(--line); }
.drawer-sec-body[hidden] { display: none; }
.drawer-sec-body ul { list-style: none; margin: 0 0 12px; padding: 0; }
.drawer-sec-body li a { display: block; padding: 10px 0; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 16px; }
.drawer-all { display: inline-block; padding: 8px 0; font-weight: 600; }
.drawer-account { margin-top: 8px; }
.drawer-cta { margin-top: 20px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1060px) { .nav-link { padding: 0 6px; font-size: 14px; } .main-nav { gap: 0; } .header-row { gap: 8px; } .wordmark { font-size: 21px; } .header-actions { gap: 2px; } .header-actions .btn { padding: 0 12px; font-size: 14px; } }
.no-js .icon-btn, .no-js .nav-link .caret { display: none; }
@media (max-width: 899px) {
  .mega, [data-search-toggle], .site-search { display: none !important; }
  .js .main-nav, .js .account-links, .js .header-actions .header-cta { display: none; }
  .js .menu-btn { display: inline-flex; }
  .js .main-nav + .header-actions, .header-actions { margin-left: auto; }
  /* Without JavaScript the plain links stay visible as a wrapping row. */
  .no-js .header-row { flex-wrap: wrap; padding-block: 8px; }
  .no-js .main-nav { order: 3; width: 100%; flex-wrap: wrap; margin-right: 0; }
}
@media (min-width: 900px) { .drawer { display: none !important; } body.drawer-open { overflow: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); font: 600 17px/1.2 var(--font-body); text-decoration: none; border: 0; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--harbour); color: var(--on-harbour); }
.btn-primary:hover { background: var(--ink); color: var(--surface); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-sun:hover { background: #E0A12C; color: var(--on-sun); }
.btn-ghost { background: transparent; color: var(--harbour); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--harbour); color: var(--harbour); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Banner */
.notice-bar { background: var(--harbour-soft); }
.notice-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding-block: 10px; font-size: 15px; line-height: 1.45; }
.notice-bar strong { color: var(--harbour); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .lede { font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 34em; }
.trust { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.trust svg { flex: 0 0 auto; color: var(--success); }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.hero-panel { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.goal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.goal { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-decoration: none; min-height: 44px; }
.goal strong { font-size: 16px; }
.goal span { font-size: 13px; line-height: 1.35; color: var(--ink-muted); }
.goal:hover { border-color: var(--harbour); background: var(--harbour-soft); color: var(--ink); }

/* Cards and grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; min-width: 0; }
a.card:hover { border-color: var(--harbour); color: var(--ink); }
.card .more { margin-top: auto; font-weight: 600; color: var(--harbour); font-size: 15px; }
.card p { color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.card-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--harbour-soft); color: var(--harbour); display: inline-flex; align-items: center; justify-content: center; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--harbour-soft); color: var(--harbour); }
.tag-urgent { background: var(--critical-soft); color: var(--critical); }
.step-num { width: 36px; height: 36px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--harbour-soft); color: var(--harbour); }
.step-num.sun { background: var(--sun); color: var(--on-sun); }

/* Bands */
.band-light { background: var(--surface-raised); border-block: 1px solid var(--line); }
.band-harbour { background: var(--band-bg); color: var(--band-ink); }
.band-harbour h2, .band-harbour h3 { color: var(--band-ink); }
.band-harbour p { color: var(--band-muted); }
.band-harbour .card { background: var(--surface-raised); }
.band-harbour .card p { color: var(--ink-muted); }
.band-harbour .card h3 { color: var(--ink); }
.band-soft { background: var(--harbour-soft); }

/* Guide pages */
.crumbs { font-size: 14px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 6px; padding-top: 24px; }
.crumbs a { color: var(--ink-muted); }
.page-head { display: flex; flex-direction: column; gap: 14px; padding-block: 16px 32px; max-width: 820px; }
.page-head .lede { font-size: 19px; color: var(--ink-muted); }
.checked { font-size: 14px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.guide { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 64px; }
.toc { flex: 1 1 220px; max-width: 260px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); font-size: 15px; }
.toc h2 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc li a:hover { color: var(--harbour); }
@media (max-width: 900px) { .toc { position: static; max-width: none; flex-basis: 100%; } .toc ol { columns: 2 180px; } }
.article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.article section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.article section > p, .article li { max-width: 68ch; }
.article ul, .article ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.article h3 { margin-top: 8px; }

/* At a glance table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface); }
tbody th { font-weight: 600; width: 34%; }
td { font-variant-numeric: tabular-nums; }
.compare th, .compare td { min-width: 160px; }

/* Callouts */
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--harbour-soft); }
.callout svg { flex: 0 0 auto; margin-top: 2px; color: var(--harbour); }
.callout .stack { gap: 8px; min-width: 0; }
.callout strong { color: var(--ink); }
.callout-urgent { background: var(--critical-soft); }
.callout-urgent svg { color: var(--critical); }
.callout-sun { background: var(--surface-raised); border: 2px solid var(--sun); }

/* Steps */
.steps { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 14px !important; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; max-width: none !important; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--harbour-soft); color: var(--harbour); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.steps li strong { display: block; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details > p { padding-bottom: 16px; color: var(--ink-muted); }

/* Help strip and sources */
.help-strip { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-raised); border: 2px solid var(--sun); }
.help-strip .stack { gap: 6px; flex: 1 1 320px; min-width: 0; }
.sources { font-size: 15px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 20px; }
.sources ul { padding-left: 1.2em; }
.disclaimer { font-size: 14px; color: var(--ink-muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
input, select, textarea { font: 400 17px/1.4 var(--font-body); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-note { font-size: 14px; color: var(--ink-muted); }
.form-status { padding: 12px 16px; border-radius: var(--radius-md); background: var(--harbour-soft); font-size: 15px; }

/* Language chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); }
.chip.on { border-color: var(--harbour); color: var(--harbour); font-weight: 600; }

/* Pathway Finder */
.finder { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 64px; }
.finder-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.finder-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--harbour); border-radius: 6px; transition: width .25s; }
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }
.q-title { font-size: 22px; line-height: 1.35; font-weight: 600; }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 600 17px/1.35 var(--font-body); cursor: pointer; }
.opt span { font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.opt:hover { border-color: var(--harbour); }
.opt[aria-pressed="true"] { border: 2px solid var(--harbour); background: var(--harbour-soft); padding: 13px 15px; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.answers button { font: 600 14px/1.2 var(--font-body); padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.result { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.result.top { border: 2px solid var(--harbour); }
.result.urgent { border: 2px solid var(--critical); }
.result ul { margin: 0; padding-left: 1.2em; }

/* Footer */
.site-footer { background: #14262A; color: #EEF2F0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0A1416; } }
:root[data-theme="dark"] .site-footer { background: #0A1416; }
.site-footer .wrap { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.footer-brand .wordmark { color: #EEF2F0; }
.footer-brand .wordmark span { color: #6CC2B9; }
.footer-brand p { color: #A7B6B5; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-nav div { display: flex; flex-direction: column; gap: 4px; }
.footer-nav h2 { font: 600 15px/1.6 var(--font-body); color: #EEF2F0; }
.footer-nav a { color: #A7B6B5; text-decoration: none; font-size: 15px; padding-block: 2px; }
.footer-nav a:hover { color: #EEF2F0; text-decoration: underline; }
.footer-legal { border-top: 1px solid #26383B; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #A7B6B5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.finder-side .help-strip .stack { flex: none; }

/* Photos: illustrative scenes. A tinted 3:2 block holds the space if a file is missing. */
.photo { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo img { display: block; width: 100%; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); background: var(--harbour-soft); color: var(--ink-muted); font-size: 14px; }
.photo figcaption { font-size: 13px; color: var(--ink-muted); }

/* Service tiers */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tier { gap: 14px; }
.tier ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.tier .price { font-weight: 600; color: var(--ink); font-size: 15px; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier.featured { border: 2px solid var(--sun); }

/* ---------- Full service ("we handle it") treatment ---------- */
.tag-sun { background: var(--sun); color: var(--on-sun); }
.btn-handover .hand-icon { flex: 0 0 auto; }
.btn-handover:hover .hand-icon { transform: translateX(3px); }
.hand-icon { transition: transform .2s ease; }

/* Hand-over card: used on guides, finder results, index, about */
.help-options { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.help-options .help-strip { flex-direction: column; align-items: flex-start; }
.handover-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius-lg); background: var(--band-bg); color: var(--band-ink);
  text-decoration: none; min-width: 0; isolation: isolate;
  transition: transform .2s ease;
}
.handover-card strong { font-family: var(--font-display); font-size: 22px; line-height: 1.25; color: var(--band-ink); }
.handover-card span:not(.tag):not(.more) { color: var(--band-muted); font-size: 16px; line-height: 1.5; }
.handover-card .more { margin-top: auto; font-weight: 600; color: var(--sun); }
.handover-card:hover { color: var(--band-ink); transform: translateY(-2px); }
.handover-card:hover .more { text-decoration: underline; }
.help-options .handover-alt { grid-column: 1 / -1; }
.handover-alt { margin-top: 8px; }
/* a slow rising sun in the corner: the brand mark's motif */
.handover-card::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -70px; width: 160px; height: 160px;
  border-radius: 50%; background: var(--sun); opacity: .16; animation: sunrise 7s ease-in-out infinite alternate;
}
@keyframes sunrise { from { transform: translateY(18px); } to { transform: translateY(-6px); } }

/* Card hover lift */
a.card { transition: transform .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-2px); }
.tier.featured { position: relative; }

/* Journey: four steps, a sun travels the line */
.handover-feature { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.handover-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: var(--band-ink); }
.journey { position: relative; }
.journey-track { position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: rgba(255,255,255,.22); border-radius: 2px; }
.journey-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--sun); border-radius: 2px; transition: width .9s ease; }
.journey-fill::after { content: ""; position: absolute; right: -7px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(242,179,61,.25); }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.j-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.j-step strong { color: var(--band-ink); font-size: 17px; }
.j-step span:not(.j-dot) { color: var(--band-muted); font-size: 15px; line-height: 1.5; }
.j-dot { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 6px;
  background: var(--band-bg); color: var(--band-ink); border: 2px solid rgba(255,255,255,.35); transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s ease; position: relative; }
.j-step.on .j-dot { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.j-step.now .j-dot { transform: scale(1.12); }
@media (max-width: 760px) {
  .journey-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .j-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
  .j-dot { grid-row: span 2; margin-bottom: 0; }
  .journey-track { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .journey-fill { width: 100%; height: 100%; transition: height .9s ease; }
  .journey-fill::after { right: -6px; top: auto; bottom: -7px; }
}

/* Load-in: the logo's sun rises, hero settles. Content is fully visible throughout. */
.site-header .mark circle { animation: mark-rise .9s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; }
@keyframes mark-rise { from { transform: translateY(5px); } to { transform: translateY(0); } }
.hero-copy > *, .hero-panel { animation: settle .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .05s; }
.hero-copy > *:nth-child(3) { animation-delay: .1s; }
.hero-copy > *:nth-child(4) { animation-delay: .15s; }
.hero-panel { animation-delay: .2s; }
@keyframes settle { from { transform: translateY(10px); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.help-options .help-strip .stack { flex: 0 1 auto; }
.help-options .help-strip .btn { margin-top: auto; }

/* Seasonal guide band on the homepage */
.seasonal-band { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }
.seasonal-band .more { margin-top: 0; }

/* Employer season calendar: a simple 5-step strip */
.season-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: c; }
.season-cal li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; counter-increment: c; animation: settle .6s cubic-bezier(.2,.8,.2,1) both; }
.season-cal li::before { content: counter(c); font-size: 12px; font-weight: 600; color: var(--harbour); }
.season-cal li:nth-child(2) { animation-delay: .08s; } .season-cal li:nth-child(3) { animation-delay: .16s; } .season-cal li:nth-child(4) { animation-delay: .24s; } .season-cal li:nth-child(5) { animation-delay: .32s; border-color: var(--sun); }
.season-cal strong { font-size: 14px; line-height: 1.3; }
.season-cal span { font-size: 12.5px; line-height: 1.35; color: var(--ink-muted); }
@media (max-width: 900px) { .season-cal { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); } }

/* Small-to-large scale bars (employers) */
.scale-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; height: 240px; }
.scale-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0; }
.scale-bar .bar { display: block; height: calc(var(--h) * 0.62); min-height: 28px; border-radius: var(--radius-md) var(--radius-md) 4px 4px; background: var(--harbour); transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; margin-bottom: 8px; }
.scale-bar:nth-child(2) .bar { animation-delay: .12s; } .scale-bar:nth-child(3) .bar { animation-delay: .24s; }
.scale-bar .bar.sun { background: var(--sun); }
.scale-bar strong { font-size: 15px; }
.scale-bar span:not(.bar) { font-size: 13px; line-height: 1.35; color: var(--ink-muted); }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* Accreditation planner */
.planner { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.planner-inputs { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.planner-inputs output { color: var(--harbour); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; padding: 0; min-height: 44px; background: transparent; border: 0; --fill: 4%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--harbour) var(--fill), var(--line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--harbour); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--sun); border: 3px solid var(--surface-raised); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); border: 3px solid var(--surface-raised); cursor: pointer; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); font-weight: 600; font-size: 15px; cursor: pointer; }
.seg input:checked + label { border: 2px solid var(--harbour); background: var(--harbour-soft); color: var(--ink); padding: 9px 15px; }
.seg input:focus-visible + label { outline: 3px solid var(--sun); outline-offset: 2px; }
.planner-result { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-lg); background: var(--harbour-soft); min-width: 0; }
.plan-type { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--ink); }
.plan-fee { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 10px; border-block: 1px solid var(--line-strong); }
.plan-fee strong { font-variant-numeric: tabular-nums; }
.planner-result .btn { align-self: flex-start; margin-top: 4px; }

/* Six-step process strip */
.process-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; counter-reset: p; }
.process-strip li { counter-increment: p; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: var(--radius-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); min-width: 0; animation: settle .6s cubic-bezier(.2,.8,.2,1) both; }
.process-strip li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; background: var(--sun); color: var(--on-sun); margin-bottom: 6px; }
.process-strip li:nth-child(2) { animation-delay: .06s; } .process-strip li:nth-child(3) { animation-delay: .12s; } .process-strip li:nth-child(4) { animation-delay: .18s; } .process-strip li:nth-child(5) { animation-delay: .24s; } .process-strip li:nth-child(6) { animation-delay: .3s; }
.process-strip strong { color: var(--band-ink); }
.process-strip span { color: var(--band-muted); font-size: 14px; line-height: 1.4; }
.seg { position: relative; }
.seg input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }

/* ---------- Blog ---------- */
.post-card { gap: 10px; }
.post-card h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.post-meta { margin-top: auto; font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
a.tag { text-decoration: none; }
.byline { font-size: 14px; color: var(--ink-muted); }
.post { max-width: 760px; }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose .small { font-size: 15px; }
.post-end { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.chip { text-decoration: none; color: var(--ink); }
a.chip:hover { border-color: var(--harbour); color: var(--harbour); }

/* ---------- FAQ page ---------- */
.faq-search { display: flex; flex-direction: column; gap: 8px; max-width: 680px; padding: 20px; margin-bottom: 20px; }
.faq-topics { padding-bottom: 32px; }
.faq-groups { display: flex; flex-direction: column; gap: 40px; padding-bottom: 32px; max-width: 880px; }
.faq-group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.faq details > p a { font-weight: 600; }

/* ---------- Community ---------- */
.boards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.board { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); scroll-margin-top: 90px; transition: transform .2s ease, border-color .2s ease; min-width: 0; }
.board:hover, .board:target { border-color: var(--harbour); transform: translateY(-2px); }
.board-feature { grid-column: 1 / -1; border: 2px solid var(--sun); }
.board-head { display: flex; gap: 14px; align-items: flex-start; }
.board-head h3 { font-size: 18px; }
.board-head p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.board-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--harbour-soft); color: var(--harbour); }
.board-icon.sun { background: var(--sun); color: var(--on-sun); }
.subs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subs li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.subs li::before { content: "r/ "; color: var(--ink-muted); }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 14px; }
.feature-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); grid-row: span 2; margin-top: 8px; }
.feature-list span { color: var(--ink-muted); font-size: 16px; }
.thread-demo { display: flex; gap: 16px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-raised); }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-muted); font-size: 13px; }
.vote b { color: var(--harbour); font-size: 16px; }
.small-chip { font-size: 12px; padding: 3px 8px; }
.answer { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--harbour-soft); }
.badge-check { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--success); color: var(--surface-raised); }
.card { overflow-wrap: anywhere; }

/* Site search page */
.search-page { padding-bottom: 64px; }
.search-form { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.search-row-page { display: flex; gap: 10px; }
.search-row-page input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 400 16px/1 var(--font-body); }
.search-group { max-width: 720px; margin-top: 32px; }
.search-group h2 { font-size: 20px; margin-bottom: 8px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.search-results li:first-child { border-top: 0; }
.search-results a { font-weight: 600; }
.search-results p { margin: 4px 0; color: var(--ink-muted); }

/* ---------- night hero + globe intro (static/globe.js) ---------- */
.night-hero { position: relative; overflow: hidden; color: var(--night-ink); background: radial-gradient(120% 90% at 70% 40%, var(--night-2), var(--night) 70%); min-height: 640px; display: flex; flex-direction: column; }
.night-hero canvas[data-globe] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.night-hero .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.night-hero.done .reveal { opacity: 1; transform: none; }
.night-hero.done .reveal.d2 { transition-delay: .15s; }
.night-hero.done .reveal.d3 { transition-delay: .3s; }
.globe-caption { position: absolute; z-index: 3; left: 50%; top: 18%; transform: translateX(-50%); font: 500 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); text-align: center; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.night-hero.done .globe-caption { opacity: 0; }
.globe-skip { position: absolute; z-index: 4; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 18px; font: 600 13px var(--font-body); color: var(--night-ink); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: opacity .4s; }
.night-hero.done .globe-skip { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.no-js .night-hero .reveal { opacity: 1; transform: none; transition: none; }
.no-js .globe-caption, .no-js .globe-skip { display: none; }
@media (max-width: 420px) { .globe-caption { white-space: normal; width: 90%; } }
@media (max-width: 900px) { .night-hero { min-height: 0; } }
/* On phones the hero is taller than the screen, so keep Skip intro in view while it plays. */
@media (max-width: 899px) { .night-hero:not(.done) .globe-skip { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .night-hero .reveal, .globe-caption, .globe-skip { transition: none; } }

/* ---------- homepage (night hero, slider, calm sections) ---------- */
/* Safety net: if globe.js never adds .done, the hero content still appears. */
.js .night-hero .reveal { animation: sw-reveal-fallback 0s linear 7s forwards; }
@keyframes sw-reveal-fallback { to { opacity: 1; transform: none; } }

/* Night header: transparent over the hero until the page scrolls (.is-solid). */
body.home-night::before { background: transparent; }
/* Staff-only: on the night homepage the admin bar floats bottom-left so it never sits under (or above) the header. */
body.home-night .admin-bar { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: auto; width: auto; max-width: calc(100% - 32px); margin: 0; z-index: 8; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); }
body.home-night .admin-bar > span { display: none; }
body.home-night .site-header { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); }
body.home-night .site-header:not(.is-solid) { background: transparent; border-bottom-color: transparent; --mark-bg: #6CC2B9; --mark-fg: #0F1A1C; }
body.home-night .site-header:not(.is-solid) .wordmark { color: var(--night-ink); }
body.home-night .site-header:not(.is-solid) .wordmark span { color: #6CC2B9; }
body.home-night .site-header:not(.is-solid) .nav-link,
body.home-night .site-header:not(.is-solid) .icon-btn { color: var(--night-ink); }
body.home-night .site-header:not(.is-solid) .nav-link:hover,
body.home-night .site-header:not(.is-solid) .nav-link[aria-expanded="true"],
body.home-night .site-header:not(.is-solid) .icon-btn:hover,
body.home-night .site-header:not(.is-solid) .icon-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
body.home-night .site-header:not(.is-solid) .nav-link[aria-current="page"] { color: #fff; }
body.home-night .site-header:not(.is-solid) .header-cta { background: var(--sun); color: var(--on-sun); }
body.home-night .site-header:not(.is-solid) .header-cta:hover { background: #E0A12C; color: var(--on-sun); }

.night-hero { padding-top: 68px; }
.hero-body { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: center; padding-block: 24px 72px; }
.hero-copy { min-width: 0; }
.night-hero .kicker { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.night-hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin-top: 14px; max-width: 13ch; color: var(--night-ink); text-shadow: 0 2px 24px rgba(6,20,22,.8); }
.night-hero .hero-sub { color: var(--night-muted); font-size: 18px; margin-top: 16px; max-width: 40ch; text-shadow: 0 1px 12px rgba(6,20,22,.9); }
.hero-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--night-muted); }
.hero-trust b { color: var(--sun); font-weight: 600; }

/* Slider: a cream glass card in both themes, with its own light tokens. */
.slider { --harbour: #0F5257; --on-harbour: #FFFFFF; --harbour-soft: #E3EFEE; --ink: #14262A; --ink-muted: #4F6266; --line: #DCE3E2; --line-strong: #A9B4B2; --surface-raised: #FFFFFF;
  background: rgba(250,247,242,.96); color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); min-width: 0; }
.slider :focus-visible { outline-color: #0F5257; }
.slider a { color: #0F5257; }
.slider .btn-primary { color: #fff; }
.slider-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.progress { display: flex; gap: 6px; }
.progress i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); display: block; }
.progress i.on { background: #0F5257; }
.slider-track { display: flex; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.slider .slide { flex: 0 0 100%; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.slider .slide h2 { font-size: 21px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; font: 600 14px/1.3 var(--font-body); color: var(--ink) !important; text-decoration: none; min-width: 0; min-height: 52px; }
.choice svg { flex: none; color: #0F5257; }
.choice small { display: block; color: var(--ink-muted); font-weight: 400; font-size: 12px; }
.choice:hover, .choice.picked { border-color: #0F5257; background: #E3EFEE; }
.choice.urgent svg { color: #A33A2B; }
.more-options summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #0F5257; min-height: 32px; display: flex; align-items: center; }
.more-options ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.more-options a { display: block; padding: 8px 0; font-size: 14px; min-height: 40px; }
.slider-note { color: var(--ink-muted); }
.slider-note a { font-weight: 600; }
.r-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.r-card .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.r-card .r-why { color: var(--ink-muted); font-size: 14px; }
.slider-back { background: none; border: 0; color: #0F5257; font: 600 14px var(--font-body); cursor: pointer; padding: 6px 0; min-height: 36px; align-self: flex-start; }
.slider [data-r-title]:focus { outline: none; }
.js .slider [data-slider-result] { align-self: flex-start; }
.no-js [data-slider-result], .no-js .slider-top { display: none; }
.no-js .slider-track { display: block; }

/* Calm sections below the hero */
.journey-calm { border-top: 1px solid var(--line); padding-top: 28px; gap: 20px; }
.journey-calm .handover-title { color: var(--ink); font-size: 20px; }
.journey-calm .journey-track { background: var(--line); }
.journey-calm .j-step strong { color: var(--ink); font-size: 16px; }
.journey-calm .j-step span:not(.j-dot) { color: var(--ink-muted); font-size: 14px; }
.journey-calm .j-dot { width: 34px; height: 34px; font-size: 14px; background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.journey-calm .journey-track { top: 16px; }
.journey-calm .j-step.on .j-dot { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
@media (max-width: 760px) { .journey-calm .journey-track { top: 17px; bottom: 17px; } .journey-calm .j-step { grid-template-columns: 34px minmax(0, 1fr); } }

@media (max-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); padding-top: 34vh; padding-bottom: 56px; gap: 28px; }
  .night-hero h1 { max-width: 16ch; }
  /* The map lives in the top part of the hero so it ends above the headline. */
  .night-hero canvas[data-globe] { bottom: auto; height: 62vh; }
}
@media (max-width: 420px) { .choices, .more-options ul { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
  .js .night-hero .reveal { animation: sw-reveal-fallback 0s linear 1s forwards; }
}

/* ---- Calm inner pages (Task 5) ---- */
/* Next step panel: one per page, from partials/next_step.html */
.next-step { margin-block: 40px 64px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.next-step h2 { font-size: 24px; }
.next-step p { color: var(--ink-muted); margin-top: 4px; max-width: 46ch; }
.next-step-text { flex: 1 1 320px; min-width: 0; }
.next-step-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.next-secondary { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.discuss { margin-top: 24px; font-weight: 600; }

/* Inner pages: no coloured bands in the middle of a page; two tones only. */
body:not(.home-night) .band-harbour, body:not(.home-night) .band-soft, body:not(.home-night) .band-light { background: var(--surface); color: var(--ink); border-block: 0; }
body:not(.home-night) .band-harbour h2, body:not(.home-night) .band-harbour h3 { color: var(--ink); }
body:not(.home-night) .band-harbour p { color: var(--ink-muted); }
/* Old help blocks are hidden inside page bodies; the shared Next step panel replaces them. */
main .page-body .help-strip, main .page-body .handover-card, main .page-body .handover-alt { display: none; }
.page-body p, .page-body li { max-width: 70ch; }

/* On this page */
.with-otp { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; row-gap: 0; align-items: start; }
.with-otp > * { grid-column: 2; min-width: 0; }
.with-otp > .otp { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: calc(var(--hdr-h, 69px) + 16px); font-size: 15px; }
.with-otp h2[id] { scroll-margin-top: calc(var(--hdr-h, 69px) + 24px); }
.with-otp h2[tabindex="-1"]:focus { outline: none; }
.with-otp h2[tabindex="-1"]:focus-visible { outline: 2px solid var(--harbour); outline-offset: 4px; }
.otp-title { font: 600 13px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.otp ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.otp li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.35; }
.otp li a:hover { color: var(--harbour); }
.otp li a[aria-current="true"] { border-left-color: var(--harbour); color: var(--harbour); font-weight: 600; }
.otp li a:focus-visible { outline: 2px solid var(--harbour); outline-offset: 2px; }
.otp-bar { display: none; }
@media (max-width: 899px) {
  .with-otp { display: block; }
  .with-otp > .otp { position: sticky; top: var(--hdr-h, 69px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); margin-inline: -16px; padding: 8px 16px; }
  .with-otp h2[id] { scroll-margin-top: calc(var(--hdr-h, 69px) + 76px); }
  .otp-title, .otp ol { display: none; }
  .otp-bar { display: flex; align-items: center; gap: 10px; }
  .otp-label { font-weight: 600; font-size: 15px; white-space: nowrap; }
  .otp-select { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: 400 16px/1 var(--font-body); }
}

/* ---- Inner page bodies (Task 6) ---- */
.no-js .with-otp { display: block; }
/* Page head with a photo beside it (Get help, Employers) */
.gh-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 8px; }
.gh-head .page-head { max-width: none; padding-bottom: 16px; }
.gh-head .photo img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .gh-head { grid-template-columns: minmax(0, 1fr); gap: 8px; } .gh-head .photo img { aspect-ratio: 16 / 9; } }
/* Get help tabs: without JS the three panels simply stack */
.gh-jump { display: none; margin-top: 24px; }
.no-js .gh-jump { display: block; }
.gh-tablist { display: none; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 24px; overflow-x: auto; scroll-margin-top: calc(var(--hdr-h, 69px) + 12px); }
.js .gh-tablist { display: flex; }
.gh-tablist [role="tab"] { font: 600 15px/1.2 var(--font-body); color: var(--ink-muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 14px; min-height: 48px; cursor: pointer; white-space: nowrap; }
.gh-tablist [role="tab"]:hover { color: var(--ink); }
.gh-tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }
.gh-tablist [role="tab"]:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; border-radius: 6px; }
.gh-panel { padding-block: 28px 8px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--hdr-h, 69px) + 12px); }
.gh-panel[hidden] { display: none; }
.gh-panel > h2 { font-size: 26px; }
.gh-panel .muted { max-width: 64ch; }
.gh-panel .tag { align-self: flex-start; }
.gh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.gh-steps li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; counter-increment: s; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gh-steps li::before { content: counter(s); font: 600 13px var(--font-body); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--harbour-soft); color: var(--harbour); margin-bottom: 6px; }
.gh-steps span { color: var(--ink-muted); font-size: 14px; }
@media (max-width: 860px) { .gh-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gh-steps { grid-template-columns: minmax(0, 1fr); } }
.gh-form { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: start; scroll-margin-top: calc(var(--hdr-h, 69px) + 12px); }
.gh-form h2, .gh-who h2 { font-size: 26px; }
.gh-who { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
#form-title { scroll-margin-top: calc(var(--hdr-h, 69px) + 16px); }
@media (max-width: 760px) { .gh-form, .gh-who { grid-template-columns: minmax(0, 1fr); } }
/* Employers */
.page-body .process-strip li { background: var(--surface-raised); border-color: var(--line); }
.page-body .process-strip strong { color: var(--ink); }
.page-body .process-strip span { color: var(--ink-muted); }
.fold { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); padding: 0 18px; }
.fold > summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.fold > .stack { padding-bottom: 18px; }
.scale-panel .scale-bars { height: 200px; }
/* Visa guides index */
.guide-card .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.guide-card h3 { font-size: 20px; }
.gh-head:not(:has(.photo)) { grid-template-columns: minmax(0, 1fr); }
.photo img { height: auto; }
.with-otp > section.stack-lg { padding-bottom: 48px; }
.page-body .process-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .page-body .process-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phones: stack wide data tables (cells carry data-label) and fit the Get help tabs without sideways scrolling. */
@media (max-width: 600px) {
  table.stack-table, table.stack-table tbody, table.stack-table tr, table.stack-table th, table.stack-table td { display: block; }
  table.stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack-table tr:last-child { border-bottom: 0; }
  table.stack-table th, table.stack-table td { padding: 0; border: 0; min-width: 0; width: auto; }
  table.stack-table tbody th { padding-bottom: 6px; font-size: 16px; }
  table.stack-table td { padding-block: 3px; }
  table.stack-table td:not([data-label]):first-child { font-weight: 600; padding-bottom: 6px; }
  table.stack-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-muted); }
  .js .gh-tablist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow-x: visible; }
  .gh-tablist [role="tab"] { white-space: normal; padding: 10px 6px; font-size: 14px; text-align: center; line-height: 1.25; }
}

/* Account menu (signed-in name in the header) */
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.account-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 18px 40px -20px rgba(10, 30, 32, .35); padding: 6px; display: flex; flex-direction: column; z-index: 20; }
.account-panel a, .account-panel button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: 500 15px/1.2 var(--font-body); text-decoration: none; text-align: left; cursor: pointer; }
.account-panel a:hover, .account-panel button:hover { background: var(--harbour-soft); color: var(--harbour); }
.account-panel form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.account-panel a:focus-visible, .account-panel button:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
body.home-night .site-header:not(.is-solid) .account-panel a, body.home-night .site-header:not(.is-solid) .account-panel button { color: var(--ink); }
.drawer-account form { margin: 0; }
.drawer-signout { color: var(--harbour); }
.drawer-who { font-weight: 400; font-size: 14px; color: var(--ink-muted); }
body.home-night .site-header:not(.is-solid) .account-menu > summary:hover,
body.home-night .site-header:not(.is-solid) .account-menu[open] > summary { background: rgba(255, 255, 255, .12); color: var(--night-ink); }
.account-menu[open] > summary { background: var(--harbour-soft); color: var(--harbour); }

/* Language switcher, suggestion bar and per-language fonts. */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; gap: 6px; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { background: var(--harbour-soft); color: var(--harbour); }
.lang-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 18px 40px -20px rgba(10, 30, 32, .35); z-index: 20; }
.lang-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink); font: 500 15px/1.2 var(--font-body); text-decoration: none; }
.lang-panel a:hover { background: var(--harbour-soft); color: var(--harbour); }
.lang-panel a[aria-current="true"] { font-weight: 700; color: var(--harbour); }
.lang-panel a:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
body.home-night .site-header:not(.is-solid) .lang-menu > summary { color: var(--night-ink); }
body.home-night .site-header:not(.is-solid) .lang-menu[open] > summary { background: rgba(255, 255, 255, .12); color: var(--night-ink); }
.drawer-langs { margin-top: 16px; }
.drawer-lang-list { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.drawer-lang-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.drawer-lang-list a[aria-current="true"] { color: var(--harbour); text-decoration: underline; }
@media (max-width: 1060px) { .lang-menu .lang-current { display: none; } }
@media (max-width: 899px) { .js .header-actions .lang-menu { display: none; } }

.lang-suggest { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--harbour); color: #fff; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -8px 24px -16px rgba(10, 30, 32, .5); }
.lang-suggest[hidden] { display: none; }
.lang-suggest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.lang-suggest-link { color: #fff; font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.lang-suggest-link:hover { color: var(--sun); }
.lang-suggest-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: #fff; font: 400 26px/1 var(--font-body); cursor: pointer; }
.lang-suggest-close:hover { background: rgba(255, 255, 255, .12); }

:lang(zh) body, html[lang="zh-Hans"] body { font-family: "Noto Sans SC", Inter, sans-serif; }
:lang(zh) :is(h1, h2, h3, h4), html[lang="zh-Hans"] :is(h1, h2, h3, h4) { font-family: "Noto Sans SC", Inter, sans-serif; }
html[lang="zh-Hans"] { --font-body: "Noto Sans SC", "Inter", system-ui, sans-serif; --font-display: "Noto Sans SC", "Inter", system-ui, sans-serif; }
:lang(hi) body, html[lang="hi"] body { font-family: "Noto Sans Devanagari", Inter, sans-serif; }
:lang(hi) :is(h1, h2, h3, h4), html[lang="hi"] :is(h1, h2, h3, h4) { font-family: "Noto Sans Devanagari", Inter, sans-serif; }
html[lang="hi"] { --font-body: "Noto Sans Devanagari", "Inter", system-ui, sans-serif; --font-display: "Noto Sans Devanagari", "Inter", system-ui, sans-serif; }
/* Longer words in other languages must wrap rather than overflow; English layout is left as it was. */
html:not([lang="en-NZ"]) :is(.nav-link, .btn, h1, h2, h3, .card h3, table td, .scale-bar strong, .scale-bar span) { overflow-wrap: anywhere; }
/* Longer nav and CTA labels (de, fil...) must fit the desktop header: globe icon only, tighter nav, CTA text may wrap. */
@media (min-width: 900px) {
  html:not([lang="en-NZ"]) .lang-menu .lang-current { display: none; }
  html:not([lang="en-NZ"]) .header-row { gap: 8px 12px; }
  html:not([lang="en-NZ"]) .nav-link { padding: 0 8px; font-size: 14px; }
  html:not([lang="en-NZ"]) .main-nav { gap: 0; }
  html:not([lang="en-NZ"]) .header-actions { gap: 2px; }
  html:not([lang="en-NZ"]) .header-actions .header-cta { padding: 0 12px; font-size: 14px; }
}
/* Night-hero home: the header is fixed and transparent, so the translation note becomes a dark strip that starts under it. */
body.home-night .translation-note { margin: 0; border-radius: 0; padding: calc(var(--hdr-h, 69px) + 10px) max(16px, calc((100% - 1152px) / 2)) 12px; background: var(--night); color: var(--night-ink); }
body.home-night .translation-note a { color: #6CC2B9; }

