/* ============================================================
   UnaMesa Association — unamesa.org
   One shared stylesheet. No frameworks, no external requests,
   no JavaScript. The palette follows the wordmark: terracotta
   (the mark), ink, paper; teal carries trust and action.
   ============================================================ */

:root {
  --paper: #faf7f0;
  --paper-deep: #f2ebdc;
  --card: #fffdf8;
  --ink: #26221a;
  --ink-soft: #5d5748;
  --ink-faint: #8a8270;
  --line: #e3dbc9;
  --terra: #a3602f;        /* the mark */
  --terra-deep: #7f4a22;
  --terra-tint: #f3e4d6;
  --teal: #0e7c6b;
  --teal-deep: #0a5c50;
  --teal-tint: #dcefe9;
  --gold: #a87c1f;
  --focus: #0e7c6b;
  --shadow: 0 1px 2px rgba(38, 34, 26, 0.06), 0 8px 24px rgba(38, 34, 26, 0.06);
  --max: 1100px;
  --prose: 44rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f1d18;
    --paper-deep: #191713;
    --card: #27241e;
    --ink: #ece5d6;
    --ink-soft: #b6ad99;
    --ink-faint: #8d8574;
    --line: #3b362c;
    --terra: #d18a55;
    --terra-deep: #e2a677;
    --terra-tint: #352a21;
    --teal: #4fb09a;
    --teal-deep: #6cc5af;
    --teal-tint: #1f332e;
    --gold: #cda74c;
    --focus: #4fb09a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1f1d18;
  --paper-deep: #191713;
  --card: #27241e;
  --ink: #ece5d6;
  --ink-soft: #b6ad99;
  --ink-faint: #8d8574;
  --line: #3b362c;
  --terra: #d18a55;
  --terra-deep: #e2a677;
  --terra-tint: #352a21;
  --teal: #4fb09a;
  --teal-deep: #6cc5af;
  --teal-tint: #1f332e;
  --gold: #cda74c;
  --focus: #4fb09a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

/* ---------- Accessibility ---------- */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Header ---------- */

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand .logo { height: 42px; width: auto; display: block; }
.brand .logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--teal); }
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--terra);
  font-weight: 600;
}
.site-nav .btn { padding: 0.5rem 1.05rem; border-bottom: 2px solid var(--teal); }
.site-nav .btn[aria-current="page"] { border-bottom-color: var(--teal); }

@media (max-width: 560px) {
  .site-header { padding: 0.9rem 1rem 0.6rem; }
  .brand .logo { height: 36px; }
  .site-nav { width: 100%; gap: 0.1rem 1rem; font-size: 0.92rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.btn.outline { background: transparent; color: var(--teal-deep); }
.btn.outline:hover { background: var(--teal); color: #fff; }

.btn.terra { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn.terra:hover { background: var(--terra-deep); border-color: var(--terra-deep); }

/* Light buttons sit on the dark "ink" band in both schemes, so their colors are fixed */
.btn.light { background: #faf7f0; border-color: #faf7f0; color: #26221a; }
.btn.light:hover { background: #fff; border-color: #fff; color: #26221a; }
.btn.light.outline { background: transparent; color: #faf7f0; }
.btn.light.outline:hover { background: #faf7f0; color: #26221a; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { color: #10201c; }
  :root:not([data-theme="light"]) .btn:hover { color: #10201c; }
  :root:not([data-theme="light"]) .btn.outline { color: var(--teal); background: transparent; }
  :root:not([data-theme="light"]) .btn.outline:hover { color: #10201c; background: var(--teal); }
  :root:not([data-theme="light"]) .btn.terra { color: #1f1d18; }
  :root:not([data-theme="light"]) .btn.light { background: #faf7f0; border-color: #faf7f0; color: #26221a; }
  :root:not([data-theme="light"]) .btn.light:hover { background: #fff; border-color: #fff; color: #26221a; }
  :root:not([data-theme="light"]) .btn.light.outline { background: transparent; color: #faf7f0; }
  :root:not([data-theme="light"]) .btn.light.outline:hover { background: #faf7f0; color: #26221a; }
}
:root[data-theme="dark"] .btn { color: #10201c; }
:root[data-theme="dark"] .btn.outline { color: var(--teal); background: transparent; }
:root[data-theme="dark"] .btn.outline:hover { color: #10201c; background: var(--teal); }
:root[data-theme="dark"] .btn.terra { color: #1f1d18; }
:root[data-theme="dark"] .btn.light { background: #faf7f0; border-color: #faf7f0; color: #26221a; }
:root[data-theme="dark"] .btn.light:hover { background: #fff; border-color: #fff; color: #26221a; }
:root[data-theme="dark"] .btn.light.outline { background: transparent; color: #faf7f0; }
:root[data-theme="dark"] .btn.light.outline:hover { background: #faf7f0; color: #26221a; }

/* ---------- Layout primitives ---------- */

main { display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3.6rem 0; }
section.tight { padding: 2.4rem 0; }

.band {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band.ink {
  background: #26221a;
  color: #ece5d6;
  border-color: #26221a;
}
.band.ink .kicker { color: #e0a06b; }
.band.ink h2, .band.ink h3 { color: #fffdf8; }
.band.ink .muted { color: #b6ad99; }
.band.ink a:not(.btn) { color: #8fd0bd; }
.band.ink .card { background: #2f2a22; border-color: #3f392e; color: #ece5d6; }
.band.ink .card p { color: #c9c0ab; }
.band.ink .card h3 { color: #fffdf8; }
.band.ink .card .card-verb { color: #e0a06b; }
.band.ink .card .card-cta { color: #8fd0bd; }
.band.ink .pull { color: #ece5d6; }
.band.ink .pull b { color: #e0a06b; }
.band.ink .prose { color: #d9d0bb; }
.band.ink .asks li { background: #2f2a22; border-color: #3f392e; }
.band.ink .asks .q { color: #fffdf8; }
.band.ink .asks p { color: #c9c0ab; }
.band.ink .steps li { background: #2f2a22; border-color: #3f392e; }
.band.ink .steps h3 { color: #fffdf8; }
.band.ink .steps p { color: #c9c0ab; }
.band.ink .notice { background: #2f2a22; color: #c9c0ab; }
.band.ink .notice b { color: #fffdf8; }

.prose { max-width: var(--prose); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.45rem; }

.center { text-align: center; }
.center .prose { margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}
.two-col.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two-col, .two-col.even { grid-template-columns: 1fr; gap: 2rem; } }

.sticky-aside { position: sticky; top: 1.5rem; }
@media (max-width: 760px) { .sticky-aside { position: static; } }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 1rem;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 0.85rem;
}

.lede {
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.sans { font-family: var(--sans); }

a { color: var(--teal-deep); text-underline-offset: 2px; }
a:hover { color: var(--teal); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.12rem;
}
blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.85rem; margin-top: 0.5rem; color: var(--ink-faint); }

.pull {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  font-style: italic;
  max-width: 34rem;
  margin: 0;
  color: var(--ink);
}
.pull b { font-style: normal; color: var(--terra); }

.section-head { max-width: var(--prose); margin-bottom: 1.5rem; }
.section-head p { margin: 0; color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero { padding: 3.4rem 0 3.2rem; }
.hero .lede { margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

.hero.split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2rem 3rem;
  align-items: center;
}
.hero-figure { color: var(--terra); }
.hero-figure svg { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
@media (max-width: 820px) {
  .hero.split .wrap { grid-template-columns: 1fr; }
  .hero-figure svg { max-width: 260px; }
  .hero-figure { order: -1; }
}

.hero-note {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 1.2rem;
}

/* The round table in the hero: seats are the mark's terracotta, the open seat is dashed */
.hero-figure .top { fill: var(--terra-tint); stroke: currentColor; stroke-width: 7; }
.hero-figure .ring { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.4; }
.hero-figure .seat { fill: currentColor; }
.hero-figure .seat.open { fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 7 6; }
.hero-figure .seat-label { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: currentColor; letter-spacing: 0.06em; }

/* Small line icons used in lists */
.icon { width: 1em; height: 1em; vertical-align: -0.15em; }

/* ---------- Photo band ---------- */

.photo-band {
  position: relative;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #26221a;
}
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(260px, 44vw, 520px);
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.92;
}
.photo-band .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.25rem 1.6rem;
  background: linear-gradient(to top, rgba(20, 16, 10, 0.78), rgba(20, 16, 10, 0));
  color: #fffdf8;
}
.photo-band .caption .wrap { max-width: var(--max); }
.photo-band .caption p { margin: 0; max-width: 40rem; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.45; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.photo-band .caption .kicker { color: #e0a06b; margin-bottom: 0.4rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid.three, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { margin: 0 0 0.6rem; font-size: 0.99rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card .card-verb {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.card .card-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.95rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  align-self: flex-start;
}
.card .btn { margin-top: 1rem; align-self: flex-start; }
.card.accent { border-top: 4px solid var(--terra); }
.card.lift { box-shadow: var(--shadow); }
.card .card-icon { width: 34px; height: 34px; color: var(--terra); margin-bottom: 0.8rem; }

/* ---------- Vignettes (the moment) ---------- */

.vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.vignettes li {
  border-left: 3px solid var(--terra);
  padding: 0.2rem 0 0.2rem 1.1rem;
}
.vignettes b { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.45rem; color: #e0a06b; }
.vignettes p { margin: 0; color: #d9d0bb; font-size: 1.02rem; }

/* ---------- Numbered steps / elements ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.4rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; font-size: 0.99rem; color: var(--ink-soft); }

.steps.column { grid-template-columns: 1fr; max-width: var(--prose); gap: 0.8rem; }
.steps.column li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1rem; align-items: start; padding: 1.1rem 1.2rem; }
.steps.column li::before { margin: 0.1rem 0 0; grid-row: 1 / span 2; }
.steps.column h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }

/* The five elements of a table */
.elements {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}
.elements li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.2rem 1.2rem;
  position: relative;
}
.elements .el-icon { width: 36px; height: 36px; color: var(--terra); display: block; margin-bottom: 0.7rem; }
.elements b { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.elements p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.stat-row li { border-top: 2px solid var(--terra); padding-top: 0.8rem; }
.stat-row .n { display: block; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.stat-row .l { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem; line-height: 1.4; }

/* ---------- Highlights (image + text rows) ---------- */

.highlights { display: grid; gap: 1.4rem; margin-top: 2rem; }
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.2rem 1.6rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.highlight img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; background: var(--paper-deep); }
.highlight img.contain { object-fit: contain; padding: 0.5rem; }
.highlight h3 { margin-bottom: 0.4rem; }
.highlight p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }
.highlight .when { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 0.3rem; }
@media (max-width: 600px) { .highlight { grid-template-columns: 1fr; } .highlight img { height: 170px; } }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
  max-width: 52rem;
}
.timeline li {
  position: relative;
  padding: 0 0 1.8rem 1.8rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.45rem;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--terra);
}
.timeline .year {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.25rem;
}
.timeline h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }
.timeline li.turn::before { background: var(--terra); }

/* ---------- Diagrams ---------- */

figure.diagram {
  margin: 2rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1rem;
  max-width: 52rem;
}
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram.two-panel { max-width: none; }
figure.diagram.two-panel .panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  align-items: start;
}
figure.diagram.two-panel .panels svg { max-width: 420px; margin: 0 auto; }
@media (max-width: 640px) {
  figure.diagram.two-panel .panels { grid-template-columns: 1fr; }
  figure.diagram.two-panel .panels svg { max-width: 360px; }
}
figure.diagram figcaption {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  line-height: 1.5;
}
figure.diagram figcaption b { color: var(--ink); }

/* SVG helpers: colors come from the theme, so diagrams work in both schemes */
.diagram text { font-family: var(--sans); fill: var(--ink); }
.diagram .t-soft { fill: var(--ink-soft); }
.diagram .t-terra { fill: var(--terra); font-weight: 700; }
.diagram .t-teal { fill: var(--teal-deep); font-weight: 700; }
.diagram .s-ink { stroke: var(--ink); fill: none; }
.diagram .s-soft { stroke: var(--ink-soft); fill: none; }
.diagram .s-line { stroke: var(--line); fill: none; }
.diagram .s-terra { stroke: var(--terra); fill: none; }
.diagram .s-teal { stroke: var(--teal); fill: none; }
.diagram .f-terra { fill: var(--terra); }
.diagram .f-teal { fill: var(--teal); }
.diagram .f-paper { fill: var(--paper-deep); }
.diagram .f-card { fill: var(--card); }
.diagram .f-tint { fill: var(--terra-tint); }
.diagram .f-teal-tint { fill: var(--teal-tint); }
.diagram .f-ink { fill: var(--ink); }
.diagram .t-paper { fill: var(--paper); }

/* ---------- Belief / principle lists ---------- */

.beliefs {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.beliefs li { max-width: var(--prose); padding-left: 1.55rem; position: relative; }
.beliefs li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 0.62rem; height: 0.62rem;
  border-radius: 50%;
  border: 2px solid var(--terra);
}
.beliefs b { font-size: 1.06em; }

.never {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem 2.2rem;
  max-width: 58rem;
}
.never li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.never b { display: block; }
.never span { font-size: 0.96rem; color: var(--ink-soft); }

/* Questions anyone can ask */
.asks {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.asks li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.3rem 1.2rem; }
.asks .q { display: block; font-size: 1.22rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.5rem; }
.asks p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Definition rows ---------- */

.duty {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0.4rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.duty:last-of-type { border-bottom: 1px solid var(--line); }
.duty h3 { margin: 0; font-size: 1.1rem; }
.duty p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 640px) { .duty { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */

.eco-table { width: 100%; border-collapse: collapse; margin-top: 1.6rem; font-size: 0.98rem; }
.eco-table caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.7rem;
}
.eco-table th, .eco-table td { text-align: left; padding: 0.75rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
.eco-table th { font-family: var(--sans); font-size: 0.86rem; background: var(--paper-deep); }
.eco-table td { background: var(--card); }
.table-scroll { overflow-x: auto; }

/* ---------- Notices ---------- */

.notice {
  max-width: var(--prose);
  background: var(--card);
  border: 1px solid var(--gold);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
}
.notice b { color: var(--ink); }

.status {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--terra-tint);
  color: var(--terra-deep);
  margin-bottom: 0.6rem;
}
.status.live { background: var(--teal-tint); color: var(--teal-deep); }

/* ---------- Lists with name + description ---------- */

.ack-list, .give-ways, .paper-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: var(--prose);
}
.ack-list li, .give-ways li, .paper-list li { padding: 0.95rem 0; border-top: 1px solid var(--line); font-size: 0.99rem; }
.ack-list li:last-child, .give-ways li:last-child, .paper-list li:last-child { border-bottom: 1px solid var(--line); }
.ack-list b, .give-ways b, .paper-list b { display: block; margin-bottom: 0.1rem; }
.ack-list span, .give-ways span, .paper-list span { color: var(--ink-soft); }
.paper-list i { font-style: italic; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.person { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.2rem 1.1rem; }
.person b { display: block; font-size: 1.08rem; }
.person .role { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); margin: 0.15rem 0 0.5rem; }
.person p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Audience sections (take part) ---------- */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem 3rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.audience:last-of-type { border-bottom: 1px solid var(--line); }
.audience h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.audience .who { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.audience ul { margin: 0; padding-left: 1.2rem; }
.audience li { margin-bottom: 0.6rem; }
.audience .actions { margin-top: 1.1rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */

.legal { max-width: var(--prose); }
.legal h2 { font-size: 1.3rem; margin-top: 2.6rem; }
.legal h2:first-of-type { margin-top: 2rem; }
.legal .updated { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.45rem; }

/* ---------- Guidebook funds (care page + fund cards) ---------- */

.byline { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); margin: -0.35rem 0 1.3rem; }
.byline b { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin-top: 1.8rem; }
.smallprint { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.2rem; }
.fund-note { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin-top: 1.6rem; }

.give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

/* ---------- Spacing between components ----------
   The pages are generated from content/*.md by build.py, so the gaps that
   used to be inline styles live here. */

.vignettes + .two-col,
.card-grid + .two-col,
.steps + .two-col,
figure.diagram + .two-col,
.two-col + .prose,
.card-grid + .prose,
figure.diagram + .prose { margin-top: 2.6rem; }

.card-grid + .hero-actions,
.give-grid + .hero-actions,
.ack-list + .hero-actions,
.prose + .hero-actions { margin-top: 2rem; }

.two-col .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.prose img { display: block; border-radius: 12px; margin: 0 0 1rem; }
.hero .notice { margin: 0.4rem 0 0; }
.audience p { margin: 0 0 0.9rem; }
.audience .who { margin: 0; }
.people-grid + .fund-note, .audience + .fund-note { margin-top: 1.6rem; }

/* ---------- Closing invitation ---------- */

.closing { text-align: center; padding: 4rem 0; }
.closing .lede { max-width: 40rem; margin: 0 auto 2rem; }
.closing .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2.6rem 0 3rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .wrap { display: grid; gap: 1.4rem; }
.footer-top { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.footer-brand img { width: 28px; height: 28px; }
.footer-nav { display: flex; gap: 0.6rem 1.3rem; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--teal-deep); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 1.3rem; line-height: 1.7; }
.footer-legal p { margin: 0 0 0.5rem; }

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .hero-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
