/* ==========================================================
   Dr Mariette Frazer — site styles
   Tokens per design-system/MASTER.md
   ========================================================== */

:root {
  /* Colour tokens */
  --color-navy: #16324F;
  --color-turquoise: #22C7B8;
  --color-turquoise-ink: #0E7C72;  /* accessible turquoise for text on light */
  --color-white: #FAFCFC;
  --color-grey: #EEF3F5;
  --color-charcoal: #1E2B36;
  --color-hairline: #E2E9EC;
  --color-navy-soft: #24466B;

  /* Semantic */
  --bg: var(--color-white);
  --bg-alt: var(--color-grey);
  --text: var(--color-charcoal);
  --text-muted: #4E6274;
  --heading: var(--color-navy);
  --link: var(--color-turquoise-ink);
  --accent: var(--color-turquoise);

  /* Type */
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (8px rhythm) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;

  --radius: 12px;
  --maxw: 1200px;
  --shadow-hover: 0 12px 32px rgba(22, 50, 79, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; color: var(--heading); }

p { max-width: 72ch; }
.lede { font-size: 19px; color: var(--text-muted); max-width: 62ch; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-turquoise-ink);
  margin-bottom: var(--s-2);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 10px;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-3); }
section { padding: var(--s-7) 0; }
@media (max-width: 768px) { section { padding: var(--s-6) 0; } }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--color-navy); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: #C9D6E2; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--color-navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 252, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: var(--s-3);
}
.brand { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--color-navy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .brand-dot { color: var(--accent); }

.primary-nav ul { display: flex; gap: 4px; list-style: none; align-items: center; }
.primary-nav a {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  color: var(--color-charcoal); font-size: 15px; font-weight: 500;
}
.primary-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.primary-nav a[aria-current="page"] {
  color: var(--color-navy); font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--accent);
  border-radius: 8px 8px 0 0;
}
.nav-cta {
  background: var(--accent) !important; color: var(--color-charcoal) !important;
  font-weight: 600 !important; border-radius: 999px !important; padding: 10px 20px !important;
}
.nav-cta:hover { filter: brightness(0.94); }

.nav-more { position: relative; }
.nav-more > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 500 15px var(--font-body); color: var(--color-charcoal); border-radius: 8px;
}
.nav-more > button:hover { background: var(--bg-alt); }
.nav-more-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px;
  background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 8px; display: none;
}
.nav-more-menu.open { display: block; }
.nav-more-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; }

.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer; padding: 10px;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-navy); margin: 5px auto; transition: transform 200ms ease; }

/* Nav collapses at 1150px (not 1024px): with seven primary tabs the bar
   would otherwise stack under the brand between ~1025px and ~1149px. */
@media (max-width: 1150px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-white); border-bottom: 1px solid var(--color-hairline);
    padding: var(--s-2) var(--s-3) var(--s-3);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: 14px; font-size: 16px; }
  .nav-more-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 var(--s-2); }
  .nav-more > button { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
  color: var(--color-white);
  padding: var(--s-8) 0;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--color-white); }
.hero p { color: #C9D6E2; }
.hero-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s-6); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: var(--s-6) 0; } }

.portrait-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--color-navy-soft);
  border: 1px solid rgba(34, 199, 184, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: #8FA6BC; font-size: 14px; text-align: center; padding: var(--s-3);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Photo-forward hero portrait (justcreative-style) */
.hero-portrait {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5; max-width: 460px; margin-left: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  border: 1px solid rgba(34, 199, 184, 0.4); pointer-events: none;
}
.hero-portrait .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(30, 43, 54, 0.86); backdrop-filter: blur(6px);
  color: #fff; border-radius: 12px; padding: 10px 16px;
  font-size: 13.5px; line-height: 1.35; border: 1px solid rgba(34,199,184,0.3);
}
.hero-portrait .badge strong { color: var(--accent); display: block; font-family: var(--font-head); font-size: 15px; }

/* Credibility strip */
.cred-strip { background: var(--color-charcoal); padding: var(--s-4) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cred-strip .container { display: flex; align-items: center; gap: var(--s-3) var(--s-5); flex-wrap: wrap; justify-content: center; }
.cred-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8FA6BC; font-weight: 600; }
.cred-items { display: flex; gap: var(--s-3) var(--s-5); flex-wrap: wrap; justify-content: center; align-items: center; }
.cred-items span { font-family: var(--font-head); font-size: 16.5px; color: #C9D6E2; white-space: nowrap; }
@media (max-width: 640px) { .cred-items span { font-size: 15px; } }

/* Section-photo (About / Services bio frames) */
.bio-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-hover); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cut-out figure on a white background — no frame, no shadow, no crop, so it
   reads as a cut-out rather than a photo in a box. */
.cutout-photo { display: flex; justify-content: center; }
.cutout-photo img {
  width: 100%; max-width: 420px; height: auto; display: block;
  /* No blend hack needed: the export is flattened onto the exact page
     background (#FAFCFC), so the edges are already invisible. NB this means it
     only sits cleanly on the default background — not on .section-alt or dark
     bands. A transparent master is kept in Info/media-images/ for those. */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 600 15.5px var(--font-body); cursor: pointer; border: 2px solid transparent;
  transition: filter 180ms ease, background 180ms ease, transform 180ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--color-charcoal); }
.btn-primary:hover { filter: brightness(0.94); }
.btn-outline { border-color: var(--color-navy); color: var(--color-navy); background: transparent; }
.btn-outline:hover { background: var(--color-navy); color: #fff; }
.hero .btn-outline, .section-dark .btn-outline { border-color: #C9D6E2; color: #EAF1F7; }
.hero .btn-outline:hover, .section-dark .btn-outline:hover { background: rgba(250,252,252,0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--radius);
  padding: var(--s-4);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.section-alt .card { background: var(--color-white); }
.card h3 a { color: var(--heading); }
.card .meta { font-size: 13.5px; color: var(--text-muted); margin-bottom: var(--s-1); }
.card .meta strong { color: var(--color-turquoise-ink); font-weight: 600; }

.icon-chip {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(34, 199, 184, 0.14); color: var(--color-turquoise-ink); margin-bottom: var(--s-2);
}
.icon-chip svg { width: 22px; height: 22px; }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 500;
  padding: 4px 12px; border-radius: 999px; background: var(--bg-alt);
  color: var(--text-muted); border: 1px solid var(--color-hairline);
}
.tag-accent { background: rgba(34,199,184,0.14); color: var(--color-turquoise-ink); border-color: rgba(34,199,184,0.3); }

/* ---------- Publication list ---------- */
.pub-item {
  display: grid; grid-template-columns: 84px 1fr; gap: var(--s-3);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--color-hairline);
}
.pub-year { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--color-navy); }
.pub-item h3 { font-family: var(--font-body); font-size: 17.5px; font-weight: 600; line-height: 1.45; }
.pub-item .authors { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; }
.pub-item .outlet { font-size: 14.5px; font-style: italic; color: var(--text-muted); }
.pub-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); align-items: center; }
.pub-links a, .pub-links button {
  font-size: 13.5px; font-weight: 600; color: var(--color-turquoise-ink);
  background: none; border: 0; cursor: pointer; font-family: var(--font-body); padding: 4px 0;
}
.pub-pending { font-size: 13px; color: var(--text-muted); font-style: italic; }
@media (max-width: 640px) { .pub-item { grid-template-columns: 1fr; gap: var(--s-1); } }

/* ---------- Media news feed ---------- */
.media-feed { display: grid; gap: var(--s-4); }

/* Cover art — self-contained branded gradients, no external images */
.media-cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px; padding: var(--s-3); overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; text-decoration: none;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: var(--color-white);
}
.media-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120px 120px at 82% 18%, rgba(34,199,184,0.55), transparent 70%),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.35) 1px, transparent 0) repeat;
  background-size: auto, 22px 22px;
  opacity: 0.9;
}
.media-cover > * { position: relative; z-index: 1; }

/* Photo covers: the article image sits under a navy brand wash so the feed
   still reads as one system rather than six unrelated stock photos. */
.media-cover.has-photo { background: var(--color-navy); }
.media-cover .cover-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.62;
}
.media-cover.has-photo::after {
  background: linear-gradient(160deg, rgba(22,50,79,0.72) 0%, rgba(22,50,79,0.28) 45%, rgba(14,124,114,0.55) 100%);
  opacity: 1;
}
.media-cover .cover-credit {
  position: absolute; right: 10px; bottom: 8px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.02em; color: rgba(255,255,255,0.75);
}
.media-featured .media-cover .cover-credit { font-size: 11px; }
.media-cover .cover-topic {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background: rgba(250,252,252,0.16); border: 1px solid rgba(255,255,255,0.22);
}
.media-cover .cover-year { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; }
.media-cover .cover-outlet { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.9; text-transform: uppercase; }
.media-cover .cover-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); }

/* Per-theme cover palettes */
.cover-ai-service { background: linear-gradient(135deg, #0E7C72 0%, var(--color-navy) 100%); }
.cover-leadership { background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%); }
.cover-experience { background: linear-gradient(135deg, var(--color-navy-soft) 0%, #0E7C72 100%); }
.cover-smartcity  { background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-navy-soft) 100%); }
.cover-resilience { background: linear-gradient(135deg, var(--color-navy) 0%, #0E7C72 100%); }
.cover-innovation { background: linear-gradient(135deg, var(--color-navy-soft) 0%, var(--color-navy) 100%); }
.cover-research   { background: linear-gradient(135deg, var(--color-charcoal) 0%, #0E7C72 100%); }
.cover-radio      { background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-navy) 100%); }

/* Standard feed card */
.media-card { display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--color-hairline); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease; }
.media-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.media-card .media-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-3); }
.media-meta { font-size: 13px; color: var(--text-muted); margin-bottom: var(--s-1); }
.media-meta strong { color: var(--color-turquoise-ink); font-weight: 600; }
.media-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.4; }
.media-card h3 a { color: var(--heading); text-decoration: none; }
.media-card h3 a:hover { color: var(--color-turquoise-ink); }
.media-teaser { font-size: 14.5px; color: var(--text-muted); margin-top: var(--s-2); }
.media-readmore { margin-top: auto; padding-top: var(--s-3); font-size: 13.5px; font-weight: 600;
  color: var(--color-turquoise-ink); text-decoration: none; align-self: flex-start; }
.media-readmore:hover { text-decoration: underline; }
.media-highlight { display: inline-block; margin-top: var(--s-2); }

/* Featured lead story */
.media-featured { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff;
  border: 1px solid var(--color-hairline); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease; }
.media-featured:hover { box-shadow: var(--shadow-hover); }
.media-featured .media-cover { border-radius: 0; min-height: 280px; }
.media-featured .cover-year { font-size: 60px; }
.media-featured .media-body { display: flex; flex-direction: column; justify-content: center; padding: var(--s-5); }
.media-featured h3 { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; }
.media-featured .media-teaser { font-size: 16px; margin-top: var(--s-3); }
@media (max-width: 768px) {
  .media-featured { grid-template-columns: 1fr; }
  .media-featured .media-cover { border-radius: 0; min-height: 200px; }
  .media-featured .media-body { padding: var(--s-4); }
}

/* ---------- Framework figure (authoritative diagram) ---------- */
.fw-figure { margin: 0; }
.fw-figure img {
  width: 100%; height: auto; display: block; background: #fff;
  border: 1px solid var(--color-hairline); border-radius: var(--radius);
}
.fw-figure a { display: block; }
.fw-figure a:hover img { box-shadow: var(--shadow-hover); }
.fw-figure figcaption {
  font-size: 14px; color: var(--text-muted); margin-top: var(--s-2); max-width: 84ch; line-height: 1.6;
}

/* LDPMI maturity scale */
.ldpmi-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); align-items: center;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; font-size: 14.5px;
}
.ldpmi-row .lvl { font-weight: 600; }
.ldpmi-row .pct { font-size: 13px; opacity: 0.85; white-space: nowrap; }

/* Image inside a card (sits above the card's text) */
.card-media {
  width: 100%; height: auto; display: block; border-radius: 8px;
  border: 1px solid var(--color-hairline); margin-bottom: var(--s-2); background: #fff;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--color-navy); }
.form-field .req { color: var(--color-turquoise-ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--color-hairline); border-radius: 8px;
  font: 15px var(--font-body); color: var(--text); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.form-consent input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
/* Honeypot — hidden from people, visible to naive bots. Not display:none, which
   some bots detect; kept out of the layout and out of the tab order instead. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--s-3); padding: var(--s-3); border-radius: 8px; font-size: 14.5px; display: none; }
.form-status.is-error { display: block; background: #FDECEC; border: 1px solid #F5C2C2; color: #8A2020; }
.form-status.is-ok { display: block; background: rgba(34,199,184,0.12); border: 1px solid rgba(34,199,184,0.4); color: var(--color-turquoise-ink); }

/* ---------- Student voice / quote cards ---------- */
.quote-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--color-hairline); border-radius: var(--radius);
  padding: var(--s-4); position: relative;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.section-alt .quote-card { background: var(--color-white); }
.quote-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.quote-card::before {
  content: "\201C"; font-family: var(--font-head); font-size: 58px; line-height: 0.8;
  color: var(--accent); opacity: 0.45; margin-bottom: var(--s-1);
}
.quote-card .quote { font-size: 15.5px; font-style: italic; color: var(--text); }
.quote-card .attrib {
  margin-top: auto; padding-top: var(--s-3); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--color-turquoise-ink);
}
.quote-card.is-featured { border-left: 4px solid var(--accent); }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center;
  padding: var(--s-3); background: var(--bg-alt); border-radius: var(--radius);
  margin-bottom: var(--s-4);
}
.filter-bar label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.filter-bar select, .filter-bar input[type="search"] {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--color-hairline);
  border-radius: 8px; font: 15px var(--font-body); color: var(--text); background: #fff;
}
.filter-bar input[type="search"] { flex: 1 1 220px; }
.filter-count { font-size: 14px; color: var(--text-muted); margin-left: auto; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); text-align: center; }
@media (max-width: 768px) { .stat-band { grid-template-columns: 1fr 1fr; } }
.stat-band .num { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--accent); }
.stat-band .lbl { font-size: 14px; color: #C9D6E2; letter-spacing: 0.04em; }

/* ---------- Detail / definition rows ---------- */
.def-grid { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-2) var(--s-4); }
.def-grid dt { font-weight: 600; color: var(--color-navy); font-size: 14.5px; }
.def-grid dd { font-size: 15.5px; }
@media (max-width: 640px) { .def-grid { grid-template-columns: 1fr; } .def-grid dd { margin-bottom: var(--s-2); } }

/* ---------- Phases (research design) ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); counter-reset: phase; }
@media (max-width: 1024px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .phases { grid-template-columns: 1fr; } }
.phase { position: relative; padding-top: var(--s-2); }
.phase::before {
  counter-increment: phase; content: "Phase " counter(phase);
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-turquoise-ink); margin-bottom: var(--s-1);
}
.phase .card { height: 100%; }

/* ---------- Citation block ---------- */
.cite-block {
  background: var(--bg-alt); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-3) var(--s-4); font-size: 14.5px; position: relative;
}
.cite-block code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; white-space: pre-wrap; display: block; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  border: 1px solid var(--color-hairline); background: #fff; border-radius: 8px;
  font: 600 12.5px var(--font-body); color: var(--color-turquoise-ink);
  padding: 6px 12px; cursor: pointer; min-height: 32px;
}
.copy-btn:hover { background: var(--bg-alt); }

/* ---------- Accordion ---------- */
details.accordion { border: 1px solid var(--color-hairline); border-radius: var(--radius); margin-bottom: var(--s-2); background: #fff; }
details.accordion summary {
  cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 600; color: var(--color-navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
}
details.accordion summary::-webkit-details-marker { display: none; }
details.accordion summary::after { content: "+"; font-size: 22px; color: var(--color-turquoise-ink); flex-shrink: 0; }
details.accordion[open] summary::after { content: "–"; }
details.accordion .accordion-body { padding: 0 var(--s-4) var(--s-4); }

/* ---------- FAQ (About page) ---------- */
.faq details {
  border: 1px solid var(--color-hairline); border-radius: var(--radius);
  margin-bottom: var(--s-2); background: #fff;
}
.faq summary {
  cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 600;
  color: var(--color-navy); font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--color-turquoise-ink); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--color-hairline); }
.faq details p { padding: var(--s-3) var(--s-4); font-size: 15.5px; color: var(--text); max-width: 74ch; }

/* ---------- Related content ---------- */
.related-block { border-top: 2px solid var(--accent); background: var(--bg-alt); border-radius: var(--radius); padding: var(--s-4); }
.related-block h3 { margin-bottom: var(--s-2); }
.related-block ul { list-style: none; }
.related-block li { padding: 8px 0; border-bottom: 1px solid var(--color-hairline); font-size: 15px; }
.related-block li:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-charcoal); color: #AFC0CE; padding: var(--s-7) 0 var(--s-4); font-size: 14.5px; }
.site-footer h4 { color: var(--color-white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-2); }
.site-footer a { color: #AFC0CE; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.footer-brand { font-family: var(--font-head); font-size: 22px; color: var(--color-white); margin-bottom: var(--s-2); }
.footer-bottom { border-top: 1px solid rgba(175,192,206,0.2); padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; }
.footer-tagline { color: var(--accent); font-weight: 600; letter-spacing: 0.06em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Framework diagram ---------- */
.fw-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 900px) { .fw-layout { grid-template-columns: 1fr; } }
.fw-diagram svg { width: 100%; height: auto; display: block; }
.fw-ring { cursor: pointer; transition: opacity 180ms ease; }
.fw-ring:hover, .fw-ring:focus { opacity: 0.82; outline: none; }
.fw-ring.active { stroke: var(--accent); stroke-width: 3; }
.fw-panel { position: sticky; top: 96px; }
.fw-legend { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.fw-legend button {
  border: 1px solid var(--color-hairline); background: #fff; border-radius: 999px;
  padding: 8px 16px; font: 500 13.5px var(--font-body); cursor: pointer; min-height: 40px;
  color: var(--text);
}
.fw-legend button[aria-pressed="true"] { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ---------- Notice ---------- */
.notice {
  background: rgba(34,199,184,0.1); border: 1px solid rgba(34,199,184,0.3);
  border-radius: var(--radius); padding: var(--s-2) var(--s-3); font-size: 14px; color: var(--text);
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
