/* Self-hosted Archivo and Inter (SIL Open Font License 1.1), latin + latin-ext + vietnamese subsets of the Google Fonts variable files. Replaces the third-party Google Fonts request. */
/* Archivo vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/archivo-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Archivo latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Archivo latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* EMIGRATLY design system v3: editorial, calm, trust-led. Dark by default, true light theme, one gold accent.
   Tokens first; components below only use tokens. No inline styles anywhere (strict CSP). */

:root {
  --bg: #0b0c0e;
  --bg-tint: #101216;
  --surface: #14171c;
  --surface-2: #1a1e25;
  --ink: #f4f1ea;
  --ink-2: #bdbab2;
  --ink-3: #8f8d87;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --gold: #dba94c;
  --gold-hi: #f0c46a;
  --gold-ink: #1b1407;
  --teal: #43b9cb;
  --focus: #f0c46a;
  --glow: radial-gradient(60% 60% at 70% 20%, rgba(219, 169, 76, 0.16), transparent 70%);

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #faf8f4; --bg-tint: #f2eee6; --surface: #ffffff; --surface-2: #f6f2ea;
    --ink: #15171b; --ink-2: #474a52; --ink-3: #6b6e76;
    --line: rgba(20, 22, 26, 0.12); --line-2: rgba(20, 22, 26, 0.28);
    --gold: #9a6a10; --gold-hi: #b07c1c; --gold-ink: #ffffff; --teal: #0b7a8c; --focus: #9a6a10;
    --glow: radial-gradient(60% 60% at 70% 20%, rgba(176, 124, 28, 0.14), transparent 70%);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #faf8f4; --bg-tint: #f2eee6; --surface: #ffffff; --surface-2: #f6f2ea;
  --ink: #15171b; --ink-2: #474a52; --ink-3: #6b6e76;
  --line: rgba(20, 22, 26, 0.12); --line-2: rgba(20, 22, 26, 0.28);
  --gold: #9a6a10; --gold-hi: #b07c1c; --gold-ink: #ffffff; --teal: #0b7a8c; --focus: #9a6a10;
  --glow: radial-gradient(60% 60% at 70% 20%, rgba(176, 124, 28, 0.14), transparent 70%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--step-0) / 1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--gold); }
p { margin: 0 0 1em; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: var(--r-1); }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.05rem var(--font-display); letter-spacing: 0.08em; text-decoration: none; }
.brand__mark { display: inline-grid; grid-template-columns: repeat(3, 5px); grid-template-rows: repeat(3, 5px); gap: 2px; flex: none; }
.brand__mark span { width: 5px; height: 5px; background: var(--ink-3); opacity: 0.55; }
.brand__mark span:nth-child(1), .brand__mark span:nth-child(5), .brand__mark span:nth-child(7), .brand__mark span:nth-child(9) { background: var(--gold); opacity: 1; }
.nav { display: none; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.94rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.18s, border-color 0.18s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }
.top__end { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--ink-2); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 48px; width: min(80vw, 280px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-2); padding: 0.6rem; display: grid; gap: 2px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.menu__panel a:not(.btn) { padding: 0.7rem 0.8rem; border-radius: var(--r-1); text-decoration: none; }
.menu__panel a:not(.btn):hover { background: var(--surface-2); }
.menu__panel .btn { margin-top: 0.4rem; justify-content: center; }
@media (min-width: 980px) { .nav { display: flex; } .menu { display: none; } .top__end { margin-left: 0; } }
@media (max-width: 979px) { .top__end .btn--sm { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 0.95rem var(--font-body); text-decoration: none; padding: 0.7rem 1.15rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s; }
.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn--lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---- type helpers ---- */
.eyebrow { font: 700 var(--step--1) var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.7rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 62ch; margin-top: 1.1rem; }
.fine { font-size: var(--step--1); color: var(--ink-3); max-width: 78ch; margin-top: 1rem; }

/* ---- hero ---- */
.hero { position: relative; padding-top: clamp(2.5rem, 7vw, 6rem); background: var(--glow); overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__copy .lede { margin-bottom: 1.8rem; }
.hero__art { max-width: 560px; justify-self: center; width: 100%; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }
.corridor { width: 100%; height: auto; }
.route { fill: none; stroke: var(--line-2); stroke-width: 1; }
.route--gold { stroke: var(--gold); stroke-opacity: 0.75; stroke-dasharray: 5 7; animation: flow 16s linear infinite; }
.node--src { fill: var(--gold); }
.node--dst { fill: var(--surface-2); stroke: var(--ink-3); stroke-width: 1; }
@keyframes flow { to { stroke-dashoffset: -240; } }
@media (prefers-reduced-motion: reduce) { .route--gold { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; }
.stats > div { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { order: 2; color: var(--ink-3); font-size: 0.86rem; }
.stats dd { order: 1; margin: 0 0 4px; font: 800 var(--step-3) var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats > div { display: flex; flex-direction: column; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { border-bottom: 0; } .stats > div:last-child { border-right: 0; } }

/* ---- sections ---- */
.sec { padding-block: clamp(3rem, 7vw, 6rem); }
.sec--tight { padding-block: clamp(1.5rem, 3.5vw, 2.5rem); }
.sec--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.pagehead { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pagehead h1 { font-size: var(--step-4); max-width: 18ch; }
.pagehead .prose--lede { margin-top: 1.2rem; }
.h-region { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.h-region span { font: 600 0.85rem var(--font-body); color: var(--ink-3); }

.stages { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; counter-reset: s; }
.stages li { background: var(--surface); padding: 1.6rem; }
.stages__n { display: block; font: 800 0.8rem var(--font-display); color: var(--gold); letter-spacing: 0.14em; margin-bottom: 2rem; }
.stages h3 { margin-bottom: 0.6rem; }
.stages p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
@media (min-width: 760px) { .stages { grid-template-columns: repeat(4, 1fr); } }

.cards { display: grid; gap: 1rem; margin-top: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--surface-2); }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--ink-2); font-size: 0.94rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { color: var(--ink-3) !important; font-size: 0.85rem !important; }
.card__go { margin-top: auto; padding-top: 0.8rem; color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.card__go::after { content: " \2192"; }
.card--country { flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.2rem; }
.flag { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-2); }
.flag--lg { width: 40px; height: 28px; display: inline-block; margin-right: 0.6rem; vertical-align: 0.1em; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.6rem 0 0; }
.chips a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: 0.95rem; }
.chips a:hover { border-color: var(--gold); }
.chips img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.table-wrap { overflow-x: auto; margin-top: 1.8rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.fees th, .fees td { text-align: left; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); }
.fees thead th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.fees tbody tr:last-child > * { border-bottom: 0; }
.fees tbody th { font-weight: 600; }
.fees tbody tr:hover { background: var(--surface-2); }

.flags { padding-left: 0; list-style: none; counter-reset: f; display: grid; gap: 0.2rem; margin-top: 1.8rem; max-width: 80ch; }
.flags li { counter-increment: f; position: relative; padding: 1rem 0 1rem 3.2rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.flags li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 1.05rem; font: 800 0.85rem var(--font-display); color: var(--gold); letter-spacing: 0.08em; }
.flags strong { color: var(--ink); display: block; }

.faq { display: grid; margin-top: 1.6rem; max-width: 80ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.2rem 2rem 1.2rem 0; font: 700 1.1rem var(--font-display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1rem; color: var(--gold); font-size: 1.5rem; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 1.2rem; margin: 0; }

.band { background: linear-gradient(120deg, var(--surface-2), var(--surface)); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band__in { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.band h2 { font-size: var(--step-2); max-width: 20ch; }

/* ---- article / destination ---- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1.4rem; font-size: 0.86rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; margin: 2rem 0 0; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1); padding: 1rem 1.2rem; }
.facts dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.25rem; }
.facts dd { margin: 0; font-weight: 600; }
.doc { display: grid; gap: 2rem; padding-block: 1rem 3rem; }
@media (min-width: 980px) { .doc:has(.toc) { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; } }
.toc { position: sticky; top: 90px; align-self: start; font-size: 0.92rem; }
.toc h2 { font: 700 0.74rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; text-decoration: none; color: var(--ink-2); margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--gold); }
@media (max-width: 979px) { .toc { display: none; } }
.docsec { padding-block: 1.6rem 0.6rem; max-width: 72ch; scroll-margin-top: 90px; }
.docsec h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.prose { max-width: 70ch; }
.prose--lede { font-size: var(--step-1); color: var(--ink-2); max-width: 64ch; }
.prose h3 { margin: 1.8rem 0 0.6rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin-bottom: 0.4rem; } .prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); }
.prose table { border-collapse: collapse; width: 100%; } .prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.8rem; text-align: left; }

.timeline { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.timeline li { display: grid; gap: 0.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.timeline__when { color: var(--gold); font: 700 0.8rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.timeline h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.timeline p { color: var(--ink-2); margin: 0; max-width: 62ch; }
@media (min-width: 760px) { .timeline li { grid-template-columns: 200px 1fr; gap: 2rem; } }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding-top: 3.5rem; margin-top: 0; background: var(--bg); }
.foot__grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(2, 1fr); }
.foot__grid > div { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot__grid > div { grid-column: auto; } }
.foot h2 { font: 700 0.74rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.foot nav a { display: block; text-decoration: none; color: var(--ink-2); padding: 0.28rem 0; } .foot nav a:hover { color: var(--ink); }
.foot__tag { color: var(--ink-3); max-width: 34ch; margin-top: 1rem; font-size: 0.94rem; }
.foot__legal { margin-top: 2.5rem; padding-block: 1.6rem 2.4rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.84rem; max-width: 95ch; }

.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.3vw, 3.9rem); }

/* Site-wide notice (set under Admin > Settings) */
.site-notice { background: color-mix(in srgb, var(--gold) 14%, var(--bg, transparent)); border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); padding: 0.6rem 0; font-size: 0.95rem; }
.site-notice--warn { background: color-mix(in srgb, #d9534f 16%, var(--bg, transparent)); border-bottom-color: color-mix(in srgb, #d9534f 60%, transparent); }

/* Forms, eligibility result, candidate dashboard. Tokens come from site.css. */
.signin { display: none; font-size: 0.92rem; color: var(--ink-2); text-decoration: none; padding: 0.4rem 0.2rem; }
.signin:hover { color: var(--ink); }
@media (min-width: 640px) { .signin { display: inline; } }
.formwrap { padding-block: clamp(2rem, 6vw, 4.5rem); display: flex; justify-content: center; }
.formcard { width: min(100%, 640px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(1.4rem, 4vw, 2.6rem); }
.formtitle { font-size: var(--step-3); margin-bottom: 0.4rem; }
.lede--sm { font-size: 1.05rem; margin-top: 0.6rem; margin-bottom: 1.4rem; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 1.6rem; }
.progress li { height: 4px; border-radius: 4px; background: var(--line-2); }
.progress .is-done { background: var(--gold); opacity: 0.55; }
.progress .is-now { background: var(--gold); }
.form { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.field label:not(.check), .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.45rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 0.82rem; margin-left: 0.4rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-1); padding: 0.8rem 0.9rem; min-height: 48px; transition: border-color 0.15s, box-shadow 0.15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.field--err input, .field--err select, .field--err textarea { border-color: #e8806e; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0.2rem; cursor: pointer; }
.check input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.checkgrid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hint { color: var(--ink-3); font-size: 0.86rem; margin: 0.4rem 0 0; }
.err { color: #e8806e; font-size: 0.88rem; margin: 0.4rem 0 0; font-weight: 600; }
:root[data-theme="light"] .err { color: #a3321f; }
:root[data-theme="light"] .field--err input, :root[data-theme="light"] .field--err select { border-color: #a3321f; }
.alert { border: 1px solid #e8806e; border-radius: var(--r-1); padding: 0.9rem 1.1rem; background: color-mix(in srgb, #e8806e 10%, transparent); font-size: 0.94rem; }
.alert ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.btn--block { width: 100%; justify-content: center; margin-top: 0.4rem; }
.alt { text-align: center; margin: 1.2rem 0 0; color: var(--ink-2); }
.result .meter { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; margin: 1.4rem 0 0.6rem; }
.meter__bar { display: block; height: 100%; background: var(--gold); border-radius: 10px; }
.meter__bar--0 { width: 4%; } .meter__bar--1 { width: 15%; } .meter__bar--2 { width: 25%; } .meter__bar--3 { width: 35%; } .meter__bar--4 { width: 45%; }
.meter__bar--5 { width: 55%; } .meter__bar--6 { width: 65%; } .meter__bar--7 { width: 75%; } .meter__bar--8 { width: 85%; } .meter__bar--9 { width: 95%; } .meter__bar--10 { width: 100%; }
.result--not_yet .meter__bar { background: var(--ink-3); }
.notes { padding-left: 1.2rem; color: var(--ink-2); margin: 1.2rem 0 1.6rem; }
.notes li { margin-bottom: 0.7rem; }
.notes li::marker { color: var(--gold); }
.dash__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.dash__head h1 { font-size: var(--step-3); }
.dash { display: grid; gap: 1rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .dash { grid-template-columns: repeat(2, 1fr); } .dash .panel--gold, .dash .panel--wide { grid-column: 1 / -1; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 1.6rem; }
.panel h2 { font-size: var(--step-1); margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.panel p { color: var(--ink-2); }
.panel--gold { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.big { font: 800 var(--step-3) var(--font-display); color: var(--ink) !important; margin: 0 0 0.4rem; letter-spacing: -0.03em; }
.big span { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.track { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .track { grid-template-columns: repeat(5, 1fr); } }
.track li { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.4rem 0.6rem 0.4rem 0; color: var(--ink-3); font-size: 0.92rem; }
.track__dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.track__done { color: var(--ink-2) !important; }
.track__done .track__dot { background: var(--gold); border-color: var(--gold); opacity: 0.6; }
.track__now { color: var(--ink) !important; font-weight: 600; }
.track__now .track__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 25%, transparent); }
.track em { color: var(--gold); font-style: normal; font-size: 0.8rem; }

/* Staff consoles (TAPS, Admin): dense, quick, works on a phone. */
.staffbadge { font: 600 0.7rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); margin-left: 0.5rem; }
.nav--staff { display: flex; gap: 1.1rem; margin-left: 1.5rem; overflow-x: auto; }
.who { color: var(--ink-3); font-size: 0.88rem; display: none; }
@media (min-width: 760px) { .who { display: inline; } }
.staffmain { padding-block: 2rem 4rem; display: grid; gap: 1.2rem; }
.stafftitle { font-size: var(--step-3); }
.staffsec h2 { font-size: var(--step-1); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-1); overflow: hidden; margin: 0.6rem 0 0; }
.kv > div { background: var(--surface-2); padding: 0.8rem 1rem; }
.kv dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.2rem; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.staffsec .fees td { vertical-align: top; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.2rem 0.4rem 0.2rem 0; }
form.inline input[type="text"], form.inline input[type="email"], form.inline select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-1); padding: 0.45rem 0.6rem; min-height: 36px; }
.notice { border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 9%, transparent); border-radius: var(--r-1); padding: 0.9rem 1.1rem; word-break: break-word; }

/* candidate documents and payment pages */
.docs { display: grid; gap: 1.2rem; padding-bottom: 4rem; }
.docs__bar { display: flex; align-items: center; gap: 1rem; }
.docs__bar .meter { flex: 1; height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; display: block; }
.doclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.doc__title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem; }
.doclist .doc { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.doc__icon { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--line-2); flex: none; }
.doc--verified .doc__icon { background: var(--gold); border-color: var(--gold); }
.doc--pending .doc__icon { border-color: var(--gold); }
.doc--rejected .doc__icon { border-color: #e8806e; background: color-mix(in srgb, #e8806e 40%, transparent); }
.doclist .doc__main { flex: 1; display: grid; gap: 0.1rem; min-width: 200px; }
.doc__state { color: var(--ink-3); font-size: 0.88rem; }
.doc__note { color: #e8806e; font-size: 0.88rem; }
.doc__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font: 600 0.68rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 999px; padding: 2px 7px; margin-left: 0.4rem; vertical-align: 2px; }
.upload { width: 100%; max-width: 640px; display: grid; gap: 1rem; }
.paygrid { display: grid; gap: 1rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .paygrid { grid-template-columns: 1fr 1fr; } }
.testbanner { background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px dashed var(--gold); border-radius: var(--r-1); padding: 0.7rem 1rem; margin-bottom: 1.2rem; font-size: 0.92rem; }
.quote { margin: 0; display: grid; }
.quote > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.quote dt { color: var(--ink-2); } .quote dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.quote__total { border-bottom: 0 !important; } .quote__total dt, .quote__total dd { font: 800 var(--step-2) var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.check--off { opacity: 0.5; cursor: not-allowed; } .soon { font-style: normal; font-size: 0.78rem; color: var(--ink-3); margin-left: 0.4rem; }

/* Staff nav scrolls sideways on small screens instead of widening the page */
.nav--staff { min-width: 0; flex: 1 1 0; scrollbar-width: thin; }
.nav--staff a { white-space: nowrap; }
@media (max-width: 760px) { .top__in { flex-wrap: wrap; row-gap: 0.4rem; } .nav--staff { order: 3; flex: 1 1 100%; margin: 0 0 0.5rem; padding-bottom: 0.2rem; } .top__end .btn--sm { display: none; } }
.staffmain, .staffmain > *, .panel { min-width: 0; max-width: 100%; }

.qrwrap { margin: 1rem 0; }
.qr { width: 11rem; height: 11rem; border-radius: var(--r-1); border: 4px solid #fff; background: #fff; }

/* message threads (employer desk) and list controls */
.thread { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.thread li { border: 1px solid var(--line); border-radius: var(--r-2); padding: 0.75rem 1rem; background: var(--surface); }
.thread li p { margin: 0.35rem 0 0; overflow-wrap: anywhere; }
.staffsec form.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.staffsec input[type="checkbox"] { width: 1.25rem; height: 1.25rem; }
@media (forced-colors: active) { .track__dot { border: 2px solid CanvasText; } .btn { border: 1px solid ButtonText; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* Pixel iconography, infographics and finishing touches. Tokens come from site.css. */
.px { display: block; flex: none; }
.card__icon, .stages__ico, .pillars__ico { color: var(--gold); display: inline-flex; margin-bottom: 0.4rem; }
.card:hover .card__icon { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gold) 55%, transparent)); }
.h-ico { display: inline-flex; vertical-align: -5px; margin-right: 0.6rem; color: var(--gold); }
.h-ico--sm { margin-right: 0.4rem; vertical-align: -3px; }
.stages__ico { margin-bottom: 1rem; }
.stages__n { margin-bottom: 1rem !important; }

/* trust pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.pillars li { background: var(--surface); padding: 1.6rem; }
.pillars h3 { margin: 0.4rem 0 0.5rem; font-size: 1.12rem; }
.pillars p { color: var(--ink-2); margin: 0; font-size: 0.94rem; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

/* eligibility ring */
.ringwrap { display: flex; align-items: center; gap: 1.4rem; margin: 1.4rem 0 0.4rem; flex-wrap: wrap; }
.ring { width: 120px; height: 120px; flex: none; }
.ring__track { stroke: var(--line-2); }
.ring__arc { stroke: var(--gold); }
.result--not_yet .ring__arc { stroke: var(--ink-3); }
.ring__n { font: 800 34px var(--font-display); fill: var(--ink); }
.ringwrap .fine { margin: 0; flex: 1; min-width: 200px; }

/* radio and check options as selectable cards */
.field fieldset > .check, .field .checkgrid > .check { border: 1px solid var(--line); border-radius: var(--r-1); padding: 0.75rem 0.9rem; margin-bottom: 0.45rem; background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.field fieldset > .check:hover, .field .checkgrid > .check:hover { border-color: var(--line-2); }
.field fieldset > .check:has(input:checked), .field .checkgrid > .check:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--bg)); }
.field .checkgrid { gap: 0 0.6rem; }

/* the 90-day journey infographic */
.journey { margin: 0 0 3rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.journey figcaption { display: grid; gap: 0.2rem; margin-bottom: 2.2rem; }
.journey figcaption strong { font: 700 var(--step-1) var(--font-display); }
.lane { position: relative; height: 170px; margin: 0 1rem 1.2rem; }
.lane--after { height: 130px; border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 1rem; }
.lane__rail { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--line-2); }
.lane--after .lane__rail { top: 30px; }
.lane__seg { position: absolute; top: 10px; height: 10px; border-radius: 10px; left: 15.5%; width: 31.5%; background: color-mix(in srgb, var(--gold) 45%, transparent); }
.mark { position: absolute; top: 0; display: grid; gap: 0.15rem; width: 9rem; transform: translateX(-50%); text-align: center; justify-items: center; font-size: 0.82rem; }
.lane--after .mark { top: 16px; }
.mark__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink-3); }
.mark__dot--gold { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 25%, transparent); }
.mark__t { margin-top: 0.7rem; font-weight: 700; color: var(--ink); }
.mark__d { color: var(--ink-2); line-height: 1.35; }
.mark--seg .mark__t { margin-top: 1.7rem; }
.mark--0, .mark--a0 { left: 0; transform: none; text-align: left; justify-items: start; }
.mark--2 { left: 0; top: 86px; transform: none; text-align: left; justify-items: start; }
.mark--seg { left: 31%; }
.mark--90, .mark--a90 { left: 100%; transform: translateX(-100%); text-align: right; justify-items: end; }
.mark--2 .mark__dot { display: none; }
.mark--2 .mark__t { margin-top: 0; }
.mark--a30 { left: 33%; } .mark--a60 { left: 66%; }
@media (max-width: 720px) {
  .lane { height: auto; margin: 0; display: grid; gap: 1.2rem; }
  .lane__rail, .lane__seg { display: none; }
  .mark, .lane--after .mark { position: static; transform: none; width: auto; grid-template-columns: 16px 1fr; align-items: start; justify-items: start; text-align: left; column-gap: 0.8rem; }
  .mark__t { margin-top: 0; grid-column: 2; } .mark__d { grid-column: 2; } .mark__dot { grid-row: 1 / span 2; margin-top: 3px; }
  .mark--seg .mark__t { margin-top: 0; } .mark--2 .mark__dot { display: block; }
  .lane--after { height: auto; }
}

/* hero polish: faint pixel grid behind the headline, gentle entrance */
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.35; mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); pointer-events: none; }
.hero__copy > * { animation: rise 0.7s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; } .hero__copy > :nth-child(3) { animation-delay: 0.12s; } .hero__copy > :nth-child(4) { animation-delay: 0.18s; } .hero__copy > :nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__copy > * { animation: none; } }
@supports (animation-timeline: view()) {
  .sec .cards > *, .pillars li, .stages li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @media (prefers-reduced-motion: reduce) { .sec .cards > *, .pillars li, .stages li { animation: none; } }
}

/* legal documents: verbatim HTML from the PHP platform, restyled */
.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.legalwrap { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .legalwrap { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; } }
.legalnav { align-self: start; position: sticky; top: 90px; font-size: 0.92rem; }
.legalnav h2 { font: 700 0.74rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; }
.legalnav ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; }
.legalnav a { display: block; padding: 0.4rem 0; text-decoration: none; color: var(--ink-2); }
.legalnav a:hover { color: var(--ink); }
@media (max-width: 979px) { .legalnav { position: static; } }
.legal { max-width: 74ch; }
.legal .legal-page, .legal .section { padding: 0; margin: 0; width: auto; }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.legal h2 { font-size: var(--step-1); margin: 2.2rem 0 0.7rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal li { margin-bottom: 0.45rem; } .legal li::marker { color: var(--gold); }
.legal a { color: var(--gold); }
.legal .eyebrow { margin-bottom: 0.8rem; }
.legal-updated { color: var(--ink-3); font-size: 0.9rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.94rem; } .legal th, .legal td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }

/* Generic article helpers (pages.rs) */
.muted { color: var(--ink-3); font-size: 0.92em; }
.defs { display: grid; gap: 0.2rem; margin: 0; }
.defs dt { font-weight: 600; margin-top: 1rem; scroll-margin-top: 5rem; }
.defs dd { margin: 0.15rem 0 0; color: var(--ink-2); max-width: 70ch; }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.linklist li { padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-1); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; display: grid; gap: 1rem; }
.steps > li { counter-increment: st; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.steps > li::before { content: counter(st); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 6px; background: var(--gold); color: #1a1405; font-weight: 700; font-size: 0.85rem; }
.steps > li p { margin: 0.3rem 0 0; color: var(--ink-2); }
.calc { display: grid; gap: 1rem; max-width: 46rem; }
.calc__field { display: grid; gap: 0.35rem; max-width: 16rem; }
.calc__field input { padding: 0.65rem 0.8rem; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }

/* Message threads and small forms */
.thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.msg { max-width: 38rem; padding: 0.7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.msg--mine { justify-self: end; border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.msg__who { font-size: 0.82rem; font-weight: 600; }
.msg p { margin: 0.3rem 0 0; overflow-wrap: anywhere; }
.msgform { display: grid; gap: 0.6rem; max-width: 38rem; }
.msgform textarea { padding: 0.7rem 0.8rem; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.offer__row { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.35rem 0; }

.msgform input, .msgform select { padding: 0.65rem 0.8rem; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.msgform label { font-size: 0.9rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msgform button { justify-self: start; }

.cert fieldset { border: 1px solid var(--line); border-radius: var(--r-2); padding: 1rem; display: grid; gap: 1rem; margin: 0; }
.cert legend { font-weight: 700; padding-inline: 0.4rem; }
.cert__q p { margin: 0 0 0.4rem; max-width: 62ch; }

/* Planning tools (cost planner, send-home, salary converter, interview practice) */
.tool-form { display: grid; gap: 0.7rem; max-width: 42rem; margin-block: 1rem; }
.tool-form label { font-weight: 600; }
.tool-form input:not([type="checkbox"]):not([type="radio"]), .tool-form select, .tool-form textarea, .interview-item textarea { width: 100%; min-height: 44px; padding: 0.65rem 0.8rem; border-radius: var(--r-1); border: 1px solid var(--ink-3); background: var(--bg-tint); color: var(--ink); font: inherit; }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus, .interview-item textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.tool-form fieldset { border: 1px solid var(--line); border-radius: var(--r-2); padding: 0.8rem 1rem 1rem; display: grid; gap: 0.7rem; }
.cost-row { display: grid; gap: 0.3rem; }
.cost-ask { font-weight: 400 !important; color: var(--ink-2); font-size: var(--step--1); }
.tool-result { border: 1px solid var(--gold); border-radius: var(--r-2); padding: 1rem 1.2rem; background: var(--surface); max-width: 42rem; }
.tool-big { font-family: var(--font-display); font-size: var(--step-2); margin: 0 0 0.4rem; color: var(--gold-hi); }
.interview-list { padding-left: 1.2rem; display: grid; gap: 1.2rem; }
.interview-item textarea { margin-top: 0.4rem; }
@media print { .tool-form, .top, footer { display: none !important; } }
.table-scroll { overflow-x: auto; }
.tool-table { width: 100%; border-collapse: collapse; margin-block: 1rem; }
.tool-table th, .tool-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-table thead th { color: var(--ink-3); font-size: var(--step--1); }

/* ---------- Dot-matrix world map ---------- */

.worldmap {
    width: 100%;
    height: auto;
    display: block;
}

.worldmap__graticule line {
    stroke: var(--line);
    stroke-width: 0.12;
}

.worldmap__graticule line.is-equator {
    stroke: var(--line-2);
    stroke-dasharray: 0.6 0.6;
}

.worldmap__cells--land {
    stroke: rgba(242, 241, 237, 0.13);
}

.worldmap__cells--dest {
    stroke: var(--gold);
    opacity: 0.5;
}

.worldmap__cells--src {
    stroke: var(--teal);
    opacity: 0.8;
}

.worldmap__arcs path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.16;
    opacity: 0.09;
    transition: opacity 0.3s;
}

.geomap.is-focused .worldmap__arc-set:not(.is-active) path {
    opacity: 0.03;
}

.worldmap__arc-set.is-active path {
    opacity: 0.85;
    stroke-width: 0.26;
    stroke-dasharray: 1.4 1;
    animation: worldmap-flow 1.6s linear infinite;
}

@keyframes worldmap-flow {
    to { stroke-dashoffset: -4.8; }
}

.worldmap__dest circle:not(.worldmap__hit) {
    fill: var(--gold);
}

.worldmap__hit {
    fill: transparent;
}

.worldmap__dest:hover circle:not(.worldmap__hit),
.worldmap__dest:focus-visible circle:not(.worldmap__hit) {
    fill: var(--ink);
}

.worldmap__src {
    cursor: pointer;
}

.worldmap__src circle:not(.worldmap__pulse) {
    fill: var(--teal);
    stroke: var(--bg);
    stroke-width: 0.25;
}

.worldmap__pulse {
    fill: none;
    stroke: var(--teal);
    stroke-width: 0.2;
    opacity: 0.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: worldmap-pulse 3s ease-out infinite;
}

.worldmap__src.is-active .worldmap__pulse {
    stroke: var(--ink);
    opacity: 1;
}

@keyframes worldmap-pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.geomap__picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.geomap__picker-label {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 4px;
}

.geomap__pick {
    font: 500 13px var(--font-body);
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.geomap__pick:hover {
    border-color: var(--teal);
}

.geomap__pick[aria-pressed="true"] {
    background: var(--teal);
    border-color: var(--teal);
    color: #041418;
}

.geomap__readout {
    margin: 12px 0 0;
    font: 500 12px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--ink-3);
    min-height: 1.4em;
}

.geomap__swatch--arc {
    width: 16px;
    height: 0;
    border-radius: 0;
    border-top: 1.5px dashed var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .worldmap__pulse,
    .worldmap__arc-set.is-active path {
        animation: none;
    }
}


.geomap svg {
    width: 100%;
    height: auto;
    display: block;
}

.geomap__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-3);
}

.geomap__legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.geomap__swatch {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.geomap__swatch--source {
    background: var(--teal);
}

.geomap__swatch--dest {
    background: var(--gold);
}

.geomap__swatch--hub {
    background: transparent;
    border: 1.5px solid var(--gold);
}


/* Home and route map: a plain list under the map as an alternative to tapping small dots */
.geomap__jump { margin: 16px 0 4px; }
.geomap__jump label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.geomap__jump-row { display: flex; gap: 10px; flex-wrap: wrap; }
.geomap__jump-row select { flex: 1 1 220px; min-height: 44px; }
.geomap__jump-row .btn { min-height: 44px; }
.geomap__jump-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }


.geomap { margin: 8px 0 0; }
.geomap__pick { color: var(--ink); }
.geomap__pick[aria-pressed="true"] { color: var(--gold-ink); background: var(--teal); }
.geomap__readout { color: var(--ink-3); }

.region-card__map {
    display: block;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 2 / 1;
    margin: 6px 0 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.worldmap__end--src { fill: var(--teal); }
.worldmap__end--dest { fill: var(--gold); }
.worldmap__cross { stroke: var(--gold); stroke-width: 0.12; stroke-dasharray: 0.5 0.5; opacity: 0.45; }
.worldmap__ring { fill: none; stroke-width: 0.2; opacity: 0.7; transform-box: fill-box; transform-origin: center; animation: worldmap-pulse 2.4s ease-out infinite; }
.worldmap__ring--dest, .worldmap__pin--dest { stroke: var(--gold); }
.worldmap__ring--src, .worldmap__pin--src { stroke: var(--teal); }
.worldmap__pin { stroke-width: 0.3; }
.worldmap__pin--dest { fill: var(--gold); }
.worldmap__pin--src { fill: var(--teal); }
.worldmap__arcs--locator path { opacity: 0.55; stroke-width: 0.2; stroke-dasharray: 1.4 1; animation: worldmap-flow 2.2s linear infinite; }
.geomap--locator { margin: 28px 0 0; }
.geomap__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.geomap__coord { font: 500 12px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .worldmap__arcs--locator path, .worldmap__ring { animation: none; } }

/* Language picker, machine-translation notice, consent banner, right-to-left. Loaded only on public pages. */
.foot__tools { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: flex-start; padding-block: 1rem 0; }
.langpick { position: relative; font-size: 0.9rem; }
.langpick summary { cursor: pointer; list-style: none; padding: 0.4rem 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::before { content: "\1F310\00a0"; }
.langpick__list { list-style: none; margin: 0.5rem 0 0; padding: 0.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.15rem; min-width: min(30rem, 86vw); background: var(--surface); border: 1px solid var(--line-2); border-radius: 0.75rem; }
.langpick__list a { display: block; padding: 0.35rem 0.6rem; border-radius: 0.4rem; color: var(--ink-2); text-decoration: none; }
.langpick__list a:hover, .langpick__list a[aria-current] { background: var(--surface-2); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0.4rem 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; }
.mt-note { background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; }
.mt-note p { margin: 0; max-width: 80rem; margin-inline: auto; padding: 0.55rem 1.25rem; }
.mt-note a { color: var(--gold); }
.consent { position: fixed; inset-inline: 0.75rem; bottom: 0.75rem; z-index: 60; max-width: 44rem; margin-inline: auto; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 0.9rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); font-size: 0.92rem; color: var(--ink-2); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.8rem; }
.consent a { color: var(--gold); }
.consent__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
[dir="rtl"] body { text-align: start; }
[dir="rtl"] .worldmap, [dir="rtl"] .wm, [dir="rtl"] svg { direction: ltr; }
[dir="rtl"] .langpick__list { text-align: start; }

