/* ==========================================================================
   JOBSITE CALCULATORS — design system (shared/global styles)
   Palette: steel charcoal + raw-concrete paper + hi-vis safety amber
   Type: Oswald (display / stencil), Inter (body), IBM Plex Mono (data)

   Loaded on every page. Calculator-page-only rules live in calc.css,
   homepage-only rules live in home.css — split out so each page type only
   downloads the CSS it actually uses (Lighthouse "reduce unused CSS").
   ========================================================================== */

/* The hidden attribute must always win. A plain [hidden] rule is specificity
   (0,1,0), so any component rule that sets display — .footer-nav a is
   display:inline-block, for one — silently overrides it and renders an element
   the JS believes is hidden. That produced a visible "Cookie settings" link in
   the footer that did nothing, because the script had never revealed it. Any
   control that is hidden until a dependency is ready depends on this rule. */
[hidden] { display: none !important; }


/* Self-hosted fonts (formerly fonts.googleapis.com/fonts.gstatic.com) —
   latin subset only (U+0000-00FF covers en/es/fr/de/pt, incl. accents and
   ß); dropped the latin-ext subset since none of our locales need it.
   Oswald and Inter ship as variable fonts from Google, so one file covers
   several weights — multiple @font-face rules below intentionally point
   at the same file per family; the browser picks the right instance from
   the declared font-weight, and it's one HTTP request either way. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/oswald-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/oswald-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/oswald-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* color */
  --charcoal:      #1c2023;
  --charcoal-700:  #2a3034;
  --steel-600:     #4a5a63;
  --steel-300:     #8f9ba1;
  --concrete-100:  #f6f5f1;
  --concrete-200:  #ece9e1;
  --concrete-300:  #d8d6ce;
  --paper:         #fffdf9;
  --safety-500:    #ffb81c;
  --safety-600:    #e8a100;
  --caution-600:   #d9432a;
  --ok-600:        #2f7a4f;
  --ink:           #1c2023;

  /* type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* layout */
  --max-w: 1120px;
  --radius: 3px;
  --border: 1px solid var(--concrete-300);
  --shadow-card: 0 1px 2px rgba(28,32,35,.06), 0 8px 24px rgba(28,32,35,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--concrete-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--steel-600); }
a:hover { color: var(--charcoal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h3 { font-size: 1.05rem; letter-spacing: .04em; }

p { margin: 0 0 1em; color: var(--charcoal-700); }

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

:focus-visible {
  outline: 3px solid var(--safety-500);
  outline-offset: 2px;
}

/* ---------------------------------- header --------------------------- */
.site-header {
  background: var(--charcoal);
  border-bottom: 4px solid var(--safety-500);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.brand .mark {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
  background: var(--safety-500);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .word-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand .word-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--safety-500);
  margin-top: .2rem;
}
.main-nav { display: flex; align-items: center; gap: 1.6rem; }

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none; cursor: pointer; user-select: none;
  color: var(--concrete-200);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .06em; font-size: .82rem;
  display: flex; align-items: center; gap: .35rem;
  padding: .3rem 0;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: "▾"; font-size: .62rem; color: var(--steel-300);
  transition: transform .15s ease;
}
.nav-dropdown[open] summary::after { transform: rotate(180deg); }
.nav-dropdown summary:hover, .nav-dropdown[open] summary { color: var(--safety-500); }

.dropdown-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: var(--charcoal);
  border: 1px solid var(--charcoal-700); border-top: 3px solid var(--safety-500);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  display: flex; gap: 2.2rem; padding: 1.5rem 1.75rem;
  min-width: 560px; z-index: 60;
}
.dropdown-col { display: flex; flex-direction: column; min-width: 130px; }
.dropdown-label {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--steel-300);
  margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--charcoal-700);
}
.dropdown-panel a {
  color: var(--concrete-200); text-decoration: none;
  font-size: .9rem; padding: .32rem 0;
}
.dropdown-panel a:hover, .dropdown-panel a[aria-current="page"] {
  color: var(--safety-500); font-weight: 600;
}
/* Full-width row under the calculator columns, linking to the /calculators/
   hub. flex-basis:100% forces its own line; the panel must wrap to allow it. */
.dropdown-panel { flex-wrap: wrap; }
.dropdown-all {
  flex-basis: 100%; margin-top: .35rem; padding-top: .75rem;
  border-top: 1px solid var(--charcoal-700);
  font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em;
}

/* ------------------------- favorite star in the nav dropdown ------------- */
/* The tile stars are styled in home.css, which only the homepage loads. These
   sit in the Calculators menu on every page, so they belong here. */
.nav-fav-row { display: flex; align-items: center; gap: .4rem; }
.nav-fav-row a { flex: 1; }
.nav-fav-star {
  background: none; border: none; cursor: pointer; line-height: 1;
  font-size: 1rem; color: var(--steel-300); padding: .3rem;
  transition: color .12s ease, transform .12s ease;
}
.nav-fav-star:hover { color: var(--safety-500); transform: scale(1.15); }
.nav-fav-star[aria-pressed="true"] { color: var(--safety-500); }

/* --------------------------------- /calculators/ hub -------------------- */
.calc-hub { padding-bottom: 2rem; }
.calc-hub h2 { margin-top: 2rem; }
.hub-group {
  display: grid; gap: .6rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: .5rem;
}
/* Dark text: these sit on the light page background, not on the dark nav bar
   the dropdown colours were taken from. --concrete-200 measured 1.11:1 here,
   effectively invisible. Charcoal is 15.04:1. The amber accent is only 2.02:1
   as text on this background, so hover moves the accent to the underline and
   leaves the text dark — visible feedback that still passes AA in every state. */
.hub-group a {
  color: var(--charcoal); text-decoration: none;
  padding: .5rem 0; border-bottom: 1px solid var(--concrete-300);
}
.hub-group a:hover { border-bottom-color: var(--safety-500); }
.hub-group-intro { max-width: 62ch; color: var(--steel-600); margin: 0 0 1rem; }

/* --------------------------------- 404 page ----------------------------- */
.notfound { padding-bottom: 2rem; }
.notfound-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 2rem;
}
/* .btn-primary is width:100% by default — it is built for full-width form
   buttons inside calculator panels. Every other place it appears as a link
   overrides that the same way (.donate-banner, .donate-cta); match them. */
.notfound-actions .btn-primary {
  width: auto; padding: .8rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.6rem; border-radius: var(--radius);
  /* Dark on the light page background — --paper measured 1.07:1 here. The
     border carries the hover accent so the label text stays readable. */
  border: 1px solid var(--steel-600); color: var(--charcoal);
  background: transparent; text-decoration: none;
  font-family: var(--font-display); font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.btn-secondary:hover { border-color: var(--safety-500); background: var(--concrete-200); }
.notfound-label {
  font-family: var(--font-mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--steel-600); margin: 0 0 .5rem;
}
.notfound-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.notfound-links a { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--concrete-300); }
.notfound-links a:hover { text-decoration-color: var(--safety-500); }
.main-nav a {
  color: var(--concrete-200);
  text-decoration: none;
  font-size: .82rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--safety-500); }
.main-nav a.donate-link {
  background: var(--safety-500); color: var(--charcoal) !important;
  padding: .4rem .8rem; border-radius: 3px;
}
.main-nav a.donate-link:hover { background: var(--paper); color: var(--charcoal) !important; }

.lang-dropdown summary { font-size: .78rem; letter-spacing: .04em; gap: .3rem; }
.lang-globe { font-size: .85rem; }
.lang-panel.dropdown-panel {
  min-width: 160px; flex-direction: column; gap: 0; padding: .6rem .9rem;
}
.lang-panel a { display: block; }
.lang-panel a[aria-current="true"] { color: var(--safety-500); font-weight: 600; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none; border: 1px solid var(--steel-300);
    color: var(--paper); border-radius: var(--radius);
    padding: .65rem .85rem; font-size: 1rem;
  }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--charcoal); padding: 1rem 20px; gap: .9rem;
    border-bottom: 4px solid var(--safety-500);
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .main-nav.is-open .nav-dropdown { width: 100%; }
  .dropdown-panel {
    position: static; transform: none; min-width: 0;
    background: transparent; border: none; box-shadow: none;
    flex-direction: column; gap: 1rem; padding: .9rem 0 .2rem 1rem;
  }
  .dropdown-label { color: var(--steel-300); border-bottom-color: var(--charcoal-700); }
  .dropdown-panel a { color: var(--concrete-200); }
  .dropdown-panel a:hover, .dropdown-panel a[aria-current="page"] { color: var(--safety-500); }
}

/* --------------------------------- hero (page-level, non-homepage) ------- */
.page-hero { padding: 2.25rem 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--steel-600); margin-bottom: .6rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--safety-500);
}
.dim-rule {
  border: none; height: 1px; background: var(--concrete-300);
  position: relative; margin: 1.5rem 0 2rem;
}
.dim-rule::before, .dim-rule::after {
  content: ""; position: absolute; top: -3px; width: 1px; height: 7px;
  background: var(--concrete-300);
}
.dim-rule::before { left: 0; }
.dim-rule::after { right: 0; }

/* --------------------------------- buttons (used everywhere) ------------ */
.btn-primary {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
  background: var(--safety-500); color: var(--charcoal);
  border: none; border-radius: var(--radius);
  padding: .85rem 1.2rem; width: 100%; cursor: pointer;
  transition: background .15s ease;
}
.btn-primary:hover { background: var(--safety-600); }

.btn-ghost {
  font-family: var(--font-mono); font-size: .78rem;
  background: none; border: 1px solid var(--concrete-300); color: var(--steel-600);
  border-radius: var(--radius); padding: .5rem .8rem; cursor: pointer; margin-top: .6rem; width: 100%;
}
.btn-ghost:hover { border-color: var(--steel-600); color: var(--charcoal); }

/* --------------------------------- footer -------------------------------- */
.site-footer {
  background: var(--charcoal); color: var(--steel-300);
  margin-top: 3rem; padding: 2.25rem 0;
  font-size: .82rem;
  border-top: 4px solid var(--safety-500);
}
.site-footer a { color: var(--concrete-200); text-decoration: none; }
.site-footer a:hover { color: var(--safety-500); }

.footer-nav {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .05em; font-size: .78rem;
  padding-bottom: 1.4rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--charcoal-700);
}
.footer-nav a { display: inline-block; padding: .3rem 0; }
.footer-nav a[aria-current="page"] { color: var(--safety-500); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem;
}

/* opacity .9, not .65 — same composited-colour trap as the breadcrumb above.
   --steel-300 on --charcoal is a healthy 5.76:1, but .65 opacity composited it
   down to #677075 at 3.24:1 and failed AA. .9 reads as the same quiet footer
   detail at 4.95:1. */
.version-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--steel-300);
  opacity: .9;
  margin-right: .5em;
}
.version-tag::after { content: " ·"; }

.disclaimer { font-size: .76rem; color: var(--steel-600); margin-top: .5rem; }

/* ------------------------------ cross-site promo -------------------------- */
.cross-promo {
  background: var(--concrete-200); border: 1px dashed var(--concrete-300);
  border-radius: var(--radius); padding: 1rem 1.5rem; margin: 2.25rem 0;
  text-align: center; font-size: .92rem; color: var(--charcoal-700);
}
.cross-promo a { font-weight: 700; color: var(--safety-600); text-decoration: none; }
.cross-promo a:hover { text-decoration: underline; }
.footer-crosslink {
  font-family: var(--font-mono); font-size: .78rem; color: var(--steel-300);
  margin: 0 0 1.1rem;
}
.footer-crosslink a { color: var(--concrete-200); font-weight: 600; }
.footer-crosslink a:hover { color: var(--safety-500); }

/* ------------------------------ static content pages ---------------------- */
.legal-content { max-width: 76ch; }
.legal-content h2 { margin-top: 2rem; }
.legal-content ul { color: var(--charcoal-700); padding-left: 1.2rem; }
.legal-content li { margin-bottom: .4rem; }
.updated-note {
  font-family: var(--font-mono); font-size: .78rem; color: var(--steel-600);
  margin-bottom: 1.5rem;
}
.contact-card {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-card); max-width: 46ch;
}
.contact-card .value {
  font-family: var(--font-mono); font-size: 1.1rem; word-break: break-word;
}
.legal-note {
  background: var(--concrete-200); border: 1px solid var(--concrete-300);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  font-size: .86rem; color: var(--charcoal-700); margin-bottom: 1.75rem;
}

/* ------------------------------ donate ---------------------------------- */
.donate-banner {
  background: var(--charcoal); color: var(--paper);
  border-radius: var(--radius); border: 1px solid var(--charcoal-700);
  border-left: 4px solid var(--safety-500);
  padding: 1.75rem 2rem; margin: 2.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.donate-banner .copy { max-width: 56ch; }
.donate-banner h3 { color: var(--paper); margin-bottom: .4rem; }
.donate-banner p { color: var(--steel-300); margin: 0; font-size: .92rem; }
.donate-banner .btn-primary { width: auto; padding: .8rem 1.6rem; flex-shrink: 0; }

.donate-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1.75rem 0;
}
@media (max-width: 720px) { .donate-tiers { grid-template-columns: 1fr; } }
.donate-tier {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-card);
}
.donate-tier .amount {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--charcoal);
}
.donate-tier p { font-size: .88rem; margin: .5rem 0 0; }

.donate-cta {
  text-align: center; padding: 2rem; background: var(--paper);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  margin: 1.75rem 0;
}
.donate-cta .btn-primary { width: auto; padding: .95rem 2.2rem; display: inline-block; text-decoration: none; }
.donate-cta p.hint { margin-top: .9rem; }

/* ------------------------------ footer clear-data ------------------------- */
.footer-nav .footer-clear-data {
  background: none; border: none; cursor: pointer;
  font: inherit; text-transform: inherit; letter-spacing: inherit;
  color: var(--concrete-200); padding: .3rem 0;
}
.footer-nav .footer-clear-data:hover { color: var(--safety-500); }

/* ------------------------------ "Your data" popup (injected by main.js on any page) */
.data-settings-overlay {
  position: fixed; inset: 0; background: rgba(28,32,35,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; z-index: 200;
}
.data-settings-overlay[hidden] { display: none; }
.data-settings-panel {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-card); max-width: 52ch; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 2rem;
  position: relative;
}
.data-settings-panel h2 { margin-bottom: 1rem; }
.data-settings-panel ul { color: var(--steel-600); padding-left: 1.2rem; }
.data-settings-panel li { margin-bottom: .4rem; font-size: .92rem; }
.data-settings-panel .hint { margin-top: .75rem; }
.data-settings-close {
  position: absolute; top: .7rem; right: .7rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--steel-600); padding: .5rem;
}
.data-settings-close:hover { color: var(--caution-600); }
.data-settings-summary {
  font-family: var(--font-mono); font-size: .8rem; background: var(--concrete-100);
  border: var(--border); border-radius: var(--radius); padding: .8rem 1rem; margin-top: 1.25rem;
}
.data-settings-actions { margin-top: 1.25rem; }
.data-settings-actions .btn-primary { width: auto; padding: .75rem 1.4rem; }

/* ---------------------------------- print --------------------------------- */
/* A few selectors here (.calc-card form, .results-actions-bar, .cost-fields,
   .recents-strip) are calculator-page-only and technically belong in
   calc.css, but this block is small (~20 lines) and print styling doesn't
   depend on which stylesheet defines it — not worth a 4th file to split. */
@media print {
  .site-header, .main-nav, .nav-toggle, .donate-banner,
  .calc-card form, .results-actions-bar, .cost-fields, .recents-strip,
  .site-footer, .cross-promo, .support .faq, .page-hero .eyebrow,
  .data-settings-overlay {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .results-panel {
    position: static; background: #fff; color: #000; box-shadow: none; border: 1px solid #999;
  }
  .results-panel .eyebrow, .stamp .unit, .stamp .label, .result-line .k,
  .recents-strip .recents-heading, .cost-panel .cost-heading { color: #333; }
  .stamp { border-color: #000; }
  .stamp .value, .result-line .v { color: #000; }
  .cost-panel { display: block !important; }
  [data-print-only] { display: block !important; margin-bottom: 1rem; font-size: .8rem; color: #333; }
  a { color: #000; text-decoration: none; }
}
[data-print-only] { display: none; }

/* ------------------------------------------------ breadcrumb trail ------- */
/* --steel-600, not --steel-300. The lighter token renders #8f9ba1 on the
   --concrete-100 page ground, which is 2.61:1 — well under the 4.5:1 WCAG AA
   minimum for text this size, and it was failing the axe check that Lighthouse
   runs. --steel-600 is 6.56:1 on the same ground and is already in the palette,
   so this stays inside the existing design rather than inventing a colour.
   Measured, not eyeballed: see the ratios in the commit that introduced this. */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--steel-600);
  margin-bottom: .75rem;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
/* opacity .9, not .75. The current-page crumb is meant to read as dimmer than
   its siblings, and it still does — but `opacity` composites against the page
   ground, so .75 turned an otherwise-passing colour into #758186 at 3.67:1.
   .9 keeps the visual distinction and lands at 5.14:1. Any change here has to
   be checked as the *composited* colour, not the declared one. */
.breadcrumb [aria-current="page"] { color: inherit; opacity: .9; }
.breadcrumb-sep { opacity: .5; }

/* ---- Accessibility -------------------------------------------------------
   Skip link: visually hidden until focused, then pinned to the top-left. It
   is the first focusable thing on every page (injected by build-i18n.js), so
   a keyboard or screen-reader user can jump straight to the calculator
   instead of tabbing through the whole nav and the calculators dropdown on
   every page. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--charcoal);
  color: var(--charcoal);
  border-bottom: 3px solid var(--safety-500);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
/* The skip target should not draw a focus ring when it receives programmatic
   focus from the skip link — the visible jump is the feedback. */
#main:focus {
  outline: none;
}

/* Respect the OS "reduce motion" setting. People who set it often do so
   because motion triggers nausea or migraine, so this is a real
   accessibility need rather than a preference. Durations are near-zero
   rather than zero so transitionend listeners still fire. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
