/* ==========================================================================
   RetirementDateCalc — global stylesheet
   Phase 1: design tokens + minimal base only.
   No frameworks. System font stack (fast, private). Light by default with a
   prefers-color-scheme dark variant. Component styles arrive in later phases
   (header/nav in Phase 3, tool UI in Phase 6).
   ========================================================================== */

:root {
  /* ---- color tokens ---- */
  /* Palette: Option 1 "Teal, Lifted" (owner-approved 2026-11-19,
     applied exactly as defined in the approved mockup's palette.css).
     The dark-scheme block below is unchanged, as in the mockup. */
  --bg: #FFFFFF;
  --surface: #E7F4EF;
  --text: #0D2137;
  --muted: #43617D;
  --border: #B9D9CE;
  --accent: #0B7A67;            /* lifted teal */
  --accent-contrast: #FFFFFF;
  --success: #177245;
  --danger: #b91c1c;

  /* ---- type scale ---- */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;

  /* ---- type + layout tokens ---- */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max-width: 72rem;           /* single content column */
  --measure: 72ch;              /* comfortable article line length */
  --radius: 0.5rem;

  /* ---- spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1520;
    --surface: #16202e;
    --text: #eef3f7;
    --muted: #9fb0c3;
    --border: #2b3a4e;
    --accent: #2dd4bf;
    --accent-contrast: #0e1520;
    --success: #4ade80;
    --danger: #f87171;
  }
}

/* ---- minimal base (tokens applied, nothing more) ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

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

/* Skip link: visible on keyboard focus only. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Wordmark: "Date" renders in the accent color (matches logo spec). */
.site-logo__accent { color: var(--accent); }

/* ==========================================================================
   Phase 2 — components.
   Mobile-first. One column on small screens; multi-column from 640px/1024px.
   All color comes from the Phase 1 tokens, so dark mode just works.
   ========================================================================== */

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-3); }

.lede {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: var(--measure);
}

/* Guide byline: "By Ian Welkins" under the H1. */
.byline {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: calc(var(--space-3) * -1) 0 var(--space-3);
}
.byline a { color: inherit; }

/* "Last verified" line under the H1 (SEO fix 2026-11-18): the date the
   page's rules were last checked against their official source. */
.last-verified {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: calc(var(--space-3) * -1) 0 var(--space-3);
}

/* Article/guide body: comfortable line length. */
.prose { max-width: var(--measure); }
.prose li { margin-bottom: var(--space-2); }

/* ---------- header + navigation ---------- */

.site-header {
  position: relative;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.site-logo { display: inline-flex; line-height: 0; }
.site-logo img { height: 2.25rem; width: auto; display: block; }

/* ---------- site menu: "Open menu" button + mega panel ----------
   Post-deploy fix (2026-11-19, owner's instruction): the inline nav and
   its Calculators dropdown are retired. One button toggles a full-width
   grouped panel under the header; on mobile the same panel is a left
   slide-in drawer (see the max-width:767px query). Panel visibility is
   driven by the hidden attribute + body.menu-open (see main.js) — never
   by :hover/:focus-within, which previously kept the old dropdown
   visible after its aria state had already closed. */

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.menu-button:hover { background: var(--surface); }
/* Hamburger bars; they become an X while the menu is open. */
.menu-button__icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
  flex: none;
}
.menu-button__icon::before,
.menu-button__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.menu-button__icon::before { top: -6px; }
.menu-button__icon::after { top: 6px; }
body.menu-open .menu-button__icon { background: transparent; }
body.menu-open .menu-button__icon::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-button__icon::after { top: 0; transform: rotate(-45deg); }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 32px rgba(15, 23, 42, 0.12);
  z-index: 65;
}
.mega-panel[hidden] { display: none; }
.mega-panel__inner { padding-block: var(--space-4); }
.mega-panel__bar { display: none; }
.mega-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  margin-left: calc(-1 * var(--space-3));
  margin-bottom: var(--space-3);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 700;
  text-decoration: none;
}
.mega-home:hover { background: var(--surface); }
/* Fleet standard: the current page is a highlighted pill. */
.mega-panel a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-contrast);
}
.mega-panel a[aria-current="page"]:hover { background: var(--accent); filter: brightness(1.1); }
.mega-cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1099px) {
  .mega-cols { grid-template-columns: repeat(3, 1fr); }
}
.mega-col__head { margin: 0 0 var(--space-2); }
.mega-col__toggle {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
}
.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-col li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.mega-col li a:hover { background: var(--surface); }
.mega-col__hub { border-top: 1px solid var(--border); margin-top: var(--space-1); padding-top: var(--space-1); }
.mega-col__hub a { font-weight: 600; color: var(--accent); }
/* The backdrop only exists on mobile (see the max-width:767px query). */
.menu-backdrop { display: none; }

/* ---------- hero ---------- */

.hero { padding-block: var(--space-6) var(--space-4); }
.hero h1 { font-size: var(--fs-4xl); margin-bottom: var(--space-2); }
.trust-line { color: var(--success); font-weight: 600; }

/* ---------- tool ---------- */

.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}
.tool__step { margin-bottom: var(--space-4); }
.tool__step:last-child { margin-bottom: 0; }
.tool__step-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: var(--fs-sm);
  font-weight: 800;
  flex: none;
}
.tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- results ---------- */

.results { margin-top: var(--space-4); }
.result-primary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.result-primary__label {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.result-primary__date {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.result-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.result-card__label {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.result-card__value { font-size: var(--fs-xl); font-weight: 700; }
.result-card__note {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: var(--space-1);
}

/* Live countdown line (ticking clock). */
.countdown-line {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin: var(--space-3) 0;
}
.countdown-clock {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* Radio option rows (tool steps). */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  cursor: pointer;
}
.radio-row input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
  flex: none;
}

/* Screen-reader-only text (e.g. table captions that would repeat headings). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.calc-note {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: var(--space-3);
}

/* ---------- on-this-page table of contents ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-5);
}

.toc h2 {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-2);
}

.toc ol {
  margin: 0;
  padding-left: var(--space-4);
}

.toc li {
  margin-bottom: var(--space-1);
}

/* ---------- cards (tool / guide listings) ---------- */

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-5);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
/* Formula blocks (Excel guide): long lines scroll inside the block,
   never the page. */
pre {
  overflow-x: auto;
}
/* Inline formulas are unbroken tokens; let one break rather than push
   the page wider than the screen (Excel guide template steps). */
code {
  overflow-wrap: anywhere;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
caption {
  text-align: left;
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
}
th, td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th { background: var(--surface); font-weight: 700; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ---------- breadcrumb ---------- */

/* The breadcrumb is a direct child of <main>, outside the content's
   .container div, so it carries the container treatment itself —
   same max-width, centring and inline padding — to align with the
   page column instead of sitting flush to the viewport edge. */
.breadcrumb {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
  margin-bottom: var(--space-3);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: var(--space-1);
  color: var(--muted);
}
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- FAQ (native details/summary) ---------- */

.faq { margin-bottom: var(--space-5); }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: var(--space-2);
}
.faq summary {
  cursor: pointer;
  padding: var(--space-3);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  line-height: 1;
}
.faq details[open] summary::before { content: "–"; }
.faq__answer { padding: 0 var(--space-3) var(--space-3); }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: var(--space-6);
  padding-block: var(--space-5) var(--space-4);
}
.site-footer__brand { margin-bottom: var(--space-4); max-width: var(--measure); }
.site-footer__logo img { height: 2rem; width: auto; }
.site-footer__tagline { color: var(--muted); margin-bottom: var(--space-1); }
.site-footer__badge { color: var(--success); font-weight: 600; margin: 0; }
.site-footer__author { margin: var(--space-3) 0 var(--space-1); }
.site-footer__author a { color: var(--accent); font-weight: 600; text-decoration: none; }
.site-footer__author a:hover { text-decoration: underline; }
.site-footer__profiles { color: var(--muted); margin: 0; }
.site-footer__profiles a { color: var(--muted); text-decoration: none; }
.site-footer__profiles a:hover { color: var(--accent); text-decoration: underline; }
.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  max-width: var(--measure);
}
.author-card__photo { border-radius: 50%; flex: none; }
.author-card__name { font-size: var(--fs-lg); margin: 0 0 var(--space-1); }
.author-card__role { color: var(--muted); margin: 0; }
/* Fleet 4-column footer (swim model): brand / calculators / trust / contact. */
.site-footer__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1.7fr 1fr 1.1fr; }
}
.site-footer__brand { margin-bottom: 0; }
.site-footer__head {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.site-footer__col p { color: var(--muted); }
.site-footer__col p a { color: var(--accent); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: var(--space-1); }
.site-footer__col li a {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.2rem;
}
.site-footer__col li a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__col li[hidden] { display: none; }
.site-footer__more {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--space-2);
  min-height: 44px;
  padding: 0.45rem 1rem;
}
.site-footer__more:hover { text-decoration: underline; }
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.site-footer__legal p { margin-bottom: var(--space-1); }

/* ---------- forms ---------- */

.field { margin-bottom: var(--space-3); }
.field > label, .field__label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  max-width: 22rem;
  padding: var(--space-2) var(--space-3);
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
/* Date input: three separate controls (day / month / year), never one ambiguous field. */
.date-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.date-group .field { margin-bottom: 0; }
.date-group select { max-width: none; }
.field__hint { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--space-1); }
.field__error { color: var(--danger); font-size: var(--fs-sm); margin-top: var(--space-1); font-weight: 600; }
[aria-invalid="true"] { border-color: var(--danger); }

.checkbox-field {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.checkbox-field input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--secondary:hover { background: var(--surface); filter: none; }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  /* Mobile menu (post-deploy fix, 2026-11-19): the same mega panel
     becomes a drawer sliding in from the left over a dimmed backdrop.
     It is fixed to the viewport — never anchored to the header or to
     .site-nav, which is only as wide as the menu button — translated
     off-canvas while closed, and the body scroll locks while open.
     Link groups sit behind accordion toggles (one tap to expand). */
  .menu-button { min-width: 44px; justify-content: center; }
  .menu-button__label { display: none; }
  .mega-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: min(20rem, 85vw);
    z-index: 80;
    border-bottom: 0;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  body.menu-open .mega-panel { transform: translateX(0); }
  .mega-panel__inner { padding-block: var(--space-3); }
  .mega-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
  }
  .mega-panel__title { font-size: var(--fs-lg); font-weight: 700; }
  .mega-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
  .mega-home { display: flex; margin-left: 0; }
  .mega-cols { display: block; }
  .mega-col { border-top: 1px solid var(--border); }
  .mega-col__head { margin: 0; }
  .mega-col__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: var(--space-2);
    color: var(--text);
    font-size: var(--fs-base);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
  }
  .mega-col__toggle::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    flex: none;
    margin-left: var(--space-2);
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
  }
  .mega-col.open .mega-col__toggle::after { transform: rotate(225deg) translateY(-2px); }
  .mega-col ul { display: none; padding-bottom: var(--space-2); }
  .mega-col.open ul { display: flex; }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 70;
  }
  .menu-backdrop[hidden] { display: none; }
  body.menu-open { overflow: hidden; }
  .hero h1 { font-size: var(--fs-3xl); }
  .result-primary__date { font-size: var(--fs-2xl); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Menu behavior styling lives with the header rules above (post-deploy
   fix, 2026-11-19): the menu button's icon becomes an X under
   body.menu-open, the desktop mega panel hangs from the positioned
   .site-header, and the mobile drawer is fixed to the viewport — it
   must never anchor to .site-nav, which is only as wide as the button.
   ========================================================================== */

/* Back-to-top button (shared, all pages) */
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--accent); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 118, 110, .35); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease; }
.back-to-top:hover { background: var(--accent); filter: brightness(1.12); }
.back-to-top:focus-visible { outline: 3px solid #2dd4bf; outline-offset: 2px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
