/* IWWF Europe — components & layout */

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container--narrow { max-width: var(--container-narrow); }

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--d-2) var(--ease);
}
html[data-theme="dark"] .site-header { background: rgba(11,19,32,.85); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  height: 72px;
}
.site-logo { display: flex; align-items: center; gap: var(--s-3); font-family: var(--f-display); font-weight: 700; color: var(--c-text); letter-spacing: -0.01em; }
.site-logo img { height: 38px; width: auto; }
.site-logo { flex-shrink: 0; }
.site-logo__text { display: none; flex-direction: column; line-height: 1.15; }
.site-logo__text strong { font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-logo__text span { font-size: 10.5px; color: var(--c-text-muted); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 860px) { .site-logo__text { display: flex; } }

/* Nav */
.nav { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: var(--s-2); }
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--c-text); font-weight: 500; font-size: 15px;
  transition: background var(--d-1), color var(--d-1);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--c-surface-2); color: var(--c-text); }
.nav__link svg { width: 12px; height: 12px; opacity: .7; transition: transform var(--d-1) var(--ease); }
.nav__item.is-open .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--s-2);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--d-1) var(--ease), transform var(--d-1) var(--ease), visibility 0s linear var(--d-1);
}
.dropdown--wide { min-width: 300px; }
/* Invisible padding gap for hover */
.nav__item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
@media (min-width: 960px) {
  .nav__item:hover .dropdown,
  .nav__item:focus-within .dropdown,
  .nav__item.is-open .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition-delay: 0s;
  }
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }

.dropdown__link {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--c-text); font-size: 14px;
  transition: background var(--d-1);
}
.dropdown__link:hover { background: var(--c-surface-2); }
.dropdown__link small { display:block; color: var(--c-text-muted); font-size: 12px; margin-top: 2px; }

/* Header utilities */
.header-utils { display: flex; align-items: center; gap: var(--s-2); }

/* Compact language dropdown: one small button (current code) reveals the list */
.lang-menu { display: inline-flex; }
.lang-menu__btn { padding: 8px 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.lang-menu__code { letter-spacing: .02em; }
.lang-menu__panel { left: auto; right: 0; min-width: 84px; }
/* Works without JS at every width via hover/focus (JS adds click + ESC + outside-click) */
.lang-menu:hover .lang-menu__panel,
.lang-menu:focus-within .lang-menu__panel,
.lang-menu.is-open .lang-menu__panel {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.lang-menu .dropdown__link { text-transform: uppercase; font-weight: 600; text-align: center; }
.lang-menu .dropdown__link[aria-current="page"] { background: var(--c-surface-2); color: var(--c-primary); }

/* Language pill list — used only inside the mobile drawer now */
.lang-switch { display: flex; flex-wrap: wrap; gap: 0; padding: 1px; background: var(--c-surface-2); border-radius: var(--r-pill); }
.lang-switch a { padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--c-text-muted); border-radius: var(--r-pill); text-transform: uppercase; }
.lang-switch a:hover { color: var(--c-text); }
.lang-switch a[aria-current="page"] { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--sh-sm); }

.theme-toggle, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  color: var(--c-text); transition: background var(--d-1);
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--c-surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.nav-toggle { display: inline-flex; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 72px 0 0 0;
  width: 100vw;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  background: var(--c-surface);
  z-index: 1000;
  transform: translateY(-10px); opacity: 0; visibility: hidden;
  transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease), visibility 0s linear var(--d-2);
  overflow-y: auto;
  padding: var(--s-5);
  border-top: 1px solid var(--c-border);
  box-shadow: var(--sh-lg);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.mobile-nav__group { border-bottom: 1px solid var(--c-border); padding-block: var(--s-3); }
.mobile-nav__group h4 { font-size: 13px; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-2); }
.mobile-nav__link { display: block; padding: 12px 0; font-size: var(--t-md); color: var(--c-text); }
.mobile-nav__link.is-sub { padding: 8px 0 8px 12px; font-size: var(--t-base); color: var(--c-text-muted); }
body.nav-is-open { overflow: hidden; }
@media (min-width: 960px) { .mobile-nav { display: none; } }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface-2) 100%);
}
.hero__media {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: url(../img/hero-water.webp);
  background-size: cover; background-position: center;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0) 80%);
}
html[data-theme="dark"] .hero__media { opacity: .25; }
.hero__inner { position: relative; max-width: 880px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--c-surface); border: 1px solid var(--c-border);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-5);
}
.hero__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: var(--s-5);
}
.hero h1 .accent { color: var(--c-primary); }
.hero__lede {
  font-size: var(--t-md); color: var(--c-text-muted);
  max-width: 60ch; margin-bottom: var(--s-6);
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  transition: all var(--d-1) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--ghost { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { background: var(--c-surface-2); color: var(--c-text); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { filter: brightness(.92); color: #fff; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-7) 0; }
.section__head { max-width: 720px; margin-bottom: var(--s-7); }
.section__eyebrow {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--c-primary); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: var(--s-3);
}
.section__title { font-size: var(--t-2xl); margin-bottom: var(--s-4); letter-spacing: -0.02em; }
.section__lede { color: var(--c-text-muted); font-size: var(--t-md); }

/* ── Cards / Grid ──────────────────────────────────────────── */
.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Dedicated discipline grid: 1 col mobile, 2 col tablet, 4 col widescreen.
   Explicit column counts (not auto-fit) so wide desktop is always 4-wide. */
.discipline-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .discipline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .discipline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-1);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-primary); }
.card h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.card p { color: var(--c-text-muted); font-size: var(--t-sm); }
.card__icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--c-surface-2); color: var(--c-primary); display:inline-flex; align-items:center; justify-content:center; margin-bottom: var(--s-4); }
.card__icon svg { width: 22px; height: 22px; }

.card--feature { padding: 0; }
.card--feature .card__media { aspect-ratio: 4/3; overflow: hidden; }
.card--feature .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-3) var(--ease); }
.card--feature:hover .card__media img { transform: scale(1.05); }
.card--discipline .card__media {
  position: relative;
  height: clamp(150px, 15vw, 190px);
  background: var(--disc-media-bg);
}
/* Real image variants toggled by theme. Light is visible by default so a valid
   image always renders even if the theme JS never runs. */
.disc-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--s-4);
  transition: transform var(--d-3) var(--ease);
}
.disc-img--dark { display: none; }
html[data-theme="dark"] .disc-img--light { display: none; }
html[data-theme="dark"] .disc-img--dark { display: block; }
.card--discipline:hover .disc-img { transform: scale(1.04); }
.card--discipline .card__body { padding: var(--s-4) var(--s-4) var(--s-5); }
.card--discipline .card__body h3 { font-size: var(--t-md); margin-bottom: var(--s-2); }
.card--discipline .card__body p { font-size: var(--t-sm); }
.card--feature .card__body { padding: var(--s-5) var(--s-6) var(--s-6); }

/* ── Stats ──────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-5); }
.stat { padding: var(--s-5); border-left: 3px solid var(--c-primary); }
.stat__value { font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 800; color: var(--c-text); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--t-sm); color: var(--c-text-muted); margin-top: var(--s-2); }

/* ── External links list ─────────────────────────────── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.link-tile {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--d-1) var(--ease);
  font-weight: 500; color: var(--c-text);
}
.link-tile:hover { border-color: var(--c-primary); transform: translateY(-1px); box-shadow: var(--sh-sm); color: var(--c-text); }
.link-tile__name { display: flex; flex-direction: column; }
.link-tile__name small { font-size: 12px; color: var(--c-text-muted); font-weight: 400; }
.link-tile svg { width: 16px; height: 16px; color: var(--c-text-muted); transition: transform var(--d-1); }
.link-tile:hover svg { transform: translate(2px, -2px); color: var(--c-primary); }

/* ── Document list ─────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: var(--s-2); }
.doc-item {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--d-1) var(--ease);
  color: var(--c-text);
}
.doc-item:hover { border-color: var(--c-primary); background: var(--c-surface-2); color: var(--c-text); }
.doc-item__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface-2); border-radius: var(--r-sm);
  color: var(--c-primary);
}
.doc-item__icon svg { width: 18px; height: 18px; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__title { font-weight: 600; font-size: 15px; color: var(--c-text); }
.doc-item__meta { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.doc-item__action { color: var(--c-text-muted); }
.doc-item__action svg { width: 18px; height: 18px; }

.empty-state { padding: var(--s-7); text-align: center; color: var(--c-text-muted); border: 1px dashed var(--c-border); border-radius: var(--r-md); }
.skeleton { background: linear-gradient(90deg, var(--c-surface-2) 25%, var(--c-surface) 50%, var(--c-surface-2) 75%); background-size: 200% 100%; animation: skeleton 1.6s infinite; border-radius: var(--r-sm); }
@keyframes skeleton { 0%{background-position: 200% 0;} 100%{background-position:-200% 0;} }

/* ── Document library mock-ups ─────────────────────────────── */
.doc-mock {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-4), 3vw, var(--s-6));
  box-shadow: var(--sh-sm);
}
.doc-mock__toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px);
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-5);
}
.doc-search span,
.doc-sort span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-2);
}
.doc-search input,
.doc-sort select {
  width: 100%;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font: inherit;
}
.folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.folder-card {
  appearance: none;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-text);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  text-align: left;
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  cursor: pointer;
  transition: transform var(--d-1) var(--ease), border-color var(--d-1) var(--ease), background var(--d-1) var(--ease);
}
.folder-card:hover,
.folder-card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-border));
  background: color-mix(in srgb, var(--c-primary) 10%, var(--c-surface));
}
.folder-card__icon { color: var(--c-primary); font-size: 20px; line-height: 1; }
.folder-card strong { display: block; font-size: 15px; margin-bottom: 3px; }
.folder-card small { display: block; color: var(--c-text-muted); line-height: 1.35; }
.subfolder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.subfolder-chip {
  appearance: none;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-text);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--d-1) var(--ease), background var(--d-1) var(--ease);
}
.subfolder-chip:hover,
.subfolder-chip.is-active {
  border-color: color-mix(in srgb, var(--c-primary) 55%, var(--c-border));
  background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface));
}
.file-table { display: grid; gap: var(--s-3); }
.mock-file {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: var(--s-4);
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-bg);
  padding: var(--s-3);
}
.mock-file__type {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: var(--r-md);
  background: var(--c-primary-bg);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.mock-file__body h3 { font-size: var(--t-base); margin-bottom: 4px; }
.mock-file__body p { color: var(--c-text-muted); font-size: var(--t-sm); }
.mock-file__button { white-space: nowrap; }
@media (max-width: 760px) {
  .doc-mock__toolbar { grid-template-columns: 1fr; }
  .folder-grid { grid-template-columns: 1fr; }
  .mock-file { grid-template-columns: 52px 1fr; }
  .mock-file__button { grid-column: 1 / -1; justify-content: center; }
}

/* ── Confederation tree ─────────────────────────────── */
.tree { display: flex; flex-direction: column; gap: var(--s-6); }
.tree__node { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.tree__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  transition: background var(--d-1);
  border-left: 4px solid var(--c-primary);
  background: var(--c-surface-2);
}
.tree__head:hover { background: var(--c-bg); }
.tree__head h3 { font-size: var(--t-lg); margin: 0; }
.tree__head small { color: var(--c-text-muted); font-size: 13px; }
.tree__caret { transition: transform var(--d-2) var(--ease); color: var(--c-text-muted); flex-shrink: 0; }
.tree__caret svg { width: 18px; height: 18px; }
.tree__node[aria-expanded="true"] .tree__caret { transform: rotate(180deg); }
.tree__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--d-2) var(--ease);
}
.tree__node[aria-expanded="true"] .tree__body,
.council-photo[aria-expanded="true"] .tree__body { grid-template-rows: 1fr; }
.tree__body > div { overflow: hidden; }
.tree__inner { padding: var(--s-5); border-top: 1px solid var(--c-border); }
.tree__group { margin-bottom: var(--s-5); }
.tree__group:last-child { margin-bottom: 0; }
.tree__group h4 {
  font-size: 12px; font-weight: 600; color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: var(--s-3);
}
.tree__members { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-2) var(--s-4); }
.tree__member { padding: var(--s-2) 0; border-bottom: 1px solid var(--c-border); }
.tree__member:last-child { border-bottom: none; }
.tree__member strong { display: block; font-weight: 600; font-size: 14px; color: var(--c-text); }
.tree__member span { font-size: 12px; color: var(--c-text-muted); }

/* ── Confederation photo demo ─────────────────────────────── */
.people-directory { display: flex; flex-direction: column; gap: var(--s-7); }
.council-photo {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-4), 3vw, var(--s-7));
  box-shadow: var(--sh-sm);
}
.council-photo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 0;
  cursor: pointer;
}
.council-photo__head h2 { font-size: var(--t-xl); letter-spacing: -0.02em; margin-bottom: var(--s-2); }
.council-photo__head p { color: var(--c-text-muted); font-size: var(--t-sm); }
.council-photo__external { font-size: 13px; color: var(--c-text-muted); white-space: nowrap; }
.council-photo__actions { display: inline-flex; align-items: center; gap: var(--s-3); }
.council-photo__body > div > div { padding-top: var(--s-5); }
.council-photo[aria-expanded="true"] .tree__caret { transform: rotate(180deg); }
.people-group { margin-top: var(--s-5); }
.people-group:first-of-type { margin-top: 0; }
.people-group h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--s-3);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: var(--s-4);
}
.people-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-width: 0;
}
.people-card__media {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--c-primary) 10%, var(--c-surface));
}
.people-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 700;
  color: var(--c-primary);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c-primary) 22%, transparent), transparent 36%),
    var(--c-surface-2);
}
.people-card__body { padding: var(--s-3); }
.people-card__body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}
.people-card__body span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--c-text-muted);
}
@media (max-width: 560px) {
  .council-photo__head { display: block; }
  .council-photo__external { display: inline-block; margin-top: var(--s-3); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
}

/* ── Form ─────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form__row { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: flex; flex-direction: column; gap: var(--s-2); }
.form__field label { font-size: 13px; font-weight: 600; color: var(--c-text); }
.form__field label .req { color: var(--c-accent); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-size: var(--t-base);
  transition: border-color var(--d-1), box-shadow var(--d-1);
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent);
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__field .err { color: var(--c-error); font-size: 12px; min-height: 1em; }
.form__field.has-error input, .form__field.has-error select, .form__field.has-error textarea { border-color: var(--c-error); }

.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }

.form__status { padding: var(--s-4); border-radius: var(--r-sm); font-size: var(--t-sm); display: none; }
.form__status[data-state="ok"] { display: block; background: color-mix(in srgb, var(--c-success) 12%, transparent); color: var(--c-success); border: 1px solid color-mix(in srgb, var(--c-success) 35%, transparent); }
.form__status[data-state="err"] { display: block; background: color-mix(in srgb, var(--c-error) 10%, transparent); color: var(--c-error); border: 1px solid color-mix(in srgb, var(--c-error) 32%, transparent); }
.form__status[data-state="loading"] { display: block; background: var(--c-surface-2); color: var(--c-text-muted); border: 1px solid var(--c-border); }

/* ── Footer ─────────────────────────────── */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s-7); margin-bottom: var(--s-7); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-size: 13px; font-weight: 600; color: var(--c-text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--c-text-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--c-primary); }
.footer__about p { color: var(--c-text-muted); font-size: 14px; max-width: 36ch; }
.footer__about .site-logo { margin-bottom: var(--s-4); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  padding-top: var(--s-5); border-top: 1px solid var(--c-border);
  font-size: 13px; color: var(--c-text-muted);
}
.footer-bottom a { color: var(--c-text-muted); }
.footer-bottom a:hover { color: var(--c-primary); }
.footer-tools { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

/* ── Page intro ─────────────────────────────── */
.page-intro { padding: var(--s-7) 0 var(--s-5); border-bottom: 1px solid var(--c-border); }
.page-intro h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: var(--s-3); letter-spacing: -0.02em; }
.page-intro p { color: var(--c-text-muted); font-size: var(--t-md); max-width: 60ch; }
.breadcrumb { font-size: 13px; color: var(--c-text-muted); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

/* ── Reveal animations ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Counter */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* Selection */
::selection { background: color-mix(in srgb, var(--c-primary) 28%, transparent); color: var(--c-text); }

/* ── Misc ─────────────────────────────── */
.text-muted { color: var(--c-text-muted); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
hr { border: none; border-top: 1px solid var(--c-border); margin: var(--s-6) 0; }

/* Two-column */
.two-col { display: grid; grid-template-columns: 1fr; gap: var(--s-7); align-items: start; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.4fr 1fr; gap: var(--s-8); } }

.aside-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); position: sticky; top: 100px; }
.aside-card h4 { margin-bottom: var(--s-3); }
.aside-card p { font-size: var(--t-sm); color: var(--c-text-muted); margin-bottom: var(--s-3); }

/* External link icon */
.ext::after {
  content: ''; display: inline-block; width: 12px; height: 12px;
  margin-left: 4px; vertical-align: -1px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7'/><path d='M7 7h10v10'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7'/><path d='M7 7h10v10'/></svg>") center/contain no-repeat;
  opacity: .7;
}
