/* Public-service inspired visual layer. Kept separate from layout and print styles. */
:root {
    --ink: #202b2a;
    --muted: #52605d;
    --green-950: #003d35;
    --green-900: #004d42;
    --green-700: #006b55;
    --green-500: #167b61;
    --mint: #e5efeb;
    --mint-soft: #f3f6f4;
    --cream: #f7f8f6;
    --line: #d4ddd8;
    --radius: 6px;
    --shadow: 0 4px 16px rgba(0, 61, 53, .07);
    --civic-gold: #c5a55a;
    --focus: #ffdd00;
}

body { font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem; }
.site-shell { max-width: 1200px; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:is(a, button, select, input, textarea, summary):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--ink);
}
[id] { scroll-margin-top: 1.5rem; }

/* A compact masthead with a single brass rule. */
.site-header { border-bottom: 0; }
.site-header::after { bottom: 0; height: 3px; background: var(--civic-gold); }
.site-header .site-shell { min-height: 94px; gap: 1rem; }
.brand { gap: .85rem; flex-shrink: 0; }
.brand-mark { width: 44px; height: 48px; border-radius: 3px; border: 1px solid var(--civic-gold); color: #eed9a6; background: transparent; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.brand strong, .brand-name { font-size: 1.08rem; letter-spacing: -.02em; }
.brand small { color: #c5d8d1; font-size: .75rem; }
.main-nav { gap: 1.1rem; }
.main-nav a { padding-block: .75rem; color: #fff; font-size: .85rem; font-weight: 600; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: .5rem; }
.header-actions { gap: 1rem; }
.language-picker select { min-height: 44px; border-radius: 3px; font-size: .85rem; }
.mobile-nav-toggle { border-radius: 3px; }

/* A clear introduction, with reference facts on a contrasting surface. */
.hero { color: var(--ink); background: var(--mint-soft); border-bottom: 1px solid var(--line); }
.hero::after, .hero-panel::before { content: none; }
.hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 4rem; min-height: 510px; padding-block: 4.5rem; }
.eyebrow { font-size: .75rem; letter-spacing: .1em; font-weight: 700; }
.hero .eyebrow { color: var(--green-700); }
.hero h1 { font-size: clamp(2.7rem, 4.5vw, 3.8rem); font-weight: 750; line-height: 1.1; letter-spacing: -.035em; }
.hero h1 span { color: var(--green-700); }
.hero-copy > p { max-width: 610px; margin-block: 1.5rem 1.75rem; color: var(--muted); font-size: 1.125rem; }
.hero-actions { gap: 1.1rem 1.5rem; }
.hero .text-link { color: var(--green-900); text-decoration: underline; font-size: .95rem; }
.trust-list { gap: .6rem 1.3rem; margin-top: 1.8rem; color: var(--muted); font-size: .82rem; }
.trust-check { color: var(--green-700); }
.hero-panel { overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--civic-gold); border-radius: 4px; background: var(--white); box-shadow: var(--shadow); }
.mini-card { padding: 1.5rem; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.mini-card-main { margin: 0; padding: 1.75rem; border-bottom: 1px solid var(--line); }
.mini-card-row { gap: 0; }
.mini-card-row .mini-card + .mini-card { border-left: 1px solid var(--line); }
.mini-label { color: var(--muted); font-size: .72rem; letter-spacing: .055em; }
.mini-card strong { margin-block: .65rem; color: var(--green-900); font-size: 2.75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.mini-card-main strong { font-size: 4rem; letter-spacing: -.04em; }
.mini-card p { color: var(--muted); font-size: .85rem; }

.btn { min-height: 44px; border-radius: 4px; font-weight: 650; }
.btn-primary {
    --bs-btn-bg: var(--green-700);
    --bs-btn-border-color: var(--green-700);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--green-950);
    --bs-btn-hover-border-color: var(--green-950);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--green-950);
    --bs-btn-active-border-color: var(--green-950);
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--green-700);
    --bs-btn-disabled-border-color: var(--green-700);
    --bs-btn-disabled-color: #fff;
    box-shadow: 0 2px 0 #00382d;
}
.btn-lg { padding: .85rem 1.35rem; font-size: 1rem; }
.section { padding-block: 4.5rem; }
.section-heading { gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .how-section h2, .guidance-intro h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; }
.calculators-section { background: var(--white); }
.calculator-grid { gap: 1.25rem; }
.calculator-card { position: relative; min-height: 285px; padding: 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--green-700); border-radius: 4px; transition: border-color .15s ease, box-shadow .15s ease; }
.calculator-card:hover, .calculator-card:focus-within { transform: none; border-color: var(--green-700); box-shadow: var(--shadow); }
.card-icon { width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 3px; font-size: 1.15rem; }
.calculator-card h3 { font-size: 1.18rem; line-height: 1.4; }
.calculator-card h3 a { color: var(--green-900); }
.calculator-card h3 a:hover { text-decoration: underline; }
.calculator-card p { padding-bottom: 1.25rem; font-size: .95rem; }
.card-link { padding-top: 1rem; border-color: var(--line); font-size: .9rem; }
.card-link > span { font-size: 1.2rem; line-height: 1; }
.guidance-grid article, .guide-group, .sidebar-card, .article-sidebar-card,
.job-card, .jobs-filter-panel, .job-apply-card, .legal-nav, .legal-summary > div {
    border-radius: 4px; box-shadow: none;
}
.guide-group h3 { font-size: 1.1rem; }
.guide-group a, .article-sidebar-card a, .related-link b { font-size: .875rem; }
.jobs-home-promo, .jobs-hero, .cv-bullet-formula { background: var(--green-950); }
.jobs-home-promo { border-block: 1px solid var(--green-900); }
.jobs-home-promo .btn-primary, .cookie-banner .btn-primary {
    --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--green-950);
    --bs-btn-hover-bg: #e5efeb; --bs-btn-hover-border-color: #e5efeb; --bs-btn-hover-color: var(--green-950);
}
.source-band { background: var(--green-950); border-top: 3px solid var(--civic-gold); }
.source-band p, .jobs-home-promo p { color: #d0dfd9; }
.page-hero, .article-hero { background: var(--mint-soft); }
.page-title-wrap h1, .article-hero h1 { letter-spacing: -.03em; line-height: 1.15; }
.page-icon { border-radius: 4px; background: var(--mint); }
.breadcrumbs { flex-wrap: wrap; font-size: .875rem; }
.breadcrumbs a { text-decoration: underline; }

/* Forms retain their established structure and calculation behaviour. */
.calculator-box { border-radius: 4px; box-shadow: none; }
.calculator-box-head { background: var(--green-950); }
.step-chip { border-radius: 2px; background: var(--mint); }
.secure-note { color: #d0dfd9; }
.calculator-form legend, .form-label { font-size: 1rem; }
.form-label > span, .form-label em, .calculator-form fieldset > small { font-size: .85rem; }
.form-control, .form-select { min-height: 50px; border: 1px solid #73867d; border-radius: 3px; }
.form-control:focus, .form-select:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card span, .check-list label, .segmented, .segmented span { border-radius: 3px; }
.choice-card b, .check-list b { font-size: .95rem; }
.choice-card small, .check-list small { font-size: .82rem; }
.choice-card input:focus-visible + span, .segmented input:focus-visible + span, .consent-switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
.result-card { border-radius: 4px; background: var(--green-950); box-shadow: none; }
.result-warning { background: #78510d; }
.sidebar-card p, .article-sidebar-card p, .disclaimer p, .article-disclaimer p { font-size: .875rem; }
.quick-answer, .example-box, .worked-example, .legal-callout, .article-cta, .related-guide-grid a { border-radius: 3px; }
.article-section p, .article-section li, .content-section p, .plain-steps { font-size: 1rem; }
.site-footer { border-top: 4px solid var(--civic-gold); background: var(--green-950); color: #c5d8d1; }
.footer-grid > div > a:not(.brand), .footer-link-button { color: #d0dfd9; font-size: .875rem; }
.footer-grid > div > p { font-size: .875rem; }
.footer-bottom p { font-size: .8rem; }
.cookie-banner { border-radius: 4px; border-top: 3px solid var(--civic-gold); background: var(--green-950); }
.cookie-banner p { font-size: .85rem; }
.consent-dialog, .consent-option { border-radius: 4px; }

@media (min-width: 901px) and (max-width: 1150px) {
    .site-header .site-shell { flex-wrap: wrap; padding-block: 1rem; }
    .header-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 900px) {
    .site-header .site-shell { min-height: 80px; }
    .main-nav { border-radius: 0 0 4px 4px; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; min-height: 0; padding-block: 3.5rem; }
    .hero-panel { max-width: 100%; }
    .mini-card-main { padding: 1.5rem; }
}
@media (max-width: 680px) {
    .site-shell { padding-inline: 1.25rem; }
    .site-header .site-shell { padding-inline: 1rem; gap: .6rem; }
    .brand { gap: .6rem; }
    .brand strong { font-size: .95rem; }
    .brand-mark { width: 36px; height: 42px; font-size: 1.1rem; }
    .header-actions { gap: .5rem; }
    .language-picker select { max-width: 112px; }
    .hero-grid { padding-block: 2.75rem; gap: 2rem; }
    .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .trust-list { font-size: .8rem; }
    .section { padding-block: 3rem; }
    .calculator-card { min-height: 0; }
    .card-link { margin-top: .5rem; }
    .mini-card { padding: 1.25rem; }
    .mini-card-main strong { font-size: 3.25rem; }
    .calculator-form { padding: 1.25rem; }
    .cookie-banner { max-height: calc(100dvh - 1rem); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
