/* SEED Centre — site styles */
:root {
  --green-900: #123F24;
  --green-800: #1B5E35;
  --green-700: #2F7D41;
  --green-500: #3F9A4E;
  --lime: #A5D86E;
  --lime-soft: #CDEBC0;
  --gold: #D9A441;
  --gold-text: #8A5F17;
  --gold-light: #E0B04F;
  --cream: #F4F1E6;
  --mist: #F6F8F5;
  --ink: #26302A;
  --muted: #3D4A42;
  --subtle: #56635A;
  --line: #E3E8E2;
  --footer: #0E2F1B;
  --error: #A3341F;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--green-900); margin: 0; line-height: 1.15; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 960px; }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--green-900); color: #fff; }
.section--green { background: var(--green-800); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row--center { align-items: center; }
.row--between { justify-content: space-between; align-items: center; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.section--dark .eyebrow, .section--green .eyebrow { color: var(--gold-light); }
.h1 { font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.06; }
.h2 { font-weight: 700; font-size: clamp(28px, 3.2vw, 42px); }
.h3 { font-size: 22px; line-height: 1.3; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--subtle); }
.section--dark .lead, .section--green .lead, .section--dark .muted, .section--green .muted { color: #E3EFE0; }
.max-720 { max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--lime-soft); color: var(--green-900); }
.btn--ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--green-800); }
.link { font-weight: 600; font-size: 15px; }
.section--dark .link, .section--green .link { color: var(--lime-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 48px; height: 48px; flex-shrink: 0; }
.wordmark { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--green-800); }
.wordmark b { font-weight: 700; }
.wordmark span { font-weight: 400; color: var(--green-700); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-800); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { padding: 0 22px; min-height: 44px; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--green-800); color: var(--green-800);
  border-radius: 999px; padding: 8px 16px; font: 600 15px var(--font-body); cursor: pointer;
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--green-800); font-weight: 600; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* Hero */
.hero { padding: 96px 0; }
.hero .row { align-items: center; gap: 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-media { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(18,63,36,.15); }
.page-hero { padding: 88px 0; }

/* Cards */
.card { flex: 1 1 260px; min-width: 0; background: var(--mist); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card--white { background: #fff; border: 1px solid var(--line); }
.card--dark { background: var(--green-900); color: #fff; }
.card--dark p { color: #E3EFE0; }
.card .link { margin-top: auto; }
.board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.board-list .card { border-top: 3px solid var(--green-800); }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--green-800); display: flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 26px; height: 26px; }

.value { flex: 1 1 200px; min-width: 0; border-top: 4px solid var(--green-800); padding-top: 18px; }
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { font-size: 15px; color: var(--muted); }

.focus-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid #D8D2BF; }
.focus-item { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid #D8D2BF; }
.focus-item .num { flex: 0 0 48px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--gold-text); }
.focus-item div:last-child { flex: 1 1 300px; min-width: 0; }
.focus-item h3 { font-size: 22px; margin-bottom: 6px; }

.chip { display: inline-block; background: var(--mist); border: 1px solid #DDE5DB; border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* Publications */
.pub { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.pub[hidden] { display: none; }
.pub img { width: 100%; height: 180px; object-fit: cover; }
.pub-cover { height: 180px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.pub-cover .label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pub-cover .num { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; }
.pub-cover--brief { background: var(--green-800); }
.pub-cover--brief .label { color: var(--gold-light); }
.pub-cover--brief .num { color: #fff; }
.pub-cover--paper { background: var(--cream); border-bottom: 1px solid var(--line); }
.pub-cover--paper .label { color: var(--gold-text); }
.pub-cover--paper .num { color: var(--green-900); }
.pub-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pub-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; }
.pub-meta .series { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.pub-body h3 { font-size: 21px; line-height: 1.3; }
.pub-body p { font-size: 15px; color: var(--muted); }
.pub-body .link { margin-top: auto; padding-top: 8px; }
.tag { background: var(--mist); border: 1px solid #DDE5DB; border-radius: 999px; padding: 4px 12px; font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px var(--font-body); cursor: pointer;
  background: #fff; color: var(--green-800); border: 1.5px solid #9AA89E;
}
.filter-btn[aria-pressed="true"] { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.empty-state { padding: 32px; border: 1px dashed #B8C4BB; border-radius: var(--radius-md); color: var(--muted); }

/* Forms */
.field { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; border-radius: var(--radius-sm); border: 1.5px solid #9AA89E;
  font: 16px var(--font-body); color: var(--ink); background: #fff;
}
.input, .select { height: 48px; padding: 0 16px; }
.textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; min-height: 220px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-800); outline: 3px solid rgba(217,164,65,.5); outline-offset: 1px; }
.input--pill { border-radius: 999px; padding: 0 18px; }
.word-count { font-size: 14px; font-weight: 500; text-align: right; color: var(--subtle); }
.word-count.is-over { color: var(--error); }
.form-error { font-size: 15px; font-weight: 500; color: var(--error); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.form-panel--mist { background: var(--mist); }
.hidden-field { position: absolute; left: -9999px; }

/* Media */
.photo { width: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.caption { font-size: 14px; color: var(--subtle); margin-top: 10px; }
.gallery img { flex: 1 1 300px; min-width: 0; height: 260px; object-fit: cover; border-radius: 18px; }

/* Team */
.leader { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; background: var(--mist); border-radius: var(--radius-lg); padding: 40px; }
.leader-photo { flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.leader-photo img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.leader-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.role { font-size: 16px; font-weight: 600; color: var(--gold-text); }
.placeholder-photo { background: #DDE8DA; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer); color: #E3EFE0; padding: 72px 0 32px; }
.site-footer a { color: #E3EFE0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-cols > div { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols > div:first-child { flex: 2 1 300px; }
.footer-cols .title { font-weight: 600; color: #fff; }
.site-footer .wordmark { color: #fff; font-size: 28px; }
.site-footer .wordmark span { color: var(--lime-soft); }
.footer-bottom { border-top: 1px solid #2C4F38; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #B9CDBE; }
