/* cardanode.com.au — brand styles
   Palette (refreshed):
     deep cardano blue   #0033AD  (primary, AA on white at 8.97:1)
     hover/dark          #002a8f
     accent light blue   #6f9bff  (subtle accents on dark backgrounds)
     ink                 #0f1729  (body text)
     muted               #5b6172  (secondary text on light)
     muted-2             #7a8194  (small captions)
     muted-3             #9aa1b0  (labels)
     surface             #ffffff
     surface-2           #f5f8fe  (page wash / hero bg)
     surface-3           #eef3fb  (operator block)
     surface-4           #fafbfe  (chart card bg)
     border              #ececf1
     border-soft         #f0f1f5  (header divider)
     dark                #0a1530  (footer, midnight, reassurance card)
   Fonts: Poppins (display), Mulish (body), JetBrains Mono (mono).
*/

:root {
  --blue: #0033AD;
  --blue-hover: #002a8f;
  --blue-light: #6f9bff;
  --ink: #0f1729;
  --muted: #5b6172;
  --muted-2: #7a8194;
  --muted-3: #9aa1b0;
  --surface: #ffffff;
  --surface-2: #f5f8fe;
  --surface-3: #eef3fb;
  --surface-4: #fafbfe;
  --border: #ececf1;
  --border-soft: #f0f1f5;
  --border-strong: #dbe1ec;
  --dark: #0a1530;
  --dark-2: #16213a;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06);
  --shadow-md: 0 12px 28px rgba(0, 51, 173, .09);
  --shadow-lg: 0 14px 40px rgba(15, 23, 41, .08);
  --shadow-hero: 0 24px 50px rgba(15, 23, 41, .16);
  --max-w: 1180px;
}

/* WCAG: clear focus ring */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0, 51, 173, .15); }

h1, h2, h3, h4 {
  font-family: "Poppins", "Mulish", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
a strong { color: inherit; }

/* External-link affordance */
a[target="_blank"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 3px;
  font-size: 0.85em;
  vertical-align: baseline;
  color: currentColor;
  opacity: 0.7;
}
.btn[target="_blank"]::after,
.link-card[target="_blank"]::after,
.site-nav a[target="_blank"]::after,
.site-footer a[target="_blank"]::after,
a.yt-card[target="_blank"]::after,
.podcast-socials a[target="_blank"]::after,
.podcast-pill[target="_blank"]::after,
.social-pill[target="_blank"]::after { content: none; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.label-small {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus, .skip:focus-visible { left: 12px; top: 12px; text-decoration: none; color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav .brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-nav .brand .accent { color: var(--blue); }
.site-nav nav { display: flex; align-items: center; gap: 26px; }
.site-nav nav a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.site-nav nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 18px;
  border-radius: 9px;
}
.site-nav .nav-cta:hover { background: var(--blue-hover); color: #fff; }
@media (max-width: 760px) {
  .site-nav .inner { padding: 12px 20px; }
  .site-nav nav { gap: 14px; }
  .site-nav nav a:not(.nav-cta) { display: none; }
  .site-nav nav a.nav-cta { display: inline-flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  min-height: 44px;
  line-height: 1.2;
  border-radius: 11px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 51, 173, .22);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--blue-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 51, 173, .3);
}
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: var(--surface);
  color: var(--blue);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  padding: 13px 22px;
}
.btn.ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--surface);
}
.btn-lg { font-size: 1rem; padding: 16px; min-height: 48px; width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 60%);
}
.hero .container { padding-top: 64px; padding-bottom: 56px; }
.hero-top {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { margin: 0 0 20px; }
.hero .lede { font-size: 1.1rem; line-height: 1.62; color: var(--muted); margin: 0 0 28px; max-width: 540px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-portrait {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-hero);
  margin: 0;
}
.hero-portrait img,
.hero-portrait picture { width: 100%; height: 100%; }
.hero-portrait img { object-fit: cover; }

.scam-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #9a3412;
}
.scam-warning strong { color: #7c2d12; }
.scam-warning svg { color: #c2410c; flex-shrink: 0; margin-top: 1px; width: 18px; height: 18px; }

@media (max-width: 820px) {
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { aspect-ratio: 1 / 1; max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 6px 22px rgba(15, 23, 41, .05);
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child { border-right: 0; }
.stat .label {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 9px;
}
.stat .value {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat .value .sub-unit { font-size: 0.75em; color: var(--muted-2); font-weight: 600; margin-left: 4px; }
.stat-sub { font-size: 0.78rem; color: var(--muted-2); margin-top: 8px; line-height: 1.35; }
.stat-trend { font-size: 0.78rem; margin-top: 8px; font-weight: 600; color: var(--muted-2); }
.stat-trend.up { color: #1a7a3a; }
.stat-trend.down { color: #a8231f; }
.stat-trend.flat { color: var(--muted-2); }

.sat-bar {
  background: var(--border);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.sat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 70%, #c98a00 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border-soft); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--border-soft); }
  .stat:last-child { border-bottom: 0; }
}

/* ============================================================
   CHART CARD
   ============================================================ */
.stake-trend {
  position: relative;
  margin: 22px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px 18px;
  background: var(--surface-4);
}
.stake-trend figcaption {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 12px;
}
.stake-trend-svg svg { display: block; width: 100%; height: auto; max-height: 240px; }
.stake-trend-svg .sp-hit { cursor: pointer; transition: stroke 0.1s ease; }
.stake-trend-svg .sp-hit:hover,
.stake-trend-svg .sp-hit:focus { outline: none; stroke: rgba(0, 51, 173, .25); stroke-width: 2; }
.stake-trend-loading { color: var(--muted-2); font-size: 0.9rem; padding: 32px 0; text-align: center; }

.sp-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
  box-shadow: 0 6px 20px rgba(15, 23, 41, .25);
  white-space: nowrap;
  z-index: 5;
}
.sp-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ink);
}
.sp-tt-epoch {
  color: #9fb4d8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 2px;
}
.sp-tt-stake { font-family: "Poppins", sans-serif; font-weight: 600; }

/* ============================================================
   POOL ID PILL
   ============================================================ */
.pool-id-strip {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--surface);
}
.pool-id-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  min-width: 0;
}
.pool-id-label {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  flex-shrink: 0;
}
.pool-id {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pool-id-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: #f3f6fd;
  color: var(--blue);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid #dde6f8;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  min-height: 36px;
}
.pool-id-copy:hover { background: #e8eefb; }
.pool-id-copy.copied { background: #1a7a3a; color: #fff; border-color: #1a7a3a; }
.stats-foot { font-size: 0.78rem; color: var(--muted-3); margin: 12px 0 0; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section { padding: 84px 0; }
.section--narrow .container { max-width: var(--max-w); }

/* ============================================================
   ABOUT / FEATURES
   ============================================================ */
.section-head { margin-bottom: 44px; }
.section-head h2 { max-width: 760px; margin: 0 0 16px; }
.section-head .lede { font-size: 1.1rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 680px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: #c7d6f5;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card h3 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.1rem; margin: 0 0 9px; letter-spacing: -0.01em; }
.card p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); margin: 0; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(0, 51, 173, .08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.link-card { display: block; color: var(--ink); text-decoration: none; }
.link-card:hover { color: var(--ink); text-decoration: none; }
.link-card:hover h3 { color: var(--blue); }

/* ============================================================
   OPERATOR
   ============================================================ */
.operator-section { background: var(--surface-3); }
.operator-section .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.operator-text { max-width: 560px; }
.operator-text h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 8px; }
.operator-text .roles { font-size: 0.875rem; color: #6b7280; margin-bottom: 22px; }
.operator-text p { font-size: 1rem; line-height: 1.65; color: #475063; margin: 0 0 16px; }
.operator-text a { font-weight: 600; }

.social-pills { display: flex; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.social-pill {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-pill:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }
.social-pill svg { width: 18px; height: 18px; }

.operator-portrait {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-hero);
  margin: 0;
}
.operator-portrait img,
.operator-portrait picture { width: 100%; height: 100%; }
.operator-portrait img { object-fit: cover; }

@media (max-width: 820px) {
  .operator-section .container { grid-template-columns: 1fr; gap: 32px; }
  .operator-portrait { aspect-ratio: 1 / 1; max-width: 320px; margin: 0 auto; order: -1; }
}

/* ============================================================
   MIDNIGHT
   ============================================================ */
.midnight-section { background: var(--dark); color: #fff; }
.midnight-section .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.midnight-section .eyebrow { color: var(--blue-light); }
.midnight-section h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.1rem); margin: 0 0 18px; line-height: 1.12; }
.midnight-section p { font-size: 1rem; line-height: 1.65; color: #b6bed3; margin: 0 0 16px; max-width: 560px; }
.midnight-section p:last-child { margin-bottom: 0; }
.midnight-section strong { color: #fff; }
.midnight-art {
  display: flex;
  justify-content: center;
  margin: 0;
}
.midnight-art > .midnight-circle {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .4);
  background: #fff;
}
.midnight-art img,
.midnight-art picture { width: 100%; height: 100%; }
.midnight-art img { object-fit: contain; }
@media (max-width: 820px) {
  .midnight-section .container { grid-template-columns: 1fr; gap: 32px; }
  .midnight-art { order: -1; }
}

/* ============================================================
   CONTRIBUTING (5 cards)
   ============================================================ */
.contributing { padding: 84px 0; }
.contributing .grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .contributing .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .contributing .grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   DELEGATE
   ============================================================ */
.delegate-section { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.delegate-section .container {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: stretch;
}
.delegate-section h2 { margin: 0 0 14px; }
.delegate-section .lede { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.delegate-section .lede strong { color: var(--ink); }

.delegate-panel {
  background: var(--surface);
  border: 1px solid #e6ebf5;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.delegate-panel h3 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.dp-hint { color: var(--muted-2); font-size: 0.85rem; line-height: 1.5; margin: 14px 0 0; }
.dp-hint strong { color: var(--muted); }
.dp-error { color: #a8231f; }
.dp-banner {
  margin: -10px -10px 16px;
  padding: 10px 14px;
  background: #fff7d6;
  border: 1px solid #f0d77a;
  border-radius: 8px;
  color: #4a3c00;
  font-size: 0.9rem;
}
.dp-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 16px 0 22px;
  font-size: 0.95rem;
}
.dp-kv dt { color: var(--muted); }
.dp-kv dd { margin: 0; color: var(--ink); }
.dp-kv code { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.dp-kv .ok { color: #1a7a3a; font-weight: 600; }
.dp-kv .warn { color: #9a5a00; }
.dp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }

.wallet-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.wallet-pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  min-height: 56px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wallet-pick:hover { border-color: var(--blue); background: var(--surface-2); }
.wallet-pick img { width: 28px; height: 28px; flex-shrink: 0; object-fit: contain; }
.wallet-fallback-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.wallet-name { font-weight: 500; }

.dp-manual {
  margin: 18px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
}
.dp-manual summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.92rem;
  list-style: none;
}
.dp-manual summary::-webkit-details-marker { display: none; }
.dp-manual summary::before { content: "▸ "; display: inline-block; margin-right: 4px; transition: transform 0.15s ease; }
.dp-manual[open] summary::before { transform: rotate(90deg); }
.how-to {
  max-width: 520px;
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.how-to li { margin-bottom: 10px; }

.delegate-extra-links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.delegate-extra-links a {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
}
.delegate-extra-links a:hover { border-color: var(--blue); color: var(--ink); text-decoration: none; }

.reassure-card {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 36px 34px;
  color: #fff;
}
.reassure-card h3 { color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.15rem; margin: 0 0 24px; }
.reassure-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.reassure-list li { display: flex; gap: 14px; align-items: flex-start; }
.reassure-list .icon { color: var(--blue-light); flex-shrink: 0; margin-top: 1px; }
.reassure-list .icon svg { width: 22px; height: 22px; }
.reassure-list h4 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.95rem; margin: 0 0 4px; color: #fff; }
.reassure-list p { font-size: 0.875rem; line-height: 1.55; color: #aab2c8; margin: 0; }

@media (max-width: 880px) {
  .delegate-section .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PODCAST
   ============================================================ */
.podcast-section { padding: 84px 0; }
.podcast-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.podcast-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.podcast-section-head .lede { font-size: 1rem; color: #6b7280; margin: 0; max-width: 360px; }

.podcast-socials { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 34px; padding: 0; list-style: none; }
.podcast-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid #e2e7f1;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 9px 15px;
  border-radius: 10px;
  text-decoration: none;
  min-height: 40px;
}
.podcast-pill:hover { border-color: var(--blue); color: var(--ink); text-decoration: none; }
.podcast-pill svg { width: 18px; height: 18px; flex-shrink: 0; }

.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .yt-grid { grid-template-columns: 1fr; } }
.yt-card { text-decoration: none; color: inherit; display: block; }
.yt-card:hover { color: inherit; text-decoration: none; opacity: 0.96; }
.yt-thumb {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--dark);
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #ff0000;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.yt-thumb::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  transform: translate(-37%, -50%);
  z-index: 2;
}
.yt-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.35;
  margin: 14px 0 6px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.yt-date { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.75rem; color: var(--muted-3); }
.yt-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.podcast-more { text-align: center; margin-top: 40px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--surface-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { margin: 0 0 14px; }
.contact-copy .lede { font-size: 1.05rem; line-height: 1.6; color: var(--muted); margin: 0 0 24px; max-width: 480px; }
.contact-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.contact-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.55;
}
.contact-bullets strong { color: var(--ink); }

.contact-form {
  background: var(--surface);
  border: 1px solid #e6ebf5;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cf-field input,
.cf-field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 173, .12);
}
.cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.cf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.cf-turnstile:empty { display: none; }
.cf-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf-status { font-size: 0.92rem; color: var(--muted); }
.cf-status.ok { color: #1a7a3a; font-weight: 600; }
.cf-status.error { color: #a8231f; font-weight: 600; }
.cf-foot { font-size: 0.78rem; color: var(--muted-3); margin: 0; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   FROM THE BLOG
   ============================================================ */
.blog-strip { padding: 0 0 84px; }
.blog-strip .container {
  border-top: 1px solid #eef0f5;
  padding-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.blog-strip h2 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); margin: 0 0 8px; }
.blog-strip .lede { font-size: 1rem; color: #6b7280; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: #fff; }
.site-footer .upper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.site-footer .brand .accent { color: var(--blue-light); }
.site-footer .blurb { font-size: 0.9rem; line-height: 1.6; color: #9aa2ba; margin: 0; max-width: 320px; }
.site-footer .col-head {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f7da0;
  margin-bottom: 16px;
}
.site-footer .col-links { display: flex; flex-direction: column; gap: 11px; }
.site-footer .col-links a { font-size: 0.9rem; color: #c5ccdf; }
.site-footer .col-links a:hover { color: #fff; text-decoration: none; }
.site-footer .lower {
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .lower .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #7f88a3;
}
.site-footer .lower code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.85em; }
.site-footer .lower .muted { opacity: 0.6; margin-left: 6px; }
@media (max-width: 880px) {
  .site-footer .upper { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 24px 32px; }
  .site-footer .upper > div:first-child { grid-column: span 2; }
  .site-footer .lower .inner { padding: 18px 24px; }
}

/* ============================================================
   BLOG TEMPLATE (post + index pages)
   ============================================================ */
.post-list { display: grid; gap: 24px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: #c7d6f5; }
.post-card h2 { font-size: 1.25rem; margin: 0 0 6px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--blue); text-decoration: none; }
.post-card .meta { color: var(--muted-2); font-size: 0.82rem; margin: 0 0 8px; }
.post-card.related h3 { margin: 0 0 4px; font-size: 1rem; }

.cat-badge, .cat-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  margin-right: 4px;
  white-space: nowrap;
}
.cat-badge:hover, .cat-pill:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.cat-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.cat-pill { padding: 6px 12px; font-size: 0.82rem; background: var(--surface); }
.cat-pill .n { color: var(--muted-3); font-weight: 400; margin-left: 4px; }

.post { max-width: 760px; margin: 48px auto; padding: 0 24px; }
.post h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.post .meta { color: var(--muted-2); font-size: 0.9rem; margin: 0 0 24px; }
.post p { font-size: 1.05rem; line-height: 1.7; }
.post img.hero { width: 100%; margin: 0 0 32px; border-radius: var(--radius); }
.post img:not(.hero) { border-radius: var(--radius); margin: 16px 0; }

.comments { max-width: 760px; margin: 56px auto 0; }
.comments h2 { font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 24px 0 0; }
.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--surface);
}
.comment header { margin-bottom: 6px; font-size: 0.95rem; }
.comment .comment-body { color: var(--ink); }
.comment .comment-body p { margin: 0 0 6px; }

.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  justify-content: center;
}
.pagination .page {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
}
.pagination .page:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pagination .page.current { background: var(--blue); border-color: var(--blue); color: #fff; }

.post iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  margin: 24px 0;
}
.post iframe.podcast-embed {
  aspect-ratio: auto;
  height: 200px;
  background: transparent;
}

/* Section--center-head modifier kept for /blog/ etc. */
.section--center-head > h2,
.section--center-head > .lede { text-align: center; }
.section--center-head > .lede { margin-left: auto; margin-right: auto; }
