/* Electrify Southland
   Identity carried over from the original site: the hand-drawn electric house
   on sage green, typewriter display type, and the yellow lightning bolt.
   Body text is Rubik, shared with Rewiring Aotearoa. */

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Special Elite";
  src: url("/assets/fonts/special-elite-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --sage: #47714c;        /* original hero green */
  --sage-deep: #2f5235;
  --forest: #1a2e1f;      /* ink */
  --bolt: #f8e800;        /* lightning yellow from the house drawing */
  --bolt-soft: #fff7a8;
  --mist: #e8eee5;
  --paper: #fbfcf8;
  --peach: #fec979;
  --text: #17231a;
  --muted: #4c5d50;
  --line: #c6d3c3;
  --on-dark: #f1f6ef;
  --on-dark-muted: #b9cbb9;

  --display: "Special Elite", "Courier New", ui-monospace, monospace;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 68ch;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.7rem, 1.35rem + 1.4vw, 2.2rem);
  --step-4: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  --step-5: clamp(2.3rem, 1.5rem + 3.4vw, 3.8rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: var(--step-0); line-height: 1.6; color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bolt); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--forest); margin: 0 0 0.5em; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bolt); color: var(--forest); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--measure); }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--sage); background: var(--mist); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { margin: 1.5em 0; }
.prose img { border-radius: var(--radius); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1.2; border: 2px solid transparent; font-family: var(--body); }
.btn-bolt { background: var(--bolt); color: var(--forest); border-color: var(--bolt); }
.btn-bolt:hover { background: #fff35c; color: var(--forest); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-dark { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-dark:hover { background: var(--sage-deep); color: #fff; }
.btn-line { border-color: var(--sage-deep); color: var(--sage-deep); }
.btn-line:hover { background: var(--sage-deep); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--forest); color: var(--on-dark); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 168px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 11px; color: var(--on-dark); text-decoration: none; border-radius: 4px; font-size: 0.96rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; }
.nav a.join { background: var(--bolt); color: var(--forest); font-weight: 600; margin-left: 8px; }
.nav a.join:hover { background: #fff35c; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--on-dark); border-radius: 4px; padding: 8px 12px; font: inherit; font-size: 0.95rem; cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--forest); border-bottom: 1px solid rgba(255,255,255,0.1); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px 8px; }
  .nav a.join { margin: 8px 0 0; text-align: center; }
  .js-off .nav { display: block; position: static; }
  .brand img { width: 140px; }
}

/* ---------- news carousel ---------- */
.news { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; border-bottom: 4px solid var(--bolt); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }
.slide { scroll-snap-align: start; padding: clamp(28px, 4.5vw, 52px) 0 clamp(16px, 2vw, 24px); }
.slide .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.slide .kicker { color: var(--on-dark-muted); font-size: var(--step--1); margin-bottom: 10px; }
.slide .kicker strong { color: var(--bolt); font-weight: 600; }
.slide .slide-title { font-family: var(--display); font-weight: 400; color: #fff; font-size: var(--step-3); line-height: 1.15; margin: 0 0 12px; max-width: 24ch; }
.slide.lead .slide-title { font-size: var(--step-4); max-width: 22ch; }
.slide p { color: var(--on-dark); max-width: 56ch; margin-bottom: 0; }
.slide .actions { margin-top: 18px; }
.slide-figure { border-left: 4px solid var(--bolt); padding: 4px 0 4px clamp(16px, 2.4vw, 28px); }
.slide-figure .big { display: block; font-size: clamp(2.6rem, 1.8rem + 4vw, 5.2rem); line-height: 0.95; font-weight: 700; color: var(--bolt); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.slide-figure .cap { display: block; margin-top: 10px; color: var(--on-dark); max-width: 30ch; font-size: 0.98rem; }
.slide-figure img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.carousel-bar { display: none; padding-bottom: 18px; }
.js .carousel-bar { display: block; }
.carousel-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.carousel-controls { display: flex; align-items: center; gap: 10px; }
.carousel-controls button { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; font: inherit; }
.carousel-controls button:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.carousel-controls svg { width: 18px; height: 18px; }
.carousel-controls .count { color: var(--on-dark-muted); font-size: var(--step--1); min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; margin-left: 8px; }
.dots button { width: 26px; height: 5px; border-radius: 3px; border: 0; padding: 0; background: rgba(255,255,255,0.25); }
.dots button[aria-current="true"] { background: var(--bolt); }
.carousel-bar a { color: var(--on-dark-muted); font-size: var(--step--1); }
.carousel-bar a:hover { color: #fff; }
@media (max-width: 760px) { .slide .wrap { grid-template-columns: 1fr; } .dots { display: none; } .slide-figure .big { font-size: 2.6rem; } }

/* ---------- home hero (original intro: hand-drawn electric house on paper) ---------- */
.hero { background: #fff; color: var(--text); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 45%, rgba(248,232,0,0.10), transparent 55%), radial-gradient(circle at 10% 90%, rgba(71,113,76,0.08), transparent 45%); pointer-events: none; }
.hero .wrap { position: relative; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(28px, 4vw, 56px); }
.hero-copy { position: relative; z-index: 2; max-width: 40rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 10px; max-width: 36ch; }
.hero h1 { color: var(--forest); font-size: var(--step-5); margin-bottom: 0.35em; }
.hero h1 .tag { display: inline-block; font-family: var(--body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); background: var(--bolt); padding: 3px 8px; border-radius: 3px; margin-bottom: 14px; }
.hero-art { margin: 8px auto 0; max-width: 1080px; }
.hero-art img { width: 100%; }
.hero-report { position: relative; z-index: 2; margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 16px; background: var(--forest); color: var(--on-dark); border-radius: var(--radius); padding: 16px 20px; border-left: 6px solid var(--bolt); }
.hero-report p { margin: 0; color: var(--on-dark); }
.hero-report strong { color: var(--bolt); font-weight: 600; }
@media (max-width: 760px) { .hero-report { grid-template-columns: 1fr; } }
@media (min-width: 1000px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 28px; }
  .hero-art { margin: 0 -20px 0 0; }
  .hero-report { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.alt { background: var(--mist); }
.section.flush-top { padding-top: 0; }
.section.dark { background: var(--forest); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: var(--bolt); }
.section.dark .btn-bolt { color: var(--forest); }
.section-head { max-width: var(--measure); margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.dark .section-head p { color: var(--on-dark-muted); }
.answer { font-size: 1.2rem; line-height: 1.55; color: var(--text); max-width: 62ch; }
.answer strong { color: var(--forest); }
.footnote { color: var(--muted); font-size: var(--step--1); max-width: 75ch; margin-top: 16px; }

/* core values: peach band from the original site */
.section.peach { background: var(--peach); }
.values { text-align: center; max-width: 52rem; margin: 0 auto; }
.values .logo-block img { width: 100%; max-width: 520px; margin: 0 auto clamp(20px, 3vw, 36px); }
.values h2 { margin-bottom: 0.4em; }
.values p { font-size: 1.2rem; color: var(--text); margin-left: auto; margin-right: auto; max-width: 58ch; }
@media (max-width: 800px) { .values .logo-block img { max-width: 300px; } }

/* vision: big image beside text, alternating, as on the original site */
.vision { display: grid; gap: clamp(36px, 6vw, 80px); }
.vision article { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.vision article:nth-child(even) { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.vision article:nth-child(even) .media { order: 2; }
.vision .media { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(26,46,31,0.45); }
.vision .media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.vision .media.sketch img { object-fit: contain; padding: 4% 3%; background: #fff; }
.vision .label { display: inline-block; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 8px; }
.vision h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin-bottom: 12px; }
.vision h3 a { color: var(--forest); text-decoration: none; }
.vision h3 a:hover { text-decoration: underline; }
.vision p { color: var(--muted); font-size: 1.08rem; }
.vision .stat { display: block; margin: 4px 0 18px; padding-left: 14px; border-left: 4px solid var(--bolt); color: var(--forest); font-weight: 600; }
@media (max-width: 820px) { .vision article { grid-template-columns: 1fr; gap: 18px; } .vision article:nth-child(even) .media { order: 0; } .vision article:nth-child(even) { grid-template-columns: 1fr; } }

/* ledger */
.ledger { border-top: 2px solid var(--forest); margin: 0; }
.ledger > div { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger dt { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 700; color: var(--forest); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; line-height: 1.05; }
.ledger dd { margin: 0; max-width: 60ch; }
.ledger dd span { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
@media (max-width: 640px) { .ledger > div { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
.table-wrap table { min-width: 640px; }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: var(--step--1); caption-side: bottom; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.num-table td, .num-table th[scope="col"] { text-align: right; white-space: nowrap; }
.num-table th[scope="row"], .num-table th[scope="col"]:first-child { text-align: left; }
thead th { font-size: var(--step--1); font-weight: 600; color: var(--muted); background: var(--mist); }
tbody th { font-weight: 600; color: var(--forest); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tr.total th, tr.total td { background: var(--bolt-soft); font-weight: 600; }
.prose table { border: 1px solid var(--line); border-radius: var(--radius); display: block; overflow-x: auto; }

/* switch list */
.switches { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--forest); }
.switches li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.switches .from { color: var(--muted); display: block; font-size: var(--step--1); }
.switches .to { font-weight: 600; color: var(--forest); font-size: 1.12rem; }
.switches .save { font-weight: 700; font-size: 1.45rem; color: var(--forest); font-variant-numeric: tabular-nums; line-height: 1.1; }
.switches .save small { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 760px) { .switches li { grid-template-columns: 1fr; } }

/* towns */
.towns { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--forest); }
.towns li { border-bottom: 1px solid var(--line); }
.towns a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; padding: 18px 0; text-decoration: none; color: var(--text); align-items: baseline; }
.towns a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.towns h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--step-3); }
.towns .t-fig { font-weight: 700; font-size: 1.3rem; color: var(--forest); font-variant-numeric: tabular-nums; text-align: right; }
.towns .t-fig small { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 640px) { .towns a { grid-template-columns: 1fr 1fr; } .towns h3 { grid-column: 1 / -1; } .towns .t-fig { text-align: left; } }

/* features (case for electrification) */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--forest); }
.features > div { padding: 22px 28px 24px 0; border-bottom: 1px solid var(--line); }
.features > div:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line); }
.features > div:nth-child(even) { padding-left: 32px; }
.features h3 { font-family: var(--display); font-weight: 400; font-size: 1.55rem; margin-bottom: 8px; }
.features .stat { display: block; margin-top: 10px; font-weight: 700; color: var(--sage-deep); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .features > div, .features > div:nth-child(odd), .features > div:nth-child(even) { padding: 20px 0; border-right: 0; } }

/* events */
.events { display: grid; gap: 0; border-top: 2px solid var(--forest); }
.events article { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(22px, 4vw, 48px); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.events img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.events h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin-bottom: 6px; }
.events .when { color: var(--sage-deep); font-weight: 600; font-size: var(--step--1); margin-bottom: 8px; display: block; }
@media (max-width: 700px) { .events article { grid-template-columns: 1fr; gap: 14px; } }

/* sign-up form embed */
.form-embed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.form-embed iframe { width: 100%; height: 960px; border: 0; display: block; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--forest); color: var(--on-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.panel h3 { color: #fff; }
.panel a { color: var(--bolt); }

/* FAQ */
.faq { border-top: 2px solid var(--forest); max-width: 82ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.1rem; color: var(--forest); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 1.5rem; font-weight: 400; color: var(--sage-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 18px; max-width: 72ch; }

/* inner page hero */
.page-hero { background: var(--sage); color: #fff; padding: clamp(36px, 5.5vw, 72px) 0 clamp(32px, 5vw, 60px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { font-size: 1.18rem; max-width: 62ch; color: #f3f8f1; }
.page-hero .meta { color: #dbe7d9; font-size: var(--step--1); margin-top: 16px; }
.page-hero .meta a { color: #fff; }
.page-hero.with-art .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; align-items: center; }
.page-hero.with-art img { width: 100%; }
@media (max-width: 860px) { .page-hero.with-art .wrap { grid-template-columns: 1fr; } }
.breadcrumb { font-size: var(--step--1); margin-bottom: 16px; color: #dbe7d9; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,0.45); }
.breadcrumb a { color: #e9f1e7; }
.breadcrumb a:hover { color: #fff; }

/* post */
.post-hero { position: relative; background: var(--forest); color: #fff; }
.post-hero .cover { position: absolute; inset: 0; }
.post-hero .cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.post-hero .wrap { position: relative; padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(32px, 5vw, 56px); }
.post-hero h1 { color: #fff; max-width: 22ch; }
.post-hero .sub { font-size: 1.25rem; color: #eef4ec; max-width: 50ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #dfe9dd; font-size: var(--step--1); margin-top: 18px; }
.byline a { color: #fff; }
.post-body { padding: clamp(36px, 5vw, 64px) 0; }
.post-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
.post-aside { position: sticky; top: 96px; align-self: start; font-size: var(--step--1); }
.post-aside h2 { font-family: var(--body); font-weight: 600; font-size: 0.95rem; color: var(--muted); margin: 0 0 10px; }
.post-aside ol { list-style: none; padding: 0; margin: 0 0 24px; border-left: 2px solid var(--line); }
.post-aside li a { display: block; padding: 5px 0 5px 12px; color: var(--text); text-decoration: none; }
.post-aside li a:hover { color: var(--sage-deep); text-decoration: underline; }
@media (max-width: 960px) { .post-body .wrap { grid-template-columns: 1fr; } .post-aside { position: static; order: -1; } }

/* card list (guides & resources) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 30px); }
.cards article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.cards img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.cards .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.cards h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cards h3 a { color: var(--forest); text-decoration: none; }
.cards h3 a:hover { text-decoration: underline; }
.cards time, .cards .src { color: var(--muted); font-size: var(--step--1); }
.cards p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* news list */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--forest); }
.news-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 8px 28px; }
.news-list time { color: var(--muted); font-size: var(--step--1); padding-top: 4px; }
.news-list h3 { font-size: var(--step-1); margin-bottom: 6px; }
.news-list .src { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 640px) { .news-list li { grid-template-columns: 1fr; } }

/* link list */
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.links li { border-top: 1px solid var(--line); padding: 14px 0; }
.links a { font-weight: 600; }
.links span { display: block; color: var(--muted); font-size: var(--step--1); }

/* embed */
.embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.embed iframe { width: 100%; height: 760px; border: 0; display: block; }
.embed-note { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }

.callout { border-left: 4px solid var(--bolt); background: var(--bolt-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* sources */
.sources { font-size: var(--step--1); color: var(--muted); padding-top: 0; }
.sources .prose { margin: 0; }
.sources h2 { font-family: var(--body); font-weight: 600; font-size: var(--step-1); color: var(--forest); }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: 4px; }

/* footer */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding: 48px 0 40px; font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--bolt); }
.site-footer h2 { font-family: var(--body); font-weight: 600; color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .foot-logo { width: 150px; margin-bottom: 14px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 8px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media print {
  .site-header, .carousel-bar, .site-footer, .skip, .post-aside { display: none; }
  .news, .page-hero, .hero, .panel, .post-hero { background: none; color: #000; }
  .track { display: block; overflow: visible; }
  a { color: #000; }
}

/* lists with ticks, sticky column */
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; background: var(--bolt); clip-path: polygon(60% 0, 10% 58%, 45% 58%, 35% 100%, 90% 38%, 55% 38%); }
@media (min-width: 901px) { .split > .sticky { position: sticky; top: 100px; } }
.art-card { background: #fff; border-radius: var(--radius); padding: clamp(12px, 2vw, 24px); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.5); }
.art-card img { width: 100%; display: block; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose .num-table td, .prose .num-table th { white-space: normal; }
.prose .num-table td, .prose .num-table th { text-align: left; }
.post-body .wrap > * { min-width: 0; }
.prose pre, .prose table { max-width: 100%; }
