/* =========================================================================
   Mathias Habib Foundation — home page stylesheet (revamp)
   One stylesheet, no build step. IBM Plex Sans self-hosted.
   Colours are tentative / tokenised: a brand swap is one file.
   ========================================================================= */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plex-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-sans-600.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --congress-blue: #02478E;
  --leaf-green: #244F1A;
  --black-rose: #6E022E;
  --deep-purple: #2B0047;
  --cornflour: #9BCBE8;
  --asparagus: #87A96B;
  --palermo: #EEC0C8;          /* light rose (brand) */
  --flourish-green: #E3EBDD;
  --bg: #F1F1F1;
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --rule: #d9d9d9;

  --maxw: 1180px;

  /* section content is pinned to the header wordmark's left edge (founder
     2026-06-10): 28px header padding + 46px logo mark + 14px brand gap.
     Mirrored on the right for the mission + pillars sections. */
  --content-pad: calc(28px + 46px + 14px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans', Calibri, system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--congress-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--congress-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Progressive reveal (JS gate) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);            /* #2: black wordmark */
  line-height: 1.05;
  letter-spacing: -0.005em;
  display: inline-block;
}
.wordmark .name { font-weight: 700; display: block; }
.wordmark .org  { font-weight: 400; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}
.site-header .nav {
  /* full-bleed: logo and nav snap to the viewport edges at every width,
     with a snug 28px breathing space (founder feedback 2026-06-10) */
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark { height: 46px; width: auto; display: block; }
.brand .wordmark { font-size: 18px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--congress-blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle .icon { width: 28px; height: 28px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--congress-blue); color: #fff; border-color: var(--congress-blue); }
.btn-primary:hover { background: #013a76; }
.btn-ghost { background: transparent; color: var(--congress-blue); border-color: var(--congress-blue); }
.btn-ghost:hover { background: var(--congress-blue); color: #fff; }

/* ---------- Hero — contained-bleed photo right (#1, #7, #10) ---------- */
.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  /* photo column width, shared by the photo and the copy's right padding:
     half the viewport on wide screens, never squeezing the copy below 620px
     (88px content pad + 620px copy + 48px gap = 756px) */
  --hero-photo-w: min(calc(50vw - 78px), calc(100vw - 756px));
}
.hero::after {                  /* #10: faint bg paint stroke */
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 640px;
  height: 640px;
  background: url('../img/strokes/bg-1.svg') center/contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  /* Fluid copy column (founder feedback 2026-06-10, safeai.org.uk reference):
     pinned to the header wordmark's left edge; the right padding reserves
     the photo column + gap, so the text rewraps as the screen widens or
     narrows, exactly like the photo moves. */
  padding: 110px calc(var(--hero-photo-w) + 48px) 110px var(--content-pad);
  position: relative;
  z-index: 3;
}
.hero-copy { max-width: none; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--leaf-green);
  font-weight: 600;
  display: block;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.02;
  margin: 0 0 26px;
  color: var(--ink);            /* #1: all black */
  letter-spacing: -0.015em;
  text-wrap: balance;           /* even line lengths at any width, no orphan word */
}
.hero .lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Photo 1 on the right — hard straight edge, no fade. Width is the shared
   --hero-photo-w, and the copy pads itself past it, so the text can never
   overlap the photo at any width. */
.hero-photo {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: var(--hero-photo-w);
  z-index: 1;
}
.hero-photo-img {
  position: absolute;
  inset: 0;
  background-image: url('../img/photography/photo-1.jpg');
  background-size: cover;
  background-position: center;
}
.photo-caption {
  position: absolute;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  /* subtle bubble behind the caption for contrast over photography */
  background: rgba(17, 17, 17, 0.38);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 4;
}
.photo-caption--br { right: 14px; bottom: 14px; }

/* ---------- Problem / Mission / Vision (#8) ---------- */
.problem-mission {
  /* pinned to the header wordmark on the left, same distance on the right */
  background: var(--bg);
  padding: 100px var(--content-pad);
}
.pm-head { margin-bottom: 40px; }
.pm-head .eyebrow {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--leaf-green);
  font-weight: 600;
  margin-bottom: 10px;
}
.pm-head h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;   /* default stretch keeps the three boxes equal height */
}
/* filled colour boxes, white text (founder mockup 2026-06-10) */
.pm-block {
  border-radius: 10px;
  padding: 40px 38px;
}
.pm-block--challenge { background: var(--congress-blue); }
.pm-block--mission   { background: var(--leaf-green); }
.pm-block--vision    { background: var(--black-rose); }
.pm-block h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
  color: #fff;
}
.pm-block p {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  margin: 0 0 16px;
}
.pm-block p:last-child { margin-bottom: 0; }
.pm-block p strong { color: #fff; }

/* ---------- Photo strip (#9) — edge-to-edge thirds, flush to quote ---------- */
.photo-strip {
  margin-bottom: 0;
  overflow: hidden;
  position: relative;   /* anchors the locked credit caption */
}
/* credit lives on the strip, not a slide: on mobile it stays visible
   while the carousel scrolls (founder 2026-06-10) */
.photo-caption--strip { right: 14px; bottom: 14px; }
.photo-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.ph--2 { background-image: url('../img/photography/photo-2.jpg'); }
.ph--3 { background-image: url('../img/photography/photo-3.jpg'); }
.ph--4 { background-image: url('../img/photography/photo-4.jpg'); }
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 18px;   /* bottom padding keeps the dots off the quote card */
}

/* ---------- Quote card — compact, no brushstroke (founder 2026-06-10) ---------- */
.quote-card {
  background: var(--cornflour);
  padding: 48px 28px;
}
.qc-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.qc-inner blockquote {
  margin: 0 auto;
  padding: 0;
  color: var(--congress-blue);    /* same blue as the attribution line */
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 820px;
}
.qc-inner .attr {
  margin-top: 16px;
  color: var(--congress-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

/* ---------- Three pillars (#6 no logo marks, #10) ---------- */
.frame {
  /* pinned to the header wordmark on the left, same distance on the right */
  padding: 100px var(--content-pad);
  position: relative;
}
.h2-wrap { margin-bottom: 22px; }
.h2-wrap .eyebrow {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--leaf-green);
  font-weight: 600;
  margin-bottom: 10px;
}
.h2-wrap h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-lead {
  /* full grid width: the intro rewraps with the viewport and sits flush
     above pillar III, same measure as the three boxes (founder 2026-06-10) */
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 48px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 38px 34px;
  position: relative;
}
.pill-content { position: relative; z-index: 2; }
.pill-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pillar h3 { font-size: 26px; margin: 0 0 14px; font-weight: 600; }
/* one text size inside a pillar card: intro, components, and list all 15px */
.pillar p { color: var(--ink-soft); margin: 0 0 14px; font-size: 15px; }
.pillar p.comp { font-size: 15px; margin: 8px 0; line-height: 1.5; color: var(--ink); }
.pillar.awareness { border-top: 4px solid var(--congress-blue); }
.pillar.awareness .pill-tag { background: var(--cornflour); color: var(--congress-blue); }
.pillar.awareness h3 { color: var(--congress-blue); }
.pillar.awareness p.comp strong { color: var(--congress-blue); }
.pillar.activities { border-top: 4px solid var(--leaf-green); }
.pillar.activities .pill-tag { background: var(--asparagus); color: var(--leaf-green); }
.pillar.activities h3 { color: var(--leaf-green); }
.pillar.research { border-top: 4px solid var(--black-rose); }
.pillar.research .pill-tag { background: var(--palermo); color: var(--black-rose); }
.pillar.research h3 { color: var(--black-rose); }
.pillar-list { margin: 0; padding: 0; list-style: none; }
.pillar-list li {
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  position: relative;
}
.pillar-list li:last-child { border-bottom: none; }
.pillar-list li::before {
  /* dot marker, centered on the first text line (founder 2026-06-10) */
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--congress-blue);
}
.pillar.activities .pillar-list li::before { background: var(--leaf-green); }
.pillar.research .pillar-list li::before { background: var(--black-rose); }

/* ---------- Memorial strip — Elements text + logo artwork + In Memoriam ---------- */
.memorial-strip {
  background: var(--flourish-green);   /* light green band */
  padding: 72px 28px;
  text-align: center;
}
.pattern-strip p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;
  color: var(--leaf-green);
  font-style: italic;
  line-height: 1.5;
}
.memorial-art {
  display: block;
  width: min(255px, 54vw);   /* 85% of the original 300px / 64vw */
  height: auto;
  margin: 44px auto;
}
.memoriam-inner { max-width: 720px; margin: 0 auto; }
.memoriam .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--leaf-green);
}
.memoriam .dates {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 22px 0 0;
  letter-spacing: 0.04em;
}

/* ---------- Contact (#contact) ---------- */
.contact {
  background: var(--bg);
  padding: 100px 28px;
  position: relative;
  overflow: hidden;
}
/* (faint bg-2.svg stroke backdrop removed — never in the founder design;
   bg-2 is a stacked multi-stroke graphic, it read as three stray swooshes) */
.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.contact-head { text-align: center; margin-bottom: 36px; }
.contact-head .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--leaf-green);
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-head h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 36px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Forms ---------- */
.form .field { margin-bottom: 18px; }
.form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--congress-blue);
  outline-offset: 1px;
  border-color: var(--congress-blue);
}
.form .field[data-invalid="true"] input,
.form .field[data-invalid="true"] select,
.form .field[data-invalid="true"] textarea {
  border-color: var(--black-rose);
}
.form .error {
  display: block;
  color: var(--black-rose);
  font-size: 13px;
  margin-top: 6px;
}
.form .h-captcha { margin: 4px 0 18px; }
.btn-submit { width: 100%; }
.btn-submit[data-loading="true"] { opacity: 0.7; cursor: progress; }
.form-status {
  margin: 16px 0 0;
  font-size: 14px;
}
.form-status[data-state="success"] { color: var(--leaf-green); }
.form-status[data-state="error"] { color: var(--black-rose); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0a0a;
  color: #cccccc;
  padding: 64px 28px 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-brand .wordmark { color: #fff; font-size: 22px; }
.footer-brand .wordmark .name { color: #fff; }
.footer-brand .wordmark .org { color: #cccccc; }
.footer-brand p {
  font-size: 13px;
  color: #a8a8a8;
  margin: 10px 0 0;
  max-width: 360px;
  line-height: 1.65;
}
.footer-col h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.site-footer a { color: #cfd8de; }
.site-footer a:hover { color: #fff; }
.footer-inner .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 24px;
  padding-top: 24px;
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}
.footer-inner .legal strong { color: #fff; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 8px;
  padding-top: 20px;
  font-size: 12px;
  color: #888;
}
.footer-bottom nav a { margin-left: 18px; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  padding: 16px 20px;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  transform: translateY(160%);
  transition: transform 0.4s ease;
}
.consent[data-visible="true"] { transform: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.consent p { margin: 0; font-size: 13px; flex: 1 1 240px; }
.consent-actions { display: flex; gap: 10px; }
.consent button {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1.5px solid var(--congress-blue);
}
.consent-accept { background: var(--congress-blue); color: #fff; }
.consent-decline { background: transparent; color: var(--congress-blue); }

/* =========================================================================
   Responsive (#11) — breakpoints 1440 / 1024 / 768 / 320
   ========================================================================= */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 52px; }
}

/* Hero → stack (photo below copy) once the side-by-side photo column gets
   too thin. Straight edges here too — no fade. */
@media (max-width: 980px) {
  .hero-inner { padding: 64px var(--content-pad) 0; }
  .hero-copy { max-width: none; }
  .hero-photo {
    position: relative;
    width: 100%;
    height: 320px;
    margin-top: 36px;
  }
  .hero::after { display: none; }
}

@media (max-width: 768px) {
  /* Header → hamburger */
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 28px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
  }
  .nav-menu[data-open="true"] { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-header .nav { position: relative; }

  .hero-title { font-size: 40px; }

  /* Problem-mission → single column */
  .pm-grid { grid-template-columns: 1fr; gap: 40px; }
  .pm-head h2 { font-size: 32px; }

  /* Pillars → single column */
  .pillars-grid { grid-template-columns: 1fr; }

  /* Footer → single column */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .frame, .problem-mission, .memorial-strip, .contact { padding: 64px 22px; }
  .hero-inner { padding: 64px 22px 0; }
  .quote-card { padding: 40px 22px; }
  .qc-inner blockquote { font-size: 22px; }
}

/* Photo strip → horizontal scroll-snap carousel (#9) */
@media (max-width: 720px) {
  .photo-track {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .photo-track::-webkit-scrollbar { display: none; }
  .ph {
    flex: 0 0 82%;
    min-width: 82%;
    scroll-snap-align: center;
  }
  .carousel-dots { display: flex; }
  /* dots row is 40px tall (14 + 8 + 18): keep the locked credit 12px
     above the photo's bottom edge */
  .photo-caption--strip { right: 12px; bottom: 52px; }
  .carousel-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rule);
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .carousel-dots .dot[aria-current="true"] { background: var(--congress-blue); }
}

@media (max-width: 320px) {
  .hero-title { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

/* =========================================================================
   Long-form legal / prose pages (privacy, legal notice)
   Readable measure, comfortable rhythm — uses existing tokens only.
   ========================================================================= */
.prose-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 28px 96px;
}
.prose-head { margin-bottom: 40px; }
.prose-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--congress-blue);
  margin-bottom: 14px;
}
.prose-head h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.prose-head .prose-meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.prose h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 40px 0 12px;
}
.prose p { margin: 0 0 18px; }
.prose a { color: var(--congress-blue); text-decoration: underline; }
.prose a:hover { color: var(--leaf-green); }
.prose .inset {
  background: var(--flourish-green);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 0 0 36px;
}
.prose .inset-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-green);
  margin-bottom: 6px;
}
.prose .inset p { margin: 0; font-size: 15px; }
.prose-back {
  margin-top: 48px;
}
.prose-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--congress-blue);
  text-decoration: none;
}
.prose-back a:hover { text-decoration: underline; }
.prose-back .icon { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .prose-page { padding: 48px 22px 72px; }
  .prose-head h1 { font-size: 34px; }
}

/* =========================================================================
   Community spaces — invitation band, newsletter band, join page + forms
   (V6 "Become part of the Foundation"). Placeholder copy pending counsel.
   ========================================================================= */

/* --- home: invitation band --- */
.cta-band { background: var(--congress-blue); padding: 88px 28px; text-align: center; }
.cta-band .eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px; color: var(--cornflour); font-weight: 600; margin-bottom: 12px;
}
.cta-band h2 { color: #fff; font-weight: 500; font-size: 38px; letter-spacing: -0.01em; margin: 0 0 14px; }
.cta-band > p { color: #fff; opacity: 0.92; font-size: 17px; line-height: 1.7; max-width: 640px; margin: 0 auto 30px; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--congress-blue); }
.cta-band .btn:hover { background: rgba(255,255,255,0.88); }

/* --- newsletter band --- */
.news-band { background: var(--cornflour); padding: 64px 28px; }
.nb-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.news-band h2 { color: var(--congress-blue); font-weight: 500; font-size: 28px; letter-spacing: -0.005em; margin: 0 0 8px; }
.news-band p { color: var(--congress-blue); font-size: 15px; margin: 0 0 22px; }
.nb-form { max-width: 460px; margin: 0 auto; }
.nb-row { display: flex; gap: 10px; }
.nb-row input { flex: 1 1 auto; min-width: 0; border: none; }
.nb-row .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
.nb-status { margin: 10px 0 0; text-align: center; }
.nb-status:empty { margin: 0; }
.nb-fine { font-size: 12px; color: var(--congress-blue); opacity: 0.8; margin: 12px 0 0; }

/* --- join page --- */
.join-hero { background: var(--bg); padding: 72px 28px 56px; }
.join-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.join-hero .eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px; color: var(--leaf-green); font-weight: 600; margin-bottom: 12px;
}
.join-hero h1 { font-weight: 500; font-size: 44px; line-height: 1.06; letter-spacing: -0.012em; margin: 0 0 14px; color: var(--ink); }
.join-hero p { font-size: 17px; color: var(--ink-soft); margin: 0; }
.join-back { font-size: 14px; font-weight: 500; display: inline-block; margin-bottom: 26px; }

.join-body { background: #ffffff; padding: 64px 28px 96px; }
.opt-wrap { max-width: 760px; margin: 0 auto; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.opt-card {
  text-align: left; border: none; border-radius: 10px; padding: 32px 30px;
  cursor: pointer; font-family: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.opt-card:hover { transform: translateY(-2px); }
.opt-card--volunteer { background: var(--congress-blue); }
.opt-card--friend    { background: var(--leaf-green); }
.opt-card h3 { color: #fff; font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.opt-card p { color: #fff; opacity: 0.9; font-size: 14px; line-height: 1.6; margin: 0; }
.opt-card .opt-list { color: #fff; font-size: 14px; line-height: 1.6; margin: 12px 0 0; padding-left: 20px; }
.opt-card .opt-list li { margin: 0 0 6px; opacity: 0.92; }
.opt-card .opt-list li:last-child { margin-bottom: 0; }
.opt-card .opt-list li::marker { color: #fff; opacity: 1; }
.opt-card .opt-mark {
  display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.65); padding: 5px 12px;
}
.opt-card[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.opt-card[aria-pressed="true"] .opt-mark { background: #fff; }
.opt-card--volunteer[aria-pressed="true"] .opt-mark { color: var(--congress-blue); border-color: #fff; }
.opt-card--friend[aria-pressed="true"] .opt-mark { color: var(--leaf-green); border-color: #fff; }
.opt-hint { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 22px 0 0; }

.join-form { display: none; max-width: 620px; margin: 56px auto 0; }
.opt-wrap[data-choice="volunteer"] .jf--volunteer { display: block; }
.opt-wrap[data-choice="friend"] .jf--friend { display: block; }
.opt-wrap[data-choice] .opt-hint { display: none; }
.join-form h2 { font-weight: 500; font-size: 26px; letter-spacing: -0.008em; margin: 0 0 6px; }
.jf--volunteer h2 { color: var(--congress-blue); }
.jf--friend h2 { color: var(--leaf-green); }
.join-form .jf-sub { font-size: 15px; color: var(--ink-soft); margin: 0 0 28px; line-height: 1.6; }
.jf-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.jf-grid .field--full { grid-column: 1 / -1; }
.jf-survey { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 26px; }
.jf-survey h3 { font-size: 17px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
.join-form .opt-note { font-weight: 400; color: var(--ink-soft); }

/* scope of work (volunteer context block) */
.jf-scope { background: var(--bg); border-radius: 10px; padding: 26px 28px; margin: 0 0 30px; }
.jf-scope h3 {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--congress-blue); margin: 0 0 14px;
}
.jf-scope p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 10px; }
.jf-scope p strong, .jf-scope li strong { color: var(--ink); }
.jf-scope ul { margin: 6px 0 0; padding-left: 18px; }
.jf-scope li { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 8px; }
.jf-scope li em { color: var(--ink); }

/* file attachment input */
.form input[type="file"] {
  border: 1.5px dashed var(--rule); background: #fff; padding: 12px 14px;
  font-size: 13px; color: var(--ink-soft); cursor: pointer;
}

/* friend pledge: survey + send appear once ticked */
.jf-pledge {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border-radius: 10px; padding: 22px 24px; margin: 8px 0 0;
}
.jf-pledge input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 4px; flex: none;
  accent-color: var(--leaf-green); cursor: pointer;
}
.jf-pledge label { font-size: 14px; line-height: 1.7; color: var(--ink); cursor: pointer; }
.jf-pledge label p { margin: 0 0 10px; }
.jf-pledge label p:last-child { margin-bottom: 0; }
.jf-pledge label .pledge-list { margin: 0; padding-left: 20px; }
.jf-pledge label .pledge-list li { margin: 0 0 8px; }
.jf-pledge label .pledge-list li:last-child { margin-bottom: 0; }
.jf--friend .jf-survey, .jf--friend .btn-submit { display: none; }
.jf--friend.pledged .jf-survey { display: block; }
.jf--friend.pledged .btn-submit { display: inline-block; }

/* --- mobile collapse (mirror styles.css 768px behaviour) --- */
@media (max-width: 768px) {
  .cta-band { padding: 64px 22px; }
  .cta-band h2 { font-size: 30px; }
  .join-hero { padding: 56px 22px 40px; }
  .join-hero h1 { font-size: 34px; }
  .join-body { padding: 48px 22px 72px; }
  .opt-grid { grid-template-columns: 1fr; }
  .jf-grid { grid-template-columns: 1fr; column-gap: 0; }
  .news-band { padding: 56px 22px; }
}
@media (max-width: 480px) { .nb-row { flex-direction: column; } }
