@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #F6F5F0;
  --surface: #FFFFFF;
  --ink: #1E2A26;
  --accent: #4B6C4F;
  --accent-deep: #35502F;
  --muted: #6B6558;
  --line: #DDD7C8;
  --max-width: 660px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.3rem; margin-top: 3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-deep); }
a:hover { color: var(--ink); }

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--ink);
  color: #E9E5D8;
  padding: 2rem 1.25rem;
}

.sidebar .site-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #FFFFFF;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar nav a {
  color: #C9C4B4;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
}

.sidebar nav a:hover { color: #FFFFFF; }

.sidebar nav a.active {
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  font-weight: 500;
}

.content {
  flex: 1;
  padding: 3rem 2.5rem 5rem;
}

.content-inner {
  max-width: var(--max-width);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* Distinguished mission statement — quiet emphasis, not a headline */
.statement {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--accent-deep);
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  margin: 0 0 1.75rem;
}

.statement p { margin: 0 0 0.9rem; }
.statement p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--line);
  padding-left: 1.1rem;
  margin: 0 0 1.25rem;
}

.pull-quote p { margin: 0 0 0.5rem; }

.pull-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.pull-quote cite a {
  color: var(--muted);
  font-weight: 500;
}

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

/* Link list items — for evidence citations, resource links, etc. */
.link-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.link-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.link-list li:last-child { border-bottom: none; }

.link-list.compact li {
  padding: 0.3rem 0;
}

.link-list a {
  font-weight: 500;
  text-decoration: none;
}

.link-list a:hover { text-decoration: underline; }

.title-link {
  font-weight: 600;
}

.author {
  color: var(--muted);
  font-weight: 400;
}

/* Plain separated list — for brief items without links, e.g. pending policies */
.plain-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.plain-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.plain-list li:last-child { border-bottom: none; }

.muted-detail {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Cards used sparingly — actual clickable resource/org items only */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
}

.card h3 { font-size: 1rem; margin-top: 0; margin-bottom: 0.4rem; }
.card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

.card p.source-link {
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 0.4rem;
}

.card p.source-link a {
  color: var(--muted);
  font-weight: 500;
}

/* Tables — plain, ledger style */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}

.caption {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: 5px;
  border: none;
}

.btn:hover { background: var(--accent-deep); color: #FFFFFF; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.3rem;
  border-radius: 5px;
}

/* Get involved row on Home */
.involved-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  margin: 1.5rem 0 2.5rem;
}

.involved-row:hover { border-color: var(--accent); }
.involved-row span.arrow { color: var(--accent-deep); font-weight: 500; }

/* National movement tiles */
.org-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  max-width: 540px;
}

.org-tile {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.6rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
}

.org-tile img {
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}

.org-tile:hover { border-color: var(--accent); }

/* Grade-level / two-column info blocks */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Form */
.form-field {
  display: block;
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkbox-row input { margin-top: 0.2rem; }

.note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 0.8rem;
}

/* Mobile */
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; padding: 1.25rem; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 0.3rem; }
  .content { padding: 2rem 1.25rem 3rem; }
  .org-grid, .two-col { grid-template-columns: 1fr; }
}

/* --- Added 2026-10-15: Home page refresh --- */

/* Two-tier ask cards (reuses .two-col + .card) */
.two-col .card { margin-bottom: 0; }

/* Text tiles for partner organizations and resources */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

a.card.tile {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  text-decoration: none;
  color: var(--ink);
}

a.card.tile:hover { border-color: var(--accent); }
a.card.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tile .tile-tag {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent-deep);
  margin-top: 0.6rem;
}

.tile .tile-cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-deep);
}

.more-link {
  font-weight: 500;
  text-decoration: none;
}

.more-link:hover { text-decoration: underline; }

.tile-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

@media (max-width: 720px) {
  .tile-grid, .tile-grid.cols-2 { grid-template-columns: 1fr; }
}

/* --- Added 2026-10-15: Home page visual breaks --- */

/* Stat strip: three sourced figures */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; min-width: 0; }

.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 0.88rem; line-height: 1.45; color: var(--ink); }

.stat-src {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
}

/* Who benefits: Students / Teachers / Schools */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin: 0.25rem 0 1.5rem;
}

.trio-item {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--accent);
  padding-top: 0.6rem;
}

.trio-who {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.trio-what { font-size: 0.9rem; color: var(--muted); }

/* Step 1 / Step 2: numbered timeline */
.steps {
  counter-reset: step;
  margin: 0.5rem 0 1.5rem;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.3rem;
  bottom: 0.3rem;
  border-left: 2px solid var(--line);
}

.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }

.step:last-child::before {
  background: var(--paper);
  color: var(--accent-deep);
  border: 2px solid var(--accent);
}

.step h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.step p { margin: 0; }
.step p + p { margin-top: 0.85rem; }

.step-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.15rem;
  padding-top: 0.15rem;
}

@media (max-width: 720px) {
  .stat-strip, .trio { grid-template-columns: 1fr; }
}

/* --- Added 2026-10-15: Evidence page findings grid --- */
.findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem 1.75rem;
  margin: 0.75rem 0 1.5rem;
}

.finding {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.finding-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}

.finding-tag::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.finding h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  text-wrap: balance;
}

.finding p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; }

.finding-src {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.finding-src:hover { text-decoration: underline; }

/* Book list in two columns */
.link-list.books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 1.75rem;
}

@media (max-width: 720px) {
  .findings, .link-list.books { grid-template-columns: 1fr; }
}

/* Wide tables scroll inside their own box on small screens */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.table-wrap table { margin-bottom: 0; min-width: 560px; }
.table-wrap td:first-child { font-weight: 600; white-space: nowrap; }

/* Home page closing quote */
.pull-quote.home-quote {
  margin: 3rem 0 0;
  font-size: 1.35rem;
  border-left-color: var(--accent);
}

/* Small group labels within a section (Take Action) */
h3.group-label {
  font-size: 0.75rem;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 1.75rem 0 0.5rem;
}

/* Full-width link block (Take Action: WhatsApp) */
a.card.join-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}
a.card.join-block:hover { border-color: var(--accent); }
.join-block .join-title {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
}
.join-block .join-sub { display: block; font-size: 0.88rem; color: var(--muted); }
.join-block .arrow { color: var(--accent-deep); font-weight: 500; white-space: nowrap; }

/* --- Added 2026-10-21: Statement of Support (Take Action) --- */
.statement-card { padding: 1.5rem; border-left: 3px solid var(--accent); }
.statement-card h3 { font-size: 1.15rem; margin: 0.2rem 0 0.7rem; }
.statement-card p { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.7rem; }
.sign-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.statement-card .sign-note { font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; }
.statement-card .sign-thanks { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-weight: 500; color: var(--accent-deep); }
.select-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.2rem 0 0.9rem; }
.select-wrap { display: flex; align-items: center; gap: 0.45rem; }
.select-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-deep); }
.select-sm {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  max-width: 14rem;
}
.select-sm:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* MCSD page: policy cards read as primary content */
.policy-cards .finding p { color: var(--ink); font-size: 0.97rem; line-height: 1.6; }

/* 2026-10-21: light callout box for a single cited stat */
.callout {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0 1.4rem;
}
.callout p { margin: 0; }
.callout p.caption { margin-top: 0.5rem; }
