/*
  The Grenfell Curriculum — shared static-site stylesheet
  ------------------------------------------------------
  Version 6.1 — Enhanced design
  - Friendlier, rounder typography using DM Sans + Fraunces
  - Softer, more approachable card/box styles
  - Improved line-height and character spacing
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --green-980: #031b12;
  --green-950: #06301f;
  --green-900: #07452d;
  --green-800: #006a46;
  --green-700: #008a59;
  --green-600: #13a66b;
  --green-500: #39c878;
  --green-300: #8ee2ad;
  --green-100: #e1f7e8;
  --green-50:  #f2fbf5;
  --lime:      #d5f35b;
  --gold:      #e8bd3c;
  --ink:       #141f18;
  --charcoal:  #2a3830;
  --muted:     #5e6f67;
  --line:      #dde6e0;
  --line-strong: #a3b8ac;
  --warm:      #fdf9f2;
  --warm-2:    #f4ead9;
  --white:     #ffffff;
  --focus:     #f5c542;
  --danger-soft: #f6e8d7;
  --max: 1220px;
  --header-height: 78px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 32px rgba(3, 27, 18, 0.07);
  --shadow-card: 0 4px 16px rgba(3, 27, 18, 0.06), 0 1px 3px rgba(3, 27, 18, 0.04);
  --font-sans:    'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'DM Serif Display', Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: #fdfaf4;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a {
  color: var(--green-800);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--green-950); }
strong { font-weight: 600; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--green-900);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 249, 242, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(3, 27, 18, 0.05);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 0;
}

.brand-mark { display: none; }

.brand-title {
  display: block;
  font-family: var(--font-heading);
  color: var(--green-950);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: 1.28rem;
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.3;
  margin-top: 0.22rem;
  letter-spacing: 0.01em;
}


.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  align-self: center;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--green-950);
  padding: 0.68rem 1rem;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: var(--green-50); border-color: var(--green-600); }

.nav-toggle span:last-child {
  width: 20px; height: 14px;
  display: inline-grid; gap: 5px;
}
.nav-toggle span:last-child::before,
.nav-toggle span:last-child::after {
  content: ""; display: block; height: 2px;
  background: currentColor; border-radius: 2px;
}

.site-nav { display: flex; align-items: stretch; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.site-nav li { display: flex; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 0.85rem;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0;
  height: 3px;
  background: var(--green-600);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--green-900); background: var(--green-50); }

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Layout */
main { overflow: hidden; }

.container { width: min(100% - 2.5rem, var(--max)); margin: 0 auto; }

.section {
  position: relative;
  padding: clamp(3.8rem, 7vw, 6.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.section.compact { padding: clamp(2.8rem, 5vw, 4.6rem) 0; }
.section.alt { background: var(--green-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--green-950); color: #edf7f1; border-bottom: none; }
.section.dark::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--green-600), var(--lime));
}
.section.dark a { color: #f3d972; }
.section.dark .eyebrow { color: #e0f8e8; }
.section.dark .section-title p { color: #d5e6dd; }
.section.dark .card { color: var(--ink); background: var(--white); }

/* Hero */
body.page-home       { --hero-image: url("../images/grenfell-wide.jpg"); --hero-position: center center; }
body.page-about      { --hero-image: url("../images/community-gathering.jpg"); --hero-position: center center; }
body.page-principles { --hero-image: url("../images/grenfell-detail.jpg"); --hero-position: center top; }
body.page-cpd        { --hero-image: url("../images/grenfell-detail.jpg"); --hero-position: center top; }
body.page-resources  { --hero-image: url("../images/grenfell-wide.jpg"); --hero-position: center center; }
body.page-contact    { --hero-image: url("../images/community-gathering.jpg"); --hero-position: center center; }

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(470px, 58vw, 690px);
  padding: clamp(3.8rem, 7.5vw, 7.2rem) 0;
  background-color: var(--warm);
  background-image:
    linear-gradient(90deg,
      rgba(253,249,242,0.98) 0%,
      rgba(253,249,242,0.94) 34%,
      rgba(253,249,242,0.68) 58%,
      rgba(253,249,242,0.16) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center, var(--hero-position);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500), var(--lime));
}

.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 7% 18%, rgba(213,243,91,0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
}

.hero-grid { position: relative; z-index: 1; }

.hero-copy {
  max-width: 720px;
  padding: clamp(1.55rem, 3.2vw, 2.55rem) clamp(1.55rem, 3.2vw, 2.8rem);
  background: rgba(253,249,242,0.93);
  border: 1px solid rgba(159,179,168,0.52);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(3,27,18,0.09), 0 2px 6px rgba(3,27,18,0.04);
  backdrop-filter: blur(6px);
}

body.page-home .hero-copy { max-width: 790px; }
.page-heading .hero-copy { max-width: 670px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.hero-facts div {
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(221,230,224,0.9);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s ease;
}
.hero-facts div:hover { box-shadow: 0 4px 14px rgba(3,27,18,0.08); }

.hero-facts strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--green-950);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

.hero-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
  margin-top: 0.22rem;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.70rem;
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px;
  background: var(--green-500); border-radius: 2px; flex-shrink: 0;
}

/* Headings */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--green-950);
  font-family: var(--font-heading);
  font-weight: 400;          /* DM Serif Display reads best at regular weight */
  line-height: 1.15;
  letter-spacing: 0.01em;   /* slight positive spacing opens up the dense serif */
}
h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1.06; letter-spacing: 0.005em; max-width: 13ch; }
.page-heading h1 { max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.85rem); line-height: 1.12; letter-spacing: 0.01em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.28; letter-spacing: 0.015em; }
h4 { font-size: 1rem; line-height: 1.35; letter-spacing: 0.015em; }

/* Text */
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--charcoal);
  line-height: 1.7;
  max-width: 62ch;
  font-weight: 400;
  letter-spacing: 0.008em;
}

.hero-copy p { max-width: 62ch; }

p {
  margin: 1.1rem 0 0;
  max-width: 72ch;
  line-height: 1.72;
}

.muted { color: var(--muted); }

.section-title { max-width: 820px; margin-bottom: 2.5rem; }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title p { color: var(--muted); font-size: 1.05rem; line-height: 1.68; max-width: 64ch; }
.section-title.center p { margin-left: auto; margin-right: auto; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.78rem 1.35rem;
  border: 1.5px solid transparent;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.935rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn::after { content: "→"; font-weight: 400; margin-left: 0.2em; transition: transform 0.16s ease; }
.btn:hover::after { transform: translateX(4px); }

.btn.primary {
  background: var(--green-800); color: var(--white); border-color: var(--green-800);
  box-shadow: 0 2px 0 var(--green-950), 0 4px 16px rgba(0,106,70,0.22);
}
.btn.primary:hover {
  background: var(--green-900); border-color: var(--green-900); color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--green-950), 0 8px 22px rgba(0,106,70,0.28);
}

.btn.secondary {
  background: var(--white); color: var(--green-950); border-color: var(--line-strong);
  box-shadow: 0 1px 3px rgba(3,27,18,0.06);
}
.btn.secondary:hover {
  background: var(--green-50); border-color: var(--green-600); color: var(--green-950);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(3,27,18,0.1);
}

.btn.disabled,
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.btn.disabled::after,
.btn[aria-disabled="true"]::after,
.btn:disabled::after { content: none; }

.btn.text-link {
  min-height: unset; padding: 0; border: 0; color: var(--green-800);
  background: transparent; font-size: 0.92rem;
}
.btn.text-link:hover { color: var(--green-950); }
.btn.text-link::after { content: none; }

/* Cards & panels */
.card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card {
  padding: clamp(1.3rem, 2.6vw, 1.85rem);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--green-500);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(3,27,18,0.10), 0 2px 6px rgba(3,27,18,0.05);
}

.panel {
  padding: clamp(1.6rem, 3.5vw, 2.65rem);
  position: relative;
  overflow: hidden;
  border-left: none;
}

.card h3, .card h4 { margin-bottom: 0.55rem; }
.card p:first-child { margin-top: 0; }
.card p { max-width: 52ch; }

/* Grids */
.grid { display: grid; gap: 1.1rem; }
.grid.two   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.feature-card { position: relative; min-height: 100%; }


.news-card::before {
  content: "";
  display: block;
  height: 6.5rem;
  margin: calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1) calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1) 1.2rem;
  background:
    linear-gradient(135deg, rgba(0,106,70,0.90), rgba(19,166,107,0.82)),
    linear-gradient(45deg, transparent 45%, rgba(213,243,91,0.38) 45%, rgba(213,243,91,0.38) 53%, transparent 53%);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.news-card:nth-child(2)::before { background: linear-gradient(135deg, var(--green-900), var(--green-600)); }
.news-card:nth-child(3)::before { background: linear-gradient(135deg, var(--green-800), var(--green-300)); }
.news-card:nth-child(4)::before { background: linear-gradient(135deg, var(--green-950), var(--green-700)); }

/* Lists */
.inset-list { margin: 1.1rem 0 0; padding-left: 0; list-style: none; }
.inset-list li {
  margin: 0.55rem 0;
  line-height: 1.62;
  padding-left: 1.6rem;
  position: relative;
}
.inset-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.pill {
  display: inline-flex; align-items: center;
  background: var(--green-50); border: 1px solid rgba(19,166,107,0.28);
  color: var(--green-900); font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 0.65rem; border-radius: 999px; letter-spacing: 0.015em;
}

/* Note boxes */
.note-box, .warning-box {
  padding: 1.2rem 1.4rem;
  border-left: 5px solid var(--green-600);
  background: var(--green-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.warning-box { border-left-color: #8a6030; background: var(--danger-soft); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 1rem; margin-top: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 1.13rem; top: 0.8rem; bottom: 0.8rem;
  width: 2px; background: linear-gradient(180deg, var(--green-500), var(--green-300)); border-radius: 2px;
}
.timeline-item { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.timeline-dot {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  color: var(--white); background: var(--green-700);
  border: 3px solid var(--green-50); border-radius: 999px; margin-top: 0.4rem;
  font-weight: 700; font-size: 0.85rem; box-shadow: 0 0 0 3px rgba(57,200,120,0.3);
}
.timeline-content {
  padding: 1.25rem 1.35rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.timeline-date { color: var(--green-800); font-weight: 600; margin-bottom: 0.35rem; }
.milestone {
  display: inline-block; margin-top: 0.85rem; padding: 0.45rem 0.75rem;
  background: var(--green-50); border: 1px solid rgba(19,166,107,0.3);
  color: var(--green-900); font-weight: 600; border-radius: var(--radius-sm); font-size: 0.88rem;
}

/* Accordion */
details.accordion {
  border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.18s ease;
}
details.accordion:hover { box-shadow: var(--shadow-card); }
details.accordion + details.accordion { margin-top: 0.75rem; }

.accordion summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 1.4rem; font-weight: 600; font-size: 0.975rem;
  color: var(--green-950); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
  background: var(--green-50);
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
}
details[open] .accordion summary { border-bottom-color: var(--line); background: var(--green-100); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.25rem; line-height: 1; color: var(--green-600); flex-shrink: 0;
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 400;
}
.accordion[open] summary::after { content: "–"; }
.accordion .accordion-body { padding: 1.3rem 1.4rem 1.4rem; line-height: 1.72; }

/* Resources */
.resource-toolbar {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1.25fr repeat(4, minmax(130px, 0.8fr));
  align-items: end; margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--green-950); margin-bottom: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--warm);
  color: var(--ink); font: inherit; font-size: 0.93rem;
  padding: 0.68rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(19,166,107,0.15);
  outline: none;
}
.resource-count { margin-top: 0.5rem; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.resource-grid { margin-top: 1rem; }
.resource-card { display: flex; flex-direction: column; gap: 0.8rem; }
.resource-card[hidden] { display: none !important; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.resource-meta span {
  border: 1px solid rgba(19,166,107,0.25); background: var(--green-50);
  color: var(--green-900); padding: 0.25rem 0.55rem;
  font-size: 0.75rem; font-weight: 600; border-radius: 999px; letter-spacing: 0.015em;
}

.resource-kicker {
  margin: 0 0 -0.25rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.resource-note {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.resource-actions { display: grid; gap: 0.65rem; }
.resource-card .btn { width: 100%; }
.resource-files {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--warm);
  padding: 0.75rem 0.85rem;
}
.resource-files summary {
  cursor: pointer;
  color: var(--green-950);
  font-weight: 700;
  font-size: 0.92rem;
}
.resource-files ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}
.resource-files li + li { margin-top: 0.35rem; }
.resource-files a {
  color: var(--green-800);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
.resource-files a:hover { color: var(--green-950); }

/* Team */
.person-card .role, .output-card .meta, .news-card .meta {
  color: var(--green-700); font-weight: 600; font-size: 0.88rem; margin-top: 0.3rem; letter-spacing: 0.01em;
}
.person-card { display: flex; flex-direction: column; }
.photo-placeholder {
  display: grid; place-items: center; min-height: 175px;
  margin: calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1) calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1) 1.1rem;
  background: linear-gradient(145deg, var(--green-50), #ffffff);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.3rem; }
.logo-grid-wide { margin-top: 1.5rem; }
.logo-placeholder {
  min-height: 108px; display: grid; place-items: center; text-align: center;
  padding: 1.1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--white); color: var(--muted); font-weight: 500; font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.logo-placeholder:hover { border-color: var(--green-500); background: var(--green-50); }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.3rem; align-items: start;
}

/* Footer */
.site-footer { background: var(--green-950); color: #edf7f1; padding: 3.4rem 0; border-top: 6px solid var(--green-600); }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 2.4rem; }
.site-footer a { color: #f4dc83; }
.site-footer h2, .site-footer h3 { color: #ffffff; }
.site-footer h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.site-footer h3 { font-size: 1rem; letter-spacing: 0.01em; }
.site-footer p { color: #d5e6dd; line-height: 1.68; }
.footer-links { list-style: none; padding: 0; margin: 0.9rem 0 0; }
.footer-links li { margin: 0; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-links a { display: block; padding: 0.52rem 0; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #a8c2b5; font-size: 0.88rem; line-height: 1.65;
}

/* Utility */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .grid.five-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four        { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid        { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav a       { padding-inline: 0.6rem; font-size: 0.95rem; }
}

@media (max-width: 900px) {
  :root { --header-height: 78px; }
  .header-inner { min-height: 78px; }
  .brand { min-width: unset; }
  .brand-mark { display: none; }
  .brand-tagline { display: block; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-height) 0 auto 0; padding: 1rem; display: block;
    background: rgba(253,249,242,0.98); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px); transform: translateY(-120%); transition: transform 0.22s ease;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav ul { display: grid; gap: 0; }
  .site-nav li { display: block; }
  .site-nav a {
    width: 100%; justify-content: space-between; padding: 0.95rem 0.85rem;
    border-top: 1px solid var(--line); border-radius: 0;
  }
  .site-nav a::after { height: 3px; bottom: 0; left: 0; right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  h1 { max-width: 13ch; }
  .page-hero {
    min-height: 430px;
    background-image: linear-gradient(90deg, rgba(253,249,242,0.98), rgba(253,249,242,0.86)), var(--hero-image);
  }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container, .header-inner { width: min(100% - 1.35rem, var(--max)); }
  .grid.two, .grid.three, .grid.four, .grid.five-cards,
  .resource-toolbar, .logo-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .brand-title { font-size: 1.15rem; }
  .page-hero {
    padding-top: 3.25rem; min-height: 410px;
    background-image: linear-gradient(90deg, rgba(253,249,242,0.98), rgba(253,249,242,0.92)), var(--hero-image);
  }
  .hero-copy { padding: 1.25rem; border-radius: var(--radius); }
  .hero-facts { grid-template-columns: 1fr; }
  .timeline::before { left: 1rem; }
  .timeline-item { grid-template-columns: 2.7rem minmax(0, 1fr); }
  .timeline-dot { width: 2rem; height: 2rem; font-size: 0.85rem; }
  .news-card::before { height: 5.5rem; }
  .photo-placeholder { min-height: 150px; }
}

/* ─── CPD module accordions ─── */
.module-accordion .accordion summary {
  padding: 1.2rem 1.4rem;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 4.2rem;
  padding: 0.28rem 0.7rem;
  background: var(--green-800);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

details[open] .module-tag {
  background: var(--green-950);
}

.module-title {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--green-950);
  line-height: 1.3;
}

.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.module-topic {
  display: inline-flex;
  align-items: center;
  background: var(--green-50);
  border: 1px solid rgba(19,166,107,0.28);
  color: var(--green-900);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  line-height: 1.3;
}

/* ─── CPD bottom section ─── */
.cpd-bottom-grid {
  gap: 1.4rem;
  align-items: start;
}

.cpd-uses-panel,
.cpd-faq-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cpd-uses-header {
  padding: 1.6rem 1.75rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--green-50);
}

.cpd-uses-header .eyebrow { margin-bottom: 0.5rem; }
.cpd-uses-header h2 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: 0.01em; }

.cpd-uses-list {
  list-style: none;
  margin: 0;
  padding: 1.35rem 1.75rem 1.6rem;
  display: grid;
  gap: 1rem;
}

.cpd-use-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.cpd-use-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cpd-faq-panel .cpd-uses-header {
  margin-bottom: 0;
}

.cpd-faq-panel .accordion {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.cpd-faq-panel .accordion:last-child {
  border-bottom: none;
}

.cpd-faq-panel details.accordion:hover {
  box-shadow: none;
}

.cpd-faq-panel .accordion summary {
  background: var(--white);
  border-radius: 0;
  font-size: 0.93rem;
  padding: 1rem 1.4rem;
}

.cpd-faq-panel details[open] .accordion summary {
  background: var(--green-50);
}

.cpd-faq-panel .accordion .accordion-body {
  padding: 0.75rem 1.4rem 1.1rem;
  background: var(--white);
}

.cpd-faq-panel .accordion .accordion-body p {
  margin-top: 0;
  font-size: 0.94rem;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .cpd-bottom-grid { grid-template-columns: 1fr; }
}


/* ─── About: project framing & aims panels ─── */
.about-framing-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.about-framing-panel .panel-header {
  padding: 1.25rem 1.5rem 1.15rem;
  background: var(--white);
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.about-framing-panel .panel-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  border: 1.5px solid rgba(19,166,107,0.3);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--green-800);
}
.about-framing-panel .panel-header h3 {
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--green-950);
  font-weight: 400;
}
.about-framing-panel .panel-body {
  padding: 1.3rem 1.5rem 1.5rem;
}
.about-framing-panel .panel-body p { margin-top: 0; }
.about-framing-panel .panel-body p + p { margin-top: 0.75rem; }

/* ─── About: partners chips ─── */
.partners-chip-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.partners-chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}
.partners-chip-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

/* ─── Team member headshots ─── */
.person-photo {
  display: block;
  height: 210px;
  width: calc(100% + clamp(1.3rem, 2.6vw, 1.85rem) * 2);
  object-fit: cover;
  object-position: center top;
  margin-top: calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1);
  margin-left: calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1);
  margin-right: calc(clamp(1.3rem, 2.6vw, 1.85rem) * -1);
  margin-bottom: 1.1rem;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  max-width: none;
}

/* ─── Partner logos ─── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  min-height: 100px;
  text-decoration: none;
}

.logo-item:hover {
  border-color: var(--green-500);
  box-shadow: 0 8px 24px rgba(3,27,18,0.09);
  transform: translateY(-2px);
}

.logo-item img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 680px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── Output cards: match resource card layout ─── */
.output-card {
  display: flex;
  flex-direction: column;
}
.output-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  line-height: 1.28;
  letter-spacing: 0.015em;
}
.output-card .resource-meta {
  margin-top: auto;
  padding-top: 0.8rem;
}
.output-card .btn {
  margin-top: 0.9rem;
  width: 100%;
}

/* ─── Feature & news cards: full-width secondary buttons ─── */
.feature-card,
.news-card {
  display: flex;
  flex-direction: column;
}
.feature-card .btn,
.news-card .btn {
  margin-top: 1.4rem;
  width: 100%;
}
.feature-card p,
.news-card p:not(.meta) {
  flex: 1;
}

/* Temporary site notice */
.site-notice {
  background: #fff4d6;
  border-bottom: 1px solid rgba(91, 61, 0, 0.18);
  color: #4a3300;
  font-size: 0.95rem;
}

.site-notice .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-notice strong {
  color: #2f2100;
}

/* About page alignment tweak */
.page-about .about-framing-grid {
  align-items: stretch;
}

.page-about .about-framing-grid .about-framing-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about .about-framing-grid .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-about .about-framing-grid .panel-body > :first-child {
  margin-top: 0;
}

.page-about .about-framing-grid .panel-body > :last-child {
  margin-bottom: 0;
}

.page-about .about-framing-grid .panel-body .inset-list {
  margin-top: 0;
  margin-bottom: 0;
}
