/*
Theme Name: Community News Worldwide CIC
Theme URI: https://communitynewsworldwidecic.com
Author: Community News Worldwide CIC
Description: Holding-company website for Community News Worldwide CIC: mission, charter, the network of publications (each linked to its own domain), an editable Board & team page, and many ways to donate. Edit details and donation links in Appearance > Customize > Community News Worldwide. Pair with the CNW Network plugin to manage publications and people from the dashboard.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cnw
Tags: accessibility-ready, custom-menu, custom-logo, editor-style
*/

/* =====================================================================
   DESIGN NOTES
   Concept: a community print shop. Two riso "inks" (blue + red) that
   overprint into purple, halftone dots, slightly mis-registered plates.
   Display: Big Shoulders Display (civic, dockside signage).
   Text: Atkinson Hyperlegible Next (designed for low-vision readers).
   Spacing follows a 4px scale: 4 8 12 16 24 32 48 64 96 128.
   ===================================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/atkinson-next.woff") format("woff");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/atkinson-next-italic.woff") format("woff");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  /* inks and paper */
  --paper: #F3F5FA;
  --paper-2: #E5EAF5;
  --ink: #121A33;
  --ink-2: #3A4566;
  --line: #C6CEE0;
  --blue: #2443D6;
  --blue-deep: #182E9C;
  --red: #F2545B;
  --red-ink: #C42A33;
  --yellow: #FFD23F;
  --purple: #4B1F7A;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale (major third, 18px base) */
  --t-xs: 0.875rem;
  --t-sm: 1rem;
  --t-base: 1.125rem;
  --t-md: 1.375rem;
  --t-lg: clamp(1.6rem, 1.2vw + 1.2rem, 2.1rem);
  --t-xl: clamp(2.4rem, 3.4vw + 1.2rem, 4.25rem);
  --t-hero: clamp(3.4rem, 8.5vw + 1rem, 9.5rem);

  /* 4px spacing scale */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s6: 1.5rem;
  --s8: 2rem; --s12: 3rem; --s16: 4rem; --s24: 6rem; --s32: 8rem;
  --section: clamp(4rem, 9vw, 8rem);
  --wrap: 78rem;

  --halftone: radial-gradient(circle at center, currentColor 0 1.1px, transparent 1.6px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); font-weight: 900; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); line-height: 1; }
h4 { font-family: var(--text); font-size: var(--t-md); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 var(--s4); max-width: 66ch; }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
strong { font-weight: 700; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink a { color: #fff; }
.section--ink .lede { color: #C8D0E6; }
.section--blue { background: var(--blue); color: #fff; }
.section--blue a { color: #fff; }
.section-head { max-width: 50rem; margin-bottom: var(--s12); }
.section-head p { margin-top: var(--s4); }
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }

/* Riso mis-registration: an offset red plate that overprints the blue */
.riso { position: relative; display: inline-block; color: var(--blue); isolation: isolate; }
.riso-plate {
  position: absolute; inset: 0; color: var(--red); mix-blend-mode: multiply;
  transform: translate(0.055em, 0.045em); pointer-events: none; user-select: none;
}
.on-ink .riso { color: #fff; }
.on-ink .riso-plate { color: var(--red); mix-blend-mode: normal; z-index: -1; }
@media (prefers-reduced-motion: no-preference) {
  .riso--press .riso-plate { animation: register 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
}
@keyframes register {
  from { transform: translate(0.16em, -0.09em); opacity: 0; }
  40% { opacity: 1; }
  to { transform: translate(0.055em, 0.045em); }
}

/* Halftone fields */
.halftone { color: var(--blue); background-image: var(--halftone); background-size: 7px 7px; }

/* Skip link */
.skip-link {
  position: absolute; left: var(--s4); top: -5rem; z-index: 200;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: var(--s3) var(--s4); border-radius: 8px; border: 2px solid var(--ink);
}
.skip-link:focus { top: var(--s4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3.25rem; padding: var(--s3) var(--s6);
  font: inherit; font-weight: 700; line-height: 1.1;
  border: 2px solid var(--ink); border-radius: 999px;
  text-decoration: none; cursor: pointer; color: var(--ink); background: transparent;
  transition: transform .15s ease-out, background-color .15s ease-out, box-shadow .15s ease-out;
}
.btn:hover { text-decoration: none; color: var(--ink); background: #fff; }
.btn:active { transform: translateY(1px); }
.btn--donate { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.btn--donate:hover { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.on-ink .btn:not(.btn--donate), .section--blue .btn:not(.btn--donate) { color: #fff; border-color: #fff; }
.on-ink .btn:not(.btn--donate):hover, .section--blue .btn:not(.btn--donate):hover { background: #fff; color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 2px solid var(--ink);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.75rem; height: 2.75rem; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: .9; }
.brand-name small { display: block; font-family: var(--text); font-weight: 500; font-size: .78rem; color: var(--ink-2); margin-top: 3px; }
.nav-list { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  display: block; padding: var(--s2) var(--s3); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav-list a:hover { background: var(--paper-2); }
.nav-list a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-toggle {
  display: none; align-items: center; gap: var(--s2);
  min-height: 2.75rem; padding: 0 var(--s4);
  border: 2px solid var(--ink); border-radius: 999px; background: none; color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle svg { width: 1.1rem; height: 1.1rem; }
.header-donate { flex: none; min-height: 2.75rem; padding-inline: var(--s4); box-shadow: 3px 3px 0 var(--ink); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 4.75rem 0 0 0; z-index: 90;
    background: var(--ink); color: #fff; overflow-y: auto;
    padding: var(--s8) var(--s4) var(--s16);
    display: none;
  }
  .admin-bar .site-nav { top: calc(4.75rem + 46px); }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; max-width: 40rem; margin-inline: auto; }
  .nav-list a {
    font-family: var(--display); font-size: clamp(2.4rem, 9vw, 3.5rem); font-weight: 800; line-height: 1.05;
    color: #fff; padding: var(--s2) 0; border-radius: 0; border-bottom: 1px solid #2E3858;
  }
  .nav-list a:hover { background: none; color: var(--yellow); }
  .nav-list a[aria-current="page"] { background: none; color: var(--yellow); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 1.15rem; }
  .nav-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle { padding: 0 var(--s3); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: var(--s8); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.45fr 1fr; } }
.hero h1 { margin-bottom: var(--s6); max-width: 11ch; }
.hero .lede { font-size: clamp(1.2rem, .6vw + 1rem, 1.5rem); color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 34rem; width: 100%; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 959px) { .hero-art { position: absolute; right: -28%; top: -6%; width: 80%; opacity: .32; z-index: -1; } .hero { isolation: isolate; } }
@media (prefers-reduced-motion: no-preference) {
  .ring { transform-origin: 50% 50%; animation: pulse 5.5s ease-in-out infinite; }
  .ring:nth-child(2) { animation-delay: .5s; } .ring:nth-child(3) { animation-delay: 1s; } .ring:nth-child(4) { animation-delay: 1.5s; }
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- newsstand marquee ---------- */
.newsstand { border-block: 2px solid var(--ink); background: var(--ink); padding-block: var(--s8); color: #fff; position: relative; }
.newsstand-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.newsstand-head h2 { font-size: clamp(2rem, 2.5vw + 1rem, 3.25rem); margin: 0; color: #fff; }
.newsstand-head p { margin: 0; color: #C8D0E6; }
.newsstand-controls { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.motion-toggle {
  font: inherit; font-size: var(--t-xs); font-weight: 700; color: #fff; background: transparent;
  border: 2px solid #5A6585; border-radius: 999px; padding: var(--s2) var(--s4); cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--s2);
}
.motion-toggle:hover { border-color: #fff; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: var(--s4); }
.marquee-track { display: flex; gap: var(--s4); width: max-content; list-style: none; margin: 0; padding: var(--s1) 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 70s linear infinite; }
  .marquee--rev .marquee-track { animation-direction: reverse; animation-duration: 80s; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .newsstand.is-paused .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-track .is-dup, .motion-toggle { display: none; }
}
@keyframes slide { to { transform: translateX(calc(-50% - var(--s2))); } }
.stand-tile {
  display: grid; place-items: center; width: 15.5rem; height: 9rem; padding: var(--s3);
  background: #fff; border-radius: 10px; border: 2px solid #fff; position: relative; text-decoration: none;
  transition: transform .2s ease-out, border-color .2s ease-out;
}
.stand-tile.is-dark { background: #000; border-color: #2E3858; }
.stand-tile img { position: absolute; inset: var(--s3); width: calc(100% - 2 * var(--s3)); height: calc(100% - 2 * var(--s3)); object-fit: contain; border-radius: 4px; }
.stand-tile .wordmark { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--ink); text-align: center; line-height: .95; }
.stand-tile .tile-domain {
  position: absolute; left: 50%; bottom: -0.9rem; transform: translateX(-50%);
  background: var(--yellow); color: var(--ink); font-size: .78rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .15s;
  border: 2px solid var(--ink);
}
a.stand-tile:hover, a.stand-tile:focus-visible { transform: translateY(-4px) rotate(-1deg); border-color: var(--yellow); }
a.stand-tile:hover .tile-domain, a.stand-tile:focus-visible .tile-domain { opacity: 1; }
.marquee li { padding-bottom: var(--s4); }

/* ---------- statement ---------- */
.statement { position: relative; overflow: hidden; }
.statement::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  color: #fff; background-image: var(--halftone); background-size: 9px 9px; opacity: .22;
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.statement-quote {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.2vw + 1rem, 5rem);
  line-height: .98; margin: 0; max-width: 18ch; position: relative;
}
.statement-quote .soft { color: #A9B7F5; }
.statement-cite { display: block; margin-top: var(--s6); font-size: var(--t-base); color: #DCE3FF; max-width: 50ch; }

/* ---------- what we do ---------- */
.pillars { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.pillar { position: relative; padding-top: var(--s12); }
.pillar-shape { position: absolute; top: 0; left: 0; width: 3.5rem; height: 3.5rem; }
.pillar h3 { font-size: clamp(2rem, 1.5vw + 1.4rem, 2.75rem); margin-bottom: var(--s3); }
.pillar ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.pillar li { padding: var(--s2) 0; border-top: 1px solid var(--line); }

/* ---------- growth ---------- */
.growth { display: grid; gap: var(--s12); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .growth { grid-template-columns: 1fr 1fr; } }
.growth-rings svg { width: 100%; max-width: 32rem; height: auto; display: block; margin-inline: auto; }
.growth-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.growth-steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s4); align-items: start; }
.growth-steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 900; font-size: 2.25rem; line-height: 1;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--paper);
}
.growth-steps li:first-child::before { background: var(--yellow); }
.growth-steps h3 { font-size: 2rem; margin: 0 0 var(--s1); }
.growth-steps p { margin: 0; color: var(--ink-2); }

/* ---------- comparison ---------- */
.compare { display: grid; gap: 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; }
.compare-row { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.compare-row:first-child { border-top: 0; }
@media (min-width: 820px) { .compare-row { grid-template-columns: 14rem 1fr 1fr; } }
.compare-row > * { padding: var(--s6); margin: 0; }
.compare-row h3 { font-size: 1.9rem; background: var(--paper-2); }
.compare-them { color: var(--ink-2); }
.compare-them::before, .compare-us::before { display: block; font-size: var(--t-xs); font-weight: 700; margin-bottom: var(--s1); }
.compare-them::before { content: "Commercial media"; color: var(--ink-2); }
.compare-us::before { content: "Community News Worldwide"; color: var(--blue-deep); }
.compare-us { background: #EEF1FF; }
@media (min-width: 820px) {
  .compare-row:not(:first-child) .compare-them::before, .compare-row:not(:first-child) .compare-us::before { display: none; }
}

/* ---------- donate band ---------- */
.give { background: var(--yellow); border-block: 2px solid var(--ink); }
.give-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: var(--s8); }
.give-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: var(--s6); display: flex; flex-direction: column; }
.give-card h3 { font-size: 2.25rem; margin-bottom: var(--s2); }
.give-card p { color: var(--ink-2); }
.give-card .btn { margin-top: auto; align-self: flex-start; }
.give-card--ink { background: var(--ink); color: #fff; }
.give-card--ink p { color: #C8D0E6; }

/* ---------- inner page head ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 2px solid var(--ink); isolation: isolate; }
.page-head h1 { font-size: clamp(3rem, 6vw + 1rem, 7rem); max-width: 14ch; margin-bottom: var(--s6); }
.page-head .lede { color: var(--ink); }
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: -6rem; top: -6rem; width: clamp(14rem, 34vw, 30rem); aspect-ratio: 1; border-radius: 50%;
  color: var(--blue); background-image: var(--halftone); background-size: 8px 8px; opacity: .55;
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.page-head::before {
  content: ""; position: absolute; z-index: -1; right: clamp(2rem, 10vw, 10rem); bottom: -4rem; width: clamp(8rem, 16vw, 14rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--red); mix-blend-mode: multiply; opacity: .85;
}
@media (max-width: 700px) { .page-head::before { opacity: .35; } .page-head::after { opacity: .3; } }

/* ---------- about ---------- */
.about-layout { display: grid; gap: var(--s12); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .about-layout { grid-template-columns: 14rem 1fr; } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 7rem; } }
.toc h2 { font-size: 1.5rem; margin-bottom: var(--s3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (min-width: 1000px) { .toc ol { flex-direction: column; gap: 0; } }
.toc a { display: block; padding: var(--s2) var(--s3); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; border: 2px solid var(--ink); }
@media (min-width: 1000px) { .toc a { border: 0; border-left: 3px solid var(--line); border-radius: 0; padding: var(--s2) var(--s4); } .toc a:hover { border-left-color: var(--red); background: none; } }
.toc a:hover { background: var(--paper-2); }
.about-block { padding-bottom: var(--s16); margin-bottom: var(--s16); border-bottom: 2px solid var(--ink); }
.about-block:last-child { border-bottom: 0; margin-bottom: 0; }
.about-block > h2 { margin-bottom: var(--s6); }
.mission-line {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 2vw + 1.2rem, 3rem); line-height: 1.02;
  background: var(--blue); color: #fff; padding: var(--s8); border-radius: 18px; margin: var(--s8) 0; max-width: none;
}

.principles { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.principle { border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: var(--s6); }
.principle h3 { font-size: 2rem; margin-bottom: var(--s2); }
.principle > p { color: var(--ink-2); margin-bottom: var(--s3); }
.principle details summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); list-style: none; display: inline-flex; align-items: center; gap: var(--s2); }
.principle details summary::-webkit-details-marker { display: none; }
.principle details summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid currentColor; font-size: 1rem; line-height: 1; }
.principle details[open] summary::before { content: "–"; }
.principle details ul { margin: var(--s3) 0 0; padding-left: 1.2rem; color: var(--ink-2); }
.principle details li { margin-bottom: var(--s1); }

.serve-groups { display: grid; gap: var(--s8) var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.serve-group h3 { font-size: 1.75rem; padding-bottom: var(--s2); border-bottom: 4px solid var(--red); display: inline-block; }
.serve-group ul { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.serve-group li { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: var(--s1) var(--s3); font-size: var(--t-sm); }
.living { margin-top: var(--s12); padding: var(--s8); border-radius: 18px; background: var(--ink); color: #fff; }
.living h3 { font-size: 2.25rem; color: var(--yellow); }
.living p { color: #DCE3FF; }
.living p:last-child { margin-bottom: 0; font-family: var(--display); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }

.activities { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.activities li { display: grid; gap: var(--s2) var(--s8); padding: var(--s6) 0; border-top: 1.5px solid var(--line); }
@media (min-width: 760px) { .activities li { grid-template-columns: 17rem 1fr; } }
.activities h3 { font-size: 1.6rem; margin: 0; }
.activities p { margin: 0; color: var(--ink-2); }

.charter-list { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.charter-list li { counter-increment: c; padding: var(--s6); border-radius: 14px; background: var(--paper-2); }
.charter-list h3 { font-size: 1.75rem; margin-bottom: var(--s2); }
.charter-list h3::before { content: counter(c) ". "; color: var(--red-ink); }
.charter-list p { margin: 0; color: var(--ink-2); }

.governance { display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s8); margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: var(--s8); }
.governance dt { font-weight: 700; }
.governance dd { margin: 0; }
@media (max-width: 640px) { .governance { grid-template-columns: 1fr; padding: var(--s6); gap: var(--s1); } .governance dd { margin-bottom: var(--s3); } }

/* ---------- network ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s8); }
.filter button {
  font: inherit; font-weight: 700; cursor: pointer; padding: var(--s2) var(--s4); min-height: 2.75rem;
  border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
}
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter button:hover { background: var(--paper-2); }
.filter button[aria-pressed="true"]:hover { background: var(--ink); }
.pub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.pub-grid[hidden], .pub-card[hidden] { display: none; }
.pub-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; transition: transform .2s ease-out, box-shadow .2s ease-out; }
.pub-card:has(a.pub-link:hover), .pub-card:focus-within { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--blue); }
.pub-logo { position: relative; height: 13.5rem; display: grid; place-items: center; padding: var(--s4); background: #fff; border-bottom: 2px solid var(--ink); }
.pub-logo.is-dark { background: #000; }
.pub-logo img { position: absolute; inset: var(--s4); width: calc(100% - 2 * var(--s4)); height: calc(100% - 2 * var(--s4)); object-fit: contain; }
.pub-logo .wordmark { font-family: var(--display); font-weight: 900; font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); line-height: .9; text-align: center; color: var(--blue); }
.pub-body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.pub-body h3 { font-size: 2.1rem; margin: 0; }
.pub-tagline { font-style: italic; margin: 0; font-weight: 600; }
.pub-desc { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.pub-foot { margin-top: auto; padding-top: var(--s4); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.pub-link { font-weight: 700; display: inline-flex; align-items: center; gap: var(--s1); word-break: break-word; }
/* make the whole card clickable via the main link */
.pub-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pub-soon { color: var(--ink-2); font-size: var(--t-sm); }
.status { font-size: var(--t-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.status--first { background: var(--yellow); }
.status--live { background: #C6F2D4; }
.net-group + .net-group { margin-top: var(--s16); }
.net-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s4); margin-bottom: var(--s6); }
.net-group-head h2 { margin: 0; }
.net-group-head p { margin: 0; color: var(--ink-2); }

/* ---------- team ---------- */
.team-group + .team-group { margin-top: var(--s16); }
.team-group-head { margin-bottom: var(--s8); max-width: 50rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s12) var(--s8); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.person { display: flex; flex-direction: column; }
.person-photo { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: var(--blue); margin-bottom: var(--s4); isolation: isolate; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; transition: filter .3s ease-out; }
.person-photo::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: screen; opacity: .18; pointer-events: none; }
.person:hover .person-photo img, .person:focus-within .person-photo img { filter: none; mix-blend-mode: normal; }
.person-photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); color: #fff; }
.person-photo.no-photo { background: var(--blue); }
.person:nth-child(3n+2) .person-photo.no-photo { background: var(--purple); }
.person:nth-child(3n+3) .person-photo.no-photo { background: var(--red-ink); }
.person h3 { font-size: 2rem; margin: 0 0 var(--s1); }
.person-role { font-weight: 700; color: var(--blue-deep); margin: 0 0 var(--s3); }
.person-bio { color: var(--ink-2); font-size: var(--t-sm); margin: 0 0 var(--s3); }
.person-links { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: var(--t-sm); font-weight: 700; margin-top: auto; }
.team-empty { border: 2px dashed var(--ink-2); border-radius: 18px; padding: var(--s8); max-width: 44rem; }
.team-empty h3 { font-size: 2rem; }

/* ---------- donate page ---------- */
.donate-layout { display: grid; gap: var(--s12); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .donate-layout { grid-template-columns: 1fr 1fr; } }
.chooser { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 8px 8px 0 var(--blue); }
.chooser h2 { color: #fff; font-size: 3rem; }
.chooser fieldset { border: 0; padding: 0; margin: 0 0 var(--s6); min-width: 0; }
.chooser legend { font-weight: 700; margin-bottom: var(--s3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.5rem; padding: var(--s2); border-radius: 12px;
  border: 2px solid #4A5578; font-family: var(--display); font-weight: 800; font-size: 1.6rem;
}
.choice input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.choice:hover span { border-color: #8A93B3; }
.impact { min-height: 3.2em; color: #DCE3FF; margin: 0 0 var(--s6); }
.chooser .btn--donate { width: 100%; font-size: 1.15rem; min-height: 3.75rem; box-shadow: 4px 4px 0 var(--blue); }
.chooser-note { font-size: var(--t-xs); color: #B7C0D9; margin: var(--s4) 0 0; }
.pay-badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; list-style: none; padding: 0; }
.pay-badges li { font-size: .8rem; padding: 2px 10px; border: 1.5px solid #4A5578; border-radius: 999px; color: #DCE3FF; }
.chooser--plugin { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.chooser--plugin h2 { color: var(--ink); }

.ways { display: grid; gap: var(--s12); }
.way-group h3 { font-size: 2.5rem; margin-bottom: var(--s4); }
.way-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.way { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.way h4 { margin: 0; font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.way p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.way-action { margin-top: auto; padding-top: var(--s2); font-weight: 700; }
.way-action--soon { color: var(--ink-2); font-weight: 500; font-size: var(--t-sm); }
.bank { margin: var(--s2) 0 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); font-size: var(--t-sm); }
.bank dt { color: var(--ink-2); }
.bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.notice { border-left: 6px solid var(--red); background: #fff; padding: var(--s4) var(--s6); border-radius: 0 14px 14px 0; }
.notice p:last-child { margin-bottom: 0; }

.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s4) var(--s12) var(--s4) 0; position: relative;
  font-weight: 700; font-size: var(--t-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--s2); top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding-bottom: var(--s4); color: var(--ink-2); }

/* ---------- split / routes / contact / prose ---------- */
.split { display: grid; gap: var(--s12); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }
.routes { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.route { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: var(--s6); display: flex; flex-direction: column; }
.route h3 { font-size: 2rem; margin-bottom: var(--s2); }
.route p { color: var(--ink-2); }
.route a { margin-top: auto; font-weight: 700; }
.route--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.route--blue p { color: #DCE3FF; } .route--blue a { color: #fff; }
.paid-callout { font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 4vw + 1rem, 5rem); line-height: .92; margin: 0 0 var(--s6); }
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th, .contact-table td { text-align: left; padding: var(--s4) var(--s2) var(--s4) 0; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.contact-table th { font-weight: 700; width: 42%; }
@media (max-width: 600px) {
  .contact-table, .contact-table tbody, .contact-table tr, .contact-table th, .contact-table td { display: block; width: 100%; }
  .contact-table th { border-bottom: 0; padding-bottom: 0; }
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; font: inherit; padding: var(--s3); border: 2px solid var(--ink); border-radius: 10px; background: #fff;
}
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s12); font-size: clamp(2rem, 2vw + 1rem, 2.75rem); }
.prose h3 { margin-top: var(--s8); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: var(--s2); }
.entry-content > * + * { margin-top: var(--s4); }
.entry-content img { border-radius: 14px; }
.entry-content .wp-block-button__link { background: var(--blue); color: #fff; border-radius: 999px; font-weight: 700; padding: var(--s3) var(--s6); text-decoration: none; }
.entry-content .wp-block-quote { border-left: 6px solid var(--red); margin-left: 0; padding-left: var(--s6); font-size: var(--t-md); }
.wp-caption-text, .wp-element-caption { color: var(--ink-2); font-size: var(--t-xs); }
.placeholder { background: var(--yellow); padding: 0 .3em; border-radius: 4px; color: var(--ink); }
.post-summary { padding-bottom: var(--s6); border-bottom: 1.5px solid var(--line); margin-bottom: var(--s6); }
.post-date { color: var(--ink-2); font-size: var(--t-xs); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C8D0E6; padding-block: var(--s16) var(--s8); font-size: var(--t-sm); position: relative; overflow: hidden; }
.footer-big {
  font-family: var(--display); font-weight: 900; color: #fff; line-height: .9;
  font-size: clamp(2.75rem, 6vw + 1rem, 6.5rem); margin: 0 0 var(--s8); max-width: 14ch;
}
.footer-big .riso { color: #fff; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--s8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); padding-top: var(--s8); border-top: 1px solid #2E3858; }
.footer-grid h2 { font-family: var(--text); font-size: var(--t-sm); font-weight: 700; color: var(--yellow); margin-bottom: var(--s3); }
.footer-grid ul, .footer-grid .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-grid .footer-domains { display: block; columns: 2 10rem; column-gap: var(--s6); }
@media (min-width: 900px) { .footer-wide { grid-column: span 2; } }
.footer-domains li { break-inside: avoid; margin-bottom: var(--s2); }
.legal { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid #2E3858; font-size: var(--t-xs); color: #A9B3CF; }
.legal p { max-width: none; margin-bottom: var(--s1); }

/* editor palette helpers */
.has-ink-color { color: var(--ink); } .has-ink-background-color { background-color: var(--ink); }
.has-blue-color { color: var(--blue); } .has-blue-background-color { background-color: var(--blue); }
.has-red-color { color: var(--red-ink); } .has-red-background-color { background-color: var(--red); }
.has-yellow-background-color { background-color: var(--yellow); }
.has-paper-background-color { background-color: var(--paper); }

@media print {
  .site-header, .site-footer, .btn, .newsstand, .hero-art, .give { display: none !important; }
  body { background: #fff; }
}
