:root {
  --navy: #0b1f3a;
  --navy-2: #13305a;
  --teal: #1aa39a;
  --teal-dark: #0f7d76;
  --coral: #e8735c;
  --amber: #f2b441;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
  --max: 1160px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .75rem; display: inline-block;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Parody banner (subpages) ---------- */
.parody-banner {
  background: var(--amber);
  color: #2b1d00;
  font-size: .85rem;
  text-align: center;
  padding: .45rem 1rem;
  font-weight: 600;
}
.parody-banner a { color: #2b1d00; }

/* ---------- Alert bar ---------- */
.alertbar {
  background: var(--navy);
  color: #cfe3f5;
  font-size: .85rem;
  padding: .5rem 0;
}
.alertbar .wrap { display: flex; gap: .6rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.alertbar .dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(26,163,154,.25); }
.alertbar a { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand strong { font-family: var(--serif); font-size: 1.3rem; display: block; line-height: 1; }
.brand span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-dark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 24px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .6rem 0; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.3rem; border-radius: 999px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--teal); transition: .15s ease; cursor: pointer; font-size: .95rem;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.outline { background: transparent; color: var(--teal-dark); }
.btn.outline:hover { background: var(--teal); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy) url("../img/hero.jpg") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,58,.96) 0%, rgba(11,31,58,.82) 45%, rgba(11,31,58,.2) 100%);
}
.hero .wrap { position: relative; padding: 110px 24px 120px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { color: #c9d8e8; }
.hero .eyebrow { color: #7fe0d7; }
.hero .actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }

.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: 64px 24px 56px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--navy); color: #d6e2ef; }
section.dark h2, section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(26,163,154,.12); color: var(--teal-dark); font-size: 1.4rem; margin-bottom: 1rem;
}
.card .icon.coral { background: rgba(232,115,92,.13); color: var(--coral); }
.card .icon.amber { background: rgba(242,180,65,.18); color: #a66f00; }
.card.link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; display: block; }
.card.link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11,31,58,.12); }
.card.link .more { color: var(--teal-dark); font-weight: 600; font-size: .9rem; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; font-style: italic; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.overlap { margin-top: -56px; position: relative; z-index: 2; }

.risk {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem;
  border-radius: 999px; background: rgba(26,163,154,.15); color: #7fe0d7; font-weight: 600; font-size: .85rem;
}

/* ---------- Lists / tables ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700;
}
.xlist li::before { content: "!"; background: var(--coral); }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.callout {
  border-left: 4px solid var(--coral); background: #fff6f3; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout.teal { border-color: var(--teal); background: #eefaf8; }
.callout h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: .35rem; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
}
.timeline .when { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.timeline h3 { margin: .2rem 0 .3rem; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details summary {
  cursor: pointer; font-weight: 600; font-size: 1.08rem; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-top: .8rem; color: var(--muted); }

/* ---------- Footnotes ---------- */
.refs { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.5rem; }
.refs ol { padding-left: 1.2rem; margin: 0; }
.refs li { margin-bottom: .4rem; }
sup a { text-decoration: none; font-size: .75em; }

/* ---------- Footer ---------- */
.site-footer { background: #081629; color: #9fb2c8; font-size: .9rem; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #cfe0f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.satire-note { color: #f2c86b; }

/* ---------- Joke disclosure modal ---------- */
.gp-modal {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(8, 22, 41, .72); padding: 20px;
}
.gp-modal.show { display: flex; animation: fade .2s ease; }
.gp-modal .box {
  background: #fff; max-width: 520px; width: 100%; border-radius: 18px; padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center;
}
.gp-modal .emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .6rem; }
.gp-modal h2 { font-size: 1.6rem; }
.gp-modal p { color: var(--muted); }
.gp-modal .actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
section.dark .card h3 { color: var(--navy); }
