/* ==========================================================
   WildWatch UK — editorial system
   Dark newsprint: hairline rules, numbered chapters,
   data band, pull quotes. No card grids.
   ========================================================== */

/* Inter (variable, OFL) — https://rsms.me/inter/ */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2"),
       url("fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0c0a08;
  --panel: #121009;
  --rule: rgba(236, 230, 220, 0.14);
  --rule-soft: rgba(236, 230, 220, 0.07);
  --ink: #ece6dc;
  --ink-strong: #ffffff;
  --muted: #a49c8f;
  --faint: #897f71;
  --fire: #ff6a3d;
  --fire-2: #ffa02c;
  --fire-dim: rgba(255, 106, 61, 0.12);
  --water: #5cb3f0;
  --water-2: #2f8fd6;
  --water-dim: rgba(92, 179, 240, 0.1);
  --maxw: 1120px;
  --readw: 46rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fire); color: #120a05; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- icon font ---- */
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: -0.22em; }
.r-icon { width: 0.95rem; height: 0.95rem; display: inline-block; vertical-align: -0.14em; color: #180a04; margin-right: 0.3rem; }
.b-icon { width: 1.35rem; height: 1.35rem; display: inline-block; vertical-align: -0.24em; color: var(--fire); margin-right: 0.15rem; }
.icon-fire { color: var(--fire); }
.icon-water { color: var(--water); }
.chapter .lede .icon { width: 1.9rem; height: 1.9rem; vertical-align: -0.32em; margin-right: 0.35rem; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- type utilities ---------- */
.read {
  max-width: var(--readw);
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--muted);
}
.read p { margin-bottom: 1.25rem; }
.read p:last-child { margin-bottom: 0; }
.read strong { color: var(--ink); font-weight: 650; }
.read a { color: var(--water); text-decoration: underline; text-underline-offset: 3px; }

.dropcap::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  font-weight: 800;
  color: var(--fire);
}

/* ---------- warning ribbon ---------- */
.ribbon {
  background: linear-gradient(90deg, #d8391f, #ff6a3d 55%, #ffa02c);
  color: #180a04;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  position: sticky;
  top: 0;
  z-index: 60;
}

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 1.25rem 0;
}
.masthead .row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.masthead .brand {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink-strong);
}
.masthead .brand b { color: var(--fire); }
.masthead .tagline {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.masthead .today {
  font-size: 0.78rem;
  color: var(--faint);
  white-space: nowrap;
}
.masthead nav {
  max-width: var(--maxw);
  margin: 1.1rem auto 0;
  border-top: 1px solid var(--ink-strong);
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a {
  flex: 0 0 auto;
  padding: 0.65rem 1rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--rule-soft);
  white-space: nowrap;
}
.masthead nav a:first-child { padding-left: 0; }
.masthead nav a:hover { color: var(--ink-strong); }
.masthead nav a.active { color: var(--fire); box-shadow: inset 0 -2px 0 var(--fire); }
.masthead nav a.water-link:hover { color: var(--water); }
.masthead nav a.water-link.active { color: var(--water); box-shadow: inset 0 -2px 0 var(--water); }
.masthead nav a.firecheck-link { color: var(--fire-2); }
.masthead nav a.firecheck-link:hover { color: var(--fire); }
.masthead nav a.firecheck-link.active { color: var(--fire); box-shadow: inset 0 -2px 0 var(--fire); }
.masthead .toggle { display: none; }

@media (max-width: 900px) {
  .masthead .row { justify-content: space-between; }
  .masthead .tagline { display: none; }
}

/* ---------- hero (front page) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem clamp(3rem, 7vw, 5rem);
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,5,4,0.94) 0%, rgba(7,5,4,0.6) 35%, rgba(7,5,4,0.14) 75%, rgba(7,5,4,0.22) 100%),
    linear-gradient(0deg, rgba(7,5,4,0.5) 0%, rgba(7,5,4,0) 46%);
}
.hero .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: glowpulse 6s ease-in-out infinite;
  background:
    radial-gradient(55% 65% at 78% 108%, rgba(255, 106, 61, 0.28), transparent 70%),
    radial-gradient(40% 50% at 20% 115%, rgba(255, 160, 44, 0.18), transparent 70%);
}
.hero.water-bg .glow {
  background:
    radial-gradient(55% 65% at 78% 108%, rgba(92, 179, 240, 0.25), transparent 70%),
    radial-gradient(40% 50% at 20% 115%, rgba(47, 143, 214, 0.16), transparent 70%);
}
.hero .inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

.hero .kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 1.4rem;
}
.hero .kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--fire);
}
.hero.water-bg .kicker { color: var(--water); }
.hero.water-bg .kicker::before { background: var(--water); }

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.3rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  max-width: 16ch;
  margin-bottom: 1.6rem;
}
.hero h1 .fire { color: var(--fire); }
.hero h1 .water { color: var(--water); }

.hero .dek {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero .dek strong { color: var(--ink); font-weight: 650; }
.hero .dek .hl-water { color: var(--water); font-weight: 650; }
.hero .dek .hl-fire { color: var(--fire); font-weight: 650; }

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  font-size: 0.8rem;
  color: var(--faint);
}
.hero .meta b { color: var(--muted); font-weight: 700; }

/* vertical wordmark down the right of the hero — solid Inter, no outline */
.hero .side {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(0.4rem, 2vw, 1.6rem);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 106, 61, 0.14);
  text-shadow:
    0 0 1.25rem rgba(12, 10, 8, 0.55),
    0 0.04rem 0.3rem rgba(12, 10, 8, 0.45);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero.water-bg .side { color: rgba(92, 179, 240, 0.14); }
/* longest single word (politics) needs a lower cap to stay inside the hero */
.hero .side.long { font-size: clamp(2.4rem, 8vw, 5.3rem); }
@media (max-width: 1100px) {
  .hero .side { display: none; }
}

/* ---------- data band (full-bleed stat row) ---------- */
.databand {
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}
.databand .row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.databand .cell {
  padding: 1.8rem 1.4rem;
  border-left: 1px solid var(--rule);
}
.databand .cell:first-child { border-left: none; padding-left: 0; }
.databand .num {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
}
.databand .num .unit { font-size: 0.45em; color: var(--muted); font-weight: 750; margin-left: 2px; }
.databand .cell.water .num { color: var(--water); }
.databand .label {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--faint);
}
.databand .label b { color: var(--muted); font-weight: 650; }
@media (max-width: 820px) {
  .databand .row { grid-template-columns: 1fr 1fr; }
  .databand .cell { border-left: none; border-top: 1px solid var(--rule); padding: 1.4rem 0; }
  .databand .cell:nth-child(odd) { border-left: none; }
  .databand .cell:nth-child(-n+2) { border-top: none; }
  .databand .cell:nth-child(2n) { border-left: 1px solid var(--rule); }
}

/* ---------- chapter sections ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section.chapter { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--rule); }
section.chapter:last-of-type { border-bottom: none; }

.chapter-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.6rem;
  align-items: baseline;
  margin-bottom: 2.2rem;
}
.chapter-head .num {
  grid-row: span 2;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(255, 106, 61, 0.16);
}
.chapter-head.water .num { color: rgba(92, 179, 240, 0.16); }
.chapter-head .eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fire);
}
.chapter-head.water .eyebrow { color: var(--water); }
.chapter-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink-strong);
}
.chapter-head .sub {
  grid-column: 2;
  font-size: 1rem;
  color: var(--faint);
}
@media (max-width: 560px) {
  .chapter-head { grid-template-columns: auto 1fr; }
  .chapter-head .num { font-size: 2.2rem; }
}

/* lead paragraph under a chapter */
.chapter .lede {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 1.8rem;
}
.chapter .lede::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: 0.84;
  padding: 0.06em 0.16em 0 0;
  font-weight: 850;
  color: var(--fire);
}
.chapter.water-lede .lede::first-letter { color: var(--water); }

/* ---------- table of contents (index) ---------- */
.toc { list-style: none; counter-reset: ch; border-top: 1px solid var(--ink-strong); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0.2rem;
  transition: background 0.15s, padding-left 0.15s;
}
.toc a:hover { background: rgba(255, 255, 255, 0.025); padding-left: 0.8rem; }
.toc .t-num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--fire);
}
.toc li.water .t-num { color: var(--water); }
.toc .t-title {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  line-height: 1.2;
}
.toc .t-desc {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--faint);
  margin-top: 0.3rem;
  max-width: 52ch;
}
.toc .t-arrow {
  font-size: 1.3rem;
  color: var(--faint);
  transition: transform 0.15s, color 0.15s;
}
.toc a:hover .t-arrow { transform: translateX(6px); color: var(--fire); }
.toc li.water a:hover .t-arrow { color: var(--water); }
@media (max-width: 560px) {
  .toc a { grid-template-columns: 2.4rem 1fr auto; gap: 0.7rem; }
}

/* ---------- pull quote ---------- */
.pull {
  max-width: 62rem;
  margin: 3.2rem 0;
  padding-left: 1.8rem;
  border-left: 3px solid var(--fire);
}
.pull.water { border-left-color: var(--water); }
.pull p {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.pull cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.pull cite b { color: var(--muted); font-weight: 700; }

/* ---------- two-column editorial (text + list) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ruled list — no cards */
.rlist { list-style: none; border-top: 1px solid var(--ink-strong); }
.rlist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.rlist .r-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--fire);
}
.rlist.water .r-num { color: var(--water); }
.rlist .r-title { font-weight: 750; color: var(--ink-strong); }
.rlist .r-text { display: block; font-size: 0.94rem; color: var(--faint); margin-top: 0.25rem; line-height: 1.55; }

/* ---------- quote strip ---------- */
.strip {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  text-align: center;
}
.strip .row { max-width: 820px; margin: 0 auto; }
.strip p {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
}
.strip p .fire { color: var(--fire); }
.strip p .water { color: var(--water); }
.strip cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- inline stat row (in-prose) ---------- */
.statline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  margin: 2rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.statline .s { display: flex; align-items: baseline; gap: 0.55rem; }
.statline .s .n {
  font-size: 1.9rem;
  font-weight: 850;
  color: var(--ink-strong);
  letter-spacing: -0.02em;
}
.statline .s .u { font-size: 0.85rem; color: var(--faint); font-weight: 700; }
.statline .s .l { font-size: 0.85rem; color: var(--faint); }
.statline.water .s .n { color: var(--water); }
.statline .s .l { display: block; margin-top: 0.15rem; }

/* ---------- callout (the one "alert" we allow) ---------- */
.callout {
  margin: 2.6rem 0;
  padding: 2rem 2rem 2rem 2.2rem;
  border: 1px solid rgba(255, 106, 61, 0.4);
  border-left: 4px solid var(--fire);
  background: linear-gradient(120deg, rgba(255, 106, 61, 0.07), transparent 55%);
}
.callout.water {
  border-color: rgba(92, 179, 240, 0.4);
  border-left-color: var(--water);
  background: linear-gradient(120deg, rgba(92, 179, 240, 0.07), transparent 55%);
}
.callout .co-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 0.8rem;
}
.callout.water .co-kicker { color: var(--water); }
.callout h3 { font-size: 1.45rem; font-weight: 800; color: var(--ink-strong); margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.callout p { color: var(--muted); max-width: 62ch; margin-bottom: 0.8rem; }
.callout p:last-child { margin-bottom: 0; }
.callout p strong { color: var(--ink); }
.callout ul { list-style: none; margin-top: 1rem; }
.callout li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
  border-top: 1px solid var(--rule-soft);
}
.callout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  background: var(--fire);
}
.callout.water li::before { background: var(--water); }

/* ---------- timeline ---------- */
.timeline { list-style: none; border-top: 1px solid var(--ink-strong); }
.timeline li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.timeline .t-yr {
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--fire);
  letter-spacing: 0.02em;
}
.timeline.water .t-yr { color: var(--water); }
.timeline .t-body { color: var(--muted); font-size: 0.97rem; }
.timeline .t-body b { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- cost breakdown (financial) ---------- */
.costs { list-style: none; border-top: 1px solid var(--ink-strong); margin-top: 1.5rem; }
.costs li { border-bottom: 1px solid var(--rule); padding: 1.3rem 0; }
.costs .c-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.costs .c-name { font-weight: 750; color: var(--ink-strong); }
.costs .c-note { display: block; color: var(--faint); font-size: 0.9rem; margin-top: 0.3rem; max-width: 56ch; }
.costs .c-fig { font-weight: 850; font-size: 1.15rem; color: var(--fire); white-space: nowrap; letter-spacing: -0.01em; }

/* ---------- table (hose ban tiers) ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.6rem; border: 1px solid var(--rule); }
table.ban { width: 100%; border-collapse: collapse; min-width: 560px; }
table.ban th, table.ban td { padding: 1rem 1.1rem; text-align: left; font-size: 0.93rem; vertical-align: top; }
table.ban thead th {
  background: var(--panel);
  color: var(--ink-strong);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-strong);
}
table.ban td { border-top: 1px solid var(--rule); color: var(--muted); }
table.ban td:first-child { color: var(--ink); font-weight: 700; }
.tier { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.22rem 0.55rem; border: 1px solid; }
.tier.t1 { color: #8fd494; border-color: rgba(143, 212, 148, 0.4); }
.tier.t2 { color: #f0a860; border-color: rgba(240, 168, 96, 0.4); }
.tier.t3 { color: #f0836a; border-color: rgba(240, 131, 106, 0.4); }

/* ---------- calculator ---------- */
.calc {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--rule);
  background: var(--panel);
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc .inputs { padding: 2rem; border-right: 1px solid var(--rule); }
@media (max-width: 860px) { .calc .inputs { border-right: none; border-bottom: 1px solid var(--rule); } }
.calc .inputs .co-kicker { color: var(--water); }
.calc .field { margin-bottom: 1.6rem; }
.calc label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.calc .val { font-weight: 850; color: var(--water); font-size: 1.05rem; }
.calc input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  outline: none;
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--water);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--water);
  cursor: pointer;
}
.calc input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--water); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--water); cursor: pointer;
}
.calc .hint { font-size: 0.78rem; color: var(--faint); margin-top: 0.4rem; }
.calc .result { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.calc .result .big {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--water);
  line-height: 1;
}
.calc .result .big small { font-size: 0.35em; color: var(--faint); font-weight: 750; }
.calc .result .r-sub { color: var(--muted); font-size: 0.95rem; margin-top: 0.7rem; }
.calc .result .breaks { margin-top: 1.4rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.calc .result .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.35rem 0;
}
.calc .result .row b { color: var(--water); font-weight: 750; }
.calc .result .note-line { color: var(--faint); font-size: 0.82rem; margin-top: 1rem; }

/* ---------- action checklist ---------- */
.actions { list-style: none; border-top: 1px solid var(--ink-strong); margin-top: 1.5rem; }
.actions li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.actions .a-num {
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: var(--fire);
}
.actions.water .a-num { color: var(--water); }
.actions .a-title { font-weight: 750; color: var(--ink-strong); font-size: 1.05rem; }
.actions .a-text { display: block; color: var(--faint); font-size: 0.95rem; margin-top: 0.3rem; max-width: 62ch; line-height: 1.6; }

/* ---------- CTA row ---------- */
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin-top: 2.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.fire { background: linear-gradient(90deg, var(--fire), var(--fire-2)); color: #180a04; }
.btn.water { background: var(--water); color: #04121f; }
.btn.ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }
.cta-row .link { font-size: 0.9rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.cta-row .link:hover { color: var(--ink-strong); }

/* ---------- footer ---------- */
footer {
  margin-top: 0;
  border-top: 1px solid var(--ink-strong);
  background: #0a0806;
  padding: 3rem 1.25rem 2.5rem;
}
footer .row { max-width: var(--maxw); margin: 0 auto; }
footer .foot-nav {
  display: flex;
  gap: 0.4rem 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
footer .foot-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
footer .foot-nav a:hover { color: var(--fire); }
footer .sources { color: var(--faint); font-size: 0.85rem; max-width: 82ch; line-height: 1.7; margin-bottom: 1.4rem; }
footer .note { color: var(--faint); font-size: 0.8rem; }
footer .note strong { color: var(--muted); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(12, 10, 8, 0.85);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 55;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); border-color: var(--fire); color: var(--fire); }

@keyframes glowpulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* ---------- citations ---------- */
.cite {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fire);
  vertical-align: super;
  line-height: 0;
  margin-left: 0.1em;
}
.cite a { color: inherit; text-decoration: none; }
.cite a:hover { text-decoration: underline; }
.chapter.water-lede .cite, .water-bg .cite { color: var(--water); }
.sources-list {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.7;
  list-style: none;
  padding-left: 0;
}
.sources-list li { margin-bottom: 0.4rem; padding-left: 1.2rem; position: relative; }
.sources-list li::before { content: attr(data-n); position: absolute; left: 0; font-weight: 800; color: var(--fire); font-size: 0.7rem; }
.chapter.water-lede .sources-list li::before { color: var(--water); }
.sources-list a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.sources-list a:hover { color: var(--ink); }

/* ---------- partner service callout ---------- */
.partner {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--water);
  background: rgba(92, 179, 240, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  align-items: baseline;
}
.partner .p-icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  color: var(--water);
}
.partner .p-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--water);
}
.partner .p-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.partner .p-body a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--water);
}
.partner .p-body a:hover { color: var(--water); }

/* ---------- misc ---------- */
.divider { border: none; border-top: 1px solid var(--rule); margin: 0; }
.small { font-size: 0.85rem; color: var(--faint); }
.mt-lg { margin-top: 2.5rem; }
.mt-sm { margin-top: 0.5rem; }
.mb-sm { margin-bottom: 0.4rem; }
.subhead { font-size: 1.45rem; font-weight: 800; color: var(--ink-strong); letter-spacing: -0.01em; }
.pc-note { margin-top: 1rem; opacity: 0.85; }
.pc-note a { color: var(--water); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
