/* =========================================================
   Levi & Jackie Davis: site stylesheet
   Colors and fonts are set once here. Rules: BRAND.md.
   ========================================================= */

/* ---------- Fonts (self-hosted, no Google calls) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/libre-baskerville-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --maroon: #5D0404;
  --maroon-dark: #2C0202;
  --rose: #8D4F4F;
  --blush: #DECCCC;
  --blush-light: #f4ecec;  /* tint of blush for large backgrounds */
  --teal: #045D5D;
  --green: #045D04;
  --navy: #04045D;
  --white: #ffffff;
  --gray-bg: #f5f5f5;      /* dev site card background */
  --ink: var(--maroon-dark);
  --muted: #4a3a3a;        /* 10.9:1 on white */

  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;

  --radius: 12px;
  --container: 1200px;
  --gutter: 16px;
  --focus: 3px solid var(--teal);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--maroon); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: .15em; }
a:hover { color: var(--maroon); }
ul, ol { padding-left: 1.25em; }
b, strong { font-weight: 700; }

:focus-visible { outline: var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.nl-status:focus { outline: none; }
main:focus { outline: none; }

.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;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--maroon); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px;
  background: var(--maroon); color: var(--white);
  border: 2px solid var(--maroon); border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--maroon); }
.btn-outline:hover { background: var(--blush-light); color: var(--maroon); border-color: var(--maroon); }
.btn-teal { background: var(--teal); border-color: var(--white); color: var(--white); }
.btn-teal:hover { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid #e8dede; position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon); padding: 8px 0; }
.brand-logo { width: auto; height: 52px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.2; color: var(--maroon); }
.brand-tagline { font-size: .78rem; color: var(--muted); line-height: 1.3; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: var(--white); color: var(--maroon);
  border: 2px solid var(--maroon); border-radius: 999px;
  font: 600 .95rem var(--font-sans); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav { display: none; width: 100%; padding-bottom: 12px; }
.nav-toggle[aria-expanded="true"] + .site-nav { display: block; }
.nav-list, .sub-list { list-style: none; margin: 0; padding: 0; }
.nav-item { display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid #eee3e3; }
.nav-item > a {
  flex: 1; display: block; padding: 12px 4px;
  color: var(--maroon); text-decoration: none; font-weight: 500;
}
.nav-item > a[aria-current="page"], .nav-item.is-active > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.sub-toggle {
  min-width: 44px; min-height: 44px;
  background: none; border: 0; color: var(--maroon); cursor: pointer;
}
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-list { display: none; width: 100%; padding-left: 16px; }
.sub-toggle[aria-expanded="true"] + .sub-list { display: block; }
.sub-list a { display: block; padding: 10px 4px; color: var(--maroon); text-decoration: none; }
.sub-list a[aria-current="page"] { text-decoration: underline; }

@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .nav-list { display: flex; gap: 4px; }
  .nav-item { border: 0; position: relative; flex-wrap: nowrap; }
  .nav-item > a { padding: 10px 10px; font-size: .95rem; }
  .nav-item.has-sub > a { padding-right: 2px; }
  .sub-toggle { min-width: 28px; }
  .sub-list {
    position: absolute; top: 100%; left: 0; min-width: 180px; padding: 8px 0;
    background: var(--white); border: 1px solid #e8dede; border-radius: 8px;
    box-shadow: 0 8px 20px rgba(44, 2, 2, .12);
  }
  .sub-list a { padding: 10px 16px; }
  .sub-list a:hover { background: var(--blush-light); }
}

/* ---------- Hero (photo with curved edge + maroon panel) ---------- */
.hero { background: var(--maroon); color: var(--white); }
.hero-inner { display: grid; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.hero-panel { padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero p { max-width: 560px; }
.hero .eyebrow { color: var(--blush); }
.hero a:not(.btn) { color: var(--white); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; min-height: 420px; }
  .hero-media img { aspect-ratio: auto; }
  .hero-panel { padding: 48px 48px 48px 32px; }
}

.eyebrow {
  margin: 0 0 6px; font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--rose);
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-gray { background: var(--gray-bg); }
.section-blush { background: var(--blush-light); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-head .lede { margin-left: auto; margin-right: auto; }

/* Split block: image + text card, like the dev site's "How We Serve" rows */
.split { display: grid; gap: 0; background: var(--gray-bg); border-radius: var(--radius); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.contain { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--white); }
.split-media.contain img { object-fit: contain; max-height: 260px; width: auto; }
.split-body { padding: 28px 24px; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-body { padding: 40px; align-self: center; }
}

/* ---------- Give page: ways to give ---------- */
.ways-grid {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px;
}
.ways-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px; border-radius: var(--radius);
  color: var(--maroon); text-decoration: none; font-weight: 600; text-align: center;
}
.ways-grid a:hover { background: var(--blush-light); }
.ways-grid img { width: 96px; height: 96px; }

.accordion { display: grid; gap: 12px; }
.accordion details {
  border: 2px solid var(--maroon); border-radius: 8px; background: var(--white);
  box-shadow: 0 2px 6px rgba(44, 2, 2, .08);
}
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 16px;
  font-weight: 600; font-size: 1.05rem; color: var(--maroon); cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 7px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transition: transform .15s;
}
.accordion details[open] summary::after { transform: rotate(90deg); }
.accordion .panel { padding: 4px 20px 16px; }
.accordion .panel > :last-child { margin-bottom: 0; }

.address { font-style: normal; background: var(--gray-bg); border-left: 4px solid var(--maroon); padding: 12px 16px; margin: 0 0 1em; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 4px rgba(44, 2, 2, .1); }
.card h3 { margin-bottom: .4em; }
.card > :last-child { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--teal); background: var(--white);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.note > :last-child { margin-bottom: 0; }

/* Call-to-action band */
.cta-band { background: var(--maroon); color: var(--white); padding: 48px 0; }
.cta-band h2 { color: var(--white); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band p { margin: 0; max-width: 640px; }

/* ---------- Donation board ---------- */
.board { padding: 56px 0 40px; background: var(--blush-light); }
.board h2 { margin-bottom: 12px; }
.board .lede { margin-bottom: 28px; }
.progress-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 28px;
}
.totals { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; margin-bottom: 14px; }
.totals strong { font-size: 1.9rem; color: var(--maroon); }
.totals span { color: var(--muted); }
.bar-wrap { position: relative; padding-bottom: 30px; }
.bar { height: 18px; border-radius: 999px; background: #eadede; overflow: hidden; border: 1px solid var(--rose); }
.bar-fill { height: 100%; width: 0; background: var(--maroon); border-radius: 999px; transition: width .9s ease; }
.milestone { position: absolute; top: -4px; height: 26px; width: 4px; margin-left: -2px; background: var(--teal); border-radius: 2px; }
.milestone-label {
  position: absolute; top: 28px; transform: translateX(-50%);
  white-space: nowrap; font-size: .82rem; font-weight: 600; color: var(--teal);
}
.updated { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
/* On phones the marker sits near the right end; keep its label inside the card. */
@media (max-width: 640px) {
  .milestone-label { left: auto !important; right: 0; transform: none; white-space: normal; text-align: right; max-width: 70%; }
  .bar-wrap { padding-bottom: 40px; }
}

.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.swatch.filled { background: var(--maroon); }
.swatch.pledged { background: repeating-linear-gradient(45deg, var(--blush-light) 0 4px, var(--blush) 4px 8px); border: 2px solid var(--rose); }
.swatch.open { background: var(--white); border: 2px dashed var(--maroon); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-flow: dense;
  gap: 10px; list-style: none; margin: 0 0 24px; padding: 0;
}
.grid > li { display: flex; }
.grid > li.wide { grid-column: span 2; }
.tile {
  flex: 1; min-height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius); padding: 10px 6px; font: inherit; text-align: center;
}
.tile svg { width: 28px; height: 28px; }
.tile .amt { font-weight: 700; font-size: 1.15rem; line-height: 1; }
.tile .per { font-size: .78rem; }
.tile.filled { background: var(--maroon); color: var(--white); }
.tile.filled svg { color: var(--blush); }
.tile.filled .per { color: var(--blush); }
.tile.new { position: relative; }
.tile.new::after {
  content: "New"; position: absolute; top: 6px; right: 6px;
  background: var(--teal); color: var(--white);
  font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 999px;
}
.tile.pledged {
  background: repeating-linear-gradient(45deg, var(--blush-light) 0 8px, #ead9d9 8px 16px);
  border: 2px solid var(--rose); color: var(--maroon);
}
button.tile.open {
  background: var(--white); color: var(--maroon); border: 2px dashed var(--maroon);
  cursor: pointer; transition: background .15s, transform .15s;
}
button.tile.open:hover { background: var(--blush-light); border-style: solid; transform: translateY(-2px); }

.any-amount {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); border: 2px solid var(--maroon); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px;
}
.any-amount > div { flex: 1 1 320px; max-width: 640px; }
.any-amount p { margin: 0; }
.any-amount strong { color: var(--maroon); }
.gift-types { margin: 10px 0 0; padding-left: 1.2em; }
.gift-types li { margin-bottom: 6px; }
.gift-types li:last-child { margin-bottom: 0; }

/* "Still needed" stands out: teal box, white text (white on #045D5D is 7.9:1). */
.totals .still-needed {
  background: var(--teal); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius);
  display: inline-flex; align-items: baseline; gap: 8px;
}
.totals .still-needed strong,
.totals .still-needed span { color: var(--white); }
.totals .still-needed span { font-weight: 600; }

/* Cards with a photo on top (Give page: where your support goes) */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card-photo img.pos-top { object-position: center 12%; }
.card-photo .card-body { padding: 20px 24px 24px; }
.card-photo .card-body > :last-child { margin-bottom: 0; }
.fine { font-size: .9rem; color: var(--muted); max-width: 760px; }
.fine.center { margin-left: auto; margin-right: auto; }

.give-dialog {
  border: 0; border-radius: var(--radius); padding: 28px;
  max-width: 460px; width: calc(100% - 32px); color: var(--ink);
}
.give-dialog::backdrop { background: rgba(44, 2, 2, .6); }
.give-dialog h3 { font-family: var(--font-serif); font-size: 1.4rem; margin: 0 32px 12px 0; }
.give-dialog ol { padding-left: 1.2em; margin: 0 0 20px; }
.give-dialog li { margin-bottom: 6px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-close {
  position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px;
  background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 4px solid var(--maroon); padding-top: 48px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo img { width: 64px; height: auto; }
.footer-tagline { margin: 12px 0; color: var(--maroon); font-weight: 600; }
.footer-heading { font-size: 1rem; margin-bottom: 12px; color: var(--maroon); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; color: var(--maroon); }
.footer-bottom { background: var(--gray-bg); padding: 20px 0; font-size: .875rem; color: var(--muted); }
.footer-bottom p { margin: 0 0 6px; }

/* ---------- Page building blocks ---------- */
.hero-plain .hero-inner { grid-template-columns: 1fr; min-height: 0; }
.hero-plain .hero-panel { max-width: var(--container); margin: 0 auto; width: 100%; padding: 48px var(--gutter); }
@media (min-width: 900px) { .hero-plain .hero-panel { padding: 64px var(--gutter); } }
.hero-quote { margin: 0 0 20px; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.6; }
.hero-quote footer { font-family: var(--font-sans); font-weight: 600; margin-top: 8px; color: var(--blush); }

.scripture { margin: 0 auto 24px; max-width: 680px; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.7; color: var(--maroon); }
.scripture p { margin-bottom: .5em; }
.scripture footer { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--rose); }

.stack { display: grid; gap: 24px; }
@media (min-width: 800px) { .split-flip .split-body { order: 2; } }

.two-col { display: grid; gap: 20px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-icon { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card-icon img { margin-bottom: 8px; }
.card-icon .btn { margin-top: auto; }
.spaced { margin-top: 40px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 0 0 12px 28px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 10px;
  background: var(--maroon); border-radius: 50%;
}
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin-bottom: 4px; }

.text-version { margin-top: 20px; font-size: .95rem; }
.text-version summary { cursor: pointer; color: var(--teal); text-decoration: underline; min-height: 44px; display: flex; align-items: center; }

/* Timeline (text version of the old graphic) */
.timeline { list-style: none; margin: 0 auto 16px; padding: 0; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 3px; background: var(--maroon); }
.timeline li { position: relative; padding: 0 0 24px 80px; }
.timeline-year {
  position: absolute; left: 0; top: 0; width: 64px; padding: 4px 0;
  background: var(--maroon); color: var(--white); border-radius: 999px;
  text-align: center; font-weight: 700; font-size: .9rem;
}
.timeline h3 { margin: 0 0 4px; font-size: 1.1rem; }
.timeline p { margin: 0; }
@media (min-width: 900px) {
  .timeline { max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
  .timeline::before { display: none; }
  .timeline li { padding: 44px 0 0; border-top: 3px solid var(--maroon); }
  .timeline-year { top: -16px; }
}

/* Photo gallery */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.gallery-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-title { margin: 32px 0 16px; font-size: 1.4rem; }
.gallery-title:first-of-type { margin-top: 8px; }

/* Hero photo without a built-in curved edge: add the curve with CSS */
@media (min-width: 900px) {
  .hero-curve .hero-media { position: relative; overflow: hidden; min-height: 420px; }
  .hero-curve .hero-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    clip-path: ellipse(100% 120% at 0% 50%);
  }
}
.gallery-more { margin-top: 20px; }
.gallery-more > summary {
  display: table; margin: 0 auto; cursor: pointer; list-style: none;
  padding: 10px 22px; border: 2px solid var(--maroon); border-radius: 999px;
  background: var(--white); color: var(--maroon); font-weight: 600;
}
.gallery-more > summary::-webkit-details-marker { display: none; }
.gallery-more > summary::after { content: " +"; }
.gallery-more[open] > summary::after { content: " \2212"; }
.gallery-more > summary:hover { background: var(--blush-light); }
.gallery-more[open] > summary { margin-bottom: 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: .95rem; font-style: italic; color: var(--muted); text-align: center; }

/* Bios */
.bios { display: grid; gap: 24px; }
.bio { display: grid; gap: 20px; align-items: start; }
.bio-photo { width: 160px; height: auto; border-radius: var(--radius); }
@media (min-width: 700px) { .bio { grid-template-columns: 180px 1fr; } .bio-photo { width: 180px; } }

/* Long-form text (policies) */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }

/* Posts */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 4px rgba(44, 2, 2, .12); overflow: hidden; display: flex; flex-direction: column; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 20px 24px 24px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.post-card h3 a { color: var(--maroon); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.post-body img { border-radius: 8px; margin: 8px auto 16px; }
.post-body figure { margin: 0 0 1.2em; }
.post-body figcaption { font-size: .95rem; font-style: italic; color: var(--muted); }
.post-body blockquote { margin: 0 0 1.2em; padding-left: 16px; border-left: 4px solid var(--blush); font-family: var(--font-serif); }
.post-body h2 { font-size: 1.6rem; }

.h3-size { font-size: 1.25rem; }

/* Impact stories */
.story { display: grid; gap: 24px; align-items: center; }
.story + .story { margin-top: 40px; }
.story-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 800px) {
  .story.has-media { grid-template-columns: 1fr 1.3fr; }
  .story.has-media.flip .story-media { order: 2; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--maroon-dark); }
.req { font-weight: 400; color: var(--muted); font-size: .9em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--rose); border-radius: 8px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #a30000; }
.field-error { margin: 0; color: #a30000; font-weight: 600; font-size: .95rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.alert { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; border: 2px solid; }
.alert > :last-child { margin-bottom: 0; }
.alert ul { margin: 0; }
.alert-success { border-color: var(--green); background: #eef6ee; color: var(--maroon-dark); }
.alert-error { border-color: #a30000; background: #fbeeee; color: var(--maroon-dark); }
#form-status:focus { outline: none; }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; } }
.contact-aside { background: var(--gray-bg); border-radius: var(--radius); padding: 24px; align-self: start; }
.contact-aside h2 { font-size: 1.4rem; }
.contact-aside h3 { font-size: 1rem; margin: 1.2em 0 .3em; }
.contact-aside p { margin-bottom: 0; }

.newsletter-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .newsletter-inner.has-image { grid-template-columns: 1.4fr 1fr; } }
.newsletter-media img { border-radius: var(--radius); max-height: 460px; width: 100%; object-fit: cover; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  button.tile.open:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header nav, .nav-toggle, .skip-link, .site-footer nav, .board .grid { display: none; }
  a { color: #000; }
}

/* Three-across gallery (About: Along the way) */
.gallery-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 800px) { .gallery-3 { grid-template-columns: repeat(3, 1fr); } }

/* Social links with icons (Contact page and footer) */
.social-links { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 16px; border: 2px solid var(--maroon); border-radius: 999px;
  background: var(--white); color: var(--maroon); font-weight: 600; text-decoration: none;
}
.social-links a:hover { background: var(--maroon); color: var(--white); }
.social-links svg { flex: none; }
.social-links-footer { flex-direction: column; align-items: flex-start; }
.site-footer .social-links a { display: inline-flex; padding: 8px 16px; }
