/* ==========================================================================
   RainDelayLog design system
   Site tough: concrete grey, storm slate, hazard orange.
   Hard grid, stencil numerals, rain streak texture, linear motion only.
   ========================================================================== */

:root {
  /* --- brief palette ------------------------------------------------ */
  --bg: #EEF0F2;
  --surface: #FFFFFF;
  --ink: #161A1D;
  --primary: #334A5B;
  --accent: #E8590C;
  --muted: #65707A;

  /* --- derived slate shades ----------------------------------------- */
  --slate-950: #0C1115;
  --slate-900: #10171C;
  --slate-800: #1C2932;
  --slate-700: #27394A;
  --primary-600: #3E5A6F;
  --primary-400: #6C879B;
  --primary-200: #B3C2CC;
  --primary-100: #D8E0E6;

  /* --- derived hazard shades ---------------------------------------- */
  --accent-800: #8F3406;
  --accent-700: #B7430A;
  --accent-500: #F2701F;
  --accent-200: #F9CFB2;
  --accent-050: #FDEDE2;

  /* --- concrete neutrals -------------------------------------------- */
  --concrete-050: #F6F7F8;
  --concrete-100: #E4E7EA;
  --concrete-200: #D3D8DC;
  --line: #C4CBD1;
  --line-strong: #98A2AA;

  /* --- type ---------------------------------------------------------- */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 3.5rem;
  --fs-4xl: 4.5rem;
  --lh-tight: 1.02;
  --lh-head: 1.08;
  --lh-body: 1.62;
  --track-wide: 0.16em;
  --track-mega: 0.3em;

  /* --- spacing scale -------------------------------------------------- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 44px;
  --s8: 64px;
  --s9: 88px;
  --s10: 120px;

  /* --- structure ------------------------------------------------------ */
  --wrap: 1240px;
  --gutter: 20px;
  --r-sharp: 0px;
  --r-soft: 2px;
  --border-hair: 1px solid var(--line);
  --border-hard: 2px solid var(--ink);
  --border-slate: 2px solid var(--primary);
  --shadow-hard: 7px 7px 0 rgba(22, 26, 29, 0.14);
  --shadow-hard-sm: 4px 4px 0 rgba(22, 26, 29, 0.16);
  --shadow-accent: 7px 7px 0 var(--accent-200);
  --speed-fast: 110ms;
  --speed: 180ms;
  --speed-slow: 320ms;
  --ease: linear;
}

/* --------------------------------------------------------------------- *
   Reset and base
 * --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(51, 74, 91, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(51, 74, 91, 0.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.15rem; }
li { margin-bottom: var(--s2); }
strong { font-weight: 700; }
hr { border: 0; border-top: var(--border-hair); margin: var(--s7) 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 0 0 var(--s4);
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, var(--fs-4xl)); line-height: var(--lh-tight); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, var(--fs-2xl)); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2.2vw, var(--fs-lg)); text-transform: uppercase; }
h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; }

::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------- *
   Accessibility helpers
 * --------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s4); top: -70px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  padding: var(--s3) var(--s5);
  border: var(--border-hard);
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: var(--s4); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-footer :focus-visible { outline-color: var(--accent-500); }

/* --------------------------------------------------------------------- *
   Layout primitives, hard grid
 * --------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s9) 0; position: relative; }
.section--tight { padding: var(--s8) 0; }
.section--slate { background: var(--slate-900); color: var(--concrete-100); }
.section--slate h2, .section--slate h3 { color: #fff; }
.section--paper { background: var(--surface); border-top: var(--border-hard); border-bottom: var(--border-hard); }

.hazard-bar {
  height: 8px;
  background-image: repeating-linear-gradient(45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
}
.hazard-bar--thin { height: 5px; }

.rule-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.rule-row::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--ink);
}
.section--slate .rule-row::after { background: var(--primary-600); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--track-mega);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-700);
  margin: 0;
}
.section--slate .eyebrow { color: var(--accent-500); }

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  border: var(--border-hard);
  background: var(--surface);
  padding: 5px var(--s3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}
.section--slate .sec-tag { background: var(--slate-800); border-color: var(--primary-600); color: #fff; }
.sec-tag b { color: var(--accent-700); }
.section--slate .sec-tag b { color: var(--accent-500); }

.lede {
  font-size: var(--fs-md);
  max-width: 62ch;
  color: var(--slate-800);
}
.section--slate .lede { color: var(--primary-200); }

/* Stencil numerals: hazard paint with cut bridges */
.stencil {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.86;
  color: transparent;
  background-image: repeating-linear-gradient(
    0deg,
    var(--accent) 0 0.2em,
    transparent 0.2em 0.235em
  );
  -webkit-background-clip: text;
  background-clip: text;
}
.stencil--slate { background-image: repeating-linear-gradient(0deg, var(--primary) 0 0.2em, transparent 0.2em 0.235em); }
.stencil--pale { background-image: repeating-linear-gradient(0deg, #fff 0 0.2em, transparent 0.2em 0.235em); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .stencil { color: var(--accent); background-image: none; }
  .stencil--slate { color: var(--primary); }
  .stencil--pale { color: #fff; }
}

/* Rain streak texture */
.rain { position: relative; overflow: hidden; }
.rain > * { position: relative; z-index: 2; }
.rain::before {
  content: "";
  position: absolute;
  inset: -30% -12%;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(51, 74, 91, 0.12) 0 1px,
    transparent 1px 11px
  );
  animation: rainfall 2.6s var(--ease) infinite;
}
.section--slate.rain::before,
.rain--pale::before {
  background-image: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 11px);
}
@keyframes rainfall {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-11px, 62px, 0); }
}

/* --------------------------------------------------------------------- *
   Buttons
 * --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  text-decoration: none;
  padding: 13px var(--s6);
  border: var(--border-hard);
  border-radius: var(--r-sharp);
  cursor: pointer;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease),
              background-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-hard-sm); }
.btn--primary:hover { background: var(--accent-700); color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(22, 26, 29, 0.18); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: var(--shadow-hard-sm); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(22, 26, 29, 0.18); }
.btn--slate { background: var(--primary); color: #fff; border-color: var(--slate-950); box-shadow: var(--shadow-hard-sm); }
.btn--slate:hover { background: var(--slate-800); color: #fff; transform: translate(2px, 2px); }
.btn--wide { width: 100%; }
.btn--sm { padding: 9px var(--s4); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------- *
   Header
 * --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 0 rgba(22, 26, 29, 0.08); }
.site-header.is-stuck .brand-sub { opacity: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  text-transform: uppercase;
  transition: opacity var(--speed) var(--ease);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.nav-list a:hover { border-bottom-color: var(--accent); color: var(--accent-700); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: var(--border-hard);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] { background: var(--accent); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; background: #fff; }
.nav-toggle[aria-expanded="true"] span::after { top: 0; background: #fff; }

/* --------------------------------------------------------------------- *
   Hero
 * --------------------------------------------------------------------- */
.hero { background: var(--surface); border-bottom: 2px solid var(--ink); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  padding: var(--s8) 0 var(--s9);
  align-items: start;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  border-left: 6px solid var(--accent);
  padding-left: var(--s3);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: var(--s5);
}
.hero h1 { max-width: 15ch; }
.hero h1 .hl {
  background-image: linear-gradient(0deg, var(--accent-200) 0 0.24em, transparent 0.24em);
  padding: 0 0.06em;
}
.hero-copy p { max-width: 58ch; font-size: var(--fs-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s6) 0 var(--s7); }
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--border-hard);
  background: var(--concrete-050);
}
.trust-strip div {
  padding: var(--s4) var(--s5);
  border-bottom: var(--border-hair);
}
.trust-strip div:last-child { border-bottom: 0; }
.trust-strip b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}
.trust-strip span { font-size: var(--fs-sm); color: var(--muted); }
.hero-figure { position: relative; }
.hero-figure img { border: var(--border-hard); box-shadow: var(--shadow-hard); width: 100%; }
.hero-figure figcaption {
  position: absolute;
  left: 0; bottom: -18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  padding: 7px var(--s4);
}

/* Rain gauge module */
.gauge-card {
  position: absolute;
  right: -14px;
  top: 26px;
  width: 168px;
  background: var(--surface);
  border: var(--border-hard);
  box-shadow: var(--shadow-hard-sm);
  padding: var(--s4);
  display: flex;
  gap: var(--s4);
  align-items: flex-end;
}
.gauge {
  position: relative;
  width: 44px;
  height: 148px;
  border: 2px solid var(--ink);
  background: var(--concrete-050);
  overflow: hidden;
  flex: none;
}
.gauge__fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary) 100%);
  transition: height 1200ms var(--ease);
}
.is-in .gauge__fill { height: var(--level, 62%); }
.gauge__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 17px, rgba(22, 26, 29, 0.55) 17px 18px);
}
.gauge-meta { font-family: var(--font-display); text-transform: uppercase; line-height: 1.16; }
.gauge-meta b { display: block; font-size: 1.7rem; color: var(--accent-700); }
.gauge-meta span { font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--muted); }

/* --------------------------------------------------------------------- *
   Cards and grids
 * --------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.panel {
  background: var(--surface);
  border: var(--border-hard);
  padding: var(--s6) var(--s5);
  position: relative;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.panel:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-sm); }
.panel h3 { margin-bottom: var(--s3); }
.panel p:last-child { margin-bottom: 0; }
.panel--cost::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 5px;
  background-image: repeating-linear-gradient(45deg, var(--accent) 0 10px, var(--ink) 10px 20px);
}
.cost-tag {
  display: inline-block;
  margin-top: var(--s4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-800);
  background: var(--accent-050);
  border: 1px solid var(--accent-200);
  padding: 5px var(--s3);
}

/* Steps */
.steps { display: grid; gap: 0; border: var(--border-hard); background: var(--surface); }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--s5);
  padding: var(--s6) var(--s5);
  border-bottom: var(--border-hair);
}
.step:last-child { border-bottom: 0; }
.step .stencil { font-size: 3.4rem; }
.step h3 { margin-bottom: var(--s2); }
.step p { margin-bottom: 0; color: var(--slate-800); }
.step-note {
  display: block;
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.how-figure img { border: var(--border-hard); box-shadow: var(--shadow-hard); }
.how-figure figcaption {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: var(--s3);
}

/* Feature cards */
.feature { background: var(--surface); border: var(--border-hard); padding: var(--s6) var(--s5); }
.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  background: var(--concrete-050);
  margin-bottom: var(--s4);
}
.feature svg { display: block; }
.feature h3 { font-size: 1.3rem; margin-bottom: var(--s3); }
.feature p { margin-bottom: 0; color: var(--slate-800); font-size: var(--fs-base); }

/* Outcome blocks */
.outcome {
  border: 2px solid var(--primary-600);
  background: var(--slate-800);
  padding: var(--s6) var(--s5);
}
.outcome .num { font-size: 3.6rem; display: block; margin-bottom: var(--s2); }
.outcome h3 { color: #fff; font-size: 1.2rem; margin-bottom: var(--s3); }
.outcome p { color: var(--primary-200); margin-bottom: 0; font-size: var(--fs-sm); line-height: 1.58; }

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: var(--border-hard);
  padding: var(--s6) var(--s5) var(--s5);
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px;
  width: 46px; height: 6px;
  background: var(--accent);
}
.testimonial p { font-size: var(--fs-md); line-height: 1.52; }
.testimonial footer {
  border-top: var(--border-hair);
  padding-top: var(--s4);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.results {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--border-hard);
  background: var(--ink);
  margin-top: var(--s7);
}
.results div { padding: var(--s5); border-bottom: 1px solid var(--slate-700); }
.results div:last-child { border-bottom: 0; }
.results b { display: block; font-size: 2.6rem; line-height: 1; }
.results span { font-size: var(--fs-sm); color: var(--primary-200); }

/* --------------------------------------------------------------------- *
   Pricing
 * --------------------------------------------------------------------- */
.price-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-items: start; }
.tier {
  background: var(--surface);
  border: var(--border-hard);
  padding: var(--s6) var(--s5);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--pick { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.tier__flag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  padding: 5px var(--s3);
  margin-bottom: var(--s4);
}
.tier__flag--hollow { background: var(--concrete-100); color: var(--muted); }
.tier h3 { font-size: 1.55rem; margin-bottom: var(--s2); }
.tier .amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.tier .per { font-size: var(--fs-sm); color: var(--muted); display: block; margin-bottom: var(--s4); }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--s6); }
.tier li {
  padding-left: 26px;
  position: relative;
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin-bottom: var(--s3);
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--s6);
  border: var(--border-hair);
  border-left: 6px solid var(--primary);
  background: var(--surface);
  padding: var(--s4) var(--s5);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------- *
   FAQ
 * --------------------------------------------------------------------- */
.faq-list { border-top: var(--border-hard); }
.faq-item { border-bottom: var(--border-hard); background: var(--surface); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--s5);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: background-color var(--speed-fast) var(--ease);
}
.faq-q:hover { background: var(--concrete-050); }
.faq-q .mark {
  flex: none;
  width: 30px; height: 30px;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.faq-q .mark::before, .faq-q .mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-q .mark::before { width: 14px; height: 2px; }
.faq-q .mark::after { width: 2px; height: 14px; transition: transform var(--speed) var(--ease); }
.faq-q[aria-expanded="true"] .mark { background: var(--accent); border-color: var(--accent); }
.faq-q[aria-expanded="true"] .mark::before { background: #fff; }
.faq-q[aria-expanded="true"] .mark::after { transform: scaleY(0); background: #fff; }
.faq-a { padding: 0 var(--s5) var(--s5); max-width: 76ch; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------- *
   Contact form
 * --------------------------------------------------------------------- */
.form-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  border: var(--border-hard);
  background: var(--surface);
  padding: var(--s7) var(--s5);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-800);
}
input[type="text"], input[type="email"], select, textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--concrete-050);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-sharp);
  padding: 11px var(--s3);
  width: 100%;
  transition: border-color var(--speed-fast) var(--ease), background-color var(--speed-fast) var(--ease);
}
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--primary); }
textarea { min-height: 132px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
[aria-invalid="true"] { border-color: var(--accent) !important; background: var(--accent-050); }
.err {
  font-size: var(--fs-sm);
  color: var(--accent-800);
  font-weight: 600;
  min-height: 1px;
}
.consent { display: flex; align-items: flex-start; gap: var(--s3); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.consent label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; color: var(--slate-800); }
.form-aside { border-left: 0; border-top: 4px solid var(--ink); padding-top: var(--s5); }
.form-aside h3 { font-size: 1.2rem; }
.form-aside ul { list-style: none; padding: 0; }
.form-aside li { padding-left: 22px; position: relative; font-size: var(--fs-sm); }
.form-aside li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--accent); }
.reassure { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s5); }

/* --------------------------------------------------------------------- *
   Author byline block
 * --------------------------------------------------------------------- */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  border: var(--border-hair);
  border-left: 6px solid var(--accent);
  background: var(--surface);
  padding: var(--s5);
  margin-top: var(--s8);
  font-size: var(--fs-sm);
}
.byline b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; }

/* --------------------------------------------------------------------- *
   Long form pages
 * --------------------------------------------------------------------- */
.page-head { background: var(--slate-900); color: #fff; padding: var(--s8) 0; border-bottom: 8px solid var(--accent); position: relative; }
.page-head h1 { color: #fff; max-width: 22ch; }
.page-head p { color: var(--primary-200); max-width: 62ch; margin-bottom: 0; }
.crumbs { font-family: var(--font-display); font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-400); margin-bottom: var(--s4); }
.crumbs a { color: var(--primary-200); text-decoration: none; }
.crumbs a:hover { color: var(--accent-500); }
.prose { max-width: 76ch; }
.prose h2 { margin-top: var(--s8); font-size: 1.9rem; }
.prose h3 { margin-top: var(--s6); font-size: 1.3rem; }
.prose ul { padding-left: 1.2rem; }
.doc-card { background: var(--surface); border: var(--border-hard); padding: var(--s6) var(--s5); margin-bottom: var(--s5); }
.doc-card dl { margin: 0; }
.doc-card dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s4); }
.doc-card dd { margin: 2px 0 0; font-weight: 600; }
.author-layout { display: grid; grid-template-columns: 1fr; gap: var(--s7); }
.author-portrait img { border: var(--border-hard); box-shadow: var(--shadow-hard); width: 100%; }
.author-portrait figcaption { font-size: var(--fs-sm); color: var(--muted); padding-top: var(--s3); }
.profile-links { list-style: none; padding: 0; margin: 0; }
.profile-links li { margin-bottom: var(--s2); }
.profile-links a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.map-group { background: var(--surface); border: var(--border-hard); padding: var(--s5); margin-bottom: var(--s5); }
.map-group h2 { font-size: 1.35rem; border-bottom: var(--border-hair); padding-bottom: var(--s3); }
.map-group ul { list-style: none; padding: 0; margin: 0; }
.map-group li { border-bottom: var(--border-hair); padding: var(--s3) 0; }
.map-group li:last-child { border-bottom: 0; }
.map-group a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; }
.map-group span { display: block; color: var(--muted); font-size: var(--fs-sm); }
.mini-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
.big-code { font-size: clamp(5rem, 20vw, 11rem); display: block; }

/* --------------------------------------------------------------------- *
   Footer
 * --------------------------------------------------------------------- */
.site-footer { background: var(--slate-950); color: var(--primary-200); border-top: 8px solid var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s7);
  padding: var(--s8) 0 var(--s7);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; color: var(--primary-200); }
.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.13em;
  border-bottom: 2px solid var(--slate-700);
  padding-bottom: var(--s3);
  margin-bottom: var(--s4);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--primary-200); text-decoration: none; font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--accent-500); text-decoration: underline; }
.social { display: flex; gap: var(--s3); margin-top: var(--s5); }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 2px solid var(--slate-700);
  color: var(--primary-200);
  transition: background-color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-base {
  border-top: 2px solid var(--slate-800);
  padding: var(--s5) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--primary-400);
}
.footer-base a { color: var(--primary-200); }

/* --------------------------------------------------------------------- *
   Reveal motion, linear only
 * --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity var(--speed-slow) var(--ease), transform var(--speed-slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------- *
   Breakpoints
 * --------------------------------------------------------------------- */
@media (min-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-strip div { border-bottom: 0; border-right: var(--border-hair); }
  .trust-strip div:last-child { border-right: 0; }
  .results { grid-template-columns: repeat(3, 1fr); }
  .results div { border-bottom: 0; border-right: 1px solid var(--slate-700); }
  .results div:last-child { border-right: 0; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 104px 1fr; padding: var(--s6); }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .how-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s7); align-items: start; }
  .author-layout { grid-template-columns: 320px 1fr; }
  .form-shell { grid-template-columns: 1.4fr 0.6fr; padding: var(--s8); }
  .form-aside { border-left: 2px solid var(--ink); border-top: 0; padding-top: 0; padding-left: var(--s6); }
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: var(--s9); align-items: center; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: var(--s10) 0; }
}
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: var(--border-hard);
    box-shadow: 0 10px 0 rgba(22, 26, 29, 0.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s4) var(--gutter) var(--s5); }
  .nav-list li { margin: 0; border-bottom: var(--border-hair); }
  .nav-list a { display: block; padding: var(--s4) 0; font-size: 1.15rem; }
  .nav-cta .btn { display: none; }
  .gauge-card { position: static; width: 100%; margin-top: var(--s6); }
  .hero-figure figcaption { position: static; display: inline-block; margin-top: var(--s4); }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero-actions { gap: var(--s3); }
  .panel, .feature, .tier, .outcome { padding: var(--s5) var(--s4); }
}

/* --------------------------------------------------------------------- *
   Print
 * --------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* --------------------------------------------------------------------- *
   Reduced motion
 * --------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rain::before { animation: none; }
  .gauge__fill { height: var(--level, 62%); }
}

/* ===================================================================== *
   THE WEATHER DAY, the magazine
   Same hard grid, same stencil and hazard language as the product pages.
 * ===================================================================== */

/* --- index grid and cards ------------------------------------------- */
.mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-top: var(--s7);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border-hard);
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.mag-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.mag-card__media { margin: 0; border-bottom: var(--border-hard); background: var(--concrete-100); }
.mag-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card__body { padding: var(--s5) var(--s4) var(--s5); display: flex; flex-direction: column; flex: 1; }
.mag-card__angle {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--accent-700);
  margin: 0 0 var(--s3);
}
.mag-card__title { font-size: 1.4rem; margin: 0 0 var(--s3); }
.mag-card__title a { color: var(--ink); text-decoration: none; }
.mag-card__title a:hover { color: var(--accent-700); text-decoration: underline; text-decoration-thickness: 2px; }
.mag-card__dek { color: var(--slate-800); font-size: var(--fs-sm); margin-bottom: var(--s5); }
.mag-card__meta {
  margin: auto 0 0;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: var(--border-hair);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-card__sep { width: 8px; height: 8px; background: var(--accent); flex: none; }

/* The lead card carries the most recent piece at a larger size. */
.mag-card.lead { border-width: 3px; box-shadow: var(--shadow-hard); }
.mag-card.lead .mag-card__media img { aspect-ratio: 16 / 9; }
.mag-card.lead .mag-card__body { padding: var(--s6) var(--s5); }
.mag-card.lead .mag-card__title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.mag-card.lead .mag-card__dek { font-size: var(--fs-base); max-width: 62ch; }
.mag-card.lead .mag-card__angle { color: var(--ink); background: var(--accent-200); display: inline-block; padding: 4px var(--s3); }

/* --- article header -------------------------------------------------- */
.art-head { border-bottom: 8px solid var(--accent); }
.art-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 5.4vw, var(--fs-3xl)); }
.crumbs__here { color: var(--primary-400); }
.art-angle {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent-500);
  margin: 0 0 var(--s4);
}
.art-standfirst {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--primary-200);
  max-width: 62ch;
  margin-bottom: 0;
}
.art-byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 2px solid var(--slate-700);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-400);
}
.art-byline a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--accent); }
.art-byline a:hover { color: var(--accent-500); }
.art-byline__who { color: var(--primary-200); }
.art-byline__read { color: var(--accent-500); font-weight: 700; }

/* --- article shell and body typography -------------------------------- */
.art-shell { padding-top: var(--s8); padding-bottom: var(--s9); }
.art-figure { margin: 0 0 var(--s8); max-width: 900px; }
.art-figure img { border: var(--border-hard); box-shadow: var(--shadow-hard); width: 100%; }
.art-figure figcaption {
  font-size: var(--fs-sm);
  color: var(--muted);
  padding-top: var(--s3);
  border-bottom: var(--border-hair);
  padding-bottom: var(--s3);
}

.art-body { max-width: 68ch; font-size: var(--fs-md); line-height: 1.68; }
.art-body > p { margin: 0 0 var(--s5); }
.art-body h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: var(--s8) 0 var(--s4);
  padding-top: var(--s4);
  border-top: var(--border-hard);
}
.art-body h3 { font-size: 1.3rem; margin: var(--s7) 0 var(--s3); color: var(--primary); }
.art-body ul, .art-body ol { margin: 0 0 var(--s5); padding-left: 1.3rem; }
.art-body li { margin-bottom: var(--s3); }
.art-body li::marker { color: var(--accent-700); font-weight: 700; }
.art-body blockquote {
  margin: var(--s6) 0;
  padding: var(--s5);
  background: var(--surface);
  border: var(--border-hair);
  border-left: 6px solid var(--accent);
  font-size: var(--fs-md);
}
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s6) 0;
  background: var(--surface);
  border: var(--border-hard);
  font-size: var(--fs-sm);
  display: block;
  overflow-x: auto;
}
.art-body th, .art-body td { border: var(--border-hair); padding: var(--s3); text-align: left; vertical-align: top; }
.art-body th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--concrete-100);
}
.art-body a { color: var(--primary); font-weight: 600; }
.art-body a:hover { color: var(--accent-700); }

/* Contextual keep reading line inside the body */
.inline-read {
  margin: var(--s6) 0;
  padding: var(--s4);
  background: var(--concrete-050);
  border: var(--border-hair);
  border-left: 6px solid var(--primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.inline-read a { color: var(--accent-700); }

/* --- call to action --------------------------------------------------- */
.art-cta {
  max-width: 900px;
  margin-top: var(--s8);
  background: var(--slate-900);
  color: var(--concrete-100);
  border: var(--border-hard);
  border-bottom: 8px solid var(--accent);
  padding: var(--s7) var(--s5);
}
.art-cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.art-cta .eyebrow { color: var(--accent-500); margin-bottom: var(--s4); }
.art-cta p { max-width: 62ch; color: var(--primary-200); }
.art-cta .btn { margin-top: var(--s4); }

/* --- author box ------------------------------------------------------- */
.author-box {
  max-width: 900px;
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  background: var(--surface);
  border: var(--border-hair);
  border-top: 6px solid var(--accent);
  padding: var(--s6) var(--s5);
}
.author-box img { border: var(--border-hard); width: 132px; height: 132px; object-fit: cover; }
.author-box__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s3);
}
.author-box__text p { color: var(--slate-800); font-size: var(--fs-sm); }
.author-box__link a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.author-box__text p:last-child { margin-bottom: 0; }

/* --- read also -------------------------------------------------------- */
.related { margin-top: var(--s9); border-top: var(--border-hard); padding-top: var(--s6); }
.related h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.rel-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); margin-top: var(--s6); }
.rel-card {
  background: var(--surface);
  border: var(--border-hair);
  border-top: 4px solid var(--primary);
  padding-bottom: var(--s4);
  transition: border-top-color var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.rel-card:hover { border-top-color: var(--accent); transform: translate(0, -2px); }
.rel-card__media { display: block; }
.rel-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: var(--border-hair); }
.rel-card__title { font-size: 1.15rem; margin: var(--s4) var(--s4) var(--s3); }
.rel-card__title a { color: var(--ink); text-decoration: none; }
.rel-card__title a:hover { color: var(--accent-700); text-decoration: underline; }
.rel-card__dek { margin: 0 var(--s4) var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.rel-card__meta {
  margin: 0 var(--s4);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- magazine teaser on the home page --------------------------------- */
.mag-grid--home { margin-top: var(--s7); }

/* --- published articles list on the author page ----------------------- */
.article-list { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: var(--border-hard); }
.article-list li { margin: 0; border-bottom: var(--border-hair); padding: var(--s4) 0; }
.article-list a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; text-decoration: none; }
.article-list a:hover { text-decoration: underline; }
.article-list time { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* --- magazine breakpoints --------------------------------------------- */
@media (min-width: 620px) {
  .author-box { grid-template-columns: 132px 1fr; gap: var(--s6); align-items: start; }
  .art-cta { padding: var(--s8) var(--s7); }
  .mag-card__body { padding: var(--s5); }
}
@media (min-width: 900px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .mag-card.lead .mag-card__media { border-bottom: 0; border-right: var(--border-hard); height: 100%; }
  .mag-card.lead .mag-card__media img { height: 100%; aspect-ratio: auto; }
  .mag-card.lead .mag-card__body { justify-content: center; padding: var(--s7); }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
  .mag-grid--home { grid-template-columns: repeat(3, 1fr); }
  .art-shell { padding-top: var(--s9); }
}
@media (min-width: 1080px) {
  .mag-grid { grid-template-columns: repeat(3, 1fr); }
  .mag-card.lead { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .art-cta, .author-box, .mag-card__body { padding-left: var(--s4); padding-right: var(--s4); }
  .art-byline { gap: var(--s2) var(--s4); font-size: var(--fs-xs); }
  .art-body { font-size: var(--fs-base); }
  .author-box img { width: 96px; height: 96px; }
}



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Decorative bleed guard. Several sections intentionally hang a rotated or offset
   pseudo element past the viewport edge. overflow-x: clip contains them without
   creating a scroll container, so position: sticky keeps working, unlike overflow
   hidden. Genuine content overflow is still reported by the element level check in
   the browser pass. */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
