/* ============================================================
   Daily Deal — Personal Finance Comparisons
   Clean, professional consumer-finance editorial.
   Emerald accent, airy white surfaces, modern sans.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --ink: #142033;
  --ink-soft: #243247;
  --ink-faint: #3d4f66;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f6;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --muted: #5b6b7c;
  --muted-light: #8b98a8;

  --green: #0c9b6b;
  --green-deep: #087a54;
  --green-dark: #065c3f;
  --green-soft: #e6f6ef;
  --green-mid: #b8e6d3;
  --green-glow: rgba(12, 155, 107, 0.14);

  --navy: #0f2744;
  --navy-deep: #0a1b30;
  --amber: #f59e0b;
  --amber-soft: #fff7e6;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Source Serif 4', Georgia, 'Iowan Old Style', 'Times New Roman', serif;

  --wrap-max: 1140px;
  --wrap-wide: 1240px;
  --pad-x: clamp(18px, 4vw, 32px);
  --section-y: clamp(48px, 6.5vw, 80px);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 51, 0.05);
  --shadow-card: 0 1px 3px rgba(20, 32, 51, 0.05), 0 8px 24px rgba(20, 32, 51, 0.06);
  --shadow-lift: 0 4px 8px rgba(20, 32, 51, 0.06), 0 16px 40px rgba(20, 32, 51, 0.1);
  --shadow-header: 0 1px 0 rgba(20, 32, 51, 0.06), 0 4px 16px rgba(20, 32, 51, 0.04);
  --measure: 42rem;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap-wide {
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--green); color: #fff; font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

a:focus-visible,
button:focus-visible,
.page-num:focus-visible,
.nav-burger:focus-visible,
.nav-close:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  flex: none;
}

.kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  transition: color 0.15s ease;
}
.kicker:hover { color: var(--green-deep); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green-dark);
  line-height: 1;
}
.badge-amber {
  background: var(--amber-soft);
  color: #92400e;
}

.byline {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
}
.byline time { white-space: nowrap; }
.byline-name { font-weight: 600; color: var(--ink-faint); }
.byline-dot { opacity: 0.55; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 0 0 2px var(--paper);
}
.avatar-lg { width: 44px; height: 44px; }
.avatar-xl { width: 56px; height: 56px; }

.media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-2), var(--line));
  position: relative;
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.media:hover img { transform: scale(1.04); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(12, 155, 107, 0.2), 0 6px 16px rgba(12, 155, 107, 0.18);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(12, 155, 107, 0.22), 0 12px 28px rgba(12, 155, 107, 0.22);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.btn-ghost {
  background: transparent;
  color: var(--green);
  padding-inline: 8px;
  min-height: 40px;
  font-size: 0.875rem;
}
.btn-ghost:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.btn-lg { min-height: 54px; padding-inline: 28px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding-inline: 16px; font-size: 0.8125rem; }

.section { padding-block: var(--section-y); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section-head-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.15s ease, gap 0.15s ease;
}
.section-more:hover { color: var(--green-deep); gap: 10px; }
.section-more svg { width: 16px; height: 16px; }

.empty {
  color: var(--muted);
  padding: 32px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.disclosure-line {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 14px 0;
}
.disclosure-line a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.disclosure-line a:hover { color: var(--green-deep); }

/* ============================================================
   Header
   ============================================================ */
/* Sticky shell — no backdrop-filter/transform (those trap position:fixed) */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-header);
  overflow: visible;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  overflow: visible;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  box-shadow:
    0 1px 2px rgba(12, 155, 107, 0.18),
    0 6px 16px rgba(12, 155, 107, 0.22);
  overflow: hidden;
  line-height: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(12, 155, 107, 0.2),
    0 10px 22px rgba(12, 155, 107, 0.28);
}
.brand-mark-svg,
.brand-mark svg {
  width: 40px;
  height: 40px;
  display: block;
  flex: none;
}
.brand-word {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  /* optical vertical align vs. heavy sans caps */
  transform: translateY(0.5px);
}
.brand-word-accent,
.brand-word span { color: var(--green); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.site-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav-item { position: relative; }
.site-nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav-item > a:hover {
  color: var(--ink);
  background: var(--surface);
}
.site-nav-item > a.nav-active {
  color: var(--green-deep);
  background: var(--green-soft);
}
.subnav {
  position: absolute;
  left: 0;
  top: calc(100% - 4px);
  min-width: 200px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: none;
  z-index: 20;
}
.site-nav-item:hover .subnav,
.site-nav-item:focus-within .subnav { display: block; }
.subnav a {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 6px;
}
.subnav a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
}

.nav-cta {
  margin-left: 8px;
}

.nav-burger { display: none; }
.nav-backdrop { display: none; }
.nav-close { display: none; }
.site-nav-head { display: none; }
.site-nav-panel { display: contents; }

/* ============================================================
   Home — Hero
   ============================================================ */
.home-hero {
  position: relative;
  background:
    radial-gradient(Ellipse 80% 60% at 100% 0%, rgba(12, 155, 107, 0.1) 0%, transparent 55%),
    radial-gradient(Ellipse 50% 50% at 0% 100%, rgba(15, 39, 68, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 7vw, 80px) clamp(36px, 5vw, 64px);
  overflow: hidden;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.home-hero-copy { min-width: 0; }
.home-hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  border: 1px solid var(--green-mid);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.home-hero-flag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.home-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 16ch;
  text-wrap: balance;
}
.home-hero-title em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.home-hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 28px;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  padding-top: 8px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.trust-item svg {
  width: 18px; height: 18px;
  color: var(--green);
  flex: none;
}

/* Featured card in hero */
.hero-feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hero-feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(20, 32, 51, 0.08), 0 24px 48px rgba(20, 32, 51, 0.12);
}
.hero-feat-media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
  position: relative;
}
.hero-feat-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-feat-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  padding: 24px;
  text-align: center;
}
.hero-feat-media-fallback span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
  display: block;
}
.hero-feat-media-fallback strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  display: block;
  max-width: 18ch;
}
.hero-feat-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.hero-feat-title {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.hero-feat-title a:hover { color: var(--green-deep); }
.hero-feat-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.hero-feat-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-feat-link:hover { color: var(--green-deep); }

/* ============================================================
   Topic pills strip
   ============================================================ */
.topic-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
}
.topic-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 2px;
}
.topic-strip-inner::-webkit-scrollbar { display: none; }
.topic-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  flex: none;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.topic-pill:hover {
  background: var(--green-soft);
  border-color: var(--green-mid);
  color: var(--green-deep);
  box-shadow: 0 2px 8px var(--green-glow);
}
.topic-pill-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
}
.topic-pill:hover .topic-pill-count {
  background: var(--paper);
  color: var(--green-deep);
}

/* ============================================================
   Cards — article tiles
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.card-media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  flex: none;
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--line) 100%);
}
.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(12,155,107,0.25) 0%, transparent 45%),
    linear-gradient(145deg, var(--navy) 0%, #1a3a5c 50%, var(--green-dark) 100%);
}
.card-media-placeholder span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  flex: 1;
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.card-title a:hover { color: var(--green-deep); }
.card-excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .byline { margin-top: auto; padding-top: 6px; }

/* List-style comparison rows */
.compare-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  counter-reset: compare;
}
.compare-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
  counter-increment: compare;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row:hover { background: var(--surface); }
.compare-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
  flex: none;
}
.compare-num::before {
  content: counter(compare, decimal-leading-zero);
}
.compare-main { min-width: 0; }
.compare-main .kicker { margin-bottom: 4px; display: inline-block; }
.compare-title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.compare-title a:hover { color: var(--green-deep); }
.compare-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compare-cta {
  flex: none;
}

/* Two-column home layout */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

/* Side panel */
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.side-panel-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: side;
}
.side-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: side;
}
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-item:first-child { padding-top: 0; }
.side-item-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1.2;
  min-width: 1.5ch;
}
.side-item-num::before {
  content: counter(side);
}
.side-item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.side-item-title a:hover { color: var(--green-deep); }
.side-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================================
   Value props / How we work
   ============================================================ */
.value-band {
  background: var(--navy-deep);
  color: #fff;
  padding-block: var(--section-y);
  position: relative;
  overflow: hidden;
}
.value-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(12, 155, 107, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 80%, rgba(12, 155, 107, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.value-band .wrap { position: relative; z-index: 1; }
.value-band .section-title { color: #fff; }
.value-band .section-sub { color: rgba(255,255,255,0.7); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
}
.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.value-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(12, 155, 107, 0.4);
  transform: translateY(-2px);
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(12, 155, 107, 0.18);
  color: #4ade80;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}
.value-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
}

/* ============================================================
   Newsletter CTA
   ============================================================ */
.cta-band {
  padding-block: var(--section-y);
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, #12b881 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  color: #fff;
  box-shadow: 0 16px 40px rgba(12, 155, 107, 0.25);
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.cta-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.cta-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: balance;
}
.cta-sub {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 40ch;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.cta-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.cta-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1rem;
  background: transparent;
  color: var(--ink);
}
.cta-input::placeholder { color: var(--muted-light); }
.cta-input:focus { outline: 2px solid var(--green); outline-offset: -2px; }
.cta-button {
  min-height: 48px;
  padding: 0 22px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.cta-button:hover { background: var(--navy-deep); }
.cta-note {
  font-size: 0.75rem;
  opacity: 0.8;
  padding-left: 4px;
}

/* ============================================================
   Latest wire / simple list
   ============================================================ */
.latest-section { background: var(--paper); }
.wire-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.wire-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.wire-row:hover { background: var(--surface); }
.wire-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.wire-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 0.15s ease;
}
.wire-row:hover .wire-title { color: var(--green-deep); }
.wire-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

/* ============================================================
   Category page
   ============================================================ */
.page-banner {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(12,155,107,0.1) 0%, transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 60px);
}
.page-banner-inner { max-width: 720px; }
.page-banner .badge { margin-bottom: 14px; }
.page-banner-title {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-banner-desc {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 54ch;
  margin-bottom: 14px;
}
.page-banner-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-light);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  padding-block: clamp(28px, 4vw, 44px) 8px;
}
.flow-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.flow-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.flow-media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  flex: none;
}
.flow-media-ph {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 70% 30%, rgba(12,155,107,0.22) 0%, transparent 50%),
    linear-gradient(145deg, var(--navy) 0%, var(--green-dark) 100%);
}
.flow-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}
.flow-title {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
}
.flow-title a:hover { color: var(--green-deep); }
.flow-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flow-item .byline { margin-top: auto; }

/* Lead article full width */
.flow-grid > .flow-item:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
}
.flow-grid > .flow-item:first-child .flow-media,
.flow-grid > .flow-item:first-child .flow-media-ph {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
}
.flow-grid > .flow-item:first-child .flow-body {
  padding: clamp(24px, 3vw, 36px);
  justify-content: center;
}
.flow-grid > .flow-item:first-child .flow-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}
.flow-grid > .flow-item:first-child .flow-excerpt {
  -webkit-line-clamp: 4;
  font-size: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: clamp(36px, 5vw, 56px) 12px;
  flex-wrap: wrap;
}
.page-list { display: flex; gap: 6px; flex-wrap: wrap; }
.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
a.page-num:hover {
  border-color: var(--green);
  color: var(--green-deep);
  background: var(--green-soft);
}
.page-current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.page-step {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--green-deep);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.page-step:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.cat-cross {
  border-top: 1px solid var(--line);
  margin-top: clamp(20px, 3vw, 36px);
  padding-block: 28px var(--section-y);
}
.cat-cross-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cat-cross-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cat-chip:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-deep);
}
.cat-chip-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

/* ============================================================
   Article page
   ============================================================ */
.story-banner {
  background:
    radial-gradient(ellipse 70% 80% at 100% -20%, rgba(12,155,107,0.12) 0%, transparent 50%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px);
}
.story-banner-inner { max-width: 720px; margin-inline: auto; text-align: left; }
.story-banner .kicker { margin-bottom: 14px; }
.story-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  text-wrap: balance;
}
.story-standfirst {
  font-size: clamp(1.05rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 22px;
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 4px;
}
.story-byline {
  gap: 12px;
  flex-wrap: nowrap;
}
.story-byline-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story-byline-text .byline-name {
  font-size: 0.9375rem;
  color: var(--ink);
}
.story-dates {
  font-size: 0.78125rem;
  color: var(--muted);
}
.story-hero-img {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  margin-top: -1px;
}
.story-hero-img .media {
  aspect-ratio: 21 / 9;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--shadow-card);
}
.story-disclosure-bar {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 16px 0 0;
}

/* Prose */
.article-body {
  max-width: var(--measure);
  margin-inline: auto;
  padding-block: clamp(28px, 4vw, 44px) 8px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2a3544;
}
.article-body > * + * { margin-top: 1.2em; }
.article-body p { margin: 0; }

.article-body > p:first-of-type {
  font-size: 1.1875rem;
  color: var(--ink-soft);
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.article-body h2 {
  font-size: 1.625rem;
  margin-top: 2.1em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.article-body h3 { font-size: 1.3rem; margin-top: 1.7em; }
.article-body h4,
.article-body h5,
.article-body h6 { font-size: 1.1rem; margin-top: 1.5em; }

.article-body a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(12, 155, 107, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-body a:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

.article-body ul,
.article-body ol { padding-left: 1.35em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: 0.5em; padding-left: 0.25em; }
.article-body li::marker { color: var(--green); font-weight: 700; }

.article-body figure { margin-block: 2em; }
.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.article-body figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  padding-top: 12px;
}

.article-body .article-table-wrap {
  overflow-x: auto;
  margin-block: 2em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.article-body .article-content-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.article-body .article-content-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px;
  white-space: nowrap;
}
.article-body .article-content-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.article-body .article-content-table tbody tr:nth-child(even) {
  background: var(--surface);
}
.article-body .article-content-table tbody tr:hover {
  background: var(--green-soft);
}

.story-tags {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: clamp(20px, 3vw, 30px) 0;
}
.story-tags-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-pill {
  display: inline-block;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tag-pill:hover {
  border-color: var(--green-mid);
  background: var(--green-soft);
  color: var(--green-deep);
}

.author-card {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: clamp(24px, 3vw, 36px);
}
.author-card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.author-card-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.author-card-org {
  font-size: 0.8125rem;
  color: var(--muted);
}
.author-card-org a {
  color: var(--green);
  font-weight: 600;
}
.author-card-org a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pn {
  max-width: var(--measure);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-block: clamp(28px, 4vw, 40px);
}
.pn-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
a.pn-cell {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.pn-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--green-mid);
}
.pn-next { text-align: right; }
.pn-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pn-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
a.pn-cell:hover .pn-title { color: var(--green-deep); }
.pn-empty { border: 0; }

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

/* ============================================================
   Listing / archive
   ============================================================ */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-block: clamp(20px, 3vw, 32px) 8px;
}
.archive-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  padding: clamp(8px, 2vw, 16px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
}
.archive-lead-body { min-width: 0; }
.archive-lead-body:only-child { grid-column: 1 / -1; max-width: 62ch; }
.archive-lead .kicker { display: inline-block; margin-bottom: 10px; }
.archive-lead-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-wrap: balance;
}
.archive-lead-title a:hover { color: var(--green-deep); }
.archive-lead-excerpt {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.archive-lead-media {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
}

.archive-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(20px, 2.5vw, 28px);
  transition: background 0.15s ease;
}
.archive-row:hover { background: var(--surface); }
.archive-row-rail { padding-top: 4px; }
.archive-row-rail time {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-row-day {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.archive-row-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.archive-row-main { min-width: 0; }
.archive-row-main:last-child { grid-column: 2 / -1; }
.archive-row-main .kicker { display: inline-block; margin-bottom: 6px; }
.archive-row-title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.archive-row-title a:hover { color: var(--green-deep); }
.archive-row-excerpt {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-row-thumb {
  width: clamp(120px, 16vw, 160px);
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  flex: none;
}
.archive-row-dot,
.archive-row-date-inline { display: none; }

/* ============================================================
   Content pages (about / privacy / terms)
   ============================================================ */
.content-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 64px);
}
.content-head-inner { max-width: var(--measure); margin-inline: auto; }
.content-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.content-kicker::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  flex: none;
}
.content-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  text-wrap: balance;
}
.content-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}
.content-prose { padding-bottom: clamp(20px, 3vw, 32px); }
.content-cross { max-width: var(--measure); margin-inline: auto; }

.content-empty {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 72px) clamp(20px, 4vw, 48px);
  margin-block: clamp(36px, 5vw, 56px) 0;
}
.content-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.content-empty-icon svg { width: 28px; height: 28px; }
.content-empty-title {
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.content-empty-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 22px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 6vw, 72px) 0;
  margin-top: 0;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
}
.foot-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.foot-brand-mark svg {
  width: 40px;
  height: 40px;
  display: block;
}
.foot-brand-word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
  line-height: 1;
  transform: translateY(0.5px);
}
.foot-brand-word .brand-word-accent,
.foot-brand-word span { color: #4ade80; }
.foot-blurb {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 36ch;
  margin-bottom: 16px;
}
.foot-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.foot-trust span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.foot-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 16px;
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot-col a {
  display: inline-block;
  padding: 7px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}
.foot-col a:hover {
  color: #fff;
}
.foot-count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: 1px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  font-size: 0.8125rem;
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot-legal a {
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  display: inline-block;
  transition: color 0.15s ease;
}
.foot-legal a:hover { color: #fff; }
.foot-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 18px 24px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
  max-width: 90ch;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .flow-item:hover,
  .hero-feat:hover,
  .value-card:hover,
  a.pn-cell:hover {
    transform: none;
  }
  .media img,
  .btn {
    transition: none;
  }
  .nav-burger,
  .nav-burger-bar,
  .nav-backdrop,
  .site-nav {
    transition: none !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-feat { max-width: 520px; }
  .home-split { grid-template-columns: minmax(0, 1fr); }
  .side-panel { position: static; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-mark-svg,
  .brand-mark svg {
    width: 36px;
    height: 36px;
  }
  .brand-word {
    font-size: 1.125rem;
  }
  .brand {
    gap: 10px;
  }

  /* Floating burger — vertically centered on header, compact */
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + (var(--header-h) / 2));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 220;
    width: 40px;
    height: 40px;
    margin: 0;
    cursor: pointer;
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 1px 2px rgba(20, 32, 51, 0.06),
      0 6px 18px rgba(20, 32, 51, 0.1);
    transform: translateY(-50%);
    transition:
      background 0.2s var(--ease),
      box-shadow 0.2s var(--ease),
      border-color 0.2s var(--ease),
      transform 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-burger:hover {
    background: #fff;
    box-shadow:
      0 2px 4px rgba(20, 32, 51, 0.08),
      0 10px 22px rgba(20, 32, 51, 0.12);
  }
  .nav-burger:active {
    transform: translateY(-50%) scale(0.96);
  }
  .nav-burger-box {
    position: relative;
    width: 18px;
    height: 12px;
    display: block;
  }
  .nav-burger-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.75px;
    border-radius: 2px;
    background: var(--ink);
    transition:
      transform 0.28s var(--ease),
      opacity 0.2s ease,
      top 0.28s var(--ease),
      width 0.28s var(--ease),
      background 0.2s ease;
    transform-origin: center;
  }
  .nav-burger-bar:nth-child(1) { top: 0; width: 100%; }
  .nav-burger-bar:nth-child(2) { top: 5px; width: 70%; margin-inline: auto; right: 0; left: auto; }
  .nav-burger-bar:nth-child(3) { top: 10px; width: 100%; }

  /* Open state: morph burger bars to X */
  body.nav-open .nav-burger {
    background: var(--navy);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(10, 27, 48, 0.28);
  }
  body.nav-open .nav-burger .nav-burger-bar {
    background: #fff;
    width: 18px;
    left: 0;
    right: 0;
    margin: 0;
  }
  body.nav-open .nav-burger .nav-burger-bar:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
  }
  body.nav-open .nav-burger .nav-burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  body.nav-open .nav-burger .nav-burger-bar:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
  }

  /* Dimmed backdrop — viewport-fixed, full screen */
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 190;
    background: rgba(10, 27, 48, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
    cursor: pointer;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /*
   * Right-side drawer — MUST be viewport-fixed with 100dvh.
   * Do not rely on top/bottom/height:100% alone (sticky ancestors
   * previously capped it to the header). Open via sibling checkbox
   * OR body.nav-open after JS portals the nodes to <body>.
   */
  .site-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    z-index: 200;
    width: min(86vw, 340px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition:
      transform 0.36s var(--ease),
      visibility 0.36s var(--ease);
    pointer-events: none;
  }
  body.nav-open .site-nav {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 48px rgba(10, 27, 48, 0.18);
    padding:
      max(16px, env(safe-area-inset-top, 0px))
      max(20px, env(safe-area-inset-right, 0px))
      max(28px, env(safe-area-inset-bottom, 0px))
      20px;
  }
  .site-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    min-height: 48px;
    margin-bottom: 8px;
    padding-right: 44px; /* room for floating burger/X */
  }
  .site-nav-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-close {
    display: none; /* burger morphs to X */
  }
  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    flex: 1 1 auto;
    padding-block: 8px 16px;
  }
  .site-nav-item > a {
    display: block;
    padding: 14px 14px;
    font-size: 1.0625rem;
    border-radius: var(--radius-sm);
    min-height: 48px;
  }
  .subnav {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: var(--surface);
    padding: 4px;
    min-width: 0;
    margin: 0 0 4px;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: auto;
    flex: none;
    width: 100%;
    text-align: center;
    min-height: 48px;
  }

  /* Lock page scroll while drawer is open (JS sets top: -scrollY) */
  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    touch-action: none;
  }

  .compare-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .compare-cta {
    grid-column: 2;
    justify-self: start;
  }

  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-grid > .flow-item:first-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow-grid > .flow-item:first-child .flow-media,
  .flow-grid > .flow-item:first-child .flow-media-ph {
    min-height: 200px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .archive-lead { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .archive-lead-media { order: -1; }
  .archive-row {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .archive-row-rail { display: none; }
  .archive-row-dot,
  .archive-row-date-inline { display: inline; }

  .wire-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .wire-cat { display: none; }

  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .card-grid,
  .card-grid-2 { grid-template-columns: minmax(0, 1fr); }

  .home-hero-title { max-width: none; }
  .home-hero-actions .btn { width: 100%; }

  .compare-row { padding: 16px; gap: 12px; }
  .compare-excerpt { display: none; }

  .cta-form-row { flex-direction: column; }
  .cta-button { width: 100%; }

  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn-next { text-align: left; }
  .pn-empty { display: none; }

  .article-body { font-size: 1.0625rem; }
  .article-body h2 { font-size: 1.375rem; }
  .article-body h3 { font-size: 1.2rem; }

  .author-card { flex-direction: column; align-items: flex-start; text-align: left; }

  .archive-row {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
  }
  .archive-row-excerpt { display: none; }
  .archive-row-title { font-size: 1rem; }

  .story-hero-img .media { aspect-ratio: 16 / 10; border-radius: var(--radius); border-top: 1px solid var(--line); }

  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* Contact form styles (about template reuse) */
.contact-form-wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-block: 8px 32px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.form-field input,
.form-field textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
