/* EMIGRATLY — dark editorial design system.
   One background, one accent (gold), hairline borders. No light mode. */

:root {
    --bg: #0A0A0B;
    --panel: #131417;
    --panel-raised: #17181D;
    --ink: #F2F1ED;
    --muted: #9A9A9F;
    --muted-dim: #8A8A90;   /* was #6B6B70 (3.4-3.7:1); now >= 5.1:1 on every panel */
    --accent: #D6A24A;
    --accent-ink: #1A1408;
    --accent-2: #1FA0B5;   /* was #12879A (4.2:1 as link text); now >= 5.7:1 */
    --success: #1E7B52;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);

    --font-display: "Archivo", "Inter", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --radius: 6px;
    --container-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1, h2, h3 {
    overflow-wrap: break-word;
}

h2 {
    letter-spacing: -0.005em;
}

/* Visible keyboard focus everywhere (one gold ring, matches the accent). */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    border-radius: 2px;
}

img {
    max-width: 100%;
}

/* Skip link: first focusable element on every public page. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 200;
}

.skip-link:focus {
    left: 8px;
}

main:focus {
    outline: none;
}

em {
    color: var(--accent);
    font-style: normal;
}

.eyebrow,
.badge {
    font-family: var(--font-body);
}

a {
    color: var(--accent-2);
}

p {
    color: var(--muted);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Ticker ---------- */

.ticker {
    background: #060607;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
}

.ticker__track {
    display: inline-flex;
    width: max-content;
    animation: ticker-scroll 60s linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__set {
    padding-left: 24px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }
}

/* ---------- Header ---------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.01em;
    min-height: 44px;
}

.brand__mark {
    display: inline-grid;
    grid-template-columns: repeat(3, 5px);
    grid-template-rows: repeat(3, 5px);
    gap: 2px;
}

.brand__mark span {
    width: 5px;
    height: 5px;
    background: var(--border-strong);
}

.brand__mark span:nth-child(1),
.brand__mark span:nth-child(5),
.brand__mark span:nth-child(9),
.brand__mark span:nth-child(7) {
    background: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a:not(.button) {
    white-space: nowrap;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.site-nav a:not(.button):hover {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1240px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 20px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a:not(.button) {
        padding: 13px 0;
        width: 100%;
        font-size: 15px;
    }

    .site-nav .button {
        margin-top: 8px;
    }
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    min-height: 44px;
    justify-content: center;
}

.button--primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.button--primary:hover {
    background: #E3B15E;
}

.button--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}

.button--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button--large {
    padding: 14px 28px;
    font-size: 15px;
}

/* ---------- Badge / eyebrow ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 88px 0 56px;
    overflow: hidden;
}

.hero__graphic {
    position: absolute;
    top: -60px;
    right: -80px;
    width: 560px;
    height: 560px;
    opacity: 0.5;
    pointer-events: none;
}

.hero__content {
    position: relative;
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--ink);
}

.lede {
    max-width: 62ch;
    font-size: 18px;
    color: var(--muted);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 8px;
}

.hero__note {
    color: var(--muted-dim);
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero__graphic {
        width: 320px;
        height: 320px;
        top: -40px;
        right: -120px;
        opacity: 0.3;
    }

    .lede {
        font-size: 17px;
    }

    .hero__ctas .button {
        flex: 1 1 100%;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding-bottom: 48px;
    }
}

/* ---------- Stat row with corner brackets ---------- */

.stat-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding: 32px 8px;
    margin: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.corner-squares > .corner {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--border-strong);
    pointer-events: none;
}

.corner.top-left { top: 0; left: 0; transform: translate(-50%, -50%); }
.corner.top-right { top: 0; right: 0; transform: translate(50%, -50%); }
.corner.bottom-left { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.corner.bottom-right { right: 0; bottom: 0; transform: translate(50%, 50%); }

.stat {
    text-align: left;
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat__value--text {
    font-size: 17px;
    text-transform: none;
    line-height: 1.25;
}

.fact-strip {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* ---------- Destination heading, locator, map ---------- */

.destination-heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

.destination-heading h1 {
    margin: 0;
}

.destination-flag {
    border-radius: 4px;
    border: 1px solid var(--border);
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.locator {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr);
    gap: 24px;
    align-items: stretch;
    margin: 40px 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.locator__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0;
}

.locator__facts dt {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
}

.locator__facts dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--ink);
    line-height: 1.3;
}

.locator__map {
    min-height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel-raised);
    display: flex;
}

.locator__map svg {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: block;
}

.locator__landmark {
    margin: 0;
    min-width: 0;
    aspect-ratio: 16 / 9; /* reserves the box; min-height here would force min-width via the ratio */
    background: var(--panel-raised);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.locator__landmark img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.05) brightness(0.9);
    transition: filter 0.3s ease;
}

.locator:hover .locator__landmark img {
    filter: grayscale(0.2) contrast(1.05) brightness(0.95);
}

.locator__landmark figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(to top, rgba(10, 10, 11, 0.85), transparent);
}

@media (max-width: 680px) {
    .locator {
        grid-template-columns: 1fr;
    }

    .destination-heading {
        flex-wrap: wrap;
    }
}

/* ---------- Section ---------- */

.section {
    /* Block padding only: `.container.section` must keep .container's side gutter. */
    padding-top: 32px;
    padding-bottom: 72px;
}

.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.section-intro__graphic {
    justify-self: end;
    flex-shrink: 0;
}

.pixel-mosaic {
    width: 180px;
    height: auto;
    display: block;
}

@media (max-width: 860px) {
    .section-intro {
        grid-template-columns: 1fr;
    }

    .section-intro__graphic {
        display: none;
    }
}

.section h2 {
    font-size: 28px;
    color: var(--ink);
    max-width: 40ch;
}

/* ---------- Two-audience cards ---------- */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.audience-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.audience-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 162, 74, 0.14);
    color: var(--accent);
    margin-bottom: 18px;
    font-size: 18px;
}

.audience-card:nth-child(2) .audience-card__icon {
    background: rgba(18, 135, 154, 0.16);
    color: var(--accent-2);
}

.audience-card h3,
.audience-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
    max-width: none;
}

.audience-card p {
    font-size: 14px;
    margin: 0;
}

/* ---------- Chip / source list ---------- */

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 20px 0 0;
    border-top: 1px solid var(--border);
}

.chip-list li {
    padding: 0 18px 0 0;
    margin-right: 18px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: none;
}

.chip-list li a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.chip-list li a:hover {
    color: var(--accent);
}

/* ---------- Process schematic ---------- */

.process-schematic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-top: 40px;
    padding-top: 36px;
}

.process-schematic__line {
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.process-step {
    position: relative;
    padding: 0 16px 0 0;
}

.process-step .pixel-icon {
    display: block;
    background: var(--bg);
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.process-step__index {
    display: none;
}

.process-step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    margin: 0;
    max-width: 32ch;
}

/* ---------- Geomap ---------- */

.geomap {
    margin-top: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 20px;
}

.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(--border);
    font-size: 12px;
    color: var(--muted);
}

.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(--accent-2);
}

.geomap__swatch--dest {
    background: var(--accent);
}

.geomap__swatch--hub {
    background: transparent;
    border: 1.5px solid var(--accent);
}

/* ---------- Sector grid ---------- */

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.sector-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.sector-card:hover {
    border-color: var(--accent);
}

.sector-card__bullet {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    margin-bottom: 14px;
    transform: rotate(45deg);
}

.sector-card h3 {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 8px;
}

.sector-card p {
    font-size: 13px;
    margin: 0;
    color: var(--muted);
}

/* ---------- Region grid (destinations index) ---------- */

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.region-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.region-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.region-card__bullet {
    width: 10px;
    height: 10px;
    background: var(--accent-2);
    flex-shrink: 0;
    transform: rotate(45deg);
}

.region-card__head h3 {
    font-size: 16px;
    color: var(--ink);
    margin: 0;
    flex: 1;
}

.region-card__count {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-dim);
    white-space: nowrap;
}

.region-card__note {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px;
}

.region-card .chip-list {
    border-top: none;
    margin: 0;
}

.region-card .chip-list li {
    padding: 0 14px 0 0;
    margin-right: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
    border-top: 1px solid var(--border);
    background: var(--panel);
    padding: 56px 0;
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-band h2 {
    font-size: 26px;
    margin: 0;
    max-width: 32ch;
}

.cta-band .hero__ctas {
    margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
    background: linear-gradient(180deg, var(--bg), var(--panel));
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    font-size: 13px;
    color: var(--muted-dim);
    position: relative;
    z-index: 1;
}

/* ---------- Forms ---------- */

.form-page {
    max-width: 720px;
    padding-top: 56px;
}

.form-page .lede {
    margin-bottom: 24px;
}

.form-page__footnote {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.stack-form fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 0 0 20px;
    background: var(--panel);
}

.stack-form legend {
    font-weight: 600;
    padding: 0 8px;
    font-family: var(--font-display);
    color: var(--ink);
}

.stack-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
    margin: 14px 0 6px;
}

.stack-form label:first-child {
    margin-top: 0;
}

.stack-form input:not([type="checkbox"]):not([type="radio"]),
.stack-form select,
.stack-form textarea {
    width: 100%;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel-raised);
    color: var(--ink);
    font: inherit;
    font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 16px;
}

.upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.upload-row:last-child {
    border-bottom: none;
}

.upload-row label {
    flex: 1 1 240px;
    margin: 0;
}

.upload-row input[type="file"] {
    flex: 1 1 240px;
    width: auto;
}

.upload-status {
    font-size: 13px;
    color: var(--accent-2);
}

.upload-status--done {
    color: #34A574;
}

.required {
    color: #34A574; /* --success fails 4.5:1 as text on the dark panels */
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: var(--muted);
}

.checkbox-row input {
    margin-top: 4px;
}

.wizard-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
    list-style: none;
    margin: 24px 0 32px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border);
}

.wizard-progress__step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-dim);
}

.wizard-progress__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 12px;
    color: var(--muted);
}

.wizard-progress__step--active .wizard-progress__dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #0A0A0B;
}

.wizard-progress__step--active .wizard-progress__label {
    color: var(--ink);
}

.wizard-progress__step--done .wizard-progress__dot {
    border-color: var(--accent);
    color: var(--accent);
}

.wizard-progress__step:not(:last-child)::after {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--border-strong);
    margin: 0 2px;
}

.field-error {
    color: #E8806E;
    font-size: 12px;
    margin: 4px 0 0;
}

.repeat-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.repeat-block__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-dim);
    margin: 0 0 12px;
}

.cert-question {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.cert-question:first-child {
    padding-top: 0;
}

.cert-question__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin: 0 0 6px;
}

.cert-question__radios {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.cert-question__radios label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
}

/* --- Register wizard: phone polish --------------------------------------- */

/* Fieldsets default to min-width: min-content, which lets one wide child
   (date input, long label) push the whole form past the viewport. */
.stack-form fieldset {
    min-width: 0;
}

/* Native checkboxes/radios pick up the gold accent and a comfortable size. */
.stack-form input[type="checkbox"],
.stack-form input[type="radio"] {
    accent-color: var(--accent);
    width: 24px;
    height: 24px;
    flex: none;
}

/* The 30-country checklist was one very long single column on phones. */
.stack-form .form-row:not(:has(> :not(.checkbox-row))) {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0 12px;
}

.stack-form .form-row:not(:has(> :not(.checkbox-row))) .checkbox-row {
    margin: 0;
    font-weight: 400;
    align-items: center;
}

.stack-form textarea {
    resize: vertical;
    min-height: 88px;
}

@media (max-width: 600px) {
    .stack-form fieldset {
        padding: 16px 14px;
    }

    /* A two-line legend straddled the fieldset border; lay it out inside the box instead. */
    .stack-form legend {
        float: left;
        width: 100%;
        font-size: 16px;
        line-height: 1.3;
        padding: 0;
        margin-bottom: 12px;
    }

    .stack-form legend + * {
        clear: both;
    }

    .repeat-block {
        padding: 12px;
    }

    .cert-question__radios {
        gap: 12px;
    }

    .cert-question__radios label {
        flex: 1 1 0;
        justify-content: center;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius);
        padding: 0 12px;
    }

    /* Back / Continue: full-width, thumb-sized, Continue last (reading order = tab order). */
    .stack-form .hero__ctas {
        flex-direction: column;
        gap: 10px;
    }

    .stack-form .hero__ctas .button {
        width: 100%;
    }

    .stack-form input[type="date"] {
        min-width: 0;
    }
}

.form-errors,
.form-success {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-errors {
    background: rgba(214, 84, 64, 0.1);
    border: 1px solid #D65440;
    color: var(--ink);
}

.form-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-success {
    background: rgba(30, 123, 82, 0.12);
    border: 1px solid var(--success);
    color: var(--ink);
}

/* ---------- Dashboard ---------- */

.dashboard-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--ink);
}

.status-pill {
    display: inline-block;
    background: rgba(18, 135, 154, 0.16);
    color: var(--accent-2);
    border: 1px solid rgba(18, 135, 154, 0.4);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.status-pill--draft,
.status-pill--closed {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted, #9a9a9a);
    border-color: var(--border);
}

.status-pill--pending_review {
    background: rgba(214, 162, 74, 0.16);
    color: #d6a24a;
    border-color: rgba(214, 162, 74, 0.45);
}

.status-pill--rejected {
    background: rgba(200, 80, 60, 0.14);
    color: #e0806c;
    border-color: rgba(200, 80, 60, 0.4);
}

.roles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
}

.roles-table th,
.roles-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.roles-table th {
    font-family: var(--font-display);
    color: var(--accent-2);
    font-weight: 600;
}

/* Roles tables (destination + sector pages): stack each row as a card on
   phones so four columns never squeeze into 360px. The td[data-label]
   attributes reuse the existing column headings. */
@media (max-width: 640px) {
    .roles-table,
    .roles-table tbody,
    .roles-table tr,
    .roles-table td {
        display: block;
        width: 100%;
    }

    .roles-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .roles-table tr {
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 6px 14px;
    }

    .roles-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .roles-table td:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

    .roles-table td::before {
        content: attr(data-label);
        flex: none;
        text-align: left;
        color: var(--accent-2);
        font-family: var(--font-display);
        font-weight: 600;
    }
}

.page-body {
    max-width: 68ch;
    margin-top: 36px;
}

.page-body p {
    max-width: 68ch;
}

.page-body h2,
.legal-page h2 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 12px;
}

.page-body h3,
.page-body .page-body__sub {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    margin: 20px 0 6px;
}

.page-body ul,
.page-body ol {
    max-width: 68ch;
    color: var(--muted);
    padding-left: 20px;
    margin: 0 0 16px;
}

.page-body li {
    margin-bottom: 6px;
}

.page-body li strong {
    color: var(--ink);
}

.page-body + .page-body {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ---------- Error pages ---------- */

.error-page {
    /* Block padding only, so `.container`'s side gutter survives on phones. */
    padding-top: 96px;
    padding-bottom: 96px;
    text-align: center;
}

.error-page h1 {
    font-size: 64px;
    color: var(--accent);
}

.error-page code {
    overflow-wrap: anywhere;
}

.error-page__links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
    margin: 24px 0 0;
    padding: 0;
}

.error-page__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
}

@media (max-width: 600px) {
    .error-page {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .error-page h1 {
        font-size: 48px;
    }
}

/* Consistent "nothing here yet" panel for lists (public role lists and staff pages). */
.empty-state {
    padding: 24px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--muted);
    text-align: center;
    max-width: none;
    overflow-wrap: anywhere;
}

.dashboard-card.empty-state {
    margin-bottom: 20px;
}

/* ---------- Footer ---------- */

.footer-top {
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-about { max-width: 340px; }

.footer-logo { font-size: 22px; margin-bottom: 4px; }

.footer-tagline {
    margin: 4px 0 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-blurb { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.footer-cta { padding: 10px 20px; font-size: 14px; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}

.footer-col { display: flex; flex-direction: column; align-items: flex-start; }

.footer-col__title {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-bottom { padding-top: 24px; }

.footer-notice {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.6;
    max-width: 820px;
    color: var(--muted-dim);
}

.footer-brand { margin: 0; color: var(--muted-dim); font-size: 13px; }

.footer-col a,
.footer-links a,
.link-button {
    color: var(--ink);
    opacity: 0.82;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    min-width: 44px;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-links a:hover,
.link-button:hover,
.link-button:focus-visible {
    color: var(--accent);
    opacity: 1;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

@media (min-width: 720px) {
    .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
    .footer-top { grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: 64px; }
}

/* ---------- Legal pages ---------- */

.legal-page {
    max-width: 760px;
    padding-top: 56px;
}

.legal-page h2 {
    font-size: 20px;
    margin-top: 36px;
}

.legal-page p,
.legal-page li {
    max-width: 68ch;
}

.legal-updated {
    color: var(--muted-dim);
    font-size: 13px;
    margin: -8px 0 24px;
}

.legal-index {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    border-top: 1px solid var(--border);
}

.legal-index li {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.legal-index a {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--ink);
}

.legal-index a:hover {
    color: var(--accent);
}

.legal-index p {
    margin: 6px 0 0;
    font-size: 14px;
}

/* ---------- Cookie consent banner ---------- */

.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
    background: var(--panel-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.consent-banner__inner {
    padding: 20px;
}

.consent-banner p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--muted);
}

.consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Cookie banner: on phones it must never hide the primary buttons behind it.
   consent.js sets --consent-banner-h while the banner is open; the page gets
   matching bottom padding so everything can scroll clear of it, and the
   home page's sticky CTA steps aside until the choice is made. */
body.has-consent-banner {
    padding-bottom: calc(var(--consent-banner-h, 0px) + 16px);
}

body.has-consent-banner .sticky-cta {
    display: none;
}

@media (max-width: 640px) {
    .consent-banner {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .consent-banner__inner {
        padding: 14px;
    }

    .consent-banner p {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .consent-banner__actions {
        flex-wrap: nowrap;
    }

    .consent-banner__actions .button {
        flex: 1 1 0;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .consent-banner {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ---------- Locale picker ---------- */

.locale-picker {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 7, 0.75);
    padding: 16px;
}

.locale-picker[hidden] {
    display: none;
}

.locale-picker__inner {
    max-width: 420px;
    width: 100%;
    background: var(--panel-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.locale-picker__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 6px;
}

.locale-picker__note {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 20px;
}

.locale-picker__options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.locale-picker__option {
    padding: 11px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
}

.locale-picker__more-toggle {
    margin: -6px 0 14px;
    font-size: 13px;
}

.locale-picker__inner {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.locale-picker__option:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Content rail (long-form page sidebar) ---------- */

.content-rail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
    align-items: start;
}

.content-rail {
    position: sticky;
    top: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.content-rail__mosaic {
    margin-bottom: 16px;
}

.content-rail__mosaic .pixel-mosaic {
    width: 100%;
    height: auto;
}

.content-rail__title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin: 0 0 10px;
}

.content-rail__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-rail__links li {
    border-top: 1px solid var(--border);
}

.content-rail__links li:first-child {
    border-top: none;
}

.content-rail__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.content-rail__links a:hover {
    color: var(--accent);
}

@media (max-width: 860px) {
    .content-rail-layout {
        grid-template-columns: 1fr;
    }

    .content-rail {
        position: static;
    }
}

/* ---------- Numbered step list ---------- */

.step-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.step-list-layout .step-list {
    max-width: 680px;
}

.step-list-layout__aside {
    position: sticky;
    top: 32px;
    justify-self: center;
}

.journey-rail {
    width: 100%;
    max-width: 130px;
    height: auto;
    display: block;
}

@media (max-width: 760px) {
    .step-list-layout {
        grid-template-columns: 1fr;
    }

    .step-list-layout__aside {
        display: none;
    }
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 40px;
    max-width: 680px;
}

.step-list li {
    position: relative;
    padding: 24px 0 24px 64px;
    border-top: 1px solid var(--border);
}

.step-list li:last-child {
    border-bottom: 1px solid var(--border);
}

.step-list__number {
    position: absolute;
    left: 0;
    top: 26px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--muted-dim);
}

.step-list h3,
.step-list h2 {
    max-width: none;
    font-size: 17px;
    text-transform: none;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.step-list__meta {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.step-list p {
    margin: 0;
    font-size: 15px;
}

/* ---------- Currency converter ---------- */

.currency-converter {
    margin: 32px 0 40px;
    max-width: 620px;
}

.currency-converter__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 16px;
    margin: 16px 0;
}

.currency-converter label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.currency-converter input,
.currency-converter select {
    width: 100%;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel-raised);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.currency-converter__result {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--accent);
    margin: 12px 0 4px;
}

.currency-converter__status {
    font-size: 12px;
    color: var(--muted-dim);
    margin: 0;
}

.currency-converter__status--error {
    color: #E8806E;
}

/* --- Candidate dashboard: next-action banner, progress track, doc status --- */

.cand-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    margin: 0 0 24px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel);
}
.cand-next--action { border-color: var(--accent); }
.cand-next p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }

.progress-track {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.progress-track__step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-top: 2px solid var(--border);
    font-size: 13px;
    color: var(--muted-dim);
}
.progress-track__step.is-done { border-top-color: var(--success); color: var(--muted); }
.progress-track__step.is-current { border-top-color: var(--accent); color: var(--ink); }
.progress-track__dot {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 12px; font-weight: 700;
}
.is-done .progress-track__dot { background: var(--success); border-color: var(--success); color: #fff; }
.is-current .progress-track__dot { border-color: var(--accent); color: var(--accent); }
.progress-track__label { font-weight: 700; font-size: 14px; }
.progress-track__hint { font-size: 12px; line-height: 1.4; }

@media (max-width: 900px) {
    .progress-track { grid-template-columns: 1fr; gap: 0; }
    .progress-track__step {
        flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px;
        border-top: 0; border-left: 2px solid var(--border); padding: 10px 14px;
    }
    .progress-track__step.is-done { border-left-color: var(--success); }
    .progress-track__step.is-current { border-left-color: var(--accent); }
    .progress-track__hint { flex-basis: 100%; padding-left: 36px; }
}

.doc-status-list { list-style: none; margin: 0 0 16px; padding: 0; }
.doc-status-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.doc-status-list li:last-child { border-bottom: 0; }
.doc-status-list small { color: var(--muted); }
.doc-pill {
    padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.doc-pill--verified { background: rgba(30, 123, 82, 0.16); color: #5FD3A0; }
.doc-pill--pending { background: rgba(214, 162, 74, 0.16); color: var(--accent); }
.doc-pill--rejected { background: rgba(214, 84, 64, 0.14); color: #E8806E; }
.doc-pill--missing { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* --- Homepage trust sections, FAQ, sticky mobile CTA (2026-09-30) ------- */

.answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.answer-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.answer-card h3 { margin: 0; font-size: 18px; }
.answer-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.answer-card a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

.flag-list {
    counter-reset: flag;
    list-style: none;
    margin: 24px 0 12px;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}
.flag-list li {
    counter-increment: flag;
    padding: 16px 0 16px 48px;
    border-bottom: 1px solid var(--border);
    position: relative;
    color: var(--muted);
    max-width: 78ch;
}
.flag-list li::before {
    content: counter(flag, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    color: var(--accent);
}
.flag-list strong { color: var(--ink); display: block; margin-bottom: 2px; }

.faq { margin-top: 24px; border-top: 1px solid var(--border); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    cursor: pointer;
    padding: 18px 32px 18px 0;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 16px;
    font-size: 22px;
    color: var(--accent);
    transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

.sticky-cta { display: none; }
@media (max-width: 720px) {
    .sticky-cta {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 40;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(10, 10, 11, 0.94);
        border-top: 1px solid var(--border-strong);
        backdrop-filter: blur(8px);
    }
    .sticky-cta .button { width: 100%; text-align: center; }
    .sticky-cta { transform: translateY(110%); transition: transform 0.25s ease; }
    .sticky-cta.is-visible { transform: none; }
    body:has(.sticky-cta):not(.has-consent-banner) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* --- Eligibility quiz ---------------------------------------------------- */

.quiz-page { max-width: 820px; }
.quiz { margin-top: 28px; }
.quiz__step { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.quiz__step[hidden] { display: none; }
.quiz__step legend {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.2;
    padding: 0;
    margin-bottom: 8px;
    color: var(--ink);
}
.quiz__num { color: var(--accent); font-size: 0.55em; letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.quiz__hint { color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
.quiz__options { display: grid; gap: 10px; }
.quiz__options--grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.quiz__option { display: block; cursor: pointer; }
.quiz__option input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
}
.quiz__option span {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    font-weight: 500;
    transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.quiz__option:hover span { border-color: var(--border-strong); background: var(--panel-raised); }
.quiz__option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz__option input:checked + span {
    border-color: var(--accent);
    background: rgba(214, 162, 74, 0.1);
    color: var(--ink);
}
.quiz__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.quiz__progress[hidden] { display: none; }
.quiz__bar { flex: 1; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s ease; }
.quiz__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz__nav { display: flex; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.quiz__nav [hidden] { display: none; }
.quiz__nav .button:disabled { opacity: 0.45; cursor: not-allowed; }
.quiz:not(.quiz--js) .quiz__step { margin-bottom: 36px; }

/* --- Eligibility result -------------------------------------------------- */

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.result-badge--ready { background: rgba(30, 123, 82, 0.2); color: #5FD3A0; }
.result-badge--almost { background: rgba(214, 162, 74, 0.18); color: var(--accent); }
.result-badge--not_yet { background: rgba(214, 84, 64, 0.16); color: #E8806E; }

.result-steps { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.result-step {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}
.result-step--major { border-color: rgba(214, 162, 74, 0.45); }
.result-step__n {
    flex: none;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-weight: 700; font-size: 13px;
    color: var(--accent);
}
.result-step h3 { margin: 0 0 4px; font-size: 17px; }
.result-step p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.result-step a { font-size: 14px; font-weight: 600; }

.fee-card__amount { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.fee-card__amount .taps-sub { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); }
.tick-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tick-list li { padding-left: 26px; position: relative; color: var(--muted); }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 12px 0; }
.check input { margin-top: 3px; }

.fee-card__amount { color: var(--ink); }
html, body { overflow-x: clip; }
/* --- Mobile / performance / accessibility pass ---------------------------- */

/* Tool pages (/tools/*) use bare <label>/<input>/<select> inside a card. */
.tool-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin: 14px 0 6px;
}

.tool-card .form-row > div > label,
.tool-card > label:first-child {
    margin-top: 0;
}

.tool-card input,
.tool-card select {
    width: 100%;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--panel-raised);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.tool-card input:focus,
.tool-card select:focus {
    border-color: var(--accent);
}

/* Eyebrow breadcrumb links ("Tools — Salary Converter"). */
.eyebrow a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Quiz option cards and radios: keep the whole card the tap target. */
.quiz__option span {
    min-height: 56px;
}

.cert-question__radios label {
    min-height: 44px;
}

.checkbox-row,
.check {
    padding: 11px 0;
}

.checkbox-row input,
.check input {
    margin-top: 0;
    flex: none;
    width: 24px;
    height: 24px;
}

/* Wizard progress on phones: show only the current step's label; the other
   labels stay in the accessibility tree (visually hidden) so nothing scrolls
   and screen readers still hear every step. */
@media (max-width: 480px) {
    .wizard-progress__step:not(.wizard-progress__step--active) .wizard-progress__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-cta,
    .quiz__bar span,
    .locator__landmark img {
        transition: none;
    }
}

.install-app[hidden],
.install-app [hidden] {
    display: none;
}

.install-app .button {
    margin-top: 4px;
}

/* ---------- Initiation Fee quote (partials/fee-quote.php) ---------- */

.fee-quote {
    margin: 16px 0;
}

.fee-quote__table {
    width: 100%;
    table-layout: fixed;
    max-width: 560px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.fee-quote__table th,
.fee-quote__table td {
    padding: 10px 12px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-weight: 400;
}

.fee-quote__table th:first-child {
    text-align: left;
    color: var(--ink);
}

.fee-quote__table thead th {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fee-quote__total th,
.fee-quote__total td {
    font-weight: 700;
    color: var(--ink);
    border-bottom: 0;
    border-top: 1px solid var(--border-strong);
}

.fee-quote__total td:nth-child(2) {
    color: var(--accent);
}

.fee-quote__note,
.fee-quote__pending {
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 0;
    max-width: 560px;
}

.fee-quote__pending {
    display: block;
}

.fee-quote__local {
    color: var(--muted);
}

.fee-quote__picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.fee-quote__picker select {
    width: auto;
    min-width: 160px;
    padding: 6px 10px;
}

[dir="rtl"] .fee-quote__table th,
[dir="rtl"] .fee-quote__table td {
    text-align: left;
}

[dir="rtl"] .fee-quote__table th:first-child {
    text-align: right;
}

.locale-picker__options[hidden] {
    display: none;
}

/* ---------- Direct-to-wallet crypto payment ---------- */

.crypto-pay__banner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
    border: 1px solid var(--accent); border-radius: var(--radius);
    background: rgba(214, 162, 74, 0.08); color: var(--accent);
    padding: 10px 14px; margin-bottom: 8px; font-size: 14px;
}
.crypto-pay__banner span { color: var(--muted); }
.crypto-pay__step { font-size: 15px; margin: 20px 0 10px; color: var(--ink); }

.crypto-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.crypto-tile {
    display: flex; align-items: center; gap: 10px; text-align: left;
    background: var(--panel-raised); color: var(--ink); font: inherit;
    border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer;
}
.crypto-tile img { flex: none; }
.crypto-tile__text { display: grid; min-width: 0; }
.crypto-tile__text small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crypto-tile:hover { border-color: var(--border-strong); }
.crypto-tile[aria-selected="true"] { border-color: var(--accent); background: rgba(214, 162, 74, 0.1); box-shadow: 0 0 0 1px var(--accent); }
.crypto-tile:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.crypto-panel { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 16px; background: var(--panel-raised); }
.crypto-panel[hidden] { display: none; }
.crypto-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.crypto-panel__net {
    margin-left: auto; font-size: 12px; color: var(--accent);
    border: 1px solid var(--accent); border-radius: 4px; padding: 3px 8px;
}
.crypto-panel__body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.crypto-panel__qr svg { display: block; width: 190px; height: 190px; max-width: 100%; border-radius: 8px; }
.crypto-panel__info { flex: 1 1 260px; min-width: 0; }
.crypto-label { margin: 0 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.crypto-field {
    display: flex; align-items: center; gap: 10px; justify-content: space-between;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px;
}
.crypto-amount { color: var(--accent); font-size: 18px; }
.crypto-amount small { color: var(--muted); font-weight: 400; font-size: 13px; }
.crypto-addr { word-break: break-all; font-size: 14px; user-select: all; }
.crypto-copy {
    flex: none; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 12px;
}
.crypto-hint { margin: -6px 0 12px; color: var(--muted); font-size: 12.5px; }
.crypto-pay__warn {
    border: 1px solid rgba(214, 162, 74, 0.5); background: rgba(214, 162, 74, 0.06);
    border-radius: var(--radius); padding: 12px 14px; margin: 16px 0 0; font-size: 14px;
}

.crypto-proof { display: grid; gap: 8px; max-width: 560px; }
.crypto-proof input {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong);
    border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit;
}
.crypto-proof .button { justify-self: start; margin-top: 6px; }

/* Why a document was rejected (candidate dashboard + upload page) */
.doc-status-list li { flex-wrap: wrap; }
.doc-status-list .doc-reason { flex-basis: 100%; color: var(--muted); }
.upload-status--rejected { display: block; margin-top: 6px; }

/* Phone uploader (upload.js): per-file progress, result and retry */
.upload-live { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.upload-live[hidden], .upload-live [hidden] { display: none; }
.upload-live progress { width: 160px; max-width: 100%; height: 8px; accent-color: var(--accent, #D6A24A); }
.upload-live__text { font-size: 13px; color: var(--text-muted, #A9A9A9); }
.upload-live__text--ok { color: #34A574; }
.upload-live__text--error { color: #E5736A; }
.upload-live__retry { min-height: 44px; padding: 0 16px; }
.upload-row input[type="file"] { min-height: 44px; }

/* Minimum 24px target for the candidate-side back link (WCAG 2.2 SC 2.5.8). */
.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* ---------- Glossary ---------- */
.glossary__letter { margin: 32px 0 8px; font-size: 28px; color: var(--accent); }
.glossary__list { margin: 0; }
.glossary__item { padding: 16px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.glossary__item dt { font-weight: 700; color: var(--ink); font-size: 18px; }
.glossary__item dd { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.glossary__see, .glossary__more { display: inline-block; margin-left: 8px; }
.glossary__more { padding: 6px 0; }

/* ---------- Cost planner ---------- */
.cost-planner fieldset { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.cost-planner legend { font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.cost-planner__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); }
.cost-planner__paid { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-height: 32px; }
.cost-planner__paid input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.cost-planner__result { margin-top: 20px; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel-raised); }
.cost-planner__total { font-size: 20px; margin: 0 0 8px; }
.cost-planner__months, .cost-planner__asked { margin: 6px 0 0; color: var(--muted); }
@media (min-width: 640px) { .cost-planner__row { grid-template-columns: 1fr 160px; align-items: center; } .cost-planner__row .cost-planner__paid { grid-column: 1 / -1; } }

.glossary .chip-list a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.badge a { display: inline-block; padding: 4px 0; }

/* ---------- Roles pages ---------- */
.role-sector { padding-top: 24px; }
.role-sector__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.role-sector__head h2 { margin: 0; }
.role-sector__glyph { flex: none; }
.role-sector__all { margin-left: auto; padding: 8px 0; font-size: 14px; }
.role-sector__title { display: flex; align-items: center; gap: 18px; margin: 8px 0 4px; }
.role-sector__title h1 { margin: 0; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.role-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.role-card:hover, .role-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.role-card__glyph { margin-bottom: 14px; opacity: 0.9; }
.role-card h3 { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.role-card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.role-card__more { margin-top: auto; font-size: 13px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .role-card { transition: none; } .role-card:hover { transform: none; } }
.role-sector__head .role-sector__glyph { width: 56px; }
.role-sector__title .role-sector__glyph { width: 56px; }
.role-card__glyph { width: 32px; }
@media (max-width: 480px) { .role-sector__all { margin-left: 0; } .role-sector__title .role-sector__glyph { width: 40px; } }
.hero__content > .back-link { display: flex; width: fit-content; margin-bottom: 12px; }

/* Help centre and interview practice */
.help-search { display: flex; gap: 12px; max-width: 560px; margin: 20px 0; }
.help-search input[type="search"] { flex: 1 1 auto; min-width: 0; }
.help-guides { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 16px; }
.help-guides p { margin: 4px 0 0; }
.help-q { border-top: 1px solid var(--border); padding: 12px 0; }
.help-q:last-of-type { border-bottom: 1px solid var(--border); }
.help-q summary { cursor: pointer; font-weight: 600; }
.help-q p { margin: 8px 0 0; }
.interview-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 16px; }
.interview-item textarea { width: 100%; margin-top: 8px; }
@media print { .interview-item textarea { border: 1px solid #999; } [data-interview] , .hero__ctas, .site-header, .site-footer { display: none; } }
