/* USWDS-style theme for the homepage and the accessibility pages (owner's choice, 2026-11-26; mockup "A11y · USWDS style"
   on the design canvas). Loaded after site.css (and problem-pages.css) on: /, /accessibility-checker,
   /accessibility-checker-result, /payment-successful, /pdf-accessibility-examples, /pdf-accessibility-errors/*,
   /about, /privacy, /de/impressum, /404.html (since 2026-12-01),
   and their /uk /de /fr /es copies (built by tools/build_i18n_pages.py and tools/build_problem_pages.py).
   Follows the U.S. Web Design System's public tokens (colors, type, focus, components); it uses no government
   branding (no banner, seal or "official website" wording). Only colors, type, borders and corners change; layout
   stays as site.css sets it. Fonts are self-hosted: Public Sans (text) and Merriweather (headings), SIL OFL,
   see /fonts/OFL-*.txt. Bump ?v= on the English pages and THEME_V in build_problem_pages.py after a change. */

@font-face { font-family: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/public-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/public-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/public-sans-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/public-sans-latin-ext-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/fonts/merriweather-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Merriweather"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(/fonts/merriweather-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-style: normal; font-display: swap; font-weight: 900;
  src: url(/fonts/merriweather-latin-900-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Merriweather"; font-style: normal; font-display: swap; font-weight: 900;
  src: url(/fonts/merriweather-latin-ext-900-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* USWDS default theme tokens */
  --navy: #162e51;           /* primary-darker */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1b1b1b;           /* base-darkest */
  --muted: #565c65;          /* base-dark, 6.9:1 on white */
  --border: #dfe1e2;         /* base-lighter */
  --brand: #005ea2;          /* primary */
  --brand-dark: #1a4480;     /* primary-dark */
  --brand-soft: #eff6fb;     /* primary-lightest */
  --info-soft: #e7f6f8;
  --info: #00bde3;
  --pass: #00721e;           /* readable green for text; tags use #008817 */
  --pass-soft: #ecf3ec;
  --warn: #6f4e00;
  --warn-soft: #faf3d1;
  --fail: #b50909;
  --fail-soft: #f4e3db;
  --radius: 4px;
  --shadow: none;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
}

body { font-size: 17px; line-height: 1.6; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }
h1 { font-weight: 900; line-height: 1.18; font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h2 { font-size: 1.55rem; line-height: 1.3; }
h3 { font-family: var(--font); font-weight: 700; font-size: 1.15rem; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
.guide a:visited, .content a:visited { color: #54278f; }
:focus-visible { outline: 4px solid #2491ff; outline-offset: 0; }
/* the USWDS focus blue is under 3:1 on grey and tinted backgrounds: darker ring there (WCAG 1.4.11, 2026-12-01) */
.site-footer :focus-visible, .privacy-note :focus-visible, .alert :focus-visible, .fix-box :focus-visible, .seen-box :focus-visible,
.pp-side :focus-visible { outline-color: var(--brand-dark); }

/* header and footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 80px; }
.logo { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: var(--text); }
.logo svg { width: 28px; height: 28px; }
@media (max-width: 480px) { .site-header .wrap { height: 64px; } .logo { font-size: 1.05rem; gap: 6px; white-space: nowrap; } .logo svg { width: 22px; height: 22px; } .site-flags { gap: 6px; } }
.logo svg path { stroke: var(--navy); }
.logo svg path:last-child { stroke: #008817; }
.site-footer { background: #f0f0f0; border-top: 0; color: var(--text); padding: 28px 0 40px; }
.site-footer a { color: var(--text); font-weight: 600; }

/* hero: a full-width navy band (USWDS hero/section-dark); the card that follows overlaps its bottom edge */
.hero { position: relative; padding: 56px 0 64px; margin-bottom: 32px; background: var(--navy); color: #fff;
  box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.hero h1 { color: #fff; }
.hero .lead { color: #e1e7f1; font-size: 1.25rem; max-width: 760px; }
.hero a { color: #a1d3ff; }
.hero + .check-form, .hero + .tools { position: relative; margin-top: -72px; }
.hero + .check-form { box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.hero-tight { padding: 36px 0 44px; }
/* the error pages put the title in a column beside the upload card: no band there */
.pp-head .hero { background: none; color: var(--text); box-shadow: none; clip-path: none; padding: 24px 0 8px; margin-bottom: 0; }
.pp-head .hero h1 { color: var(--navy); }
.pp-head .hero .lead { color: var(--muted); }

/* cards (USWDS card: 2px base-lighter border, rounded) */
.card { border: 2px solid var(--border); border-radius: 8px; box-shadow: none; }
.card h2 { font-size: 1.3rem; }
.tool-card { border-top: 6px solid var(--brand); }

/* form controls */
label.field select, label.field input[type="text"], .custom-size input, .limit-row input[type="number"] {
  border: 1px solid #565c65; border-radius: 0; min-height: 40px; }
.fix-check input, .limit-row input[type="range"] { accent-color: var(--brand); }
.dropzone { border: 1px dashed #71767a; border-radius: 0; background: #fff; }
.dropzone.uppy-is-drag-over, .dropzone.drag-over { border: 1px solid var(--brand); background: var(--brand-soft); }
.dropzone .dz-icon { color: var(--brand); }
.dropzone .dz-title { font-size: 1.1rem; }

/* buttons (usa-button) */
.btn { border-radius: 4px; border: 0; background: var(--brand); color: #fff; font-weight: 700; padding: 12px 20px; min-height: 44px; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { background: var(--navy); }
.btn-secondary { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-secondary:hover { background: #fff; color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand-dark); }
.btn-sm { padding: 6px 12px; min-height: 36px; }
.units-toggle { border-color: #565c65; border-radius: 4px; }
.units-toggle button.on { background: var(--brand); }
.link-btn { color: var(--brand); }

/* alerts (usa-alert): a colored left bar on a tinted background */
.privacy-note { background: var(--info-soft); border-left: 8px solid var(--info); padding: 14px 16px; color: var(--text); font-size: .92rem; }
.privacy-note svg { color: var(--text); }
.alert { border: 0; border-radius: 0; border-left: 8px solid; color: var(--text); }
.alert-error { background: var(--fail-soft); border-left-color: #d54309; }
.alert-warn { background: var(--warn-soft); border-left-color: #ffbe2e; }
.progress-bar { background: var(--border); border-radius: 0; height: 10px; }
.progress-bar span { background: var(--brand); }

/* PASS / WARNING / FAIL (usa-tag) */
.badge, .pill { border-radius: 2px; text-transform: uppercase; letter-spacing: .03em; }
.badge-pass, .pill-pass { background: #008817; color: #fff; }
.badge-warn, .pill-warn { background: #ffbe2e; color: var(--text); }
.badge-fail, .pill-fail { background: var(--fail); color: #fff; }
.issues .ico-pass { color: #008817; }

/* summary boxes (usa-summary-box) */
.fix-box, .seen-box { background: var(--info-soft); border: 1px solid #99deea; border-radius: 4px; }
.fix-form { border: 1px solid var(--border); border-radius: 4px; }
.fix-total .price, .fix-form .price { font-family: var(--serif); font-weight: 900; }

/* numbered steps as a process list (usa-process-list) */
.card > ol, h2#how-it-works + ol, .fix-steps { list-style: none; counter-reset: step; margin: 0 !important; padding: 8px 0 0 20px !important; }
.card > ol > li, h2#how-it-works + ol > li, .fix-steps > li { counter-increment: step; position: relative; margin: 0 !important;
  border-left: 8px solid var(--border); padding: 0 0 22px 30px; }
.card > ol > li:last-child, h2#how-it-works + ol > li:last-child, .fix-steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.card > ol > li::before, h2#how-it-works + ol > li::before, .fix-steps > li::before { content: counter(step); position: absolute; left: -24px; top: -6px;
  width: 32px; height: 32px; border: 4px solid var(--text); border-radius: 50%; background: #fff; color: var(--text);
  font-weight: 800; font-size: 1rem; line-height: 32px; text-align: center; }

/* check lists: a green check-circle icon (usa-icon-list) */
.check-list li { padding-left: 34px; }
.check-list li::before { left: 0; top: .15em; width: 22px; height: 22px; border: 0; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23008817' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center / contain; }

/* FAQ: each question as an open accordion panel (usa-accordion--bordered) */
.faq h3 { font-family: var(--font); font-size: 1.02rem; background: #f0f0f0; padding: 14px 20px; margin: 10px 0 0; }
.faq h3 + p { border: 4px solid #f0f0f0; border-top: 0; padding: 14px 20px; margin: 0; }

/* guides */
.content h2, .guide h2 { margin-top: 1.8em; }
.toc { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 0; }
.data { border: 1px solid var(--text); border-radius: 0; }
.data th, .data td { border-bottom: 1px solid var(--text); }
.data thead th { background: var(--border); }
.diagram { border: 1px solid var(--border); border-radius: 4px; }
.answer { border-left-color: var(--brand) !important; }

/* error pages: the upload card on the right */
.pp-side .check-form { background: var(--brand-soft); border: 2px solid #73b3e7; border-radius: 8px; }
.pp-side .dropzone { background: #fff; border-color: #71767a; }
.crumbs { color: var(--muted); }

/* long words (mostly German) break instead of pushing the page sideways (2026-12-01) */
body { overflow-wrap: break-word; }
@media (max-width: 640px) {
  h1, h2 { hyphens: auto; }
  .hero .lead { font-size: 1.05rem; }
}

/* very narrow phones: the country flags go under the logo instead of off the screen (2026-12-01) */
@media (max-width: 360px) {
  .site-header .wrap { height: auto; min-height: 64px; flex-wrap: wrap; gap: 4px 12px; padding-top: 12px; padding-bottom: 12px; }
}
