/* Public-site polish layer (2026-10): navigation, header, cards and small interaction details.
   Loaded after polish.css. Uses only the existing tokens, so the light theme follows automatically. */

/* ---------- Sticky header, quieter ticker ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@media (max-width: 1023px) { .site-header { background: var(--bg); } }

/* ---------- Navigation with a Candidates menu ---------- */

.site-nav { gap: 18px; }
.site-nav > a:not(.button), .nav-group__btn {
    position: relative; font: inherit; font-size: 14px; letter-spacing: 0.02em; color: var(--muted);
    background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.site-nav > a:not(.button)::after, .nav-group__btn::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out);
}
.site-nav > a:not(.button):hover, .nav-group__btn:hover, .nav-group.is-open .nav-group__btn { color: var(--ink); }
.site-nav > a:not(.button):hover::after, .nav-group__btn:hover::after, .nav-group.is-open .nav-group__btn::after { transform: scaleX(1); }
.nav-group__btn svg { transition: transform .2s var(--ease-out); }
.nav-group.is-open .nav-group__btn svg { transform: rotate(180deg); }

.nav-group { position: relative; }
.nav-group__menu {
    position: absolute; top: calc(100% + 10px); left: -16px; z-index: 60; width: 340px; padding: 8px;
    background: var(--panel); border: 1px solid var(--border-strong); border-radius: 10px;
    box-shadow: var(--shadow-3);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), visibility .16s;
}
.nav-group__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-group.is-open .nav-group__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1024px) {
    .nav-group:hover .nav-group__menu, .nav-group:focus-within .nav-group__menu { opacity: 1; visibility: visible; transform: none; }
    .nav-group:hover .nav-group__btn, .nav-group:focus-within .nav-group__btn { color: var(--ink); }
    .nav-group:hover .nav-group__btn::after { transform: scaleX(1); }
}
.nav-group__menu a {
    display: grid; gap: 2px; padding: 11px 14px; border-radius: 7px; text-decoration: none; color: var(--ink);
    width: auto; white-space: normal;
}
.nav-group__menu a:hover, .nav-group__menu a:focus-visible { background: rgba(214, 162, 74, .1); }
.nav-group__menu strong { font-size: 14px; font-weight: 600; }
.nav-group__menu span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
:root[data-theme="light"] .nav-group__menu { box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }
:root[data-theme="light"] .nav-group__menu a:hover { background: rgba(143, 95, 12, .09); }

/* Drawer (below 1024px): the menu is simply a labelled, always-open group */
@media (max-width: 1023px) {
    .nav-group { width: 100%; }
    .nav-group__btn { width: 100%; padding: 14px 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); pointer-events: none; }
    .nav-group__btn svg, .nav-group__btn::after { display: none; }
    .nav-group__menu { position: static; width: auto; padding: 0 0 6px 12px; border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
    .nav-group__menu::before { display: none; }
    .nav-group__menu a { padding: 10px 12px; }
    .site-nav > a:not(.button)::after { display: none; }
}

/* ---------- Cards: a touch of depth and a clear affordance ---------- */

.sector-card, .audience-card, .answer-card, .process-step, .region-card, .guide-card {
    transition: border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out);
}
@media (hover: hover) {
    .sector-card:hover, .audience-card:hover, .guide-card:hover, .region-card:hover {
        transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-2);
    }
    :root[data-theme="light"] .sector-card:hover, :root[data-theme="light"] .audience-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
}
.sector-card--all {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    background: linear-gradient(135deg, rgba(214, 162, 74, .14), transparent 70%), var(--panel);
    border-color: rgba(214, 162, 74, .45);
}
.sector-card--all h3 { color: var(--accent); }

/* ---------- Buttons and links ---------- */

.button { transition: background .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out), transform .15s var(--ease-out), box-shadow .15s var(--ease-out); }
@media (hover: hover) {
    .button--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(214, 162, 74, .28); }
    .button--outline:hover { transform: translateY(-1px); }
}
.button:active { transform: scale(0.98); box-shadow: none; transition-duration: var(--dur-fast); }

/* ---------- Forms on public pages ---------- */

.stack-form input:not([type="checkbox"]):not([type="radio"]), .stack-form select, .stack-form textarea { border-radius: var(--radius-md); transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 162, 74, .18); }

/* ---------- Footer: calmer link columns ---------- */

.footer-col a { transition: color .15s var(--ease-out); }
.footer-col__title { letter-spacing: .1em; }

/* ---------- Smooth anchors, respectful of reduced motion ---------- */

html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
    .nav-group__menu, .sector-card, .audience-card, .button { transition: none; }
    .sector-card:hover, .audience-card:hover { transform: none; }
}

/* The theme toggle lives in the footer on wide screens; the header copy is for the compact layout */
@media (min-width: 1024px) { .site-header__tools { display: none; } }

/* Menu items must win over the generic ".site-nav a:not(.button)" rule */
.site-nav .nav-group__menu a:not(.button) { display: grid; gap: 2px; padding: 11px 14px; color: var(--ink); white-space: normal; width: auto; font-size: 14px; }
.site-nav .nav-group__menu a:not(.button):hover { color: var(--ink); }
.site-nav .nav-group__menu a:not(.button) span { color: var(--muted); }
@media (max-width: 1023px) { .site-nav .nav-group__menu a:not(.button) { padding: 10px 12px; width: 100%; } }

/* The header is sticky now, so a long drawer scrolls inside itself */
@media (max-width: 1023px) { .site-nav { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; } }

/* ============================================================
   Inner pages (2026-10)
   ============================================================ */

/* The sideways "On this page" strip must sit below the sticky header */
.jump-strip { top: var(--header-h, 56px); }

/* ---------- Reading bar (desktop, long pages) ---------- */

.reading-bar {
    position: fixed; left: 0; right: 0; top: 64px; z-index: 45;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .22s var(--ease-out), opacity .22s var(--ease-out);
}
.reading-bar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.reading-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.reading-bar__now { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reading-bar__btn {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px;
    background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-pill); font: inherit; font-size: 13px; cursor: pointer;
}
.reading-bar__btn:hover, .reading-bar__btn[aria-expanded="true"] { color: var(--ink); border-color: var(--accent); }
.reading-bar__btn svg { transition: transform .2s var(--ease-out); }
.reading-bar__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.reading-bar__progress { height: 2px; background: transparent; }
.reading-bar__progress i { display: block; height: 100%; width: 0; background: var(--accent); }

.reading-panel {
    position: absolute; left: 0; right: 0; top: 100%; max-height: min(70vh, 560px); overflow-y: auto;
    background: var(--panel); border: 1px solid var(--border-strong); border-top: 0; border-radius: 0 0 12px 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45); padding: 12px 24px 16px;
}
.reading-panel[hidden] { display: none; }
.reading-panel ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; counter-reset: rp; }
.reading-panel li { break-inside: avoid; counter-increment: rp; }
.reading-panel a {
    display: flex; gap: 12px; padding: 9px 8px; border-radius: 6px; color: var(--muted); font-size: 14px; line-height: 1.35; text-decoration: none;
}
.reading-panel a::before { content: counter(rp, decimal-leading-zero); flex: none; color: var(--muted-dim); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.reading-panel a:hover { background: rgba(214, 162, 74, .1); color: var(--ink); }
.reading-panel a[aria-current] { color: var(--accent); }
:root[data-theme="light"] .reading-panel { box-shadow: 0 30px 60px rgba(0, 0, 0, .16); }
@media (max-width: 900px) { .reading-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .reading-bar { transition: none; } }
html { scroll-padding-top: 130px; }

/* ---------- Long-form reading: comfortable text and a real heading hierarchy ---------- */

.page-body, .legal-page { --body-ink: color-mix(in srgb, var(--ink) 80%, var(--bg)); }
.page-body p, .page-body li, .legal-page p, .legal-page li { color: var(--body-ink); font-size: 16.5px; line-height: 1.75; }
.page-body p, .legal-page p { margin: 0 0 1.1em; }
.page-body h2, .legal-page h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--border); }
.page-body h2:first-child, .legal-page h2:first-of-type { margin-top: 1.4em; }
.page-body h3, .page-body .page-body__sub { font-size: 17px; margin: 1.6em 0 .5em; }
.page-body a, .legal-page a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-body li::marker { color: var(--accent); }
.legal-page h2 { font-size: 18px; letter-spacing: .04em; }
.legal-updated { margin-bottom: 8px; }

/* Source links under official-rights lists: readable, not tiny monospace */
.protections__source {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
    font: 500 12.5px/1.4 var(--font-body); letter-spacing: 0; color: var(--muted); text-decoration: none;
    border-bottom: 1px dashed var(--border-strong);
}
.protections__source::before { content: "\2197"; color: var(--accent); font-size: 12px; }
.protections__source:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Index and hub pages ---------- */

.stat-row { margin-bottom: 8px; }
.eyebrow { letter-spacing: .12em; }

/* Back to top, quiet, on long pages */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; display: none; place-items: center;
    background: var(--panel); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 50%; cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.to-top.is-visible { display: grid; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) { .to-top { bottom: 84px; } }

/* ============================================================
   Forms, search and the eligibility quiz (2026-10)
   ============================================================ */

/* ---------- Search fields (help centre, site search): were unstyled white boxes ---------- */

main input[type="search"] {
    background: var(--panel-raised); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 10px;
    min-height: 48px; padding: 10px 16px; font: inherit; font-size: 16px;
    transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
main input[type="search"]::placeholder { color: var(--muted-dim); }
main input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 162, 74, .16); }
.help-search { max-width: 640px; }
.help-search input[type="search"] { font-size: 16px; }
.stack-form[role="search"] { display: flex; gap: 12px; max-width: 640px; align-items: stretch; }
.stack-form[role="search"] input[type="search"] { flex: 1 1 auto; min-width: 0; width: auto; }
.stack-form[role="search"] .button { flex: none; }
@media (max-width: 520px) { .stack-form[role="search"], .help-search { flex-wrap: wrap; } .stack-form[role="search"] .button, .help-search .button { width: 100%; } }

/* Search results: rows, not bullets */
.form-page .dashboard-card .updates { list-style: none; margin: 0; padding: 0; }
.form-page .dashboard-card .updates li { padding: 14px 0; border-top: 1px solid var(--border); }
.form-page .dashboard-card .updates li:first-child { border-top: 0; padding-top: 4px; }
.form-page .dashboard-card .updates li > a { font-weight: 600; font-size: 16px; text-decoration: none; }
.form-page .dashboard-card .updates li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-page .dashboard-card .updates li p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; max-width: 70ch; }
.form-page .dashboard-card > h2 { font: 700 12px var(--font-body); letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }

/* ---------- Registration and other fieldset cards: heading inside the card, not on the border ---------- */

.stack-form > fieldset { padding: 22px 24px 8px; border-radius: var(--radius-lg); }
.stack-form > fieldset > legend {
    float: left; width: 100%; padding: 0; margin: 0 0 16px;
    font: 700 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.stack-form > fieldset > legend + * { clear: both; }
.stack-form > fieldset::after { content: ""; display: table; clear: both; }
.stack-form .form-row { gap: 0 18px; }

/* ---------- Eligibility quiz: tactile options ---------- */

.quiz__option span { transition: border-color .15s var(--ease-out), background .15s var(--ease-out), transform .15s var(--ease-out); min-height: 52px; display: flex; align-items: center; }
@media (hover: hover) { .quiz__option:hover span { transform: translateY(-1px); } }
.quiz__option input:checked + span { box-shadow: 0 0 0 1px var(--accent) inset; }
.quiz__option input:checked + span::after { content: "\2713"; margin-left: auto; color: var(--accent); font-weight: 800; }

/* ---------- Contact and legal index: cards, not a bare list ---------- */

.legal-index { display: grid; gap: 12px; margin-top: 28px; }
.legal-index li {
    position: relative; padding: 18px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
@media (hover: hover) { .legal-index li:hover { border-color: var(--accent); transform: translateY(-2px); } }
.legal-index li > a:first-child { font: 700 17px var(--font-body); letter-spacing: 0; text-decoration: none; display: inline-block; }
.legal-index li > a:first-child::after { content: "  \2192"; color: var(--accent); }
.legal-index li p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; }
.legal-index { border-top: 0; list-style: none; padding: 0; }
.legal-index li > a:first-child { text-transform: none; }
.legal-index li p a { font: inherit; text-transform: none; color: var(--accent-2); text-decoration: underline; }
/* The whole card is the link target; inline links inside the text stay clickable above it */
.legal-index li > a:first-child::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.legal-index li p a { position: relative; z-index: 1; }

/* ============================================================
   How it works and For employers (2026-10)
   ============================================================ */

/* ---------- The seven stages as a timeline ---------- */

.step-list-layout .step-list, .step-list { max-width: 760px; }
.step-list li { padding: 0 0 30px 76px; border: 0; }
.step-list li:last-child { border: 0; padding-bottom: 0; }
.step-list li::before {
    content: ""; position: absolute; left: 23px; top: 54px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--accent), var(--border) 80%);
}
.step-list li:last-child::before { display: none; }
.step-list__number {
    left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center;
    background: var(--bg); border: 1.5px solid var(--accent); border-radius: 50%;
    font: 700 15px var(--font-display); letter-spacing: 0; color: var(--accent);
    box-shadow: 0 0 0 6px var(--bg);
}
.step-list h2, .step-list h3 { font-size: 20px; margin: 2px 0 8px; line-height: 1.2; }
.step-list__meta {
    display: inline-block; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent); border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--accent-2); white-space: nowrap;
}
.step-list p { font-size: 15.5px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); max-width: 62ch; }
.step-list li:first-child .step-list__number { background: var(--accent); color: var(--accent-ink); }

/* ---------- For employers ---------- */

@media (min-width: 1100px) { .audience-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.chip-list { gap: 8px; }
.chip-list li {
    margin: 0; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--ink);
    transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.chip-list li:hover { border-color: var(--accent); background: rgba(214, 162, 74, .08); }
.chip-list li a { min-height: 40px; color: inherit; }

/* "What we verify": label left, explanation right */
#what-we-verify > .page-body { max-width: none; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); column-gap: 40px; margin-top: 28px; }
#what-we-verify > .page-body > h3 { margin: 0; padding: 22px 0; border-top: 1px solid var(--border); font: 700 17px var(--font-display); color: var(--accent); }
#what-we-verify > .page-body > p { margin: 0; padding: 22px 0; border-top: 1px solid var(--border); max-width: 68ch; }
@media (max-width: 760px) {
    #what-we-verify > .page-body { grid-template-columns: 1fr; }
    #what-we-verify > .page-body > h3 { padding-bottom: 6px; }
    #what-we-verify > .page-body > p { border-top: 0; padding-top: 0; }
}

/* Confidentiality points as cards; review steps as a numbered track */
#confidentiality .page-body { max-width: none; }
#confidentiality .page-body > ul { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; max-width: none; }
#confidentiality .page-body > ul > li {
    margin: 0; padding: 20px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); line-height: 1.65;
}
#confidentiality .page-body > ul > li strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
#review-and-approve .page-body > ol { list-style: none; counter-reset: rv; padding: 0; margin: 28px 0 20px; max-width: 720px; }
#review-and-approve .page-body > ol > li { counter-increment: rv; position: relative; padding: 4px 0 22px 52px; margin: 0; }
#review-and-approve .page-body > ol > li::before {
    content: counter(rv); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center;
    border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); font: 700 14px var(--font-display);
}
#review-and-approve .page-body > ol > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--border); }
#review-and-approve .page-body > ol > li:last-child::after { display: none; }

/* FAQ: questions as a divided list */
#faq > .page-body { max-width: 820px; margin-top: 24px; }
#faq > .page-body > h3 { margin: 0; padding: 24px 0 8px; border-top: 1px solid var(--border); font-size: 18px; color: var(--ink); }
#faq > .page-body > h3:first-child { border-top: 0; padding-top: 4px; }
#faq > .page-body > p { margin: 0 0 6px; padding-bottom: 8px; }

#partner-form .stack-form { max-width: 780px; }
@media (max-width: 760px) {
    .step-list li { padding-left: 60px; }
    .step-list__number { width: 40px; height: 40px; font-size: 13px; }
    .step-list li::before { left: 19px; top: 46px; }
    .step-list h2, .step-list h3 { font-size: 18px; }
    #review-and-approve .page-body > ol > li { padding-left: 46px; }
}

/* ============================================================
   Destination hub (2026-10)
   ============================================================ */

/* Five regions: three across, then two wider cards, instead of an empty third column */
@media (min-width: 1000px) {
    .region-grid:not(.is-filtered):has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .region-grid:not(.is-filtered):has(> :nth-child(5):last-child) > .region-card { grid-column: span 2; }
    .region-grid:not(.is-filtered):has(> :nth-child(5):last-child) > .region-card:nth-child(n+4) { grid-column: span 3; }
}
.region-card[hidden], .region-card .chip-list li[hidden] { display: none; }
.region-card { display: flex; flex-direction: column; transition: border-color .18s var(--ease-out), transform .18s var(--ease-out); }
.region-card__note { flex: 0 0 auto; }
.region-card__head h3 { text-transform: uppercase; letter-spacing: .02em; }

/* Country finder */
.country-filter { margin: 22px 0 0; max-width: 460px; }
.country-filter[hidden] { display: none; }
.country-filter input[type="search"] { width: 100%; }
.country-filter__status { margin: 8px 0 0; min-height: 1.2em; font-size: 13px; color: var(--muted); }

/* ============================================================
   Candidate dashboard (2026-10)
   ============================================================ */

.cand-dash { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
.cand-dash > * { grid-column: 1 / -1; min-width: 0; }
.cand-dash > .eyebrow, .cand-dash > h1, .cand-dash > .lede { grid-column: 1; }
.cand-dash > .lede { margin-bottom: 8px; }
.cand-dash > .progress-head { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; flex-direction: column; text-align: center; gap: 8px; }
.cand-dash > link { display: none; }
.progress-head p { font-size: 13px; color: var(--muted); }
.progress-head p strong { color: var(--ink); }

/* "What to do next": the main action of the page */
.cand-next { border-radius: 14px; padding: 22px 26px; margin: 20px 0 14px; background: linear-gradient(135deg, rgba(214, 162, 74, .09), var(--panel) 55%); }
.cand-next strong { font: 800 20px var(--font-display); letter-spacing: -0.01em; }
.cand-next p { color: color-mix(in srgb, var(--ink) 72%, var(--bg)); }

/* Quick links: Messages (with its unread badge) used to sit at the very bottom */
.cand-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cand-quick a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
    transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.cand-quick a:hover { border-color: var(--accent); background: rgba(214, 162, 74, .08); }

/* Cards flow in two columns on wide screens; anything that needs an action spans the full width */
@media (min-width: 960px) {
    .cand-cards { column-count: 2; column-gap: 20px; }
    .cand-cards > * { break-inside: avoid; margin-bottom: 20px; }
    .cand-cards > form.dashboard-card, .cand-cards > .form-success, .cand-cards > #interview, .cand-cards > [id^="document-"],
    .cand-cards > .install-app, .cand-cards > .pulse, .cand-cards > .form-error, .cand-cards > .progress-track { column-span: all; }
}
.cand-cards > .dashboard-card { margin-bottom: 20px; }
.cand-dash .dashboard-card > h2 { font: 700 12px var(--font-body); letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }

/* Footer actions of the page */
.cand-dash > .hero__ctas { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--border); }

@media (max-width: 700px) {
    .cand-dash { grid-template-columns: minmax(0, 1fr); }
    .cand-dash > .progress-head { grid-column: 1; grid-row: auto; flex-direction: row; text-align: left; margin: 8px 0 12px; }
    .cand-next { padding: 18px; }
}

/* ============================================================
   Light theme corrections (2026-10)
   Everything above uses tokens, so most of it follows the theme; these are the few hard-coded shadows.
   ============================================================ */

:root[data-theme="light"] .to-top { box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
:root[data-theme="light"] .sector-card:hover, :root[data-theme="light"] .audience-card:hover,
:root[data-theme="light"] .guide-card:hover, :root[data-theme="light"] .region-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
:root[data-theme="light"] .button--primary:hover { box-shadow: 0 8px 22px rgba(143, 95, 12, .28); }
:root[data-theme="light"] .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
:root[data-theme="light"] .sector-card--all { background: linear-gradient(135deg, rgba(143, 95, 12, .1), transparent 70%), var(--panel); border-color: rgba(143, 95, 12, .4); }
:root[data-theme="light"] .reading-panel a:hover, :root[data-theme="light"] .nav-group__menu a:hover { background: rgba(143, 95, 12, .09); }

/* ============================================================
   Document photo guide (upload page)
   ============================================================ */

.photo-guide { margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); }
.photo-guide > summary {
    list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 14px 18px; min-height: 48px; font-weight: 600; color: var(--ink);
}
.photo-guide > summary::-webkit-details-marker { display: none; }
.photo-guide > summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; margin-left: auto; padding-left: 12px; }
.photo-guide[open] > summary::after { content: "\2212"; }
.photo-guide > summary small { color: var(--muted); font-weight: 400; font-size: 13px; }
.photo-guide__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 4px 18px 18px; }
.photo-guide__item { margin: 0; display: grid; gap: 8px; align-content: start; }
.photo-guide__item svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.photo-guide__item figcaption { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.photo-guide__item figcaption strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.pg-frame { fill: var(--panel-raised); stroke: var(--border-strong); stroke-width: 1; }
.pg-page { fill: #ECE8DA; stroke: rgba(0, 0, 0, .25); stroke-width: .8; }
.pg-lines rect { fill: #4B4B52; }
.pg-corners path { stroke: #2F9E6B; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.pg-dim { fill: rgba(0, 0, 0, .55); }
.pg-glare { fill: rgba(255, 255, 255, .92); }
.pg-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.pg-mark--ok { background: rgba(47, 158, 107, .18); color: #2F9E6B; }
.pg-mark--no { background: rgba(214, 84, 64, .16); color: #D65440; }
.photo-guide__item--good svg { outline: 2px solid rgba(47, 158, 107, .55); outline-offset: 2px; }

/* ---------- 404 and empty states ---------- */

.error-page__search { max-width: 520px; margin: 28px auto 0; }
.error-page__popular { margin: 24px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.error-page__popular + .error-page__links { margin-top: 4px; }

.thread__empty {
    display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 44ch; margin: 8px auto; padding: 28px 18px;
    border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted);
}
.thread__empty::before {
    content: ""; width: 44px; height: 44px; border-radius: 50%; background: rgba(214, 162, 74, .12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6A24A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.2A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 22px;
}

/* Shadow tokens are lighter on the light theme */
:root[data-theme="light"] { --shadow-1: 0 8px 22px rgba(0, 0, 0, .12); --shadow-2: 0 14px 34px rgba(0, 0, 0, .12); --shadow-3: 0 24px 60px rgba(0, 0, 0, .16); }
@media (max-width: 640px) { .photo-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Registration: where am I, and how much is left */
.wizard-progress__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 18px; font-size: 14px; color: var(--muted); }
.wizard-progress__summary strong { color: var(--ink); font-size: 15px; }

/* ============================================================
   Dashboard: dates on the current step, and the 90-day clock
   ============================================================ */

.progress-track__when {
    display: inline-block; margin-top: 6px; padding: 2px 9px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: var(--radius-pill); color: var(--accent); font-size: 11.5px; font-weight: 600; line-height: 1.5;
}
.progress-track__when.is-over { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); }
:root[data-theme="light"] .progress-track__when.is-over { color: #A3321F; }

.clock-bar { height: 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); overflow: hidden; margin: 4px 0 10px; }
:root[data-theme="light"] .clock-bar { background: rgba(0, 0, 0, .08); }
.clock-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--accent), #E8C07A); min-width: 6px; }
.clock-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.clock-meta strong { color: var(--ink); }

/* ============================================================
   Visual review fixes (2026-10-23)
   ============================================================ */

/* Wide screens: the language and cookie box docks at the right so it no longer covers the hero buttons and the
   line under them. Phones keep the full-width bottom sheet. */
@media (min-width: 1100px) {
    .consent-banner { left: auto; right: 16px; margin: 0; max-width: 400px; }
}

/* Inline text links get a taller hit area on touch screens. Vertical padding on an inline element does not change
   the line layout, but taps within 12 px above or below the text now count. */
@media (pointer: coarse) {
    main p a, main li a, .fee-quote a { padding-block: 12px; }
}

/* The country picker label sits above its select instead of wrapping beside it. */
.fee-quote__picker { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fee-quote__picker select { max-width: 100%; }

/* Destination pages on phones: the save/compare actions sit in one wrapped row so the first screen reaches the
   introduction instead of four stacked buttons. */
@media (max-width: 640px) {
    .shortlist-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
    .shortlist-bar .button { padding: 8px 14px; min-height: 40px; font-size: 14px; }
}

/* ============================================================
   Batch 2 polish (2026-11): touch, keyboard, high-contrast, spotlight
   ============================================================ */

/* 1. Touch screens have no real hover, so a tap used to leave a card stuck in its "lifted" state. The ":root" prefix
   lifts the specificity so this wins over the landing pages' own files whatever order they load in. */
@media (hover: none) {
    :root .role-card:hover, :root .lp-chip:hover span,
    :root .ob-btn:hover, :root .ob-chip:hover, :root .ob-trade:hover, :root .ob-card:hover,
    :root .dp-chip:hover, :root .dp-card:hover .dp-card__n,
    :root .nv-btn:hover, :root .nv-chip:hover, :root .nv-card:hover, :root .nv-trade:hover,
    :root .answer-card:hover, :root .audience-card:hover, :root .official-card:hover,
    :root .staff-app .attention__item:hover, :root .staff-app .pipeline__card:hover { transform: none; }
}

/* 2. Keyboard focus. These two controls only changed colour on focus; give them the same gold ring as everything else. */
.ch-reply:focus-visible, .st-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 3. Windows high-contrast mode removes box-shadows and background colours, so form fields that show focus by a glow
   would show nothing. A real outline survives. */
@media (forced-colors: active) {
    .auth-field input:focus, .stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus,
    main input[type="search"]:focus, .composer textarea:focus, .shell__search input:focus,
    .staff-app input:focus, .staff-app select:focus, .staff-app textarea:focus { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* 4. Spotlight: a soft glow that follows the pointer across a card (js/spotlight.js sets --mx / --my). Mouse and
   trackpad only. Nothing is drawn until the script has run, so the cards are unchanged without it. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .sector-card, .audience-card, .guide-card { position: relative; }
    .sector-card::after, .audience-card::after, .guide-card::after {
        content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
        background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 162, 74, .11), transparent 70%);
        transition: opacity var(--dur) var(--ease-out);
    }
    .sector-card[style*="--mx"]:hover::after, .audience-card[style*="--mx"]:hover::after, .guide-card[style*="--mx"]:hover::after { opacity: 1; }
    :root[data-theme="light"] .sector-card::after, :root[data-theme="light"] .audience-card::after, :root[data-theme="light"] .guide-card::after {
        background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 95, 12, .09), transparent 70%);
    }
}

/* Guides hub: category jump row + filter */
.guide-tools { margin-top: 28px; }
.guide-tools__jump { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-tools__jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.guide-tools__jump a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.guide-tools__jump a:hover, .guide-tools__jump a:focus-visible { border-color: var(--accent); color: var(--accent); }
.guide-cat[hidden], a[data-guide][hidden] { display: none; }
.guide-cat { scroll-margin-top: calc(var(--header-h, 56px) + 16px); }
