/*
 * Humanist Center of the Carolinas: site stylesheet.
 * Hand-written, no framework. An earth-tone identity: parchment, moss, terracotta, ochre, and loam.
 * Type: Ubuntu (headings) and Open Sans (body), self-hosted.
 * Dark ("night earth") is the default; <html data-theme="light"> switches to "daylight earth".
 *
 * Accessibility targets: WCAG 2.2 AA throughout, with AAA contrast (7:1) for text in both themes,
 * 3:1 for borders and focus rings, 44px touch targets, reflow at 320px, text resizable to 200%.
 * Text pairs were verified numerically; do not use --muted on --surface-3 (6.3:1).
 */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/open-sans-400-800.woff2') format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ubuntu-500.woff2') format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/ubuntu-700.woff2') format('woff2'); }

/* ── Tokens: dark, "night earth" (default) ─────────────────────────── */
:root {
  color-scheme: dark;

  --bg: #1a1511;          /* bark */
  --surface: #241d17;     /* loam */
  --surface-2: #2d251e;
  --surface-3: #3a3027;
  --border: #4d4034;
  --border-strong: #8f7e68;     /* 3:1+ on every surface: inputs, outlined buttons */

  --text: #f0e7d6;
  --muted: #cdbfa7;
  --heading: #f1e2bd;
  --link: #f2a67e;
  --link-hover: #ffd2b8;
  --focus: #f1e2bd;

  --btn: #aac98a;   --btn-hover: #c2dca5;   --btn-text: #17220f;
  --btn2: #f2a67e;  --btn2-hover: #ffc2a2;  --btn2-text: #2b1308;
  --ghost: #aac98a; --ghost-text: #dfe9c9;  --ghost-hover: #26331b;

  /* Pillars: solid text-safe tone + tint */
  --life: #f2a67e;  --life-c: #3d2217;
  --learn: #e8c066; --learn-c: #3b2f12;
  --serve: #aac98a; --serve-c: #212f18;
  --works: #86c9c4; --works-c: #153131;

  --err: #ffb4a6;  --err-c: #4a1a14;
  --ok: #b7d99a;   --ok-c: #223319;
  --info: #86c9c4; --info-c: #153131;

  --ochre: #e8c066;       /* decoration only */
  --stat: #f2a67e;

  --header-bg: #1f1914;
  --header-rule: #8f7e68;
  --footer-bg: #110d0a;
  --footer-text: #f0e7d6;
  --footer-muted: #cdbfa7;
  --hero-glow: rgba(232, 192, 102, .14);
  --callout-a: #2c3a1f;  --callout-b: #1f2a16;  --callout-text: #f3ecda;  --callout-rule: #e8c066;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .35);

  /* Logo mark */
  --mk-outer: #aac98a; --mk-inner: #e8c066; --mk-s1: #6b4a33; --mk-s2: #9a6b43; --mk-s3: #d1ab72; --mk-s4: #5fa9a4; --mk-foot: #d1ab72; --mk-ground: #e08a63; --mk-sun: #e8c066; --mk-heart: #e08a63;

  /* Landscape art */
  --art-sky: #2b2118; --art-sun: #e8c066; --art-hill-1: #2e3b22; --art-hill-2: #3b4d2a; --art-hill-3: #4d6234; --art-ground: #17120e; --art-glow: #e8c066;

  --font-heading: 'Ubuntu', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;

  --space-1: .25rem; --space-2: .5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2rem; --space-6: 3rem; --space-7: 4.5rem;
  --radius: 16px; --radius-sm: 10px;
  --measure: 66ch;
  --ease: 200ms ease-in-out;
}

/* ── Tokens: light, "daylight earth" ───────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4ecdd;          /* parchment */
  --surface: #fcf8ef;     /* linen */
  --surface-2: #ebe0cb;   /* sand */
  --surface-3: #dfd0b3;
  --border: #cbbb9b;
  --border-strong: #7d6b52;

  --text: #2b2117;
  --muted: #52422f;
  --heading: #2a3d20;
  --link: #762a0f;
  --link-hover: #4a1a08;
  --focus: #2a3d20;

  --btn: #34502a;   --btn-hover: #263c1f;   --btn-text: #fcf8ef;
  --btn2: #762a0f;  --btn2-hover: #5a1f09;  --btn2-text: #fcf8ef;
  --ghost: #34502a; --ghost-text: #2a3d20;  --ghost-hover: #e3ecd3;

  --life: #762a0f;  --life-c: #f6e3d8;
  --learn: #5c4006; --learn-c: #f5e8c3;
  --serve: #2b4522; --serve-c: #e3ecd3;
  --works: #1d4b4e; --works-c: #d9e8e5;

  --err: #7a150b;  --err-c: #f9e3dc;
  --ok: #264a1d;   --ok-c: #e1eed2;
  --info: #1d4b4e; --info-c: #d9e8e5;

  --ochre: #b9791b;
  --stat: #762a0f;

  --header-bg: #fcf8ef;
  --header-rule: #7d6b52;
  --footer-bg: #2b2117;
  --footer-text: #f4ecdd;
  --footer-muted: #d6c9b2;
  --hero-glow: rgba(185, 121, 27, .16);
  --callout-a: #34502a;  --callout-b: #263c1f;  --callout-text: #fcf8ef;  --callout-rule: #e8c066;
  --shadow: 0 1px 2px rgba(60, 40, 15, .14), 0 6px 18px rgba(60, 40, 15, .1);

  --mk-outer: #34502a; --mk-inner: #d99a2b; --mk-s1: #2b2117; --mk-s2: #5c3a24; --mk-s3: #b08c5a; --mk-s4: #1d4b4e; --mk-foot: #b08c5a; --mk-ground: #a8532e; --mk-sun: #d99a2b; --mk-heart: #a8532e;
  --art-sky: #f8e8c4; --art-sun: #d99a2b; --art-hill-1: #cfdab2; --art-hill-2: #a9bf86; --art-hill-3: #78965a; --art-ground: #3f4a2c; --art-glow: #f0c870;
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background-color: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; margin: 0 0 var(--space-3); letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3, .h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 500; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--ease); }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--surface-3); color: var(--text); }

.sr-only, .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-3); top: -5rem; z-index: 2000; padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--btn); color: var(--btn-text); font-weight: 700; text-decoration: none; transition: top var(--ease);
}
.skip-link:focus { top: var(--space-3); }

/* ── Layout ────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--space-3); }
.prose { max-width: var(--measure); }
.section { padding: var(--space-6) 0; position: relative; }
.section__head { max-width: 46rem; margin-bottom: var(--space-5); }
.section__head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow { font-family: var(--font-heading); font-weight: 500; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin: 0 0 var(--space-2); }
.lead { font-size: 1.125rem; line-height: 1.65; max-width: 44rem; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: var(--space-3); }
.grid { display: grid; gap: var(--space-3); }
.mt-md { margin-top: var(--space-3); } .mt-lg { margin-top: var(--space-4); } .mt-xl { margin-top: var(--space-5); } .mb-0 { margin-bottom: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }

/* Rolling-hills edge: one mask, coloured by the theme. Used for section transitions. */
.section--alt, .page-head, .hero, .site-footer { --hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V26C120 6 240 4 380 22S640 46 800 26 1060 4 1200 24V48Z'/%3E%3C/svg%3E"); }
.section--alt { background: var(--surface-2); padding-block: var(--space-7); margin-block: 2.5rem; }
.section--alt::before, .section--alt::after, .page-head::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2.5rem; pointer-events: none;
  -webkit-mask: var(--hills) center / 100% 100% no-repeat; mask: var(--hills) center / 100% 100% no-repeat;
}
.section--alt::before { top: -2.4rem; background: var(--surface-2); }
.section--alt::after { bottom: -1px; background: var(--bg); }
.page-head::after { bottom: -1px; background: var(--bg); }
.site-footer::before { top: -2.4rem; background: var(--footer-bg); }

.mk-o { fill: var(--mk-outer); } .mk-i { fill: var(--mk-inner); } .mk-f { fill: var(--mk-foot); } .mk-g { fill: var(--mk-ground); } .mk-sun { fill: var(--mk-sun); } .mk-heart { fill: var(--mk-heart); }
.mk-s1 { fill: var(--mk-s1); } .mk-s2 { fill: var(--mk-s2); } .mk-s3 { fill: var(--mk-s3); } .mk-s4 { fill: var(--mk-s4); }
/* The footer is always dark, so the mark there always uses the dark-theme colors. */
.site-footer { --mk-outer: #aac98a; --mk-inner: #e8c066; --mk-s1: #6b4a33; --mk-s2: #9a6b43; --mk-s3: #d1ab72; --mk-s4: #5fa9a4; --mk-foot: #d1ab72; --mk-ground: #e08a63; --mk-sun: #e8c066; }

/* ── Header and navigation ─────────────────────────────────────────── */
.site-header { background: var(--header-bg); border-bottom: 3px solid var(--header-rule); position: sticky; top: 0; z-index: 1000; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 4.25rem; flex-wrap: wrap; }
.brand-lockup { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: inherit; padding: var(--space-1) 0; }
a.brand-lockup:hover { opacity: .88; }
.brand-lockup .brand-mark { width: 44px; height: 44px; flex: none; }
.brand-lockup .brand-title { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--heading); margin: 0; }
.brand-lockup .brand-motto { display: block; font-size: .8125rem; line-height: 1.3; color: var(--muted); margin: 0; }
.brand-lockup.on-dark .brand-title { color: #f4ecdd; }
.brand-lockup.on-dark .brand-motto { color: var(--footer-muted); }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); flex: none;
  background: transparent; color: var(--ghost-text); border: 2px solid var(--ghost); border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-header .brand-lockup { flex: 1 1 0; min-width: 0; }
.site-header__nav-wrap { display: contents; }
.site-nav { flex-basis: 100%; order: 3; border-top: 1px solid var(--border); }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--space-2) 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-1);
  color: var(--heading); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--link); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ochre); }
.site-nav .nav-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-2) 0 var(--space-3); }

.lang-switch, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3);
  background: transparent; color: var(--heading); border: 2px solid var(--border-strong); border-radius: 999px;
  font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.lang-switch:hover, .theme-toggle:hover { background: var(--ghost-hover); color: var(--heading); }
.theme-toggle svg, .th-link svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--btn); color: var(--btn-text);
  transition: background var(--ease), transform 150ms ease-out;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-text); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--secondary { background: var(--btn2); color: var(--btn2-text); }
.btn--secondary:hover { background: var(--btn2-hover); color: var(--btn2-text); }
.btn--ghost { background: transparent; color: var(--ghost-text); border-color: var(--ghost); }
.btn--ghost:hover { background: var(--ghost-hover); color: var(--ghost-text); }
.btn--small { min-height: 44px; padding: .45rem 1.15rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.btn svg { width: 20px; height: 20px; flex: none; }
button[disabled] { opacity: .65; cursor: progress; }

/* ── Hero and page heads ───────────────────────────────────────────── */
.hero { background: var(--bg) radial-gradient(70% 90% at 82% 8%, var(--hero-glow), transparent 70%); padding: var(--space-6) 0 var(--space-5); position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: var(--space-5); align-items: center; position: relative; }
.hero h1 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -.02em; margin-bottom: var(--space-3); }
.hero__art { display: flex; justify-content: center; }
.hero__art svg, .hero__art img { width: 100%; max-width: 30rem; }
.hero__art img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 160px 160px var(--radius) var(--radius); box-shadow: var(--shadow); }
.art-sky { fill: var(--art-sky); } .art-frame { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.art-sun { fill: var(--art-sun); } .art-glow { fill: var(--art-glow); opacity: .28; }
.art-hill-1 { fill: var(--art-hill-1); } .art-hill-2 { fill: var(--art-hill-2); } .art-hill-3 { fill: var(--art-hill-3); } .art-ground { fill: var(--art-ground); }
.art-stone-1 { fill: var(--life); } .art-stone-2 { fill: var(--learn); } .art-stone-3 { fill: var(--serve); } .art-stone-4 { fill: var(--works); }

.page-head { background: var(--surface-2); position: relative; padding: var(--space-5) 0 calc(var(--space-5) + 1.5rem); margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: var(--space-2); }
.page-head .lead { margin: 0; color: var(--muted); }
.page-head + .section { padding-top: var(--space-3); }
.breadcrumb { font-size: .9375rem; margin: 0 0 var(--space-3); }
.pillar-head { border-top: 8px solid var(--accent); }

/* ── Cards, badges ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-4) var(--space-3); box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform var(--ease); }
a.card:hover { transform: translateY(-2px); }
.card h3 { margin-bottom: var(--space-2); }

/* The "standing stone": an arch-topped badge used for pillar icons and event dates. */
.stone {
  display: grid; place-items: center; flex: none; width: 3.5rem; height: 4rem;
  border-radius: 1.75rem 1.75rem .5rem .5rem; background: var(--accent-c, var(--surface-3)); color: var(--accent, var(--heading));
  border: 2px solid var(--accent, var(--border-strong));
}
.stone svg { width: 1.6rem; height: 1.6rem; }
.pillar-card { display: flex; flex-direction: column; gap: 0; }
.pillar-card .stone { margin-bottom: var(--space-3); }
.pillar-card h2, .pillar-card h3 { color: var(--accent, var(--heading)); }
.pillar-card .first { color: var(--muted); font-size: .9375rem; margin-bottom: var(--space-3); }
.pillar-card .first strong { color: var(--text); }
.pillar-card .more { margin-top: auto; font-weight: 700; }
.pillar--life { --accent: var(--life); --accent-c: var(--life-c); }
.pillar--learn { --accent: var(--learn); --accent-c: var(--learn-c); }
.pillar--serve { --accent: var(--serve); --accent-c: var(--serve-c); }
.pillar--works { --accent: var(--works); --accent-c: var(--works-c); }

.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); }
.badge--gathering { background: var(--learn-c); color: var(--learn); border-color: var(--learn); }
.badge--service_day { background: var(--serve-c); color: var(--serve); border-color: var(--serve); }
.badge--workshop { background: var(--life-c); color: var(--life); border-color: var(--life); }
.badge--class { background: var(--works-c); color: var(--works); border-color: var(--works); }

/* ── Events ────────────────────────────────────────────────────────── */
.event-card { display: grid; gap: var(--space-2); }
.event-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.event-head > div { min-width: 0; }
.event-head h3 { margin-bottom: var(--space-2); }
.date-stone { --accent: var(--learn); --accent-c: var(--learn-c); font-family: var(--font-heading); line-height: 1; text-align: center; width: 4rem; height: 4.5rem; border-radius: 2rem 2rem .5rem .5rem; align-content: center; gap: 0; }
.date-stone .m { display: block; font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.date-stone .d { display: block; font-size: 1.75rem; font-weight: 700; margin-top: 2px; }
.event-meta { list-style: none; padding: 0; margin: var(--space-2) 0 0; color: var(--muted); font-size: .9375rem; }
.event-meta li { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0 0 4px; }
.event-meta svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--link); }
.next-card { border-left: 8px solid var(--accent, var(--link)); }
.next-card--learn { --accent: var(--learn); --accent-c: var(--learn-c); }
.next-card--serve { --accent: var(--serve); --accent-c: var(--serve-c); }
.next-card--serve .date-stone { --accent: var(--serve); --accent-c: var(--serve-c); }
.empty { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: var(--space-4); background: var(--surface); color: var(--muted); }
.empty p:last-child { margin-bottom: 0; }

/* ── Stats ─────────────────────────────────────────────────────────── */
.stats { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; margin: 0; }
.stat { display: flex; flex-direction: column; text-align: center; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-3); }
.stat dd { margin: 0; }
.stat__l { order: 2; display: block; margin-top: var(--space-1); font-size: .9375rem; color: var(--muted); }
.stat__n { order: 1; display: block; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; line-height: 1.1; color: var(--stat); }

/* ── Callout, steps, timeline ──────────────────────────────────────── */
.callout { background: linear-gradient(135deg, var(--callout-a), var(--callout-b)); color: var(--callout-text); border-radius: var(--radius); padding: var(--space-5) var(--space-4); border-left: 8px solid var(--callout-rule); }
.callout h2, .callout h3 { color: var(--callout-text); }
.callout .btn { background: #fcf8ef; color: #263c1f; }
.callout .btn:hover { background: #fff; color: #263c1f; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-3); }
.step.card { counter-increment: step; position: relative; padding-left: 4.5rem; margin: 0; }
.step.card::before {
  content: counter(step); position: absolute; left: var(--space-3); top: var(--space-3); width: 2.75rem; height: 3.25rem;
  border-radius: 1.4rem 1.4rem .4rem .4rem; display: grid; place-items: center; padding-top: .25rem;
  background: var(--btn); color: var(--btn-text); font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem;
}
.step--highlight { border-color: var(--ochre); box-shadow: 0 0 0 2px var(--ochre), var(--shadow); }
.step h3 { margin-bottom: var(--space-1); }
.step p { margin-bottom: var(--space-2); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.timeline li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-top: 8px solid var(--ochre); border-radius: var(--radius); padding: var(--space-3); }
.timeline .when { font-family: var(--font-heading); font-size: .9375rem; font-weight: 500; color: var(--link); margin: 0 0 4px; }
.timeline h3 { margin-bottom: var(--space-1); }
.timeline p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: 1rem; height: .55rem; border-left: 3px solid var(--serve); border-bottom: 3px solid var(--serve); transform: rotate(-45deg); }
.split { display: grid; gap: var(--space-4); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.faq summary { cursor: pointer; padding: var(--space-3); font-weight: 700; font-family: var(--font-heading); font-size: 1.125rem; color: var(--heading); min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--link); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 var(--space-3) var(--space-3); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── Forms ─────────────────────────────────────────────────────────── */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-3); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-3); min-width: 0; }
.form legend { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--heading); padding: 0; margin-bottom: var(--space-2); }
.field { margin-bottom: var(--space-3); }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .hint { display: block; font-size: .9375rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.field .req { color: var(--muted); font-weight: 400; font-size: .875rem; }
.input, .select, .textarea {
  display: block; width: 100%; min-height: 48px; padding: .6rem 1rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 2px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--ease);
}
.textarea { min-height: 7.5rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 2px; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--err); border-width: 3px; }
.field-error { color: var(--err); font-weight: 700; font-size: .9375rem; margin: 6px 0 0; }
.field-error::before { content: "\26A0\FE0E\00a0"; }
.row { display: grid; gap: 0 var(--space-3); }
.choice { display: flex; align-items: flex-start; gap: var(--space-2); min-height: 44px; padding: 6px 0; margin: 0; }
.choice input { width: 1.5rem; height: 1.5rem; flex: none; margin: 2px 0 0; accent-color: var(--btn); }
.choice label { margin: 0; font-weight: 400; cursor: pointer; }
.choices { display: grid; gap: 0 var(--space-3); }
.alert { border-radius: var(--radius-sm); padding: var(--space-3); margin-bottom: var(--space-4); border: 2px solid; background: var(--surface-2); }
.alert--error { background: var(--err-c); border-color: var(--err); color: var(--text); }
.alert--error h2 { font-size: 1.125rem; margin-bottom: var(--space-1); color: var(--err); }
.alert--error ul { margin: 0; }
.alert--success { background: var(--ok-c); border-color: var(--ok); color: var(--text); }
.alert--success h1, .alert--success h2 { color: var(--ok); }
.alert--info { background: var(--info-c); border-color: var(--info); color: var(--text); }
.alert--info h1, .alert--info h2 { color: var(--info); }
.form-note { font-size: .9375rem; color: var(--muted); margin-top: var(--space-3); }
.turnstile { margin: var(--space-3) 0; min-height: 65px; }

/* ── Lists ─────────────────────────────────────────────────────────── */
.two-col { display: grid; gap: var(--space-4); }
.plain-list { list-style: none; padding: 0; }
.partners { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 4.5rem; padding: var(--space-6) 0 var(--space-5); position: relative; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { color: #f4ecdd; font-size: .9375rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--space-2); }
.site-footer p { color: var(--footer-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-grid { display: grid; gap: var(--space-5); }
.footer-bottom { border-top: 1px solid rgba(244, 236, 221, .28); margin-top: var(--space-5); padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; font-size: .9375rem; }
.footer-bottom p { margin: 0; }
.footer-about { margin-top: var(--space-3); }
.footer-note { margin-top: .75rem; font-size: .9375rem; }
.footer-controls { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.site-footer .lang-switch, .site-footer .theme-toggle { color: #f4ecdd; border-color: rgba(244, 236, 221, .7); }
.site-footer .lang-switch:hover, .site-footer .theme-toggle:hover { background: rgba(244, 236, 221, .14); color: #fff; }
.site-footer :focus-visible { outline-color: #f4ecdd; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .grid--2, .two-col, .split { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .row--2 { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .form { padding: var(--space-5); }
}
@media (min-width: 768px) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.375rem; }
  .container { padding: 0 var(--space-5); }
  .hero { padding: var(--space-7) 0 var(--space-6); }
  .hero h1 { font-size: 3.5rem; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-6); }
  .section { padding: var(--space-7) 0; }
  .card { padding: var(--space-4); }
  .grid { gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .lead { font-size: 1.25rem; }
  .stat__n { font-size: 3rem; }
  .brand-lockup .brand-title { font-size: 1.125rem; }
  .brand-lockup .brand-motto { font-size: .875rem; }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .site-header__bar { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; border-top: 0; flex-basis: auto; order: 0; }
  .js .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: var(--space-1); padding: 0; }
  .site-nav .nav-actions { padding: 0 0 0 var(--space-2); }
  .site-nav a:not(.btn) { padding: 0 .4rem; font-size: .9375rem; white-space: nowrap; }
  .site-nav .nav-actions { gap: .375rem; }
  .site-header .brand-lockup .brand-title { font-size: 1rem; }
  .site-header .btn--small { padding: .4rem 1rem; }
  .site-header .brand-lockup { flex: none; }
  .site-header__nav-wrap { display: flex; align-items: center; flex: 1 1 auto; justify-content: flex-end; }
  .site-header .theme-toggle span, .site-header .th-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .site-header .theme-toggle, .site-header .th-link { padding: 0; width: 44px; }
  .site-header .lang-switch { padding: 0 .75rem; }
}


/* ── TrueHeart (service ledger) ────────────────────────────────────── */
.tabs ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-4); align-items: center; }
.tabs li { margin: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--border-strong); text-decoration: none; font-weight: 600; color: var(--heading); }
.tabs a:hover { background: var(--ghost-hover); color: var(--heading); }
.tabs a[aria-current="page"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.tabs__end { margin-left: auto; }
.tabs__end form { margin: 0; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface-2); color: var(--heading); font-family: var(--font-heading); font-weight: 500; white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tfoot th, .table tfoot td { background: var(--surface-2); color: var(--heading); font-weight: 700; border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr.is-voided td { color: var(--muted); text-decoration: line-through; }
.table tr.is-voided td .badge { text-decoration: none; }

.progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 1.125rem; border: 2px solid var(--border-strong); border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress::-webkit-progress-bar { background: var(--bg); }
.progress::-webkit-progress-value { background: var(--btn); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--btn); border-radius: 999px; }

.badge--entered { background: var(--surface-3); color: var(--text); }
.badge--verified { background: var(--serve-c); color: var(--serve); border-color: var(--serve); }
.badge--rejected { background: var(--err-c); color: var(--err); border-color: var(--err); }

.stats--three { grid-template-columns: 1fr; }
.stats--two { grid-template-columns: 1fr; max-width: 20rem; }
.stat--action .stat__n--small { font-size: 1rem; font-family: var(--font-body); }
.big { font-family: var(--font-heading); font-size: 1.75rem; color: var(--stat); }
.row--3 { grid-template-columns: 1fr; }
.form--filter { padding: var(--space-3); }
.inline-details { display: inline-block; margin-left: var(--space-2); }
.inline-details summary { cursor: pointer; color: var(--link); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.inline-details form { margin-top: var(--space-2); min-width: 14rem; }
.token { display: block; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; user-select: all; padding: var(--space-2); background: var(--surface-2); border-radius: var(--radius-sm); }
.token-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.token-row form { margin: 0; }
@media (min-width: 640px) { .stats--three { grid-template-columns: repeat(3, 1fr); } .row--3 { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, a.card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --border: var(--border-strong); }
}
@media (forced-colors: active) {
  .btn, .input, .select, .textarea, .card, .stone { border: 2px solid CanvasText; }
  .section--alt::before, .section--alt::after, .page-head::after, .site-footer::before { display: none; }
}
@media print {
  .site-header, .site-footer, .skip-link, .btn-row, .form, .hero__art { display: none; }
  body { background: #fff; color: #000; }
  .section--alt::before, .section--alt::after, .page-head::after { display: none; }
}
