/* ============================================================
   STOP DOG EATERS — Brand Design System v2
   Urgency Red  #E63946 | Safety Teal  #2A9D8F | Deep Slate  #264653
   Fonts: Montserrat Black 900 (heads) · Inter 400/500/700 (body)
   ============================================================ */

/* ====== LAYER 1: BASE — Reset, tokens, typography, links ====== */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* MD3 Color System (Stitch Design) */
  --primary: #052a2c;
  --primary-container: #1d6a72;
  --secondary: #006c51;
  --tertiary: #540005;
  --tertiary-container: #b33023;
  --surface: #f9f9f9;
  --surface-container-low: #f3f3f3;
  --surface-container: #eeeeee;
  --surface-container-high: #e8e8e8;
  --surface-container-highest: #e2e2e2;
  --on-surface: #1a1c1c;
  --on-surface-variant: #414848;
  --outline: #717879;
  --outline-variant: #c1c8c8;
  --amber: #e8a838;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --primary-fixed: #c6e9eb;
  --primary-fixed-dim: #aacdcf;
  --secondary-container: #86f7ce;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --on-tertiary: #ffffff;

  /* Backward-compat aliases (updated to new values) */
  --red: var(--tertiary-container);
  --red-dk: var(--tertiary);
  --red-lt: var(--tertiary-container);
  --teal: var(--primary-container);
  --teal-dk: var(--primary);
  --teal-lt: var(--primary-container);
  --slate: var(--primary);
  --slate-lt: var(--primary-container);
  --mist: var(--surface);
  --white: #ffffff;
  --navy: var(--primary);
  --offwhite: var(--surface);
  --text: var(--on-surface);
  --text-md: var(--on-surface-variant);
  --text-dark: var(--on-surface);
  --border: var(--outline-variant);
  --border-dk: var(--outline);
  --gray: var(--on-surface-variant);
  --gray-lt: var(--surface-container-low);

  /* Typography */
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing & shape */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-pill: 9999px;
  --max-w: 1280px;
  --section-py: 6rem;
  --section-px: 2rem;
  --card-padding: 2.5rem;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(26,28,28,0.04);
  --shadow: 0 24px 48px -12px rgba(26,28,28,0.06);
  --shadow-lg: 0 32px 64px -16px rgba(26,28,28,0.12);
  --shadow-nav: 0 8px 30px rgb(0,0,0,0.04);
  --shadow-hover: 0 20px 40px rgba(26,28,28,0.08);
  --shadow-red: 0 8px 32px rgba(179,48,35,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-flex;
}

/* Skip Navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 1rem 2rem;
  z-index: 200;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

img { max-width: 100%; display: block; }
a   { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dk); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

p { margin-bottom: 1rem; color: var(--text-md); line-height: 1.75; }
p:last-child { margin-bottom: 0; }

/* ====== LAYER 2: LAYOUT — Page structure, grids, containers ====== */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 96px 0; }
.section-sm  { padding: 52px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.bg-slate    { background: var(--slate); }
.bg-offwhite { background: var(--mist); }
.bg-teal     { background: var(--teal); }
.bg-navy     { background: var(--slate); }
.pt-nav      { padding-top: 5rem; } /* Account for fixed nav height */


/* ====== LAYER 3: COMPONENTS — Self-contained UI blocks ====== */


/* --- Component: Entrance Animations ----------------------------------- */
.will-animate {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.55s ease var(--anim-delay, 0s),
    transform 0.55s ease var(--anim-delay, 0s);
}

.will-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* --- Touch Optimization ------------------------------------ */
button, .btn, a[href], input[type="submit"], input[type="button"],
[role="button"], .sidebar-tag, .view-btn, .nav-toggle {
  touch-action: manipulation;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(230,57,70,0.30);
}
.btn-primary:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(42,157,143,0.25);
}
.btn-secondary:hover {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--slate);
  border-color: var(--white);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--primary);
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links li:not(.nav-cta) a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}
.nav-links li:not(.nav-cta) a:hover {
  color: var(--primary);
}
.nav-links li:not(.nav-cta) a.active {
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  padding-bottom: 2px;
}

.nav-cta a {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 0.5rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  transition: all 0.15s;
}
.nav-cta a:hover {
  opacity: 0.9;
}
.nav-cta a:active {
  transform: scale(0.95);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s;
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  background: var(--primary);
  overflow: hidden;
  padding: 5rem 2rem;
  min-height: 54rem;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--primary-container) 0%, var(--primary) 100%);
  opacity: 0.5;
}

.hero::after { display: none; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,0.15);
  color: var(--red-lt);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(230,57,70,0.25);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-primary);
  margin-bottom: 20px;
}

.hero h1 .hero-accent {
  color: var(--primary-fixed-dim);
  font-style: italic;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-fixed-dim);
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(137,171,173,1);
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: var(--tertiary-container);
  color: var(--on-tertiary);
  border-color: var(--tertiary-container);
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-lg);
}
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  background: var(--tertiary-container);
  border-color: var(--tertiary-container);
  color: var(--on-tertiary);
}

.hero-actions .btn-outline {
  border: 1px solid var(--outline-variant);
  color: var(--on-primary);
  background: transparent;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--on-primary);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-image-placeholder {
  background: linear-gradient(135deg, rgba(42,157,143,0.18) 0%, rgba(38,70,83,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  gap: 14px;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  transform: rotate(2deg);
  box-shadow: var(--shadow-lg);
}
.hero-image-placeholder .icon { font-size: 3.5rem; opacity: 0.5; }

.hero-image-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--secondary-container);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 12.5rem;
  transform: rotate(-3deg);
}
.hero-image-badge p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--on-surface);
}

/* --- Stats Bar --------------------------------------------- */
.stats-bar {
  background: var(--surface-container-highest);
  padding: 4rem 2rem;
  position: relative;
  z-index: 20;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 0;
  text-align: center;
}

.stat-item + .stat-item::before { display: none; }

.stat-number {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 3.75rem);
  color: var(--tertiary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  max-width: none;
}

/* --- Component: Data Research Section (Phase 10) ------------ */
.data-research {
  background: var(--mist);
}

.data-research-grid {
  display: block;
}

.stat-callout-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 0;
}

.data-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.data-chart-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.data-chart-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  max-height: 400px;
}

.chart-wrapper canvas {
  width: 100% !important;
  max-height: 400px;
}

.data-chart-source {
  font-size: 0.75rem;
  color: var(--text-md);
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.5;
}

/* --- Eyebrow & Section Headers ----------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-header { margin-bottom: 56px; }

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  color: var(--text-md);
}

.section-header.text-center p { margin: 0 auto; }

/* Index page */
.index-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.index-transparency-pledge { font-size: 1rem; max-width: 720px; margin: 0 auto; text-align: center; color: var(--white); }
.index-transparency-pledge strong { color: var(--white); }
.index-pledge-link { color: var(--white); font-weight: 700; text-decoration: underline; }
.index-pledge-link:hover { color: rgba(255, 255, 255, 0.8); }

/* Transparency banner Stitch override */
.section-sm.bg-teal {
  background: var(--primary-container);
  color: var(--on-primary);
  padding: 1.5rem 2rem;
}

/* Section header with flex layout (blog listing on index) */
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }

/* Telegram join button override */
.btn--telegram { background: var(--teal); color: var(--white); }

/* --- Problem Cards ----------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  position: relative;
  overflow: visible;
}

.problem-card::before { display: none; }

.problem-card:hover {
  transform: translateY(-8px);
}

.problem-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  color: var(--teal);
  stroke: var(--teal);
  flex-shrink: 0;
}

.card-icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.card-icon-circle--error { background: var(--error-container); color: var(--error); }
.card-icon-circle--secondary { background: var(--secondary-container); color: var(--secondary); }
.card-icon-circle--primary { background: var(--primary-fixed); color: var(--primary); }

.problem-card:nth-child(1) .card-icon svg { color: var(--red); stroke: var(--red); }
.problem-card:nth-child(2) .card-icon svg { color: var(--amber, #E8A838); stroke: var(--amber, #E8A838); }
.problem-card:nth-child(3) .card-icon svg { color: var(--teal); stroke: var(--teal); }

/* --- Problem section: Warm Sanctuary style (ported from burst-20260529/E.html) --- */
.sde-warm {
  --w-paper: oklch(0.96 0.014 70);
  --w-paper-2: oklch(0.93 0.02 68);
  --w-ink: oklch(0.28 0.022 40);
  --w-ink-soft: oklch(0.46 0.025 45);
  --w-terra: oklch(0.56 0.13 38);
  --w-serif: 'Spectral', Georgia, serif;
  --w-body: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--w-paper);
  padding: clamp(48px, 6vw, 84px) 0;
  font-family: var(--w-body);
  color: var(--w-ink);
}
.sde-warm-care {
  background: var(--w-paper-2);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
.sde-warm-head { max-width: 54ch; margin-bottom: clamp(28px, 4vw, 46px); }
.sde-warm-eyebrow {
  font-size: .76rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--w-terra);
}
.sde-warm-head h2 {
  font-family: var(--w-serif); color: var(--w-ink);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; margin: 10px 0;
}
.sde-warm-lede { color: var(--w-ink-soft); font-size: 1.12rem; }
.sde-warm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.sde-warm-tile { border-radius: 24px; padding: clamp(26px, 3vw, 38px); background: var(--w-paper); }
.sde-warm-tile:nth-child(1) { background: oklch(0.74 0.12 75 / 0.22); }   /* ochre */
.sde-warm-tile:nth-child(2) { background: oklch(0.52 0.055 150 / 0.18); } /* sage */
.sde-warm-tile:nth-child(3) { background: oklch(0.56 0.13 38 / 0.14); }   /* terra */
.sde-warm-ic {
  width: 56px; height: 56px; border-radius: 16px; background: var(--w-paper);
  display: grid; place-items: center; margin-bottom: 18px;
  box-shadow: 0 8px 20px oklch(0.28 0.022 40 / 0.1);
  color: var(--w-terra);
}
.sde-warm-ic .material-symbols-outlined { font-size: 1.8rem; }
.sde-warm-tile h3 { font-family: var(--w-serif); color: var(--w-ink); font-size: 1.4rem; margin-bottom: 8px; }
.sde-warm-tile p { color: var(--w-ink-soft); font-size: .98rem; }

.placeholder-icon {
  color: var(--teal);
  stroke: var(--teal);
  opacity: 0.6;
}

.problem-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--on-surface);
}

.problem-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.section-header .accent-bar {
  height: 4px;
  width: 6rem;
  background: var(--tertiary);
  margin-top: 1rem;
}

/* --- Lucky Section ----------------------------------------- */
.lucky-section {
  background: var(--surface-container-low);
  padding: var(--section-py) var(--section-px);
  overflow: hidden;
}

.lucky-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lucky-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.lucky-image::after {
  content: '';
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 16rem;
  height: 16rem;
  background: var(--secondary-container);
  opacity: 0.2;
  border-radius: 50%;
  filter: blur(3rem);
  z-index: -1;
}

.lucky-image-placeholder {
  background: linear-gradient(135deg, rgba(42,157,143,0.2), rgba(0,0,0,0.15));
  border: 1px solid var(--outline-variant);
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  font-size: 0.82rem;
  gap: 14px;
  border-radius: var(--radius-lg);
}

.lucky-content .eyebrow { color: var(--tertiary); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.875rem; }

.lucky-content h2 {
  color: var(--on-surface);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.lucky-content p {
  color: var(--on-surface-variant);
  margin-bottom: 18px;
}

.lucky-quote {
  border-left: 4px solid var(--tertiary);
  padding-left: 1.5rem;
  margin: 28px 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--primary);
  line-height: 1.3;
}

.lucky-content .btn-secondary {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-color: var(--primary);
}

/* --- How To Help ------------------------------------------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-card {
  background: var(--surface-container-low);
  border: none;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.help-card:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.help-card:hover h3,
.help-card:hover p,
.help-card:hover .step-num {
  color: var(--on-primary);
}

.help-card .step-num {
  width: auto;
  height: auto;
  background: none;
  color: var(--on-surface);
  opacity: 0.2;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  box-shadow: none;
  display: block;
  border-radius: 0;
  transition: opacity 0.3s;
}
.help-card:hover .step-num { opacity: 0.1; }

.help-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.help-card p {
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.help-card .btn {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* --- Blog Cards -------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  background: linear-gradient(135deg, var(--teal), var(--slate));
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  background: rgba(42,157,143,0.10);
  color: var(--teal-dk);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid rgba(42,157,143,0.20);
  transition: transform 0.2s ease;
}

.blog-tag:hover {
  transform: scale(1.05);
}

.blog-tag:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Tag badge color variants per category (D-20) */
.blog-tag--health {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.blog-tag--regulation {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.blog-tag--theft {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.blog-tag--support {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}

.blog-tag--lucky {
  background: var(--red-lt);
  color: var(--white);
  border-color: var(--red-lt);
}

.blog-tag--updates {
  background: var(--teal-lt);
  color: var(--white);
  border-color: var(--teal-lt);
}

.blog-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--slate);
  flex: 1;
}

.blog-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-md);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--outline-variant);
  padding-top: 1rem;
}

/* --- Component: Blog Card Variants (Phase 9 stubs) ---------- */
.blog-card-bold {
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-bold:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(38,70,83,0.15);
}

.blog-card-bold h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-card-editorial {
  /* Editorial magazine variant — Phase 9 will add whitespace, subtle accents */
}

/* Blog card entrance animation (IntersectionObserver) */
.blog-card[data-animate],
.blog-post-card[data-animate],
.timeline-post-card[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.blog-card[data-animate].is-visible,
.blog-post-card[data-animate].is-visible,
.timeline-post-card[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .blog-card[data-animate],
  .blog-post-card[data-animate],
  .timeline-post-card[data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stat-callout__number,
  .data-chart-container {
    transition: none;
  }
}

/* --- Component: Stat Callout (Phase 9 stub) ----------------- */
.stat-callout {
  text-align: left;
  padding: 2rem;
  border-radius: 0.5rem;
  border-left: none;
  background: var(--surface-container-low);
  box-shadow: none;
}
.stat-callout__number {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--tertiary);
}
.stat-callout__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-md);
  margin-top: 0.5rem;
}

/* Compact stat callout for sidebar (Phase 10 per D-15) */
.stat-callout--compact {
  padding: 1rem 1rem 1rem 1.25rem;
  border-left-width: 3px;
}
.stat-callout--compact .stat-callout__number {
  font-size: 1.8rem;
}
.stat-callout--compact .stat-callout__label {
  font-size: 0.75rem;
}

.sidebar-stats {
  margin-top: 2rem;
}
.sidebar-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* --- Component: Scrolly Section (Phase 11 stub) ------------- */
.scrolly-section {
  /* Scrollytelling wrapper — Phase 11 will add Scrollama integration */
  position: relative;
  min-height: 100vh;
}
.scrolly-section__step {
  /* Individual scroll step — Phase 11 will add enter/exit transitions */
  padding: 2rem;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.scrolly-section__step.is-active {
  opacity: 1;
}

/* --- Petition Page (Stitch Editorial Design) --------------- */

/* Petition Hero */
.petition-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--section-px) 4rem;
}
.petition-hero .eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2rem;
  color: var(--primary-container);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.petition-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.petition-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.petition-targets .target-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--outline);
  font-weight: 700;
}
.petition-targets .target-badge {
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.petition-targets .target-badge--secondary {
  background: var(--primary-container);
}
.petition-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-container);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-container);
  padding-bottom: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.petition-hero-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.petition-hero-link .material-symbols-outlined {
  transition: transform 0.2s;
}
.petition-hero-link:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Two-column content */
.petition-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .petition-content {
    grid-template-columns: 7fr 5fr;
  }
}

/* Evidence sections (left column) */
.petition-evidence {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.petition-section {
  margin-bottom: 4rem;
}
.petition-section h2 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.petition-section--bordered h2 {
  border-left: 4px solid var(--tertiary-container);
  padding-left: 1.5rem;
}
.petition-section--bordered-teal h2 {
  border-left: 4px solid var(--primary-container);
  padding-left: 1.5rem;
}
.petition-section p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
  text-align: justify;
}
.petition-section strong { color: var(--primary); }

/* Evidence background variant */
.petition-section--bg {
  background: var(--surface-container-low);
  padding: 2.5rem;
  margin-left: -2.5rem;
  margin-right: -2.5rem;
}

/* Our Demand section (dark) */
.petition-demand {
  background: var(--primary);
  color: var(--on-primary);
  padding: 3rem;
  margin-bottom: 4rem;
}
.petition-demand h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--on-primary);
  border-bottom: 1px solid var(--primary-container);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.petition-demand-list {
  list-style: none;
  padding: 0;
}
.petition-demand-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.petition-demand-list .demand-num {
  background: var(--primary-container);
  color: var(--on-primary);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.petition-demand-list li p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--on-primary);
  line-height: 1.6;
  margin: 0;
}

/* Sticky sign widget (right column) */
.petition-sign-widget {
  position: sticky;
  top: 7rem;
}
.petition-sign-card {
  background: var(--surface-container-highest);
  padding: 0.25rem;
}
.petition-sign-inner {
  background: var(--surface);
  padding: 2rem;
}
.petition-sign-count {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}
.petition-sign-goal {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--outline);
}
.petition-sign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}
.petition-progress {
  width: 100%;
  height: 0.75rem;
  background: var(--surface-container);
  margin: 0.5rem 0 1rem;
}
.petition-progress-fill {
  height: 100%;
  background: var(--primary-container);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.petition-sign-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.petition-sign-live .material-symbols-outlined {
  font-size: 1.125rem;
  font-variation-settings: 'FILL' 1;
}

/* CTA widget */
.petition-cta-widget {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.petition-cta-message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.petition-cta-message strong {
  color: var(--primary);
}

/* Submit button (now a link) */
.petition-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--tertiary-container);
  color: #fff;
  font-weight: 900;
  padding: 1.125rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  text-decoration: none;
  text-align: center;
}
.petition-submit:hover {
  background: var(--tertiary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179,48,35,0.3);
}
.petition-submit .material-symbols-outlined {
  font-size: 1.25rem;
}
.petition-trust-signals {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--outline-variant);
  padding-top: 1.25rem;
}
.petition-trust-signals li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--outline);
}
.petition-trust-signals .material-symbols-outlined {
  font-size: 1rem;
  color: var(--primary-container);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.petition-sign-note a:hover {
  color: var(--primary-container);
}

/* Share section */
.petition-share {
  background: var(--surface-container-highest);
  padding: 4rem var(--section-px);
  text-align: center;
  margin-top: 6rem;
}
.petition-share h3 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 2rem;
}
.petition-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.petition-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.75rem 2rem;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.petition-share-btn:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* Form message (used by main.js form handler) */
.form-message {
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.form-message.success {
  background: #E8F5E9;
  color: #2e7d32;
}
.form-message.error {
  background: var(--error-container);
  color: var(--error);
}

/* Legacy compat (progress-bar class used by main.js) */
.progress-bar {
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

/* Blog layout responsive (sidebar stacks below) */
@media (max-width: 1023px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* Petition responsive (mobile stacking) */
@media (max-width: 1023px) {
  .petition-content {
    grid-template-columns: 1fr;
  }
  .petition-sign-widget {
    position: static;
  }
  .petition-section--bg {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.5rem;
  }
  .petition-demand {
    padding: 2rem;
    margin-left: -1rem;
    margin-right: -1rem;
  }
}
@media (max-width: 640px) {
  .petition-hero h1 {
    font-size: 2rem;
  }
  .petition-demand h2 {
    font-size: 1.75rem;
  }
  .petition-share-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* --- About Page (Stitch Design) -------------------------------- */

/* About hero — editorial pattern matching petition/donate heroes */
.about-hero {
  padding: var(--section-py) var(--section-px) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-hero .eyebrow {
  color: var(--primary-container);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.about-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.about-hero p {
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 42rem;
}

/* Lucky section overrides for about page */
.about-lucky-content { color: var(--on-surface); }
.about-lucky-content h2 { color: var(--on-surface); }
.about-lucky-content p { color: var(--on-surface-variant); }
.about-lucky-quote { border-left-color: var(--primary-container); color: var(--primary); }

/* Mission section — two-column grid */
.about-principles { display: flex; flex-direction: column; gap: 1.25rem; }
.about-principle-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-left: 4px solid var(--primary-container);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.about-principle-card:hover { transform: translateY(-2px); }
.about-principle-card--amber { border-left-color: var(--amber); }
.about-principle-card--red { border-left-color: var(--tertiary-container); }
.about-principle-card h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
}
.about-principle-card p { font-size: 0.9rem; color: var(--on-surface-variant); }

/* Transparency section — Stitch tokens */
.about-transparency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-transparency-note { margin-top: 12px; font-size: 0.875rem; color: var(--on-surface-variant); }
.about-fund-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
}
.about-fund-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--on-surface);
}
.about-fund-rows { display: flex; flex-direction: column; gap: 0.75rem; }
.about-fund-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
}
.about-fund-row:last-child { border-bottom: none; padding-bottom: 0; }
.about-fund-percent { font-weight: 700; color: var(--primary-container); }
.about-fund-footnote { font-size: 0.82rem; color: var(--on-surface-variant); margin-top: 1rem; }

/* Team grid — Stitch card pattern */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 5rem; height: 5rem;
  background: var(--surface-container-high);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-container);
}
.team-avatar .material-symbols-outlined {
  font-size: 2.25rem;
}

.team-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin-bottom: 1rem;
}
.team-card p { font-size: 0.875rem; color: var(--on-surface-variant); line-height: 1.6; }

/* --- Donate Page ------------------------------------------- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.donate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.donate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.donate-card.featured {
  border: 2px solid var(--teal);
  box-shadow: 0 4px 24px rgba(42,157,143,0.14);
}

.donate-card .platform {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.donate-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.donate-card p  { font-size: 0.92rem; margin-bottom: 28px; }

.transparency-box {
  background: var(--mist);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-top: 48px;
}

.transparency-box h3 {
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 12px;
}

.transparency-box p { font-size: 0.92rem; }

/* Donate page header */
.donate-header { background: var(--slate); padding: 70px 0; text-align: center; }
.donate-header .eyebrow { color: var(--amber); }
.donate-header h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.donate-header p { color: rgba(255,255,255,0.78); max-width: 580px; margin: 0 auto; }

/* Donate tier cards */
.donate-tiers { display: flex; flex-direction: column; gap: 20px; max-width: 700px; margin: 0 auto; }
.donate-tier-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.donate-tier-card--featured { border: 2px solid var(--teal); position: relative; }
.donate-tier-badge { position: absolute; top: -12px; left: 32px; background: var(--teal); color: var(--white); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); }
.donate-tier-icon { text-align: center; }
.donate-tier-label { font-family: var(--font-head); font-size: 1.8rem; font-weight: bold; color: var(--teal); }
.donate-tier-label--amber { color: var(--amber); }
.donate-tier-sublabel { font-size: 0.82rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; }
.donate-tier-title { font-size: 1.05rem; margin-bottom: 8px; }
.donate-tier-desc { font-size: 0.9rem; margin-bottom: 0; }

/* Fund breakdown */
.donate-breakdown-list { margin: 12px 0 16px 20px; color: var(--text-md); font-size: 0.92rem; line-height: 2; }
.donate-breakdown-section { margin-top: 48px; }
.donate-breakdown-title { font-size: 1.1rem; margin-bottom: 16px; text-align: center; color: var(--slate); }
.donate-fund-tracker-title { text-align: center; font-size: 1.4rem; margin-bottom: 32px; color: var(--slate); }

/* Transparency container */
.donate-transparency { max-width: 700px; margin: 0 auto; }

/* --- Token Page (Stitch 06) -------------------------------- */
.token-hero {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(26,37,64,1) 100%);
  padding: var(--section-py) var(--section-px);
  position: relative;
  overflow: hidden;
}
.token-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.token-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}
.token-hero-content {
  color: var(--on-primary);
}
.token-hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.token-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--on-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.token-hero h1 .accent {
  font-style: italic;
  font-weight: 700;
  color: var(--primary-fixed);
}
.token-hero p {
  color: rgba(137,171,173,1);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 2rem;
}
.token-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}
.token-hero-cta .btn-buy {
  background: var(--secondary);
  color: var(--on-secondary);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.token-hero-cta .btn-buy:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.token-hero-cta .btn-alt {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--on-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.token-hero-cta .btn-alt:hover {
  background: rgba(255,255,255,0.1);
}

/* Token badge card (right side of hero) */
.token-badge-card {
  background: var(--primary-container);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.token-badge-card::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background: rgba(0,108,81,0.2);
  filter: blur(3rem);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}
.token-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.token-icon {
  width: 4rem;
  height: 4rem;
  background: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.token-icon .material-symbols-outlined {
  color: var(--primary);
  font-size: 2.5rem;
}
.token-network-info {
  text-align: right;
  color: rgba(137,171,173,1);
}
.token-network-info .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.token-network-info .value {
  color: var(--on-primary);
  font-weight: 700;
}
.token-symbol {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--on-primary);
  letter-spacing: -0.04em;
  margin-top: 0.5rem;
}
.token-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.token-meta-grid .label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(137,171,173,1);
}
.token-meta-grid .value {
  color: var(--on-primary);
  font-weight: 600;
}

/* Amber disclaimer banner */
.token-disclaimer {
  background: var(--amber);
  padding: 1rem var(--section-px);
}
.token-disclaimer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary);
}
.token-disclaimer p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--primary);
}
.token-disclaimer strong { font-weight: 700; }

/* Two-column info grid */
.token-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}

/* Why a Token section */
.token-why h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.token-why p {
  color: var(--on-surface-variant);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.token-specs {
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.token-specs h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}
.token-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--outline-variant);
}
.token-spec-row:last-child { border-bottom: none; }
.token-spec-row .spec-label { color: var(--on-surface-variant); font-weight: 500; }
.token-spec-row .spec-value { color: var(--primary); font-weight: 700; }

/* Cycle of Impact (vertical timeline steps) */
.token-steps {
  position: relative;
}
.token-steps h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3rem;
}
.token-step {
  display: flex;
  gap: 2rem;
  position: relative;
  margin-bottom: 2rem;
}
.token-step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--on-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.token-step:nth-child(1) .token-step-num { background: var(--primary); }
.token-step:nth-child(2) .token-step-num { background: var(--primary-container); }
.token-step:nth-child(3) .token-step-num { background: var(--primary-fixed-dim); color: var(--primary); }
.token-step:nth-child(4) .token-step-num { background: var(--surface-container-highest); color: var(--primary); }
.token-steps .steps-container {
  position: relative;
}
.token-steps .steps-container::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: var(--outline-variant);
}
.token-step h4 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.token-step p { color: var(--on-surface-variant); }

/* Token CTA buttons (legacy compat) */
.token-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Token CTA section (on donate page) */
.token-cta-section { align-items: center; justify-content: space-between; }
.token-cta-section-title { color: var(--white); font-size: 1.2rem; margin-bottom: 6px; }
.token-cta-section-text { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin: 0; }

/* --- Article/Post Page (Prose Styling) -------------------- */
/* Editorial magazine layout (D-06) */
.prose {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.85;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
}

.prose > * + * {
  margin-top: 1.75em;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.75em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 700;
  color: var(--slate);
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: var(--teal-dk);
}

.prose a:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.prose h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--slate);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--slate);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.prose h4 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  color: var(--slate);
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.prose li {
  margin-bottom: 0.75em;
  line-height: 1.8;
  font-size: 1.05rem;
}

.prose li::marker {
  color: var(--teal);
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid var(--teal);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.6;
}

.prose blockquote p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0.5em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

.prose code {
  background: var(--mist);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: var(--slate);
}

.prose pre {
  background: var(--mist);
  padding: 1.5em;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose img {
  border-radius: var(--radius-md);
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  box-shadow: var(--shadow-sm);
}

/* Editorial pull quote (D-08) */
.pull-quote {
  border-left: 4px solid var(--teal);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--slate);
}

.pull-quote p {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0;
}

/* Article prose wrapper (editorial magazine layout) */
.post-prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Article section heading (within prose) */
.post-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--slate);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* --- Article/Post Page --------------------------------------------- */
/* Post page layout */
.post-container { max-width: 1000px; padding: 64px 32px 80px 32px; }
.post-loading { text-align: center; padding: 80px 0; color: var(--text-md); }
.post-article { max-width: 750px; margin: 0 auto; }
.post-banner { width: 100%; height: auto; border-radius: 16px; margin: 0 0 48px 0; box-shadow: var(--shadow-lg); }
.post-tag-block { display: block; margin-bottom: 20px; }
.post-title { font-family: var(--font-head); font-size: clamp(2.4rem, 5.5vw, 3.5rem); line-height: 1.12; margin-bottom: 32px; color: var(--slate); font-weight: 900; letter-spacing: -0.03em; }
.post-byline { display: flex; align-items: center; gap: 14px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--text-md); margin-bottom: 64px; padding-bottom: 32px; border-bottom: 3px solid var(--border); }
.post-byline-author { font-weight: 700; color: var(--slate); }
.post-byline-dot { color: var(--teal); opacity: 0.5; }
.post-byline-date { font-weight: 500; }

/* Post CTA box (call-to-action after article) — teal gradient (D-10) */
.post-cta-box { margin-top: 80px; background: linear-gradient(135deg, var(--teal), var(--teal-dk)); border: none; border-radius: var(--radius-lg); padding: 56px 64px; text-align: center; max-width: 750px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.post-cta-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%); }
.post-cta-heading { font-family: var(--font-head); font-size: 1.75rem; font-weight: 900; margin-bottom: 18px; color: var(--white); letter-spacing: -0.02em; }
.post-cta-text { font-size: 1.12rem; color: rgba(255,255,255,0.9); margin-bottom: 36px; line-height: 1.75; font-weight: 500; max-width: 540px; margin-left: auto; margin-right: auto; }
.post-cta-btn { font-size: 1.08rem; padding: 18px 48px; background: var(--white); color: var(--teal-dk); border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; }

.post-cta-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  background: var(--white);
  color: var(--teal-dk);
}

.post-cta-btn:active {
  transform: scale(0.98);
}

/* Post error state */
.post-error { text-align: center; padding: 80px 0; }
.post-error p { color: var(--text-md); }

/* --- Blog Page (old pre-Stitch rules removed — see STITCH BLOG LISTING section) --- */
.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(28,28,24,0.04);
  border-left: 8px solid var(--primary);
  transition: box-shadow 0.3s;
}
.blog-post-card:hover { box-shadow: 0 20px 40px rgba(28,28,24,0.08); }
.blog-post-img {
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  min-height: 170px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}
.blog-post-body { padding: 24px 28px; }
.blog-post-body h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3; color: var(--on-surface); }
.blog-post-body p { font-size: 0.9rem; line-height: 1.7; color: var(--on-surface-variant); }
.blog-card-meta { font-size: 0.8rem; color: var(--on-surface-variant); margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.blog-card-meta span:first-child { font-weight: 700; color: var(--on-surface); }

/* --- Transparency Box ------------------------------------- */
.transparency-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Footer ------------------------------------------------ */
.footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-brand h3 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--on-primary);
  margin-bottom: 1.5rem;
}

.footer-brand h3 span { color: var(--on-primary); }
.footer-brand p {
  color: rgba(161,161,170,1);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--on-primary);
  margin-bottom: 1.5rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-col a {
  color: rgba(161,161,170,1);
  font-size: 0.875rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--on-primary);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.1);
  transform: none;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 5rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(113,113,122,1);
}

.footer-transparency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,157,143,0.12);
  border: 1px solid rgba(42,157,143,0.25);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* --- Blog Post Page Elements ------------------------------ */
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 40px;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.post-back-link:hover {
  color: var(--teal-dk);
  border-bottom-color: var(--teal);
  transform: translateX(-4px);
}

/* --- Blog Post Typography (Prose) ------------------------- */
.prose {
  /* Base typography for optimal readability */
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}

/* Headings with brand hierarchy */
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--slate);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 56px 0 24px 0;
  scroll-margin-top: 80px;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--slate);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 44px 0 20px 0;
  scroll-margin-top: 80px;
}

.prose h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 36px 0 16px 0;
  scroll-margin-top: 80px;
}

/* First heading has no top margin */
.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child {
  margin-top: 0;
}

/* Paragraphs with generous spacing */
.prose p {
  margin-bottom: 1.75rem;
  color: var(--text);
  line-height: 1.85;
  font-size: 1.075rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph (first paragraph) */
.prose > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Beautiful links with brand colors */
.prose a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(42,157,143,0.25);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

.prose a:hover {
  color: var(--teal-dk);
  border-bottom-color: var(--teal);
  background: rgba(42,157,143,0.06);
}

/* External links indicator */
.prose a[href^="http"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 3px;
  font-size: 0.85em;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.prose a[href^="http"]:hover::after {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Elegant blockquotes with brand accent */
.prose blockquote {
  margin: 2.5rem 0;
  padding: 24px 32px 24px 28px;
  background: var(--mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.prose blockquote::before {
  content: """;
  position: absolute;
  top: 16px;
  left: -12px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--teal);
  opacity: 0.15;
  line-height: 1;
}

.prose blockquote p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-md);
  font-weight: 600;
}

.prose blockquote cite::before {
  content: "— ";
}

/* Code blocks with dark theme */
.prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 24px 28px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  border: 1px solid #334155;
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 0.92rem;
  line-height: 1.65;
  color: inherit;
}

/* Inline code */
.prose code {
  background: rgba(42,157,143,0.08);
  color: var(--teal-dk);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid rgba(42,157,143,0.15);
}

/* Lists with better spacing */
.prose ul,
.prose ol {
  margin: 1.75rem 0;
  padding-left: 32px;
}

.prose li {
  margin-bottom: 12px;
  line-height: 1.75;
  color: var(--text);
}

.prose li::marker {
  color: var(--teal);
  font-weight: 700;
}

.prose ul li {
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose li > ul,
.prose li > ol {
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Nested lists */
.prose ul ul,
.prose ol ul {
  list-style-type: circle;
}

.prose ul ul ul,
.prose ol ul ul,
.prose ol ol ul {
  list-style-type: square;
}

/* Images with elegant styling */
.prose img {
  margin: 2.5rem auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prose img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Figure with captions */
.prose figure {
  margin: 2.5rem 0;
}

.prose figure img {
  margin: 0 auto 16px;
}

.prose figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-md);
  font-style: italic;
  margin-top: 12px;
}

/* Tables with clean styling */
.prose table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose thead {
  background: var(--slate);
  color: var(--white);
}

.prose th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.prose tbody tr:nth-child(even) {
  background: var(--mist);
}

.prose tbody tr:hover {
  background: rgba(42,157,143,0.06);
  transition: background 0.15s ease;
}

/* Horizontal rules */
.prose hr {
  margin: 3.5rem 0;
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

/* Strong and emphasis */
.prose strong {
  font-weight: 700;
  color: var(--slate);
}

.prose em {
  font-style: italic;
  color: var(--text-dark);
}

/* Mark/highlight text */
.prose mark {
  background: rgba(232,168,56,0.25);
  color: var(--text-dark);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Small text */
.prose small {
  font-size: 0.875rem;
  color: var(--text-md);
}

/* Subscript and superscript */
.prose sub,
.prose sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.prose sup {
  top: -0.5em;
}

.prose sub {
  bottom: -0.25em;
}

/* Smooth fade-in animation for prose content */
.prose {
  animation: prose-fade-in 0.6s ease-out;
}

@keyframes prose-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Blog View Toggle + Timeline (old pre-Stitch) — REMOVED, see STITCH BLOG LISTING section --- */
.blog-content-wrapper { width: 100%; }

/* --- Fund Tracker Dashboard -------------------------------------- */
.fund-tracker-container {
  max-width: 900px;
  margin: 0 auto;
}

.fund-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.fund-metric {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.fund-metric:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fund-metric-value {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.fund-metric-label {
  font-size: 0.85rem;
  color: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.fund-sources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.fund-source {
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.fund-source-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.fund-source-amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 8px;
}

.fund-source-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  font-weight: 600;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.fund-allocations {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.fund-allocation {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.fund-allocation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fund-allocation-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
}

.fund-allocation-percent {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
}

.fund-allocation-description {
  font-size: 0.85rem;
  color: var(--text-md);
  margin-bottom: 12px;
}

.fund-allocation-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.fund-allocation-progress {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.fund-allocation-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-md);
}

.fund-allocation-stats span {
  font-weight: 500;
}

#allocation-chart {
  max-width: 400px;
  margin: 0 auto 48px;
}

.fund-expenses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fund-expense {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  align-items: start;
}

.fund-expense-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
  padding-top: 2px;
}

.fund-expense-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fund-expense-category {
  font-weight: 700;
  color: var(--slate);
  font-size: 0.95rem;
}

.fund-expense-description {
  font-size: 0.88rem;
  color: var(--text-md);
  line-height: 1.5;
}

.fund-expense-approved {
  font-size: 0.8rem;
  color: var(--gray);
}

.fund-expense-amount {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.fund-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--mist);
  border-radius: var(--radius);
}

.fund-empty-state p {
  color: var(--text-md);
  font-size: 0.95rem;
}

.fund-expenses-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

.fund-last-updated {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

.fund-error {
  text-align: center;
  padding: 48px 24px;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: var(--radius);
  color: #991b1b;
}

/* --- Comment Section -------------------------------------------- */
.comments-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 3px solid var(--border);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.comments-section h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.comments-count {
  color: var(--text-md);
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 8px;
}

/* Locked state */
.comments-locked {
  text-align: center;
  padding: 48px 32px;
  background: var(--mist);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.comments-locked-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-md);
}

.comments-locked h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.comments-locked p {
  max-width: 400px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
}

.comments-locked .btn {
  margin-bottom: 24px;
}

.comments-locked-progress {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto 8px;
}

.comments-locked-bar {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.comments-locked-amount {
  font-size: 0.8rem;
  color: var(--text-md);
  font-weight: 600;
}

/* Chat messages container */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: none;
  overflow-y: visible;
  padding: 0;
  margin-bottom: 2rem;
}

/* Single chat message row */
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
}

/* Chat avatar */
.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--white);
  flex-shrink: 0;
}

.chat-avatar-bot {
  background: var(--primary-container) !important;
}

/* Chat bubble wrapper */
.chat-bubble-wrap {
  flex: 1;
  min-width: 0;
}

/* Chat bubble */
.chat-bubble {
  background: var(--surface-container-highest);
  border: none;
  border-radius: var(--radius) var(--radius) var(--radius) 0.125rem;
  padding: 1rem;
  max-width: 100%;
  box-shadow: none;
  position: relative;
  transition: background 0.2s ease;
}

.chat-bubble:hover {
  box-shadow: none;
}

.chat-bubble-bot {
  background: rgba(26,37,64,0.05);
  border: 1px solid rgba(26,37,64,0.05);
}

.chat-bubble-pending {
  border: 2px dashed var(--outline-variant);
  opacity: 0.7;
}

/* Chat meta (name + time header) */
.chat-meta {
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  color: var(--on-surface-variant);
}

.chat-meta .chat-author {
  font-weight: 700;
  color: var(--on-surface);
  font-size: 0.875rem;
}

.chat-meta .chat-time {
  color: var(--outline);
  font-size: 0.625rem;
}

.chat-meta .bot-badge {
  display: inline-block;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  margin-left: 0.5rem;
}

.chat-meta .comment-pending-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

/* Chat text content */
.chat-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

/* Chat actions (like + reply buttons) */
.chat-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 0;
  margin-left: 0.25rem;
}

.chat-like-btn,
.chat-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  padding: 0;
  border-radius: 0;
  transition: color 0.2s ease;
  font-family: var(--font-body);
}

.chat-like-btn:hover {
  background: none;
  color: var(--primary-container);
}

.chat-like-btn.liked {
  color: var(--primary-container);
}

.chat-reply-btn {
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.chat-reply-btn:hover {
  background: none;
  color: var(--on-surface);
}

.chat-like-btn svg,
.chat-reply-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  vertical-align: middle;
}

/* Nested replies */
.chat-replies {
  margin-top: 1.5rem;
  margin-left: 0;
  border-left: 2px solid var(--surface-container-high);
  padding-left: 1.5rem;
}

.chat-replies .chat-replies {
  margin-left: 0;
}

/* Empty state */
.chat-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-md);
  font-size: 0.95rem;
}

/* --- Chat Input Bar (Comment Form) ------------------------------ */
.chat-input-bar {
  position: sticky;
  bottom: 2rem;
  background: rgba(230,226,220,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-input-bar .chat-input-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

.chat-input-bar input {
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  border-radius: 0;
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--primary-container);
  box-shadow: none;
}

.chat-input-bar .chat-input-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.chat-input-bar textarea {
  flex: 1;
  padding: 0.5rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 2.5rem;
  max-height: 120px;
  resize: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.chat-input-bar textarea:focus {
  outline: none;
  box-shadow: none;
}

.chat-send-btn {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--primary-container);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}
.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-input-bar .chat-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-input-bar .chat-char-count {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
}

.chat-input-bar .chat-notice {
  font-size: 0.72rem;
  color: var(--on-surface-variant);
  font-style: italic;
}

/* Reply form variant */
.chat-input-bar.reply-form {
  position: static;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  box-shadow: none;
  backdrop-filter: none;
}

/* Button sizes (keep for cancel button) */
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--mist);
  border-color: var(--border-dk);
}

/* --- Fund-Gated Roadmap ----------------------------------------- */
.fund-roadmap-container { max-width: 600px; margin: 0 auto; }

.roadmap-milestone { display: flex; gap: 24px; position: relative; }
.roadmap-milestone:last-child .roadmap-line { display: none; }

.roadmap-connector { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 40px; }
.roadmap-dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--border); background: var(--white); flex-shrink: 0; z-index: 1; transition: all 0.3s; }
.roadmap-line { width: 3px; flex: 1; background: var(--border); margin: 4px 0; }

/* State: completed */
.roadmap-completed .roadmap-dot { background: #2A9D8F; border-color: #2A9D8F; box-shadow: 0 0 0 4px rgba(42,157,143,0.15); }
.roadmap-completed .roadmap-line { background: #2A9D8F; }
.roadmap-completed .roadmap-amount { color: #2A9D8F; }

/* State: current */
.roadmap-current .roadmap-dot { background: #E63946; border-color: #E63946; box-shadow: 0 0 0 6px rgba(230,57,70,0.15); animation: roadmap-pulse 2s infinite; }
.roadmap-current .roadmap-amount { color: #E63946; font-weight: 900; }

@keyframes roadmap-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(230,57,70,0.15); } 50% { box-shadow: 0 0 0 8px rgba(230,57,70,0.08); } }

/* State: locked */
.roadmap-locked .roadmap-dot { background: var(--mist); border-color: #264653; opacity: 0.4; }
.roadmap-locked .roadmap-line { background: var(--border); opacity: 0.4; }
.roadmap-locked .roadmap-content { opacity: 0.5; }
.roadmap-locked .roadmap-amount { color: #264653; }

/* Content */
.roadmap-content { padding-bottom: 40px; flex: 1; }
.roadmap-amount { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.roadmap-feature { font-size: 1.15rem; margin-bottom: 8px; }
.roadmap-description { font-size: 0.88rem; color: var(--text-md); margin-bottom: 12px; }

/* Progress bar (current tier only) */
.roadmap-progress { height: 8px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 6px; }
.roadmap-progress-bar { height: 100%; background: linear-gradient(90deg, #2A9D8F, #E63946); border-radius: var(--radius-pill); transition: width 0.6s ease; }
.roadmap-progress-text { font-size: 0.78rem; color: var(--text-md); font-weight: 600; }

/* Badges */
.roadmap-badge { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 700; background: #d1fae5; color: #065f46; }
.roadmap-badge-locked { background: var(--mist); color: var(--text-md); }

.roadmap-error {
  text-align: center;
  padding: 32px 24px;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: var(--radius);
  color: #991b1b;
}

/* --- Celebration Banner ----------------------------------------- */
.celebration-banner { background: linear-gradient(135deg, #2A9D8F 0%, #1f7a6e 100%); color: var(--white); padding: 14px 0; }
.celebration-content { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.celebration-emoji { font-size: 1.5rem; }
.celebration-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; display: block; }
.celebration-feature { font-size: 0.85rem; opacity: 0.9; }
.celebration-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; margin-left: auto; opacity: 0.7; transition: opacity 0.2s; }
.celebration-close:hover { opacity: 1; }

/* --- Moderation Dashboard (Stitch Design) ----------------------- */
/* Moderation layout */
.mod-container { max-width: 900px; padding: 40px 24px; }
.mod-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--on-surface);
  margin-bottom: 0.5rem;
}
.mod-subtitle { color: var(--on-surface-variant); margin-bottom: 2rem; }
.mod-submit-btn { width: 100%; margin-top: 12px; }
.mod-gate-error { color: var(--error); font-size: 0.85rem; margin-top: 10px; }

.mod-gate { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 24px; }
.mod-gate-card { background: var(--surface); border: 2px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 48px 40px; max-width: 400px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.mod-gate-card h2 { font-family: var(--font-head); margin-bottom: 0.5rem; }
.mod-gate-card p { margin-bottom: 1.5rem; color: var(--on-surface-variant); }

.mod-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--outline-variant); margin-bottom: 1.5rem; }
.mod-tab { background: none; border: none; padding: 12px 20px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--on-surface-variant); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.mod-tab:hover { color: var(--on-surface); }
.mod-tab.active { color: var(--primary-container); border-bottom-color: var(--primary-container); }
.mod-tab-count { display: inline-block; background: var(--tertiary-container); color: var(--on-tertiary); font-size: 0.7rem; padding: 1px 7px; border-radius: var(--radius-pill); font-weight: 700; margin-left: 6px; }

.mod-item { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 1rem; transition: all 0.3s; }
.mod-item.approving { border-color: var(--primary-container); background: rgba(29,106,114,0.04); }
.mod-item.rejecting { border-color: var(--error); background: rgba(186,26,26,0.04); }
.mod-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.mod-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod-item-meta strong { color: var(--on-surface); }
.mod-item-email { font-size: 0.8rem; color: var(--on-surface-variant); }
.mod-item-date { font-size: 0.8rem; color: var(--on-surface-variant); }
.mod-item-context { font-size: 0.8rem; color: var(--primary-container); font-weight: 600; }
.mod-item-reply { font-size: 0.75rem; background: var(--surface-container-low); padding: 2px 8px; border-radius: var(--radius-pill); color: var(--on-surface-variant); }
.mod-item-content { font-size: 0.92rem; line-height: 1.7; color: var(--on-surface); margin-bottom: 1rem; padding: 12px 16px; background: var(--surface-container-low); border-radius: var(--radius-sm); white-space: pre-wrap; }
.mod-item-actions { display: flex; gap: 10px; }

.mod-empty { text-align: center; padding: 48px 24px; color: var(--on-surface-variant); }

/* Export button */
.mod-export-btn { margin-bottom: 1.5rem; }

/* --- Community Post Submission ---------------------------------- */
.community-locked {
  text-align: center;
  padding: 2rem 1.5rem;  /* 32px 24px, generous whitespace */
  background: var(--mist);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.community-locked-icon {
  font-size: 3rem;  /* Increase from 2.5rem for prominence */
  margin-bottom: 1rem;  /* 16px */
  color: var(--text-md);
}

.community-locked h3 {
  font-size: 1.125rem;  /* 18px */
  margin-bottom: 0.75rem;  /* 12px */
  font-weight: 700;
}

.community-locked p {
  max-width: 420px;
  margin: 0 auto 1.5rem;  /* 24px bottom margin */
  font-size: 1rem;  /* 16px */
  color: var(--text-md);
}

.community-locked .btn {
  margin-bottom: 1rem;  /* 16px */
}

.community-locked-progress {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto 0.5rem;  /* 8px bottom */
}

.community-locked-bar {
  height: 100%;
  background: var(--teal);  /* Use semantic token */
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.community-locked-amount {
  font-size: 0.875rem;  /* 14px */
  color: var(--text-md);
  font-weight: 600;
}

.community-submit-section {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;  /* 32px */
  box-shadow: var(--shadow-sm);  /* Subtle elevation */
}

.community-submit-section h3 {
  font-size: 1.125rem;  /* 18px */
  margin-bottom: 0.75rem;  /* 12px */
  font-weight: 700;
}

.community-submit-section > p {
  color: var(--text-md);
  margin-bottom: 1.5rem;  /* 24px, generous spacing */
  font-size: 1rem;  /* 16px */
}

.community-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;  /* 16px gap */
  margin-bottom: 1rem;  /* 16px */
}

@media (max-width: 640px) {
  .community-form-row {
    grid-template-columns: 1fr;  /* Stack on mobile */
  }
}

.comment-input {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;  /* 12px 16px */
  font-size: 1rem;  /* 16px */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}

.comment-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);  /* Teal focus ring */
}

.comment-toolbar {
  display: flex;
  gap: 0.5rem;  /* 8px gap between buttons */
  margin-bottom: 0.75rem;  /* 12px bottom margin */
}

.comment-toolbar button {
  background: var(--mist);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;  /* 8px, square buttons */
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 2.5rem;   /* 40px square */
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-toolbar button:hover {
  background: var(--white);
  border-color: var(--teal);
  color: var(--teal);
}

.comment-toolbar button:active {
  background: rgba(42, 157, 143, 0.1);  /* Teal tint on click */
}

.comment-toolbar button svg {
  width: 20px;
  height: 20px;
  pointer-events: none;  /* Prevent SVG from blocking click events */
}

.community-char-count {
  font-size: 0.875rem;  /* 14px */
  color: var(--text-md);
  text-align: right;
  margin-top: 0.5rem;  /* 8px */
  margin-bottom: 1rem;  /* 16px */
}

/* --- Community Post Preview Modal ------------------------------ */
.mod-preview-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mod-preview-content { background: var(--white); border-radius: var(--radius-lg); max-width: 700px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 40px; position: relative; }
.mod-preview-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-md); line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: background 0.2s ease; }
.mod-preview-close:hover { background: var(--mist); color: var(--slate); }
.mod-post-title { margin: 12px 0; color: var(--slate); font-size: 1.1rem; font-weight: 600; }

/* --- Chat Message Wrapper (block container: flex row + replies stack vertically) */
.chat-message-wrapper {
  display: block;
}

/* --- Community Form Styles -------------------------------------- */
.comment-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}

.comment-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}

.comment-input::placeholder {
  color: var(--gray);
}

select.comment-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.comment-editor {
  margin-bottom: 16px;
}

.comment-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.toolbar-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.15s;
  font-family: var(--font-body);
}

.toolbar-btn:hover {
  background: var(--white);
  border-color: var(--teal);
  color: var(--teal);
}

.toolbar-btn:active {
  background: rgba(42,157,143,0.08);
}

.comment-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  resize: vertical;
  min-height: 180px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}

.comment-textarea::placeholder {
  color: var(--gray);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comment-char-count {
  font-size: 0.8rem;
  color: var(--text-md);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.comment-form-notice {
  font-size: 0.82rem;
  color: var(--text-md);
  line-height: 1.5;
}

.comment-form-notice small {
  font-size: inherit;
  color: inherit;
}

/* --- Bot Comments ----------------------------------------------- */
/* Moved bot styles to chat-avatar-bot and chat-bubble-bot in chat section above */

/* --- Feature Voting --------------------------------------------- */
.feature-voting-container { max-width: 600px; margin: 0 auto; }

.voting-locked { text-align: center; padding: 48px 32px; background: var(--white); border-radius: var(--radius-lg); border: 2px dashed var(--border); }
.voting-locked-icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--text-md); }
.voting-locked h3 { font-size: 1.25rem; margin-bottom: 12px; }
.voting-locked p { max-width: 400px; margin: 0 auto 24px; font-size: 0.95rem; }
.voting-locked .btn { margin-bottom: 24px; }
.voting-locked-progress { height: 8px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; max-width: 300px; margin: 0 auto 8px; }
.voting-locked-bar { height: 100%; background: var(--teal); border-radius: var(--radius-pill); transition: width 0.6s ease; }
.voting-locked-amount { font-size: 0.8rem; color: var(--text-md); font-weight: 600; }

.voting-list { display: flex; flex-direction: column; gap: 12px; }
.voting-card { display: flex; align-items: center; gap: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; transition: all 0.2s; }
.voting-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.voting-card-content { flex: 1; }
.voting-title { font-size: 1rem; margin-bottom: 4px; }
.voting-description { font-size: 0.85rem; color: var(--text-md); margin-bottom: 8px; }
.voting-status { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; }
.voting-status-proposed { background: #e0f2fe; color: #0369a1; }
.voting-status-in-progress { background: #fef3c7; color: #92400e; }
.voting-status-completed { background: #d1fae5; color: #065f46; }

.voting-action { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; min-width: 50px; }
.voting-btn { background: var(--mist); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; transition: all 0.2s; color: var(--text-md); }
.voting-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(42,157,143,0.06); }
.voting-btn.voted { background: var(--teal); border-color: var(--teal); color: var(--white); }
.voting-count { font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; color: var(--slate); }
.voting-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-md); letter-spacing: 0.05em; }

/* Vote email prompt */
.voting-email-prompt { margin-top: 8px; display: flex; gap: 8px; }
.voting-email-prompt input { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8rem; font-family: var(--font-body); }
.voting-email-prompt button { padding: 6px 14px; font-size: 0.78rem; }

.voting-error {
  text-align: center;
  padding: 32px 24px;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: var(--radius);
  color: #991b1b;
}

/* --- Community Badge -------------------------------------------- */
.community-badge { display: inline-block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border-radius: var(--radius-pill); background: #e0e7ff; color: #3730a3; font-weight: 600; margin-left: 6px; }

/* --- Toast Notifications ---------------------------------------- */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@keyframes nav-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Accessibility: Focus-Visible -------------------------------- */
:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-cta a:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(29,106,114,0.2);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer-col a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--on-primary);
  outline-offset: 2px;
}

/* ====== LAYER 4: UTILITIES — Single-purpose helper classes ====== */

/* Nav offset — adds padding-top to clear the fixed nav (5rem height) */
.pt-nav { padding-top: 5rem; }

/* Display */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { gap: 0.5rem; }
.flex-gap-md { gap: 1rem; }
.flex-gap-lg { gap: 2rem; }
.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* Colors (brand tokens as utility classes) */
.text-red { color: var(--red); }
.text-teal { color: var(--teal); }
.text-slate { color: var(--slate); }
.text-muted { color: var(--text-md); }
.bg-red { background-color: var(--red); }
.bg-teal { background-color: var(--teal); }
.bg-slate { background-color: var(--slate); }
.bg-mist { background-color: var(--mist); }
.bg-white { background-color: var(--white); }

/* Borders & Shapes */
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-pill { border-radius: var(--radius-pill); }
.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Visibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* --- Loading Spinner (blog page) --------------------------- */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--text-md);
  font-size: 0.9rem;
}

.loading-spinner svg {
  color: var(--teal);
  animation: spin 1s linear infinite;
}

/* --- Empty State ------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-md);
}

.empty-state svg {
  color: var(--border-dk);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto;
}

/* --- Mission Grid (about.html) ----------------------------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-container { padding: 32px 16px 48px 16px; }
  .post-cta-box { padding: 32px 24px; }
  .post-byline { flex-wrap: wrap; gap: 8px; }
}

/* --- Screen Reader Utilities ------------------------------- */
.sr-announce { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none; }
.visible { visibility: visible; }

/* Loading States & Feedback */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Success Banner */
.comment-success-banner {
  background: rgba(42, 157, 143, 0.1);  /* Teal tint */
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem;  /* 16px */
  display: flex;
  align-items: center;
  gap: 0.75rem;  /* 12px */
  margin-bottom: 1rem;  /* 16px */
  animation: slideIn 0.3s ease;
}

.success-icon {
  color: var(--teal);
  flex-shrink: 0;  /* Prevent icon from squishing */
}

.comment-success-banner span {
  font-size: 1rem;  /* 16px */
  color: var(--text);
  line-height: 1.4;
}

/* ====== LAYER 4: UTILITIES ====== */
/* Centered intro paragraph */
.intro-text { max-width: 600px; margin: 0 auto; color: var(--text-md); }

/* ====== STITCH BLOG LISTING (17-03) ====== */

/* --- Blog Page Header (Stitch 02) -------------------------- */
.blog-page-header {
  padding-bottom: 3rem;
  background: var(--surface);
}
.blog-page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.blog-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.blog-header-desc {
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  max-width: 36rem;
  font-weight: 500;
  line-height: 1.7;
}

/* --- View Toggle (Stitch 02) -------------------------------- */
.view-toggle {
  display: inline-flex;
  background: var(--surface-container-low);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  flex-shrink: 0;
}
.view-toggle .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--on-surface-variant);
  transition: all 0.2s;
}
.view-toggle .view-btn .material-symbols-outlined {
  font-size: 1.125rem;
}
.view-toggle .view-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.view-toggle .view-btn:hover:not(.active) {
  background: var(--surface-container-highest);
}

/* --- Blog 2-Column Layout (Stitch 02) ---------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem var(--section-px) 4rem;
}
@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 8fr 4fr;
  }
}
.blog-main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* --- Sidebar Sections (Stitch 02) --------------------------- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sidebar-section {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(28,28,24,0.02);
}
.sidebar-section h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-section h4 .material-symbols-outlined {
  font-size: 1.125rem;
}

/* Sidebar filter pills (Stitch override) */
.sidebar-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sidebar-tag {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-tag.active {
  background: var(--primary);
  color: var(--on-primary);
}
.sidebar-tag:not(.active) {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}
.sidebar-tag:not(.active):hover {
  background: var(--primary-container);
  color: var(--on-primary);
}

/* --- Sidebar Stats Widget (dark, Stitch 02) ----------------- */
.sidebar-stats-widget {
  background: var(--primary);
  color: var(--on-primary);
  padding: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.sidebar-stats-widget::after {
  content: 'analytics';
  font-family: 'Material Symbols Outlined';
  font-size: 10rem;
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  opacity: 0.1;
  pointer-events: none;
}
.sidebar-stats-widget h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-fixed);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-stats-widget h4 .material-symbols-outlined {
  font-size: 1.125rem;
}
.sidebar-stats-widget-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.sidebar-stats-widget-item .stat-number {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  color: var(--on-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.sidebar-stats-widget-item .stat-label-sm {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
}

/* --- Sidebar AI Stewardship --------------------------------- */
.blog-sidebar-desc {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* --- Sidebar Telegram CTA (Stitch 02) ----------------------- */
.sidebar-telegram {
  display: block;
  background: linear-gradient(135deg, #0088cc, #0077b5);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s;
  text-decoration: none;
}
.sidebar-telegram:hover {
  transform: translateY(-4px);
  color: white;
}
.sidebar-telegram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sidebar-telegram-header .material-symbols-outlined:first-child {
  font-size: 2.5rem;
}
.sidebar-telegram-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.sidebar-telegram:hover .sidebar-telegram-arrow {
  transform: translateX(4px);
}
.sidebar-telegram-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}
.sidebar-telegram p {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
  color: white;
  margin: 0;
}

/* --- Sidebar Petition Widget (Stitch 02) -------------------- */
.sidebar-petition-widget {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 40px 60px rgba(0,81,88,0.06);
  border-top: 8px solid var(--amber);
}
.sidebar-petition-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.sidebar-petition-widget p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.sidebar-petition-progress {
  width: 100%;
  height: 0.5rem;
  background: var(--surface-container-high);
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.sidebar-petition-progress-bar {
  height: 100%;
  background: var(--amber);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--amber);
}
.sidebar-petition-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-petition-btn:hover {
  background: var(--primary-container);
  color: var(--on-primary);
}

/* --- Community Form Section (Stitch 02) --------------------- */
.community-form-section {
  background: var(--surface-container-low);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.community-form-section:empty {
  display: none;
}
.community-submit-section {
  position: relative;
}
.community-blur-circle {
  position: absolute;
  top: -8rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: rgba(29,106,114,0.1);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}
.community-form-inner {
  position: relative;
  z-index: 1;
}
.community-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.community-access-badge {
  background: rgba(232,168,56,0.2);
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.community-verified-icon {
  color: var(--amber);
  font-size: 1.25rem;
}
.community-submit-section h3 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}
.community-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.community-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .community-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.community-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.community-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
  padding-left: 0.25rem;
}
.community-input {
  width: 100%;
  background: rgba(255,255,255,0.5);
  border: none;
  border-bottom: 2px solid var(--outline-variant);
  padding: 1rem;
  font-size: 1rem;
  font-family: var(--font-head);
  border-radius: 2px;
  transition: border-color 0.2s;
}
.community-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}
.community-textarea {
  font-family: var(--font-body);
  resize: vertical;
}
.community-form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.community-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--on-primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.community-submit-btn:hover {
  box-shadow: var(--shadow-lg);
}
.community-submit-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

/* --- Timeline View (Stitch 02 design) ----------------------- */
.timeline-container {
  position: relative;
  padding-left: 3rem;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--surface-container-highest);
}

/* Individual timeline item */
.tl-item {
  position: relative;
  margin-bottom: 4rem;
}
.tl-dot {
  position: absolute;
  left: -3.25rem;
  top: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 0 0.5rem var(--surface);
  z-index: 2;
}
.tl-dot .material-symbols-outlined {
  font-size: 1.125rem;
}
.tl-time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.tl-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(28,28,24,0.04);
  border-left: 8px solid var(--primary);
  transition: box-shadow 0.3s;
}
.tl-card:hover {
  box-shadow: 0 20px 40px rgba(28,28,24,0.08);
}
.tl-card-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .tl-card-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}
.tl-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .tl-card-img {
    width: 33%;
  }
}
.tl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s;
}
.tl-card-img:hover img {
  filter: grayscale(0%);
}
.tl-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tl-tag {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}
.tl-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-surface);
  transition: color 0.2s;
}
.tl-card:hover .tl-title,
.tl-title a:hover {
  color: var(--primary);
}
.tl-title a {
  color: inherit;
  text-decoration: none;
}
.tl-excerpt {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin: 0;
}
.tl-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-container-highest);
  margin-top: auto;
}
.tl-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-container-high);
  flex-shrink: 0;
}
.tl-author span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--on-surface);
}

/* ====== STITCH BLOG POST DETAIL (17-03) ====== */

/* --- Post Page Layout ------------------------------------ */
.post-page {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

/* --- Post Header (1024px max) ------------------------------- */
.post-header-stitch {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.post-header-stitch .back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--primary-container);
  margin-bottom: 2rem;
  transition: color 0.2s;
  text-decoration: none;
}
.post-header-stitch .back-link:hover {
  color: var(--primary);
}
.post-header-stitch .back-link .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Post tag badge (solid dark) */
.post-tag-stitch {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

/* Post title */
.post-title-stitch {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 50rem;
  margin-bottom: 1rem;
}

/* Post meta with border-top divider */
.post-meta-stitch {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--outline-variant);
  padding-top: 1.5rem;
  margin-top: 1rem;
}
.post-meta-stitch .post-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.post-meta-stitch .post-meta-text {
  font-size: 0.875rem;
}
.post-meta-stitch .post-meta-text .post-author-name {
  display: block;
  font-weight: 700;
  color: var(--on-surface);
}
.post-meta-stitch .post-meta-text .post-publish-info {
  display: block;
  color: var(--on-surface-variant);
  font-style: italic;
}

/* --- Post Banner (wider breakout: 1280px) ------------------- */
.post-banner-wrap {
  max-width: 80rem;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}
.post-banner-stitch {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* --- Post Prose (680px) ------------------------------------ */
.post-prose-stitch {
  max-width: 42.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: var(--font-head);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--on-surface);
}

/* Serif dropcap */
.serif-dropcap::first-letter,
.post-prose-stitch .prose > p:first-of-type::first-letter {
  float: left;
  font-size: 5rem;
  line-height: 4rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  font-family: var(--font-head);
  color: var(--primary);
}

/* Blockquote pull-quote (negative margins) */
.post-prose-stitch .prose blockquote {
  margin: 4rem -3rem 4rem -6rem;
  border-left: 4px solid var(--primary-container);
  padding-left: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.post-prose-stitch .prose blockquote::before {
  display: none;
}
.post-prose-stitch .prose blockquote p {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-style: italic;
  color: var(--primary-container);
  line-height: 1.35;
}

/* --- Post CTA Box (teal gradient) -------------------------- */
.post-cta-box-stitch {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary-fixed) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 4rem auto;
  max-width: 42.5rem;
  color: var(--on-primary);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.post-cta-content {
  position: relative;
  z-index: 1;
}
.post-cta-blur {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  filter: blur(3rem);
}
.post-cta-box-stitch h3 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  color: var(--on-primary);
  margin-bottom: 1rem;
}
.post-cta-box-stitch p {
  color: rgba(255,255,255,0.9);
  max-width: 31rem;
  margin-bottom: 2rem;
}
.post-cta-btn-stitch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--on-primary);
  color: var(--primary-container);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.post-cta-btn-stitch:hover {
  background: var(--surface-container-low);
  color: var(--primary);
}
.post-cta-btn-stitch .material-symbols-outlined {
  font-size: 1.25rem;
}

/* --- Discussion Section (800px) ----------------------------- */
.comments-section-stitch {
  max-width: 50rem;
  margin: 8rem auto 0;
  padding: 0 1.5rem;
  border-top: none;
  padding-top: 0;
}
.comments-header-stitch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}
.comments-header-stitch h2 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  color: var(--primary);
  margin: 0;
}
.comments-header-stitch .comments-count {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
}

/* --- Donate Page (Stitch Design) ------------------------------- */

/* Donate hero */
.donate-hero {
  padding: var(--section-py) var(--section-px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.donate-hero .eyebrow {
  color: var(--primary-container);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.donate-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.donate-hero p {
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 42rem;
  border-left: 4px solid var(--primary-container);
  padding-left: 2rem;
}

/* Platform cards (2-column grid) */
.platform-cards {
  background: var(--surface-container-low);
  padding: 5rem var(--section-px);
}
.platform-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.platform-card {
  background: var(--surface);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}
.platform-card:hover { transform: translateY(-4px); }
.platform-card .featured-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0,108,81,0.1);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.platform-card h2 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  margin-bottom: 1rem;
}
.platform-card p {
  color: var(--on-surface-variant);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.platform-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-container);
  transition: gap 0.2s;
  text-decoration: none;
}
.platform-card-link:hover { gap: 1rem; }
.platform-card-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
  opacity: 0.2;
  font-size: 3.75rem;
}

/* Kickstarter tier cards (3-column grid) */
.tier-section {
  padding: var(--section-py) var(--section-px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.tier-section h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.tier-section .accent-bar {
  height: 4px;
  width: 5rem;
  background: var(--amber);
  margin-top: 1rem;
  margin-bottom: 4rem;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.tier-card {
  padding: 2.5rem;
  border-top: 2px solid var(--outline-variant);
}
.tier-card .tier-label {
  font-weight: 700;
  color: var(--primary-container);
  margin-bottom: 1rem;
}
.tier-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.tier-card p {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}
.tier-card button {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.tier-card button:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.tier-card--featured {
  background: var(--surface-container-highest);
  border-top: 4px solid var(--amber);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
  position: relative;
  z-index: 10;
}
.tier-card--featured .most-popular {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--primary);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.tier-card--featured button {
  background: var(--primary-container);
  color: var(--on-primary);
  border-color: var(--primary-container);
}
.tier-card--locked {
  opacity: 0.6;
  filter: grayscale(1);
}
.tier-card--locked .tier-label {
  color: var(--outline);
}
.tier-card--locked button {
  border-color: var(--outline);
  color: var(--outline);
  cursor: not-allowed;
}

/* Transparency section (5/7 grid) */
.transparency-section {
  padding: var(--section-py) var(--section-px);
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}
.transparency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .transparency-grid {
    grid-template-columns: 5fr 7fr;
  }
}

/* Pledge card */
.transparency-pledge {
  background: var(--surface);
  padding: 2rem;
  border-left: 8px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.transparency-pledge h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.transparency-pledge p {
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.transparency-pledge ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.transparency-pledge li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.transparency-pledge li .material-symbols-outlined {
  color: var(--primary-container);
  margin-top: 0.125rem;
}
.transparency-pledge li span:last-child {
  color: var(--on-surface-variant);
  font-weight: 500;
}

/* Fund tracker dashboard header */
.fund-dashboard-header {
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.fund-dashboard-header .last-updated {
  opacity: 0.7;
  font-style: italic;
  font-weight: 500;
}

/* Stitch metric cards (3-col grid) */
.fund-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.fund-metric-card {
  background: var(--surface);
  padding: 1.5rem;
}
.fund-metric-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
}
.fund-metric-card .value {
  font-family: var(--font-head);
  font-size: 1.875rem;
}
.fund-metric-card .value--raised { color: var(--amber); }
.fund-metric-card .value--spent { color: var(--error); }
.fund-metric-card .value--balance { color: var(--primary-container); }

/* Stitch allocation table */
.fund-allocation-stitch {
  background: var(--surface);
  padding: 2rem;
}
.fund-allocation-stitch h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.fund-progress-row {
  margin-bottom: 1.5rem;
}
.fund-progress-row .row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.fund-progress-bar {
  width: 100%;
  height: 0.375rem;
  background: var(--surface-container-highest);
}
.fund-progress-fill {
  height: 100%;
  background: var(--primary-container);
}
.fund-sources-stitch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline-variant);
}
.fund-source-badge {
  padding: 0.25rem 0.75rem;
  background: var(--surface-container-high);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}

/* SDE Token CTA banner */
.token-cta-banner {
  background: var(--primary-container);
  padding: 4rem var(--section-px);
}
.token-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.token-cta-inner h2 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  color: var(--on-primary);
  margin-bottom: 0.5rem;
}
.token-cta-inner p {
  color: rgba(255,255,255,0.8);
}
.token-cta-link {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--amber);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 0.2s;
  text-decoration: none;
}
.token-cta-link:hover { background: #d49830; }

/* Stitch donate responsive additions */
@media (max-width: 768px) {
  .fund-metrics { grid-template-columns: 1fr; }
  .token-cta-inner { flex-direction: column; text-align: center; }
}

/* --- Fund Transparency Dashboard (Stitch 06 dark bg) ------- */
.fund-dashboard-section {
  background: var(--primary-container);
  padding: var(--section-py) var(--section-px);
}
.fund-dashboard-top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.fund-dashboard-section h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--on-primary);
  margin-bottom: 1rem;
}
.fund-dashboard-section > p,
.fund-dashboard-top > div:first-child > p {
  color: rgba(137,171,173,1);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-bottom: 0;
}
.fund-summary-cards .fund-summary {
  display: flex;
  gap: 1rem;
}
.fund-summary-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 8.75rem;
}
.fund-summary-card .label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(137,171,173,1);
  margin-bottom: 0.25rem;
}
.fund-summary-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--on-primary);
}
.fund-summary-card--accent {
  background: rgba(0,108,81,0.2);
  border-color: rgba(0,108,81,0.3);
}
.fund-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.fund-dashboard-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.fund-dashboard-card h3 {
  color: var(--on-primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

/* --- Fund-gated Roadmap (Stitch 06) ------------------------ */
.roadmap-section {
  padding: var(--section-py) var(--section-px);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.roadmap-section h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}
.milestone-card {
  background: var(--surface-container-low);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-bottom: 4px solid var(--outline-variant);
  position: relative;
  transition: transform 0.2s;
}
.milestone-card--completed {
  opacity: 0.6;
  border-bottom-color: var(--primary-container);
}
.milestone-card--active {
  background: var(--surface);
  border-bottom-color: var(--amber);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
  z-index: 20;
}
.milestone-card--locked {
  opacity: 0.4;
}
.milestone-amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.milestone-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.milestone-card--completed .milestone-status { color: var(--primary-container); }
.milestone-card--active .milestone-status { color: var(--amber); }
.milestone-card--locked .milestone-status { color: var(--outline); }

/* --- Feature Voting (Stitch 06 frosted glass) -------------- */
.voting-section {
  padding: var(--section-py) var(--section-px);
  background: var(--surface-container-high);
  position: relative;
  overflow: hidden;
}
.voting-glass-card {
  max-width: var(--max-w);
  margin: 0 auto;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow);
}
.voting-glass-card .voting-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  margin-bottom: 2rem;
}
.voting-glass-card h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.voting-glass-card > p {
  color: var(--on-surface-variant);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* Token page (Stitch 06) responsive */
@media (max-width: 768px) {
  .token-hero-inner { grid-template-columns: 1fr; }
  .token-info-grid { grid-template-columns: 1fr; gap: 3rem; }
  .fund-dashboard-grid { grid-template-columns: 1fr; }
  .fund-dashboard-top { flex-direction: column; align-items: flex-start; }
  .fund-summary-cards .fund-summary { flex-direction: column; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .voting-glass-card { padding: 2rem; }
}

/* ====== RESPONSIVE OVERRIDES ====== */
/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner,
  .lucky-inner { grid-template-columns: 1fr; }

  /* Show images on mobile — stack above text, constrain height */
  .hero-image,
  .lucky-image {
    order: -1;
    max-height: 360px;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .hero-image img,
  .hero-image-placeholder,
  .lucky-image img,
  .lucky-image-placeholder {
    max-height: 300px;
    width: auto;
    margin: 2rem auto 0;
    object-fit: contain;
    transform: none;
    aspect-ratio: auto;
    height: auto;
  }
  .hero-image-badge { display: none; }
  .lucky-image::after { display: none; }

  .hero-sub { max-width: 100%; }

  .problem-grid,
  .help-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  .data-research-grid { grid-template-columns: 1fr; }
  .stat-callout-grid { flex-direction: row; flex-wrap: wrap; }
  .stat-callout-grid .stat-callout { flex: 1; min-width: 200px; }
  .data-charts-grid { grid-template-columns: 1fr; }

  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .donate-grid  { grid-template-columns: 1fr; }

  .token-info-grid { grid-template-columns: 1fr; gap: 32px; }
  .donate-tier-card { grid-template-columns: 1fr; text-align: center; }

  /* Stitch donate responsive */
  .platform-cards-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier-card--featured { transform: scale(1); }

  .blog-main-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-post-card { grid-template-columns: 1fr; }
  .blog-post-img  { min-height: 120px; }

  .blog-sidebar { position: static; }

  /* Stitch post detail responsive */
  .post-header-stitch { padding: 0 1rem 2rem; }
  .post-prose-stitch .prose blockquote { margin-left: 0; margin-right: 0; }
  .post-banner-wrap { margin-bottom: 3rem; }
  .post-title-stitch { font-size: clamp(2rem, 6vw, 2.75rem); }
  .post-cta-box-stitch { margin-left: 1rem; margin-right: 1rem; }
  .comments-section-stitch { margin-top: 4rem; }

  /* Old timeline responsive rules removed — see STITCH BLOG LISTING section */
}

@media (max-width: 768px) {
  .section  { padding: 64px 0; }

  /* Nav collapse — solid dropdown with slide animation */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 5rem; left: 0; right: 0;
    background: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
    z-index: 99;
    border-bottom: 2px solid var(--outline-variant);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .nav-links.open { display: flex; animation: nav-slide-down 0.2s ease-out; }
  .nav-toggle { display: flex; }
  .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
    color: var(--on-surface);
  }

  /* Grid stacking */
  .problem-grid,
  .help-grid,
  .blog-grid { grid-template-columns: 1fr; }

  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stat-item + .stat-item::before { display: none; }

  .stat-callout-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .data-research-grid { grid-template-columns: 1fr; }
  .data-charts-grid {
    grid-template-columns: 1fr;
  }
  .chart-wrapper {
    max-height: 320px;
  }
  .chart-wrapper canvas {
    max-height: 320px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid   { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }

  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .hero { padding: 3rem 1.5rem; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }

  /* Lucky section */
  .lucky-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* Blog layout responsive */
  .blog-layout { grid-template-columns: 1fr; }

  /* Timeline responsive */
  .timeline-container { padding-left: 2rem; }
  .tl-dot { left: -2.25rem; width: 2rem; height: 2rem; }
  .tl-dot .material-symbols-outlined { font-size: 0.875rem; }
  .tl-card { padding: 1.5rem; }
  .tl-card-inner { flex-direction: column; }
  .tl-card-img { width: 100%; }
  .tl-title { font-size: 1.35rem; }

  /* About page responsive */
  .about-hero h1 { font-size: 2.5rem; }
  .about-transparency { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Post prose responsive */
  .post-prose-stitch .prose blockquote { margin-left: 0; margin-right: 0; }

  /* Donate responsive */
  .platform-cards-grid,
  .tier-grid { grid-template-columns: 1fr; }
  .tier-card--featured { transform: none; }

  /* Token responsive */
  .token-hero-inner,
  .token-info-grid { grid-template-columns: 1fr; }
}


@media (max-width: 768px) {
  .grid-2col { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }

  /* Prose typography responsive */
  .prose {
    font-size: 1.025rem;
  }

  .prose h2 {
    font-size: 1.65rem;
    margin: 44px 0 20px 0;
  }

  .prose h3 {
    font-size: 1.3rem;
    margin: 36px 0 16px 0;
  }

  .prose h4 {
    font-size: 1.08rem;
    margin: 28px 0 14px 0;
  }

  .prose > p:first-of-type {
    font-size: 1.1rem;
  }

  .prose blockquote {
    padding: 20px 24px 20px 24px;
    margin: 2rem 0;
  }

  .prose pre {
    padding: 20px;
    margin: 1.5rem -16px;
    border-radius: 0;
  }

  .prose img {
    margin: 2rem -16px;
    border-radius: 0;
  }

  .prose table {
    font-size: 0.88rem;
  }

  .prose th,
  .prose td {
    padding: 10px 12px;
  }

  /* Fund Tracker responsive */
  .fund-summary,
  .fund-sources {
    grid-template-columns: 1fr;
  }

  .fund-expense {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fund-metric-value {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  /* Blog grid card — stack image above content */
  .blog-post-card { grid-template-columns: 1fr; }
  .blog-post-img { min-height: 160px; }

  /* Team grid — single column on small phones */
  .team-grid { grid-template-columns: 1fr; }

  /* Sidebar tag pills — increase touch target */
  .sidebar-tag { padding: 0.625rem 1.25rem; min-height: 44px; }

  /* Chat input bar responsive */
  .chat-input-bar .chat-input-fields {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-replies {
    margin-left: 28px;
    padding-left: 8px;
  }

  .chat-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  /* Roadmap milestone responsive */
  .roadmap-milestone { gap: 16px; }
  .roadmap-connector { width: 30px; }
  .roadmap-content { padding-bottom: 28px; }

  /* Moderation dashboard responsive */
  .mod-item { padding: 14px; }
  .mod-item-header { flex-direction: column; }

  /* Community form row responsive */
  .community-form-row { grid-template-columns: 1fr; }

  /* Community preview modal responsive */
  .mod-preview-content { padding: 24px; max-height: 90vh; }

  /* Feature voting responsive */
  .voting-card { flex-direction: row; }
  .voting-action { min-width: 40px; }
}
