/* ==========================================================================
   Aquaprurigo — design system

   Source Serif 4 for headings and Source Sans 3 for text, both self-hosted:
   hotlinking Google Fonts would send every reader's IP to a third party, which
   this site's own privacy page promises not to do.
   ========================================================================== */

/* Variable fonts — one file per family covers 400–700. */
@font-face {
  font-family: "Source Serif";
  src: url("/fonts/serif-latin.2a24bad4.woff2") format("woff2");
  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+0304, U+0308, U+0329, 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: "Source Serif";
  src: url("/fonts/serif-latin-ext.a0cd390d.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304-0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans";
  src: url("/fonts/sans-latin.ac057a55.woff2") format("woff2");
  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+0304, U+0308, U+0329, 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: "Source Sans";
  src: url("/fonts/sans-latin-ext.ed3571ea.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304-0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;

  --font-serif: "Source Serif", Charter, "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;

  --paper: #fbfaf7;
  --paper-2: #f2f1ec;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --ink: #14232a;
  --ink-2: #46585f;
  --ink-3: #6f8085;
  --line: #e4e2da;
  --line-2: #cfccc2;

  --brand: #0d5e5c;
  --brand-ink: #084543;
  --brand-wash: #eaf3f1;
  --brand-line: #b4d5d0;
  --brand-mark-inner: #ffffff;

  --accent: #9a5b12;
  --accent-wash: #fbf2e5;
  --gold: #e8c07a;

  --caution: #a4503c;
  --caution-wash: #fbeee9;
  --caution-line: #e6c3b8;

  --ok: #1c6b45;
  --ok-wash: #e7f3ec;

  --shadow-sm: 0 1px 2px rgb(16 38 43 / 0.05), 0 1px 3px rgb(16 38 43 / 0.04);
  --shadow-md: 0 2px 4px rgb(16 38 43 / 0.04), 0 8px 24px -8px rgb(16 38 43 / 0.12);
  --shadow-lg: 0 4px 8px rgb(16 38 43 / 0.05), 0 24px 48px -16px rgb(16 38 43 / 0.18);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --step: clamp(1.5rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2.5vw, 1.5rem);
  --section: clamp(3rem, 7vw, 5.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1b20;
    --paper-2: #0a1518;
    --surface: #12272c;
    --surface-2: #152d33;
    --ink: #e9f1f0;
    --ink-2: #a7c0c1;
    --ink-3: #85a1a3;
    --line: #234046;
    --line-2: #2d4f56;

    --brand: #66c9be;
    --brand-ink: #93ded5;
    --brand-wash: #0f3133;
    --brand-line: #285755;
    --brand-mark-inner: #0d1b20;

    --accent: #e0a35a;
    --accent-wash: #2c2317;

    --caution: #e79b85;
    --caution-wash: #33201b;
    --caution-line: #5b332a;

    --ok: #6fc99a;
    --ok-wash: #122c22;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 2px 6px rgb(0 0 0 / 0.3), 0 12px 28px -10px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 6px 14px rgb(0 0 0 / 0.34), 0 28px 56px -18px rgb(0 0 0 / 0.6);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px
  ;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 50;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 650;
  transition: top 120ms ease;
}

.skip:focus {
  top: 0;
}

.shell {
  width: min(1140px, 100% - clamp(1.75rem, 6vw, 4rem));
  margin-inline: auto;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.25rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.3vw, 1.95rem);
}

h3 {
  font-size: clamp(1.12rem, 1.04rem + 0.42vw, 1.28rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 670;
}

.eyebrow {
  font-family: var(--font-sans);
  margin: 0 0 0.9rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead,
.standfirst {
  max-width: 40ch;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.standfirst {
  max-width: 62ch;
}

/* ---------------------------------------------------------------- masthead */

/* One dark surface carrying both rows. Deliberately NOT token-driven: an
   earlier version used var(--ink) as the background, which inverted under
   prefers-color-scheme: dark and left light text on a light bar. */
.masthead {
  --masthead-bg: #0a2226;
  --masthead-fg: #eef6f4;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--masthead-bg);
  color: var(--masthead-fg);
}

.masthead.is-stuck {
  box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.55);
}

.masthead__utility {
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(0 0 0 / 0.22);
}

.masthead__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.1rem;
  padding-block: 0.25rem;
}

.masthead__claim {
  margin: 0;
  color: rgb(238 246 245 / 0.62);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.masthead__claim strong {
  color: rgb(238 246 245 / 0.92);
  font-weight: 600;
}

.masthead__main {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  min-height: 4.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  color: var(--masthead-fg);
  text-decoration: none;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--gold);
  flex: none;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.6rem);
  margin-inline-start: auto;
  font-size: 0.9375rem;
}

.site-nav a {
  position: relative;
  color: rgb(238 246 245 / 0.78);
  font-weight: 500;
  text-decoration: none;
  padding-block: 1.35rem;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 140ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: #fff;
}

.header-cta {
  flex: none;
}

.masthead .button--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #12302c;
}

.masthead .button--primary:hover {
  background: #f0cf94;
  border-color: #f0cf94;
  color: #12302c;
}

.langs {
  display: inline-flex;
  gap: 1px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.05);
  padding: 2px;
}

.lang {
  border-radius: 5px;
  color: rgb(238 246 245 / 0.66);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.45rem;
  text-decoration: none;
}

.lang:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.lang.is-active {
  background: rgb(255 255 255 / 0.92);
  color: #0a2226;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-inline-start: auto;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.06);
  cursor: pointer;
  place-items: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--masthead-fg);
  transition: transform 160ms ease, opacity 120ms ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}

.nav-toggle__bars::before {
  transform: translateY(-5px);
}

.nav-toggle__bars::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .masthead__main {
    flex-wrap: wrap;
    padding-bottom: 0.6rem;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    padding: 0.85rem 0.2rem;
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .header-cta {
    order: 2;
  }
}

@media (max-width: 560px) {
  .masthead__claim {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .brand__name {
    font-size: 1.18rem;
  }

  .header-cta {
    width: 100%;
    order: 4;
    margin-top: 0.5rem;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 660;
  letter-spacing: -0.005em;
  line-height: 1.2;
  padding: 0.72rem 1.15rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease,
    box-shadow 140ms ease, transform 140ms ease;
}

.button--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button--primary:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .button--primary {
    color: #06201f;
  }
}

.button--ghost {
  border-color: var(--line-2);
  background: var(--surface);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  min-height: 2.25rem;
  padding: 0.4rem 0.6rem;
}

.button--quiet:hover {
  color: var(--ink);
}

.button--sm {
  min-height: 2.35rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
}

.button--block {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, #0b2327 0%, #0e3836 60%, #0b2a2c 100%);
  color: #f2f7f6;
  padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(2.25rem, 5vw, 3.5rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  opacity: 0.62;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgb(9 30 33 / 0.96) 0%,
      rgb(10 34 37 / 0.9) 38%,
      rgb(11 40 42 / 0.55) 68%,
      rgb(12 45 46 / 0.32) 100%
    );
}

@media (max-width: 760px) {
  .hero__media::after {
    background: linear-gradient(
      175deg,
      rgb(9 30 33 / 0.94) 0%,
      rgb(10 34 37 / 0.9) 55%,
      rgb(11 40 42 / 0.86) 100%
    );
  }
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
}

.hero__text {
  max-width: 36rem;
}

.hero .eyebrow {
  display: inline-block;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 100px;
  background: rgb(255 255 255 / 0.08);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  letter-spacing: 0.07em;
}

.hero h1 {
  max-width: 22ch;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__summary {
  max-width: 54ch;
  color: rgb(238 246 245 / 0.82);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.hero__summary a {
  color: var(--gold);
  text-decoration-color: rgb(242 198 109 / 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* White on deep teal reads institutional; the gold stays an accent only. */
.hero .button--primary {
  background: #fff;
  border-color: #fff;
  color: #0b2b2a;
}

.hero .button--primary:hover {
  background: #eef6f4;
  border-color: #eef6f4;
  color: #0b2b2a;
}

.hero__definition {
  max-width: 54ch;
  border-left: 2px solid var(--gold);
  margin-bottom: 1.1rem;
  padding-left: 1rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.45;
}

.hero .button--ghost {
  border-color: rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.hero .button--ghost:hover {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.hero__reassure {
  margin: 1rem 0 0;
  color: rgb(238 246 245 / 0.6);
  font-size: 0.875rem;
}

.hero__facts {
  display: grid;
  gap: 1px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.14);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  overflow: hidden;
}

.hero__fact {
  background: rgb(11 33 36 / 0.6);
  padding: 1.15rem 1.25rem;
  backdrop-filter: blur(8px);
}

.hero__fact strong {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero__fact span {
  display: block;
  margin-top: 0.4rem;
  color: rgb(238 246 245 / 0.72);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Wide screens: the three facts stack beside the pitch, so the primary CTA
   stays above the fold instead of being pushed down by them. Must come after
   the .hero__facts base rule to win at equal specificity. */
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.75fr);
  }

  .hero__text {
    max-width: none;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- page head */

.page-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.75rem, 4vw, 2.75rem);
}

.page-head h1 {
  max-width: 28ch;
}

/* ------------------------------------------------------------- breadcrumbs */

.crumbs {
  margin-bottom: 1.5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-2);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* --------------------------------------------------------------- page meta */

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.page-meta a {
  color: var(--ink-2);
}

.page-meta__sep {
  color: var(--line-2);
}

/* ------------------------------------------------------------- on this page */

.toc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  margin: 0 0 2.75rem;
  padding: 1.15rem 1.35rem;
  max-width: 34rem;
}

.toc h2 {
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
}

.toc li::marker {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ----------------------------------------------------------- citations */

sup.cite {
  font-size: 0.68em;
  font-variant-numeric: lining-nums;
  line-height: 0;
  margin-left: 0.1em;
  white-space: nowrap;
}

sup.cite a {
  padding: 0 0.12em;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

sup.cite a:hover {
  text-decoration: underline;
}

sup.cite a:target,
.refs__list li:target {
  background: var(--accent-wash);
}

.refs {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  scroll-margin-top: 6rem;
}

.refs h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}

.refs__note {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.refs__list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding-left: 1.6rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.refs__list li {
  scroll-margin-top: 6rem;
  border-radius: 4px;
}

.refs__list li::marker {
  color: var(--ink-3);
  font-weight: 700;
}

.refs__cite {
  color: var(--ink);
}

.refs__where,
.refs__n {
  display: block;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.refs__n::before {
  content: "▪ ";
  color: var(--brand);
}

.refs__link {
  font-size: 0.8125rem;
}

.refs__back {
  margin-left: 0.4rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  text-decoration: none;
}

.refs__back:hover {
  color: var(--brand);
}

/* ------------------------------------------------- about this information */

.about-info {
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--r) var(--r);
  background: var(--surface);
  margin: 3rem 0 0;
  padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.about-info h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.about-info dl {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 0;
  margin: 0;
  font-size: 0.875rem;
}

.about-info dt {
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem 0.7rem 0;
  color: var(--ink-3);
  font-weight: 600;
}

.about-info dd {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.7rem 0;
  color: var(--ink-2);
  line-height: 1.55;
}

.about-info dt:first-of-type,
.about-info dd:first-of-type {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 560px) {
  .about-info dl {
    grid-template-columns: 1fr;
  }

  .about-info dd {
    border-top: 0;
    padding: 0 0 0.7rem;
  }

  .about-info dt {
    padding-bottom: 0.15rem;
  }

  .about-info dt:first-of-type {
    border-top: 0;
  }
}

/* ------------------------------------------------------------------- prose */

.prose {
  padding-block: var(--section) clamp(3.5rem, 8vw, 6rem);
}

/* A page-head already carries generous bottom padding; the full section gap on
   top of it leaves a dead band before the first heading. */
.page-head + .prose {
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.prose > * {
  max-width: 68ch;
}

.prose > h2 {
  margin-top: 2.5em;
  scroll-margin-top: 6rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin-top: 2em;
}

.prose > p,
.prose > .prose-list,
.prose > .steps {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.prose > .lead {
  margin-bottom: 1.5em;
}

.prose-list,
.steps {
  margin: 0 0 1.25em;
  padding-left: 1.15rem;
}

.prose-list li,
.steps li {
  margin-bottom: 0.55em;
  padding-left: 0.2rem;
}

.prose-list {
  list-style: none;
  padding-left: 0;
}

.prose-list li {
  position: relative;
  padding-left: 1.5rem;
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 2.4rem;
  margin-bottom: 0.9em;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 720;
}

/* ------------------------------------------------------------- wide blocks */

.prose > .cards,
.prose > .stats,
.prose > .table-wrap,
.prose > .compare,
.prose > .cta,
.prose > .check,
.prose > .next,
.prose > .sources {
  max-width: none;
  margin-block: 2rem 2.5rem;
}

/* ------------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.card__kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------- stats */

.stats {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 1.35rem 1.25rem;
}

.stat__value {
  display: block;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.stat__source {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------------- table */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

thead th {
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th,
tbody td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

tbody th {
  color: var(--ink);
  font-weight: 650;
  min-width: 11rem;
}

tbody td {
  color: var(--ink-2);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* ----------------------------------------------------------------- compare */

.compare {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.compare__col {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.4rem;
}

.compare__col--accent {
  border-color: var(--brand-line);
  background: var(--brand-wash);
}

.compare__col h3 {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.compare__col--accent h3 {
  border-bottom-color: var(--brand-line);
  color: var(--brand-ink);
}

.compare__col ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.compare__col li {
  margin-bottom: 0.55em;
}

/* -------------------------------------------------------- notes and quotes */

.note {
  border: 1px solid var(--caution-line);
  border-left: 3px solid var(--caution);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--caution-wash);
  margin: 1.75rem 0;
  padding: 1.05rem 1.25rem;
}

.note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.quote {
  border-left: 3px solid var(--brand-line);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.35rem;
}

.quote p {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.2rem);
  font-style: italic;
  line-height: 1.55;
}

.quote cite {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-style: normal;
}

/* --------------------------------------------------------------------- faq */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin: 1.75rem 0 2.5rem;
  overflow: hidden;
}

.faq__item + .faq__item {
  border-top: 1px solid var(--line);
}

.faq summary,
.disclosure summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  font-weight: 630;
  padding: 1.05rem 1.25rem;
}

.faq summary::-webkit-details-marker,
.disclosure summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.disclosure summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.faq [open] > summary::after,
.disclosure[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq summary:hover,
.disclosure summary:hover {
  background: var(--surface-2);
}

.faq__answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- sources */

.sources {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
}

.sources a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.sources a:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.sources__label {
  font-weight: 590;
}

.sources__host {
  flex: none;
  color: var(--ink-3);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------- cta */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-wash), var(--surface));
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.cta__body {
  max-width: 46ch;
}

.cta h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
}

.cta p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------------- next */

.next {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 2.25rem;
}

.next h2 {
  font-size: 0.8rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.15rem;
}

.next__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.next__card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.next__card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.next__card > span {
  display: block;
  color: var(--brand);
  font-weight: 660;
}

.next__card p {
  margin: 0.35rem 0 0;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================================ self-check ==
   The conversion surface. One question at a time, no typing, instant result.
   ========================================================================= */

.check {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.check__progress {
  height: 3px;
  background: var(--line);
}

.check__progress span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.check__questions,
.check__result,
.check__contribute {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}

.check__contribute {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.check__form--bare {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.check__form--bare .contribute {
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
}

/* Without JavaScript every question stays on screen, so space them out. */
.check__questions .qa + .qa {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
  padding-top: 2.25rem;
}

.check--js .check__questions .qa + .qa {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.qa {
  border: 0;
  margin: 0;
  padding: 0;
  animation: rise 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.qa legend {
  display: block;
  padding: 0;
  margin-bottom: 0.4rem;
}

.qa__n {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 730;
  letter-spacing: 0.09em;
}

.qa__of {
  color: var(--ink-3);
}

.qa__q {
  display: block;
  max-width: 30ch;
  font-size: clamp(1.3rem, 1.15rem + 0.9vw, 1.75rem);
  font-weight: 680;
  letter-spacing: -0.018em;
  line-height: 1.2;
  text-wrap: balance;
}

.qa__help {
  max-width: 52ch;
  margin: 0.85rem 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.qa__options {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 570;
  padding: 0.95rem 1.15rem;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

/* A real radio drives it — restyled, never hidden from assistive tech. */
.opt input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--brand);
}

.opt:hover {
  border-color: var(--brand);
  background: var(--brand-wash);
  transform: translateX(2px);
}

.opt:has(:checked),
.opt.is-picked {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.opt:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.check__nav {
  margin-top: 1.25rem;
}

/* result */

.check__verdict-kicker {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.check__verdict {
  max-width: 30ch;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.check__verdict-body {
  max-width: 62ch;
  color: var(--ink-2);
}

.check__verdict-body p {
  margin-bottom: 0.85em;
}

.check__verdict-body .flag {
  border: 1px solid var(--caution-line);
  border-left: 3px solid var(--caution);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--caution-wash);
  color: var(--ink);
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
}

.check__verdict-body .reassure {
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--brand-wash);
  color: var(--ink);
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
}

/* doctor-ready summary */

.summary {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  margin: 1.75rem 0;
  padding: 1.25rem;
}

.summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.summary__head h4 {
  margin: 0;
}

.summary__intro {
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.summary dl {
  display: grid;
  gap: 0;
  margin: 0;
  grid-template-columns: minmax(9rem, auto) 1fr;
  font-size: 0.9375rem;
}

.summary dt {
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  padding: 0.6rem 1rem 0.6rem 0;
}

.summary dd {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0.6rem 0;
  font-weight: 590;
}

@media (max-width: 520px) {
  .summary dl {
    grid-template-columns: 1fr;
  }

  .summary dd {
    border-top: 0;
    padding-top: 0;
  }

  .summary dt {
    padding-bottom: 0.2rem;
  }
}

.check__after {
  border-top: 1px solid var(--line);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
}

/* ------------------------------------------------------------ contribute */

.contribute__head h3 {
  margin-bottom: 0.4rem;
}

.contribute__head p {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.contribute {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 620;
}

.field__help {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.75rem 0.9rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
  opacity: 0.75;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  outline: none;
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--caution);
}

.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}

.disclosure summary {
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
}

.disclosure__hint {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 450;
}

.disclosure__body {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.1rem 1rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.55;
}

.consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-status--error {
  color: var(--caution);
}

.form-status--success {
  color: var(--ok);
}

.form-status--pending {
  color: var(--ink-3);
}

.thanks {
  border: 1px solid var(--brand-line);
  border-radius: var(--r);
  background: var(--brand-wash);
  padding: 1.4rem 1.5rem;
}

.thanks h3 {
  margin-bottom: 0.4rem;
}

.thanks p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

@media (max-width: 780px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.site-footer nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--brand);
}

.brand--footer {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
}

.site-footer__brand p {
  max-width: 40ch;
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.langs--footer {
  margin-bottom: 1rem;
}

.site-footer__note {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8125rem;
  padding-block: 1.15rem;
}

/* --------------------------------------------------------------- home only */

.is-home .prose > h2 {
  margin-top: 3em;
}

@media print {
  .site-header,
  .site-footer,
  .hero__media,
  .check__questions,
  .cta,
  .next,
  .contribute,
  .skip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .check {
    border: 0;
    box-shadow: none;
  }
}
