@charset "UTF-8";
/* ==========================================================================
   Free Gas Online — site stylesheet
   Style: "Accessible & Ethical" (high-contrast civic) + editorial typography
   Palette and tokens: design-system/free-gas-online/MASTER.md
   ========================================================================== */

/* ---------- fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  /* colour — sampled from the brand artwork
     navy #032959 · blue #084786 · orange #EB7A21 · green #13402A · cream #FAF4E8 */
  --primary: #032959;
  --primary-700: #0a3568;
  --primary-500: #33537f;
  --on-primary: #ffffff;
  --accent: #084786;
  --accent-hover: #063764;
  --accent-soft: #e7f0f9;
  --on-accent: #ffffff;
  --sky: #5ba7e8;

  /* brand orange: 2.86:1 on white, so never used for text.
     Navy on orange is 5.01:1, which passes AA. */
  --brand-orange: #eb7a21;
  --brand-orange-hover: #d66a16;
  --on-brand-orange: #032959;
  --brand-green: #13402a;
  --cream: #faf4e8;

  --bg: #f7f9fc;
  --fg: #04142c;
  --card: #ffffff;
  --muted: #e9edf3;
  --muted-fg: #4a5a72;
  --border: #e0e7f0;
  --border-strong: #c4d0e0;
  --danger: #c62828;
  --danger-soft: #fdf2f2;
  --warn: #9a4e06;
  --warn-soft: #fdf6e9;
  --warn-strong: #eb7a21;
  --ok: #13402a;
  --ok-soft: #eef6f1;
  --ring: #084786;

  /* type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.18rem, 1.12rem + 0.3vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.6vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.1vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.7rem + 2vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);

  /* space (density 5/10 — standard) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --wrap: 72rem;
  --wrap-text: 44rem;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(2 6 23 / 0.05);
  --shadow: 0 4px 16px -4px rgb(2 6 23 / 0.1), 0 1px 3px rgb(2 6 23 / 0.05);
  --shadow-lg: 0 18px 40px -16px rgb(2 6 23 / 0.2);
  --dur: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--primary);
}
h1 {
  font-size: var(--step-4);
  letter-spacing: -0.028em;
}
h2 {
  font-size: var(--step-3);
  letter-spacing: -0.022em;
}
h3 {
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}
h4 {
  font-size: var(--step-0);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}
a:hover {
  color: var(--accent-hover);
}
strong {
  font-weight: 700;
  color: var(--primary);
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection {
  background: var(--sky);
  color: var(--primary);
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-6) 0;
}
code,
.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
button {
  font: inherit;
  cursor: pointer;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.prose {
  max-width: var(--wrap-text);
}
.section {
  padding-block: var(--s-8);
}
.section--tight {
  padding-block: var(--s-7);
}
.section--alt {
  background: var(--card);
  border-block: 1px solid var(--border);
}
.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip:focus {
  top: var(--s-4);
  color: var(--on-primary);
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.22em;
}
/* inside a flex row an icon is a flex item, so alignment comes from the parent */
.checklist > li > .icon,
.note > .icon,
.btn > .icon,
.linkgrid .icon,
.calc__row .icon,
.footer__numbers .icon {
  vertical-align: baseline;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* grids */
.grid {
  display: grid;
  gap: var(--s-5);
  align-items: stretch;
}
.grid > * {
  min-width: 0;
}
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- surfaces ---------- */
.section--alt {
  background:
    linear-gradient(180deg, #fdfaf4 0%, var(--card) 40%, var(--card) 100%);
}
.band,
.bgband {
  --shade: 1;
}

/* ---------- eyebrow / section headers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--brand-orange);
  flex: none;
}
.eyebrow--light {
  color: var(--sky);
}
.eyebrow--light::before {
  background: var(--sky);
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted-fg);
  max-width: 40rem;
}
.section-head {
  margin-bottom: var(--s-6);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(248 250 252 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 4.5rem;
}
.nav .btn {
  margin-left: 0.45rem;
  white-space: nowrap;
}
.logo__name {
  white-space: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.logo img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9px;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.logo__slogan {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font-size: 0.895rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--primary-500);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (min-width: 1200px) {
  .nav__link {
    padding: 0.55rem 0.7rem;
    font-size: 0.93rem;
  }
}

/* ---------- dropdown menus ---------- */
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 2rem;
  margin-left: -0.35rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 6px;
  color: var(--primary-500);
}
.nav__caret .icon {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform var(--dur) var(--ease);
}
.nav__caret:hover {
  background: var(--muted);
  color: var(--primary);
}
.nav__item--has-menu:hover .nav__caret .icon,
.nav__caret[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.nav__menu {
  list-style: none;
  padding: 0.4rem;
  margin: 0;
}

@media (min-width: 1100px) {
  .nav__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: -0.5rem;
    z-index: 60;
    min-width: 17rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 22px 44px -22px rgb(3 41 89 / 0.42), 0 2px 8px rgb(2 6 23 / 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms var(--ease), transform 160ms var(--ease),
      visibility 160ms;
  }
  .nav__item--has-menu:hover .nav__menu,
  .nav__item--has-menu:focus-within .nav__menu,
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  /* hover bridge so the menu does not close in the gap */
  .nav__item--has-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
  }
}
.nav__sublink {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-500);
  text-decoration: none;
  line-height: 1.35;
}
.nav__sublink:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav__sublink.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav__link:hover {
  background: var(--muted);
  color: var(--primary);
}
.nav__link[aria-current="page"],
.nav__link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav__toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-weight: 600;
  color: var(--primary);
  min-height: 44px;
}
@media (max-width: 1099px) {
  .nav__toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    margin: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--s-4) var(--s-5) var(--s-6);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
  }
  .nav__link {
    flex: 1;
    padding: 0.85rem 0.75rem;
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav__caret {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
  }
  .nav__menu {
    flex-basis: 100%;
    display: none;
    padding: 0 0 0.6rem 0.75rem;
    border-left: 2px solid var(--border);
    margin: 0 0 0.6rem 0.75rem;
  }
  .nav__menu.is-open {
    display: block;
  }
  .nav__sublink {
    padding: 0.6rem 0.75rem;
    font-size: 0.98rem;
  }
  .nav .btn {
    justify-content: center;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}
.btn--dark {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--dark:hover {
  background: var(--primary-700);
  color: var(--on-primary);
}
.btn--ghost {
  background: var(--card);
  border-color: var(--border-strong);
  color: var(--primary);
}
.btn--ghost:hover {
  border-color: var(--primary-500);
  background: var(--card);
  color: var(--primary);
}
.btn--light {
  background: var(--on-primary);
  color: var(--primary);
}
.btn--light:hover {
  background: #eef4f9;
  color: var(--primary);
}
.btn--urgent {
  background: var(--brand-orange);
  color: var(--on-brand-orange);
  box-shadow: 0 2px 10px -2px rgb(235 122 33 / 0.5);
}
.btn--urgent:hover {
  background: var(--brand-orange-hover);
  color: var(--on-brand-orange);
}
.btn--sm {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero .btn-row {
  margin-top: var(--s-5) !important;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46rem 34rem at 90% 4%, #e3eefb 0%, transparent 60%),
    radial-gradient(32rem 26rem at -6% 98%, var(--cream) 0%, transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #ccdcee 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 42%);
  mask-image: linear-gradient(135deg, #000 0%, transparent 42%);
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.hero__grid {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8) var(--s-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: var(--s-8);
    padding-block: var(--s-8) var(--s-8);
  }
  /* The photo keeps its 4:5 crop. The copy is kept compact enough to match,
     rather than stretching the image and leaving dead space in it. */
  .hero__grid {
    align-items: center;
  }
  .hero__media img {
    max-height: 34rem;
  }
}
.hero h1 {
  font-size: clamp(2.3rem, 1.7rem + 2.5vw, 3.5rem);
  line-height: 1.08;
  max-width: 19ch;
}
.hero__lede {
  font-size: clamp(1.02rem, 0.99rem + 0.16vw, 1.14rem);
  line-height: 1.55;
  color: var(--muted-fg);
  margin-top: var(--s-4);
  max-width: 34rem;
}
.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgb(2 6 23 / 0.45), 0 2px 8px rgb(2 6 23 / 0.08);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -0.8rem -0.8rem 1.6rem 1.6rem;
  border-radius: 24px;
  background: linear-gradient(150deg, var(--sky), transparent 55%);
  opacity: 0.32;
  z-index: -1;
}
.hero__media::after {
  content: "";
  position: absolute;
  left: -1.1rem;
  bottom: -1.1rem;
  width: 46%;
  height: 40%;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 0 20px;
  opacity: 0.4;
  z-index: -1;
}
.hero__badge {
  position: absolute;
  left: -1.3rem;
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 36px -20px rgb(2 6 23 / 0.45);
  max-width: 15.5rem;
}
.hero__badge .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ok);
  flex: none;
}
.hero__badge strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--primary);
}
.hero__badge span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted-fg);
  margin-top: 0.1rem;
}
@media (max-width: 959px) {
  .hero__media {
    max-width: 24rem;
  }
  .hero__badge {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.hero__stats > div {
  flex: 1 1 8rem;
  min-width: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted-fg);
  margin-top: 0.3rem;
  max-width: 12rem;
}

/* ---------- answer box (AEO) ---------- */
.answer {
  position: relative;
  background: linear-gradient(135deg, #fdfaf4 0%, var(--card) 48%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-orange);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-sm);
}
.answer__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: var(--s-2);
}
.answer p {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg);
}
.answer p + p {
  margin-top: var(--s-3);
  font-size: var(--step-0);
  color: var(--muted-fg);
}

/* ---------- cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-5);
  box-shadow: 0 1px 2px rgb(2 6 23 / 0.04);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.card h3 {
  margin-bottom: var(--s-2);
}
.card p {
  color: var(--muted-fg);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-soft), #f4fafe);
  box-shadow: inset 0 0 0 1px rgb(3 105 161 / 0.12);
  color: var(--accent);
  margin-bottom: var(--s-4);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.card:hover .card__icon {
  background: var(--accent);
  color: #fff;
}
.card__icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}
a.card,
.card--link {
  text-decoration: none;
  display: block;
  color: inherit;
}
a.card:hover,
.card--link:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 34px -22px rgb(3 105 161 / 0.5), 0 2px 6px rgb(2 6 23 / 0.06);
  transform: translateY(-3px);
}
a.card h3 {
  color: var(--accent);
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: var(--s-4);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--accent);
}
a.card:hover .card__more .icon {
  transform: translateX(3px);
}
.card__more .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease);
}

/* ---------- callouts ---------- */
.note {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  margin-block: var(--s-5);
}
.note > .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
}
.note h4 {
  margin-bottom: var(--s-2);
}
.note p:last-child {
  margin-bottom: 0;
}
.note--urgent {
  background: var(--warn-soft);
  border-color: #fcd79b;
  color: #40260a;
}
.note--urgent > .icon,
.note--urgent h4 {
  color: var(--warn);
}
.note--danger {
  background: var(--danger-soft);
  border-color: #fbcaca;
  color: #450d0d;
}
.note--danger > .icon,
.note--danger h4 {
  color: var(--danger);
}
.note--ok {
  background: var(--ok-soft);
  border-color: #bbf7d0;
  color: #0a2e16;
}
.note--ok > .icon,
.note--ok h4 {
  color: var(--ok);
}
.note--info {
  background: var(--accent-soft);
  border-color: #b9ddf2;
}
.note--info > .icon,
.note--info h4 {
  color: var(--accent);
}

/* ---------- emergency band ---------- */
.band {
  background: var(--primary);
  color: #e6ecf5;
}
.band h2,
.band h3 {
  color: var(--on-primary);
}
.band a:not(.btn) {
  color: var(--sky);
}
.band__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 880px) {
  .band__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.calltile {
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.calltile__num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-primary);
  text-decoration: none;
  line-height: 1;
}
.calltile__num:hover {
  color: var(--sky);
}
.calltile__num .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sky);
}
.calltile p {
  margin-top: var(--s-3);
  font-size: 0.95rem;
  color: #bdcadd;
}

/* ---------- full-bleed image band with colour overlay ---------- */
.bgband {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #e7eef8;
  padding-block: var(--s-9);
}
.bgband__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.bgband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(10 17 33 / 0.95) 0%,
    rgb(15 23 42 / 0.88) 44%, rgb(15 23 42 / 0.6) 100%);
}
.bgband h2,
.bgband h3,
.bgband strong {
  color: #fff;
}
.bgband a:not(.btn) {
  color: var(--sky);
}
.bgband__inner {
  max-width: 42rem;
}
.bgband .lede,
.bgband p {
  color: #c6d4e6;
}
.bgband .eyebrow {
  color: var(--sky);
}
.bgband .eyebrow::before {
  background: var(--sky);
}
.bgband .checklist > li > .icon {
  color: var(--sky);
}
@media (max-width: 720px) {
  .bgband::before {
    background: rgb(12 19 36 / 0.93);
  }
}

/* ---------- alternating feature rows (square art) ---------- */
.feature {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.feature > * {
  min-width: 0;
}
@media (min-width: 880px) {
  .feature {
    grid-template-columns: 0.88fr 1.12fr;
    gap: var(--s-8);
    align-items: stretch;
  }
  .feature--flip .feature__media {
    order: 2;
  }
  /* Both columns take the row height, so neither side is left short. */
  .feature__media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 20rem;
  }
  .feature__media img.img--full {
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
  }
  .feature__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.feature + .feature {
  margin-top: var(--s-8);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
}
.feature__media {
  position: relative;
  display: flex;
  align-items: center;
}
.feature__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 48px -26px rgb(2 6 23 / 0.4);
}
/* Banner artwork contains text, so it is shown whole at its own aspect ratio
   rather than being cropped or stretched to match the column height. */
.feature__media img.img--full {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 38px -24px rgb(2 6 23 / 0.35);
}
.feature__media::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem -0.7rem -0.7rem;
  height: 36%;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0 0 0 18px;
  opacity: 0.32;
  z-index: -1;
}
.feature__body h3 {
  font-size: var(--step-2);
  margin-bottom: var(--s-3);
}
.feature__body > * + * {
  margin-top: var(--s-4);
}
@media (max-width: 879px) {
  .feature__media {
    max-width: 22rem;
  }
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--s-5);
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 4.25rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.35rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.steps h3 {
  margin-bottom: var(--s-2);
}
.steps p {
  color: var(--muted-fg);
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-block: var(--s-5);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
caption {
  text-align: left;
  padding: var(--s-4) var(--s-4) 0;
  font-size: var(--step--1);
  color: var(--muted-fg);
}
th,
td {
  padding: 0.8rem var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: #f2f6fa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-500);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #f8fbfd;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- lists ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.checklist > li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.checklist > li > .icon {
  color: var(--ok);
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
}
.crosslist > li > .icon {
  color: var(--danger);
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: var(--s-2);
}
.prose > * + * {
  margin-top: var(--s-4);
}
.prose > h2 {
  margin-top: var(--s-7);
}
.prose > h3 {
  margin-top: var(--s-6);
}
.prose > .note,
.prose > .table-wrap {
  margin-block: var(--s-5);
}

/* ---------- pill / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--muted);
  color: var(--primary-500);
}
.pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill--info {
  background: var(--accent-soft);
  color: var(--accent);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---------- breadcrumbs / meta ---------- */
.crumbs {
  padding-top: var(--s-5);
  font-size: 0.88rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  color: var(--muted-fg);
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--border-strong);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.pagemeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: var(--s-5);
  font-size: 0.84rem;
  color: var(--muted-fg);
  list-style: none;
  padding: 0;
}
.pagemeta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}
.pagemeta .icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  vertical-align: baseline;
  color: var(--accent);
}
.pagemeta > span:first-child .icon {
  color: var(--ok);
}
@media (max-width: 520px) {
  .pagemeta > span {
    white-space: normal;
  }
}

/* ---------- page header ---------- */
.pagehead {
  position: relative;
  background:
    radial-gradient(34rem 22rem at 92% -20%, #e4f1fb 0%, transparent 62%),
    var(--card);
  border-bottom: 1px solid var(--border);
}
.pagehead__inner {
  padding-bottom: var(--s-7);
}
.pagehead h1 {
  margin-top: var(--s-4);
  max-width: 26ch;
}
.pagehead .lede {
  margin-top: var(--s-4);
}

/* ---------- TOC ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: var(--s-3);
}
.toc ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.1rem;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: block;
  padding: 0.35rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.toc a::before {
  content: counter(toc) ".";
  color: var(--border-strong);
  margin-right: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.toc a:hover {
  text-decoration: underline;
}
@media (min-width: 1040px) {
  .layout-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: var(--s-7);
    align-items: start;
  }
  .layout-aside__side {
    position: sticky;
    top: 5.5rem;
    display: grid;
    gap: var(--s-5);
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--s-3);
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq summary:hover {
  background: #f6fafd;
}
.faq__body {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--muted-fg);
}
.faq__body > * + * {
  margin-top: var(--s-3);
}

/* ---------- charts ---------- */
.chart {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-5);
  box-shadow: 0 1px 2px rgb(2 6 23 / 0.04);
}
.chart__summary {
  margin-top: auto;
}
.chart__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--s-1);
}
.chart__sub {
  font-size: 0.88rem;
  color: var(--muted-fg);
  margin-bottom: var(--s-5);
}
.chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart__summary {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted-fg);
}
.chart__note {
  margin-top: var(--s-2);
  font-size: 0.82rem;
  color: var(--muted-fg);
}
.chart details {
  margin-top: var(--s-4);
}
.chart details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  padding: var(--s-2) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.c-bar {
  fill: var(--accent);
  transition: fill var(--dur) var(--ease);
}
.c-bar--alt {
  fill: var(--primary);
}
.c-bar--warn {
  fill: var(--warn-strong);
}
.c-grid {
  stroke: var(--border);
  stroke-width: 1;
}
.c-axis {
  stroke: var(--border-strong);
  stroke-width: 1;
}
.c-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--muted-fg);
}
.c-value {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  fill: var(--primary);
  font-variant-numeric: tabular-nums;
}
.c-value--on {
  fill: #fff;
}
.waffle rect {
  rx: 2;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-4);
  font-size: 0.86rem;
  color: var(--muted-fg);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.legend i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex: none;
}

/* ---------- forms / wizard ---------- */
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--s-4);
}
.field > label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.field__hint {
  font-size: 0.86rem;
  color: var(--muted-fg);
}
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
.choices {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 560px) {
  .choices--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  min-height: 56px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice:hover {
  border-color: var(--accent);
}
.choice input {
  margin: 0.2rem 0 0;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  accent-color: var(--accent);
  flex: none;
}
.choice__text strong {
  display: block;
  font-size: 1rem;
}
.choice__text span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted-fg);
  margin-top: 0.15rem;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.wizard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) {
  .wizard {
    padding: var(--s-5) var(--s-4);
  }
}
.wizard__progress {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.wizard__track {
  flex: 1;
  height: 6px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}
.wizard__fill {
  height: 100%;
  width: 20%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 320ms var(--ease);
}
.wizard__step {
  display: none;
}
.wizard__step.is-active {
  display: block;
  /* transform-only, with no fill mode that could hold it hidden */
  animation: step-in 320ms var(--ease);
}
@keyframes step-in {
  from {
    transform: translateY(10px);
  }
}
.wizard__nav {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.wizard__nav .btn--ghost {
  margin-right: auto;
}
.wizard fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.wizard legend {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
  padding: 0;
}
.wizard__help {
  color: var(--muted-fg);
  margin-bottom: var(--s-5);
}
.result__plan {
  display: grid;
  gap: var(--s-4);
  counter-reset: pick;
}
.pick {
  counter-increment: pick;
  position: relative;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  background: #fbfdff;
}
.pick__rank {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.pick h3 {
  font-size: var(--step-1);
  margin: 0.2rem 0 var(--s-2);
}
.pick p {
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.pick__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
  font-size: 0.88rem;
}
.pick--urgent {
  border-left-color: var(--warn-strong);
  background: var(--warn-soft);
}
.pick--urgent .pick__rank {
  color: var(--warn);
}

/* calculator */
.calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow);
}
.calc__out {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.calc__big {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.calc__rows {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.calc__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.95rem;
}
.calc__row .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.calc__row--yes {
  background: var(--ok-soft);
  color: #0a2e16;
}
.calc__row--yes .icon {
  color: var(--ok);
}
.calc__row--no {
  background: var(--muted);
  color: var(--muted-fg);
}

/* ---------- state list ---------- */
.statelist {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  list-style: none;
  padding: 0;
}
.statelist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.7rem 0.85rem;
  min-height: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.statelist a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.statelist a[aria-disabled="true"] {
  color: var(--muted-fg);
  background: var(--bg);
  pointer-events: none;
  font-weight: 500;
}
.statelist .pill {
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
}

/* ---------- related / interlinking ---------- */

.linkgrid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  list-style: none;
  padding: 0;
}
.linkgrid a {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 100%;
  padding: 1.05rem 2.4rem 1.05rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(2 6 23 / 0.04);
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.linkgrid a::after {
  content: "";
  position: absolute;
  right: 1.05rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.3rem;
  border-right: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  transform: rotate(-45deg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.linkgrid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 16px 30px -22px rgb(8 71 134 / 0.5);
  transform: translateY(-2px);
}
.linkgrid a:hover::after {
  border-color: var(--accent);
  transform: rotate(-45deg) translate(2px, 2px);
}
.linkgrid .icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent-soft), #f5fafe);
  box-shadow: inset 0 0 0 1px rgb(8 71 134 / 0.1);
  color: var(--accent);
  flex: none;
}
.linkgrid a:hover .icon {
  background: var(--accent);
  color: #fff;
}
.related {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fdfaf4 0%, var(--card) 45%);
}

.sources {
  font-size: 0.9rem;
  color: var(--muted-fg);
}
.sources ol {
  padding-left: 1.3rem;
  display: grid;
  gap: var(--s-2);
}

/* ---------- footer ---------- */
.site-footer {
  background:
    radial-gradient(42rem 24rem at 88% 0%, #0a3568 0%, transparent 62%),
    var(--primary);
  color: #b9c6da;
  padding-block: var(--s-8) var(--s-5);
  font-size: 0.94rem;
  border-top: 3px solid var(--brand-orange);
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--s-4);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.site-footer a {
  color: #dce6f3;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__top {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1000px) {
  .footer__top {
    grid-template-columns: 19rem 1fr;
    gap: var(--s-8);
  }
}
.footer__grid {
  display: grid;
  gap: var(--s-6) var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}
.footer__numbers {
  list-style: none;
  padding: 0;
  margin-top: var(--s-5);
  display: grid;
  gap: 0.45rem;
}
.footer__numbers a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.84rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__numbers a:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: var(--brand-orange);
  text-decoration: none;
}
.footer__numbers .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand-orange);
  flex: none;
}
.footer__numbers strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.footer__grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.footer__grid a {
  display: inline-block;
  line-height: 1.4;
}
.footer__grid a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 3px;
  transition: padding-left var(--dur) var(--ease);
}
.footer__brand .logo__name {
  color: #fff;
}
.footer__brand .logo__slogan {
  color: #8ea4c0;
}
.footer__brand p {
  margin-top: var(--s-4);
  max-width: 26rem;
  color: #a7b8cf;
  font-size: 0.88rem;
  line-height: 1.6;
}
.footer__brand .logo__name {
  font-size: 1.22rem;
}
.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #92a6c1;
}
.footer__bottom p {
  margin: 0;
}
.footer__disclaimer {
  margin-top: var(--s-7);
  padding: var(--s-4) var(--s-5);
  background: rgb(0 0 0 / 0.18);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 9px 9px 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a7b8cf;
}
.footer__disclaimer strong {
  color: #fff;
}

/* ---------- animation ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Reveal animation never gates visibility.
   Opacity is never reduced below 1, so no device state, paused timer,
   throttled background tab, script error or disabled-JS session can leave
   content unreadable. The motion is transform-only and purely decorative. */
.js .reveal {
  transform: translateY(14px);
  transition: transform 460ms cubic-bezier(0.22, 1.2, 0.36, 1);
}
.js .reveal.is-in {
  transform: none;
}
.js .reveal-group > * {
  transform: translateY(12px);
  transition: transform 420ms cubic-bezier(0.22, 1.2, 0.36, 1);
}
.js .reveal-group.is-in > * {
  transform: none;
}
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: 60ms; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: 120ms; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: 180ms; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: 240ms; }
.js .reveal-group.is-in > *:nth-child(6) { transition-delay: 300ms; }
}
.c-bar {
  transform-box: fill-box;
}
.chart.is-in .c-bar--grow {
  animation: bar-grow 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bar-grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}
.chart.is-in .c-bar--grow-x {
  animation: bar-grow-x 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes bar-grow-x {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.chart.is-in .c-line {
  animation: draw 1100ms var(--ease) both;
}
@keyframes draw {
  from {
    stroke-dashoffset: var(--len, 1000);
  }
  to {
    stroke-dashoffset: 0;
  }
}
.chart.is-in .waffle rect {
  animation: pop 300ms var(--ease) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .reveal-group > *,
  .js .reveal,
  .js .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .c-bar,
  .c-line,
  .waffle rect {
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .site-footer,
  .band,
  .related,
  .nav,
  .skip,
  .hero__media,
  .wizard__nav,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .card,
  .note,
  .answer,
  .chart,
  .table-wrap {
    border: 1px solid #999;
    box-shadow: none;
    break-inside: avoid;
  }
  .faq details {
    break-inside: avoid;
  }
  .faq details:not([open]) .faq__body {
    display: block;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
}
