/* Shared styles for RoundFlow's per-format guide pages (public-forum, policy, lincoln-douglas, parli, world-schools). Mirrors the design tokens/components in public/index.html so these pages read as the same site, not bolted-on landing pages. */

:root {
  --paper: #eef1ee;
  --surface: #ffffff;
  --surface-2: #e4e8e3;
  --ink: #1a2420;
  --ink-dim: #5b6960;
  --ink-faint: #8b978f;
  --rule: #c7d0c5;
  --rule-strong: #a9b6a5;
  --accent: #2b6e63;
  --accent-ink: #ffffff;
  --accent-soft: #dcece7;
  --pro: #b8631e;
  --con: #35578c;
  --shadow: 0 20px 50px -20px rgba(20, 32, 27, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131c17;
    --surface: #1a251f;
    --surface-2: #212e26;
    --ink: #e8ede6;
    --ink-dim: #a3b0a8;
    --ink-faint: #6e7c73;
    --rule: #33443a;
    --rule-strong: #435649;
    --accent: #5fbfa9;
    --accent-ink: #0f2420;
    --accent-soft: #223b34;
    --pro: #e0904a;
    --con: #7fa2d6;
    --shadow: 0 22px 55px -18px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --paper: #131c17;
  --surface: #1a251f;
  --surface-2: #212e26;
  --ink: #e8ede6;
  --ink-dim: #a3b0a8;
  --ink-faint: #6e7c73;
  --rule: #33443a;
  --rule-strong: #435649;
  --accent: #5fbfa9;
  --accent-ink: #0f2420;
  --accent-soft: #223b34;
  --pro: #e0904a;
  --con: #7fa2d6;
  --shadow: 0 22px 55px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 600; margin: 0; text-wrap: balance; }
em { font-style: italic; color: var(--accent); }
p { margin: 0; line-height: 1.6; }
a { color: inherit; }
.mono { font-family: "IBM Plex Mono", monospace; }
::selection { background: var(--accent-soft); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; flex-wrap: wrap; gap: 12px; }
.topbar .wordmark { font-family: "Newsreader", serif; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.topbar .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a.nav-link { font-size: 14px; color: var(--ink-dim); text-decoration: none; }
.topbar a.nav-link:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--rule-strong);
  color: var(--ink); background: var(--surface); white-space: nowrap;
  transition: border-color 120ms ease, transform 120ms ease;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { transform: translateY(-1px); }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 12.5px; color: var(--ink-faint); padding: 0 0 10px; }
.crumb a { color: var(--ink-dim); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 64px; }
.hero-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.01em; max-width: 20ch; }
.hero-sub { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink-dim); max-width: 60ch; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Sections ---------- */
section.feature { padding: 48px 0; border-top: 1px solid var(--rule); }
.feature-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.feature h2 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.2; margin-bottom: 14px; max-width: 28ch; }
.feature p.desc { color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; max-width: 66ch; }
.feature p.desc + p.desc { margin-top: 12px; }

/* ---------- Speech-order table ---------- */
.speech-table { margin-top: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.speech-row { display: grid; grid-template-columns: 2.2fr 1.6fr 0.9fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--rule); align-items: center; }
.speech-row:last-child { border-bottom: none; }
.speech-row.head { background: var(--surface-2); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.speech-row .side { font-size: 13.5px; font-weight: 500; }
.speech-row .side.pro { color: var(--pro); }
.speech-row .side.con { color: var(--con); }
.speech-row .speech { font-size: 13.5px; color: var(--ink); }
.speech-row .time { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-dim); text-align: right; }
.prep-note { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

/* ---------- How-to steps ---------- */
.steps { margin-top: 22px; counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding: 0 0 22px 44px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 15.5px; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; max-width: 60ch; }

/* ---------- Term glossary ---------- */
.term-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.term-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; }
.term-card .term { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--accent); margin-bottom: 6px; display: block; }
.term-card p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; }

/* ---------- Related formats ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related a {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-dim);
  background: var(--surface); text-decoration: none; transition: border-color 120ms ease, color 120ms ease;
}
.related a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- CTA ---------- */
.cta { padding: 64px 0 40px; text-align: center; border-top: 1px solid var(--rule); }
.cta h2 { font-size: clamp(26px, 3.6vw, 34px); max-width: 24ch; margin: 0 auto; }
.cta p { margin: 16px auto 0; color: var(--ink-dim); font-size: 15.5px; max-width: 50ch; }
.cta .hero-actions { justify-content: center; margin-top: 28px; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer .wordmark { font-family: "Newsreader", serif; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
footer .fine { font-size: 12.5px; color: var(--ink-faint); }
footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
footer nav a { font-size: 12.5px; color: var(--ink-faint); text-decoration: none; }
footer nav a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .speech-row { grid-template-columns: 1.6fr 1.2fr 0.8fr; padding: 10px 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, section.feature, .cta { animation: rise 560ms ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
