/* =========================================================================
   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; } }

/* =========================================================================
   NEWS — public /news index + /news/<slug> article pages (server-rendered
   by the API service; composes on this stylesheet). Editorial direction,
   founder-picked 2026-07-06.
   ========================================================================= */
:root{
  --t-chatbot:#6E022E;
  --t-research:#02478E;
  --t-policy:#2B0047;
  --t-schools:#244F1A;
  --t-wellbeing:#5d7a45;
}

.news-intro { padding:72px var(--content-pad) 30px; max-width:var(--maxw); margin:0 auto; }
.news-eyebrow { display:block; text-transform:uppercase; letter-spacing:.16em;
  font-size:12px; color:var(--leaf-green); font-weight:600; margin-bottom:16px; }
.news-title { font-weight:600; font-size:clamp(32px,4.4vw,52px); line-height:1.06;
  letter-spacing:-.018em; margin:0 0 18px; text-wrap:balance; }
.news-standfirst { font-size:19px; color:var(--ink-soft); line-height:1.6; max-width:100ch; margin:0; }

.filter-row { padding:8px var(--content-pad) 0; max-width:var(--maxw); margin:0 auto;
  display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.filter-row .flabel { font-size:12px; text-transform:uppercase; letter-spacing:.12em;
  color:var(--ink-soft); margin-right:4px; }
.chip { font-size:13px; font-weight:500; border:1px solid var(--rule); background:#fff;
  color:var(--ink); border-radius:999px; padding:5px 14px; cursor:pointer; line-height:1;
  transition:border-color .15s, color .15s, background .15s; }
.chip:hover { border-color:#bdbdbd; }
.chip.is-active { background:var(--ink); color:#fff; border-color:var(--ink); }
.chip[data-topic="chatbot"].is-active{ background:var(--t-chatbot); border-color:var(--t-chatbot); }
.chip[data-topic="research"].is-active{ background:var(--t-research); border-color:var(--t-research); }
.chip[data-topic="policy"].is-active{ background:var(--t-policy); border-color:var(--t-policy); }
.chip[data-topic="schools"].is-active{ background:var(--t-schools); border-color:var(--t-schools); }
.chip[data-topic="wellbeing"].is-active{ background:var(--t-wellbeing); border-color:var(--t-wellbeing); }

/* Topic pill: same geometry as the chips, solid topic colour, white text. */
.topic-pill { display:inline-flex; align-items:center; font-size:13px; font-weight:500;
  line-height:1; color:#fff; background:var(--tc,#555); border-radius:999px; padding:5px 14px; }
.tp-chatbot{ --tc:var(--t-chatbot); } .tp-research{ --tc:var(--t-research); }
.tp-policy{ --tc:var(--t-policy); } .tp-schools{ --tc:var(--t-schools); }
.tp-wellbeing{ --tc:var(--t-wellbeing); }

.feed { max-width:var(--maxw); margin:0 auto; padding:30px var(--content-pad) 80px; }
.feed .empty { color:var(--ink-soft); font-size:15px; padding:20px 0; display:none; }
.feed .empty.show { display:block; }

.feed .item { display:grid; grid-template-columns:128px 1fr; gap:28px;
  padding:26px 0; border-bottom:1px solid var(--rule); }
.feed .item .when { font-size:13px; color:var(--ink-soft); padding-top:3px; }
.feed .item .when .src { display:block; margin-top:8px; font-size:12px; }
.feed .item h3 { font-size:21px; font-weight:600; line-height:1.28; letter-spacing:-.01em; margin:8px 0 8px; }
.feed .item h3 a { color:var(--ink); }
.feed .item h3 a:hover { color:var(--congress-blue); text-decoration:none; }
.feed .item .summary { font-size:15.5px; color:var(--ink-soft); line-height:1.6; max-width:64ch; margin:0; }

/* News image slots (fixed 16:9). Index: the title runs full width; the thumbnail
   drops onto the summary row so it sits beside the body text (same right-hand
   column, lower on the Y axis). Collapses when absent; stacks below on mobile. */
.feed .item.has-thumb .item-main {
  display:grid;
  grid-template-columns:1fr 190px;
  grid-template-areas:
    "pill    ."
    "title   title"
    "summary image";
  column-gap:28px;
  align-items:start;
}
.feed .item.has-thumb .item-main > .topic-pill { grid-area:pill; justify-self:start; }
.feed .item.has-thumb .item-main > h3 { grid-area:title; }
.feed .item.has-thumb .item-main > .summary { grid-area:summary; }
.feed .item.has-thumb .item-main > .item-thumb { grid-area:image; }
.feed .item .item-thumb { width:190px; }
.feed .item .item-thumb img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px; }
/* Article lede: full-width 16:9 after the standfirst. */
.post-hero { margin:0 0 28px; }
.post-hero img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:10px; }
.post-hero figcaption { font-size:12px; color:var(--ink-soft); margin-top:8px; }

.post { max-width:760px; margin:0 auto; padding:64px var(--content-pad) 30px; }
.post .back { font-size:13px; color:var(--ink-soft); margin-bottom:26px; display:inline-block; }
.post .back::before { content:"\2190  "; }
.post .pmeta { display:flex; gap:16px; align-items:center; margin:16px 0 18px; }
.post .pdate { font-size:13px; color:var(--ink-soft); }
.post h1 { font-size:clamp(28px,3.6vw,42px); font-weight:600; line-height:1.1;
  letter-spacing:-.018em; margin:0 0 20px; }
.post .standfirst { font-size:20px; color:var(--ink); line-height:1.55; margin:0 0 28px; font-weight:500; }
.post-body p { font-size:17.5px; color:var(--ink-soft); line-height:1.78; margin:0 0 20px; }
.post-body p strong { color:var(--ink); }
.post-body ul, .post-body ol { font-size:17.5px; color:var(--ink-soft); line-height:1.78; margin:0 0 20px; padding-inline-start:26px; }
.sources { border:1px solid var(--rule); border-radius:10px; padding:22px 24px; margin:36px 0 10px; background:#fafafa; }
.sources h4 { font-size:12px; text-transform:uppercase; letter-spacing:.14em; color:var(--leaf-green);
  margin:0 0 14px; font-weight:600; }
.sources ul { margin:0; padding:0; list-style:none; }
.sources li { padding:9px 0; border-top:1px solid var(--rule); font-size:15px; }
.sources li:first-child { border-top:0; }
.sources li a { color:var(--congress-blue); font-weight:500; }
.sources li .pub { display:block; font-size:12.5px; color:var(--ink-soft); margin-top:2px; }
.share { display:flex; gap:10px; align-items:center; margin:30px 0 0; }
.share span { font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--ink-soft); }
.share .share-btn { font-size:13px; font-weight:500; border:1px solid var(--rule); border-radius:999px;
  padding:5px 14px; color:var(--ink); background:#fff; cursor:pointer; font-family:inherit; }

@media (max-width:820px){
  /* Drop the desktop wordmark-alignment padding (var(--content-pad), 88px) to
     the site-wide mobile side padding (22px, mirrors .frame/.hero-inner at
     768px) so the column isn't squeezed into ~half the phone width. */
  .news-intro { padding:48px 22px 30px; }
  .filter-row { padding:8px 22px 0; }
  .feed { padding:30px 22px 80px; }
  .post { padding:48px 22px 30px; }
  .feed .item { grid-template-columns:1fr; gap:8px; }
  .feed .item .when { display:flex; gap:16px; padding-top:0; }
  .feed .item .when .src { margin-top:0; }
  .feed .item.has-thumb { grid-template-columns:1fr; }
  .feed .item.has-thumb .item-main { display:block; }   /* undo the desktop inner grid */
  .feed .item .item-thumb { width:100%; margin-top:14px; }   /* image full-width below the text */
}

/* -------------------------------------------------------------------------
   Pull-to-refresh (iOS home-screen / standalone only). Injected by main.js
   ONLY when running standalone, where iOS drops the native swipe-to-refresh.
   Parked above the fold; JS drives translateY as the page is pulled down.
   ------------------------------------------------------------------------- */
.ptr-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 17, 17, .16);
  transform: translate(-50%, -52px);   /* hidden: parked above its anchor */
  opacity: 0;
  z-index: 1200;
  pointer-events: none;
}
.ptr-indicator.ptr-animate { transition: transform .26s ease, opacity .26s ease; }
.ptr-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(2, 71, 142, .22);   /* congress-blue @ 22% */
  border-top-color: var(--congress-blue);
}
.ptr-indicator.ptr-ready .ptr-spinner { border-top-color: var(--leaf-green); }  /* release-to-refresh cue */
.ptr-indicator.ptr-refreshing .ptr-spinner { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ptr-indicator.ptr-refreshing .ptr-spinner { animation-duration: 1.5s; }
}
