/* TUBIBE AMAHORO — ADR & Conflict Prevention prototype
   Palette taken from the TA logo: globe teal, black lettering, warm peach hands.
   Teal carries headers and panels; peach is the accent for calls to action (always with dark text). */
:root {
  --brand-dark: #0b4558;
  --brand-deeper: #072f3d;
  --brand: #00718f;
  --brand-soft: #e5f2f6;
  --accent: #f7b27a;
  --accent-dark: #f09a57;
  --accent-soft: #fdf1e6;
  --on-accent: #1a1a1a;
  --grey-900: #1f2933;
  --grey-700: #3e4c59;
  --grey-500: #616e7c;
  --grey-200: #dde3ea;
  --grey-100: #f3f6f9;
  --white: #ffffff;
  --warn-bg: #fff6e0;
  --warn-fg: #7a5200;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 69, 88, .07), 0 4px 16px rgba(11, 69, 88, .07);
  --max: 1200px;
  --heading: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", 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(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grey-900);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--heading); color: var(--brand-dark); line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 64px 0; }
.section--tint { background: var(--grey-100); }
.section__intro { max-width: 680px; color: var(--grey-700); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--brand-dark); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Prototype notices — remove once content is approved */
.proto-banner {
  background: var(--warn-bg); color: var(--warn-fg); font-size: .9rem;
  padding: 8px 0; border-bottom: 1px solid #f0dca8;
}
.badge-pending {
  display: inline-block; background: var(--warn-bg); color: var(--warn-fg);
  font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  padding: 13px 22px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--brand-dark); color: var(--white); }
.btn--dark:hover { background: var(--brand); }
.btn--ghost-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--link { padding: 13px 4px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { color: var(--brand-dark); }
.btn--sm { padding: 10px 16px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-dark); }
.brand__mark { width: 60px; height: auto; flex: none; }
.footer-logo { width: 88px; height: auto; background: var(--white); border-radius: 10px; padding: 6px; margin-bottom: 12px; }
.brand__name { font: 700 1.2rem/1.1 var(--heading); letter-spacing: .02em; display: block; }
.brand__tag { font-size: .72rem; color: var(--brand); display: block; margin-top: 3px; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 8px; text-decoration: none; color: var(--grey-900);
  font-weight: 500; font-size: .97rem; border-bottom: 3px solid transparent; white-space: nowrap;
}
.header-cta { white-space: nowrap; }
.brand__tag { white-space: nowrap; }
.nav__list a:hover { color: var(--brand); }
.nav__list a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; border-bottom-color: var(--accent); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid var(--grey-200);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--brand-dark);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 480px) { .brand__tag { white-space: normal; } }
@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 8px 16px 16px; }
  .nav__list a { padding: 12px 8px; border-bottom: 1px solid var(--grey-100); }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--grey-100); border-left: 4px solid var(--accent); }
  .nav__cta-mobile { display: block !important; padding-top: 12px; }
}
.nav__cta-mobile { display: none; }
.nav__list .nav__cta-mobile .btn { display: flex; justify-content: center; color: var(--white); border-bottom: 0; padding: 13px 22px; }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; margin-bottom: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: inherit; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; background: var(--brand-dark); color: var(--white); }
.hero__text { padding: 48px 16px 56px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.hero__lead { font-size: 1.25rem; color: #e3f1f5; }
.hero__body { color: #cfe3ea; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { min-height: 260px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.1fr; }
  .hero__text { padding: 56px 48px 64px max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
  .hero__media { min-height: 100%; }
}

/* Photo placeholder: replace with an approved, consented TA photograph */
.photo-slot {
  position: relative; height: 100%; min-height: inherit;
  background:
    radial-gradient(circle at 30% 30%, rgba(247,178,122,.30), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(0,113,143,.60), transparent 60%),
    linear-gradient(135deg, #0e5a72, #0b4558);
  display: flex; align-items: flex-end;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot__note {
  position: relative; margin: 16px; padding: 10px 14px; border-radius: 8px;
  background: rgba(7,47,61,.85); color: #e3f1f5; font-size: .88rem; max-width: 420px;
}

/* Thematic cards */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--grey-700); flex: 1; }
.card__link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card__link:hover { text-decoration: underline; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--white); flex: none;
}
.icon-circle svg { width: 28px; height: 28px; }
.icon-circle--accent { background: var(--accent); color: var(--on-accent); }
.icon-circle--brand { background: var(--brand-dark); }

/* How we work */
.process-wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .process-wrap { grid-template-columns: 1fr 2.6fr; align-items: start; } }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); column-gap: 40px; } }
.process__step { position: relative; }
.process__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.process__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-dark); color: var(--white);
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.process__step:nth-child(odd) .process__num { background: var(--accent); color: var(--on-accent); }
.process__step h3 { margin: 0; font-size: 1.1rem; }
.process__step p { color: var(--grey-700); font-size: .98rem; }
@media (min-width: 1024px) {
  .process__step:not(:last-child)::after {
    content: "→"; position: absolute; right: -30px; top: 4px; font-size: 1.4rem; color: var(--grey-500);
  }
}

/* Results */
.results { background: var(--brand-dark); color: var(--white); }
.results h2 { color: var(--white); }
.results .section__intro { color: #cfe3ea; }
.stats { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 20px; }
.stat__value { font: 700 2rem/1.1 var(--heading); color: var(--white); }
.stat__value--pending { color: #93bccb; font-size: 1.2rem; }
.stat__label { font-weight: 600; margin: 8px 0 10px; }
.stat__meta { font-size: .85rem; color: #b5d3dd; margin: 0; }
.stat__meta dt { display: inline; font-weight: 600; }
.stat__meta dd { display: inline; margin: 0; }
.stat__meta div + div { margin-top: 2px; }
.results__note { font-size: .9rem; color: #b5d3dd; margin-top: 20px; }

/* Partnership CTA */
.partner {
  display: grid; gap: 24px; align-items: center;
  background: var(--accent-soft); border-radius: var(--radius); padding: 32px 24px;
}
@media (min-width: 900px) { .partner { grid-template-columns: 1.6fr 1fr; padding: 48px; } }
.partner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.partner ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--grey-700); }

/* Publications */
.pub-toolbar { display: grid; gap: 16px; margin: 28px 0 24px; }
@media (min-width: 900px) { .pub-toolbar { grid-template-columns: 1.4fr repeat(3, 1fr); align-items: end; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--grey-700); }
.field input, .field select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #b7c2ce;
  border-radius: 8px; background: var(--white); color: var(--grey-900);
}
.field input:focus, .field select:focus { border-color: var(--brand); }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chip {
  font: 500 .95rem var(--sans); padding: 8px 16px; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--grey-200); background: var(--white); color: var(--grey-900);
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.pub-count { color: var(--grey-500); font-size: .95rem; margin-bottom: 16px; }

.pub-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .pub-grid { grid-template-columns: repeat(3, 1fr); } }
.pub {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px;
  grid-template-columns: 110px 1fr; grid-template-rows: 1fr auto;
}
.pub__cover { grid-row: 1 / 2; }
.pub__body { min-width: 0; }
.pub__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pub__meta { font-size: .88rem; color: var(--brand); font-weight: 600; margin-bottom: 6px; }
.pub__meta span + span::before { content: "|"; margin: 0 8px; color: var(--grey-200); }
.pub h3 { font-size: 1.08rem; margin-bottom: 8px; }
.pub__summary { color: var(--grey-700); font-size: .96rem; }
.pub__details { font-size: .85rem; color: var(--grey-500); margin: 0; }
.pub__details div { display: flex; gap: 6px; }
.pub__details dt { font-weight: 600; }
.pub__details dd { margin: 0; }
.pub__missing { font-size: .9rem; color: var(--grey-500); font-style: italic; }

/* Consistent generated thumbnail used when no real cover is supplied */
.thumb {
  aspect-ratio: 3 / 4; width: 100%; border-radius: 4px; border: 1px solid var(--grey-200);
  background: linear-gradient(180deg, var(--white) 0 62%, var(--brand-dark) 62% 100%);
  padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.thumb__org { font: 700 .5rem/1.2 var(--heading); color: var(--brand-dark); letter-spacing: .04em; }
.thumb__title { font: 700 .62rem/1.25 var(--heading); color: var(--brand); }
.thumb__type { margin-top: auto; font: 600 .55rem/1 var(--sans); color: var(--white); text-transform: uppercase; letter-spacing: .06em; }
.pub__cover img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; border: 1px solid var(--grey-200); }

.pub--featured { grid-template-columns: 1fr; padding: 24px; border-left: 5px solid var(--accent); }
@media (min-width: 760px) { .pub--featured { grid-template-columns: 180px 1fr; padding: 32px; } }
.pub--featured h3 { font-size: 1.45rem; }
.pub--featured .pub__cover { max-width: 180px; }
.featured-label {
  display: inline-block; background: var(--accent); color: var(--on-accent); font-size: .78rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}

.empty-state {
  border: 2px dashed var(--grey-200); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--grey-700);
}
.resource-note {
  border: 1px solid var(--grey-200); border-left: 5px solid var(--brand); background: var(--white);
  border-radius: var(--radius); padding: 24px; margin-top: 32px;
}
.resource-note h3 { margin-bottom: 8px; }
.tag-official { background: var(--brand-soft); color: var(--brand-dark); }

/* Footer */
.site-footer { background: var(--brand-deeper); color: #cfe3ea; padding: 48px 0 0; font-size: .95rem; }
.site-footer a { color: #e3f1f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand { font: 700 1.2rem var(--heading); color: var(--white); margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 16px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem;
}

/* Hero photo */
figure.photo-slot { margin: 0; }
.photo-slot img + .photo-slot__note { font-size: .82rem; }

/* TA in the field gallery */
.gallery { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: .92rem; color: var(--grey-700); }

/* Partner logos */
.partner-logos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .partner-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partner-logos { grid-template-columns: repeat(5, 1fr); } }
.partner-logos li {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  height: 110px; display: grid; place-items: center; padding: 14px;
}
.partner-logos img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }

/* Partnership CTA with photo */
.partner__photo { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) {
  .partner { grid-template-columns: 1fr 1.2fr; column-gap: 40px; }
  .partner__photo { grid-row: span 2; height: 100%; }
}

/* ---------- Full-site components ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.source-note { font-size: .88rem; color: var(--grey-500); margin-top: 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head .section__intro { margin-bottom: 0; }

/* Our Work dropdown */
.nav__has-sub { position: relative; }
.nav__sub { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1301px) {
  .nav__sub {
    position: absolute; left: 0; top: 100%; min-width: 260px; z-index: 60;
    background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; box-shadow: var(--shadow);
    padding: 6px; display: none;
  }
  .nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub { display: block; }
  .nav__has-sub > a::after { content: " \25BE"; font-size: .75em; }
  .nav__sub a { border-bottom: 0; border-radius: 6px; padding: 9px 12px; }
  .nav__sub a:hover { background: var(--brand-soft); }
}
@media (max-width: 1300px) {
  .nav__sub a { padding-left: 28px !important; font-size: .93rem; color: var(--grey-700); }
}

/* Page header for inner pages */
.page-hero { background: var(--brand-dark); color: var(--white); padding: 40px 0 48px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); max-width: 900px; }
.page-hero__lead { font-size: 1.2rem; color: #cfe3ea; max-width: 760px; margin: 0; }
.page-hero--image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero--image .container { position: relative; }

/* Two-column layout */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.split--top { align-items: start; }
.prose { max-width: 720px; }
.prose--wide { max-width: 860px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.framed { margin: 0; }
.framed img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.framed--plain img { box-shadow: none; max-width: 420px; margin: 0 auto; }
.framed figcaption { font-size: .9rem; color: var(--grey-500); margin-top: 8px; text-align: center; }

/* At-a-glance figures */
.glance { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .glance { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .glance { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.glance li { border-top: 4px solid var(--accent); background: var(--grey-100); border-radius: 0 0 var(--radius) var(--radius); padding: 18px; }
.glance strong { display: block; font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--heading); color: var(--brand-dark); margin-bottom: 6px; }
.glance span { color: var(--grey-700); font-size: .96rem; }
.glance--dark li { background: rgba(255,255,255,.07); }
.glance--dark strong { color: var(--white); }
.glance--dark span { color: #cfe3ea; }

/* Programme cards with photos */
.area-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--grey-700);
  border: 1px solid var(--grey-200); transition: transform .15s, box-shadow .15s;
}
.area-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,69,88,.14); }
@media (prefers-reduced-motion: reduce) { .area-card:hover { transform: none; } }
.area-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.area-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.area-card__title { font: 700 1.15rem/1.3 var(--heading); color: var(--brand-dark); }
.area-card--accent { border-top: 4px solid var(--accent); }

.work-list { display: grid; gap: 28px; }
.work-item { display: grid; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 800px) { .work-item { grid-template-columns: 340px 1fr; padding: 24px; gap: 32px; } }
.work-item img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.work-item h2 { font-size: 1.45rem; }
.work-item p { color: var(--grey-700); }

.cards--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.cards--3 .card h3 { font-size: 1.3rem; }

.districts { margin: 20px 0 0; display: grid; gap: 12px; }
.districts div { background: var(--white); border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; padding: 12px 16px; }
.districts dt { font-weight: 700; color: var(--brand-dark); }
.districts dd { margin: 2px 0 0; color: var(--grey-700); }

.checklist { padding-left: 1.3em; }
.checklist li { margin-bottom: 6px; }
.objectives { list-style: none; counter-reset: obj; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .objectives { grid-template-columns: repeat(2, 1fr); } }
.objectives li {
  counter-increment: obj; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 18px 18px 18px 64px; position: relative; color: var(--grey-700);
}
.objectives li::before {
  content: counter(obj); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; display: grid; place-items: center;
}
.pull-quote {
  margin: 28px 0; padding: 20px 24px; border-left: 5px solid var(--accent); background: var(--accent-soft);
  font: 700 1.1rem/1.5 var(--heading); color: var(--brand-dark); border-radius: 0 8px 8px 0;
}

.story-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
.story { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.story__body { padding: 20px 22px 24px; }
.story__body p { color: var(--grey-700); }

/* News */
.news-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-200); }
.news-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card__body { padding: 18px 22px 22px; }
.news-card__body p { color: var(--grey-700); margin: 0; }
.news-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card__date { font-size: .88rem; font-weight: 600; color: var(--brand); margin: 0; }
.article { display: grid; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--grey-200); scroll-margin-top: 100px; }
.article:last-child { border-bottom: 0; }
@media (min-width: 900px) { .article { grid-template-columns: 380px 1fr; gap: 40px; align-items: start; } }

.gallery--media a { display: block; color: inherit; text-decoration: none; }
.gallery--media a:hover img { opacity: .9; }

/* Contact */
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); flex: none; }
.form-card { background: var(--grey-100); border-radius: var(--radius); padding: 28px; }
.form-card .field { margin-bottom: 16px; }
.field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #b7c2ce; border-radius: 8px; resize: vertical; }
.field textarea:focus { border-color: var(--brand); }
.form-note { font-size: .92rem; color: var(--grey-500); }
.form-error { color: #a32020; font-weight: 600; }

/* Header fits on one line: wider container, tagline hidden on mid-size desktops */
.site-header .container { max-width: 1360px; }
@media (min-width: 1301px) and (max-width: 1440px) { .brand__tag { display: none; } }


/* ---------- Home hero slideshow ---------- */
.hero .hero__title { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.slider { position: relative; background: var(--brand-dark); }
.slider__track { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slider .photo-slot { align-items: flex-start; }
.slider__controls {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(7,47,61,.82); border-radius: 999px;
}
.slider__controls[hidden] { display: none; }
.slider__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--white);
}
.slider__btn:hover { background: rgba(255,255,255,.15); }
.slider__btn svg { width: 20px; height: 20px; }
.slider__pause .icon-play { display: none; }
.slider__pause[aria-pressed="true"] .icon-play { display: block; }
.slider__pause[aria-pressed="true"] .icon-pause { display: none; }
.slider__dots { display: flex; gap: 2px; }
.slider__dot {
  width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.slider__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--white); background: transparent; transition: background-color .2s;
}
.slider__dot[aria-current="true"]::before { background: var(--accent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- Partner logo slide ---------- */
.logo-marquee {
  overflow: hidden; margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.partner-logos.is-marquee {
  display: flex; width: max-content; margin: 0; gap: 0; grid-template-columns: none;
  animation: logo-scroll 40s linear infinite;
}
/* margin (not gap) so that exactly half the strip is one full set of logos */
.partner-logos.is-marquee li { flex: none; width: 210px; margin-right: 16px; }
.logo-marquee:hover .is-marquee, .logo-marquee.is-paused .is-marquee { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
.marquee-toggle { margin-top: 14px; }


/* ---------- Design refinements ---------- */
:root { --radius: 12px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h2 { letter-spacing: -.01em; }
.section { padding: 80px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }
.section__intro { font-size: 1.08rem; }
.section-head { margin-bottom: 32px; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--grey-900); }
.proto-banner { font-size: .82rem; padding: 6px 0; text-align: center; }

/* Small label above section titles */
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--brand);
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.kicker--light { color: var(--accent); }
.text-link {
  display: inline-block; margin-top: 4px; font-weight: 700; color: var(--brand); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.text-link:hover { color: var(--brand-dark); }
.btn--link { background: none; }

/* Header gains a soft shadow once the page scrolls */
.site-header { transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(7,47,61,.10); border-bottom-color: transparent; }

/* Key figures card, overlapping the slideshow on wide screens */
.stats-band { position: relative; z-index: 6; }
.stats-strip { background: var(--white); border-radius: 14px; box-shadow: 0 12px 36px rgba(7,47,61,.14); margin-top: 24px; padding: 6px; }
.stats-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-strip li { padding: 18px 16px; text-align: center; }
.stats-strip li:last-child { grid-column: 1 / -1; }
.stats-strip strong { display: block; font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--heading); color: var(--brand-dark); }
.stats-strip span { font-size: .92rem; color: var(--grey-500); }
@media (min-width: 900px) {
  .stats-band { margin-top: -56px; }
  .stats-strip { margin-top: 0; }
  .stats-strip ul { grid-template-columns: repeat(5, 1fr); }
  .stats-strip li:last-child { grid-column: auto; }
  .stats-strip li + li { border-left: 1px solid var(--grey-200); }
  .slider .hero__text { padding-bottom: 120px; }
  .slider__controls { bottom: 76px; }
}

/* Our work: one featured card plus four, so both rows are full */
.area-card img { aspect-ratio: auto; height: 200px; }
.area-card__body { flex: 1; }
.area-card__tag {
  align-self: flex-start; background: var(--accent); color: var(--on-accent); border-radius: 999px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px;
}
.area-card__more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--brand); }
@media (min-width: 1024px) {
  .area-card--feature { grid-column: span 2; flex-direction: row; }
  .area-card--feature img { width: 52%; height: auto; min-height: 100%; }
  .area-card--feature .area-card__body { justify-content: center; padding: 28px 32px; }
  .area-card--feature .area-card__title { font-size: 1.55rem; }
}

/* Publication previews stay short and even */
#pub-preview .pub__summary {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#pub-preview .pub__details { display: none; }

/* Logo strip control */
.marquee-toggle { display: block; margin: 12px 0 0 auto; }

/* Footer */
.site-footer { padding-top: 64px; }
.footer-grid { gap: 40px; }

.stats-strip span { display: block; line-height: 1.35; margin-top: 4px; }


/* ---------- Animations (only when JS runs and the visitor allows motion) ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ken-burns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Scroll reveal: site.js adds .reveal, then .is-visible when the element enters the screen */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.is-visible { opacity: 1; transform: none; }

/* Slideshow: text lines rise in one after another, photo slowly zooms out */
.motion .slide .photo-slot { overflow: hidden; }
.motion .slide.is-active .hero__text > * { animation: rise-in .8s cubic-bezier(.2,.7,.2,1) both; }
.motion .slide.is-active .hero__text > :nth-child(1) { animation-delay: .15s; }
.motion .slide.is-active .hero__text > :nth-child(2) { animation-delay: .3s; }
.motion .slide.is-active .hero__text > :nth-child(3) { animation-delay: .45s; }
.motion .slide.is-active .hero__text > :nth-child(4) { animation-delay: .6s; }
.motion .slide.is-active .photo-slot img { animation: ken-burns 8s ease-out both; }

/* Inner pages: title block rises in on load */
.motion .page-hero .container > * { animation: rise-in .8s cubic-bezier(.2,.7,.2,1) both; }
.motion .page-hero .container > :nth-child(2) { animation-delay: .12s; }
.motion .page-hero .container > :nth-child(3) { animation-delay: .24s; }
.motion .page-hero--image > img { animation: ken-burns 10s ease-out both; }

/* Counting numbers keep their width steady while they count */
.count-up { font-variant-numeric: tabular-nums; }


/* ---------- Publications library: sidebar filters + wide cards ---------- */
.library { padding-top: 56px; }
.library__layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .library__layout { grid-template-columns: 280px 1fr; gap: 56px; align-items: start; } }

.filters__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.filters__head h2 { font-size: 1.6rem; margin: 0; }
.filters__clear {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 600 .95rem var(--sans); color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}
.filters__clear:hover { color: var(--brand-dark); }
.filters .field { margin-bottom: 18px; }
.filters .field label { font-size: .95rem; font-weight: 700; color: var(--grey-900); }
.filters .field input, .filters .field select {
  border: 1.5px solid var(--grey-900); border-radius: 4px; padding: 12px 14px; background-color: var(--white);
}
.filters .field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2933' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.filters__info { margin-top: 32px; background: var(--grey-100); border-radius: 4px; padding: 22px 24px; font-size: .92rem; color: var(--grey-700); }
.filters__info p { margin: 0 0 14px; }
.filters__info p:last-child { margin-bottom: 0; }
.filters__info strong { color: var(--grey-900); }
@media (min-width: 960px) { .filters { position: sticky; top: 100px; } }

.library__results .pub-count { margin: 0 0 18px; font-weight: 600; }
.pub-list { display: grid; gap: 32px; }

.pub-row {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  background: var(--brand-deeper); color: #e3f1f5; padding: 28px; border-radius: 4px;
}
@media (min-width: 700px) { .pub-row { grid-template-columns: 1fr 240px; align-items: start; } }
.pub-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.pub-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--on-accent);
  font: 800 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 7px 10px; border-radius: 2px;
}
.pub-badge svg { width: 16px; height: 16px; }
.pub-row__date { font-size: .88rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #cfe3ea; }
.pub-row__title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.2; margin: 0 0 12px; color: var(--white); }
.pub-row__title a { color: inherit; text-decoration: none; }
.pub-row__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pub-row__summary { font-size: 1.04rem; line-height: 1.65; color: #d7e7ec; margin: 0 0 10px; }
.pub-row__info { font-size: .88rem; color: #9fc1cc; margin: 0 0 16px; }
.pub-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.pub-row__read { font-weight: 800; color: var(--white); text-decoration: none; font-size: 1.02rem; }
.pub-row__read:hover { color: var(--accent); }
.pub-row__download { display: inline-flex; align-items: center; gap: 6px; color: #cfe3ea; font-weight: 600; font-size: .95rem; }
.pub-row__download svg { width: 17px; height: 17px; }
.pub-row__download:hover { color: var(--white); }
.pub-row .pub__missing { color: #9fc1cc; }
.pub-row--featured { border-left: 6px solid var(--accent); }

.pub-row__media {
  background: rgba(255,255,255,.06); border-radius: 2px; padding: 14px;
  display: grid; place-items: center; min-height: 200px;
}
.pub-row__media img { max-height: 280px; width: auto; max-width: 100%; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.pub-row__media .thumb { width: 150px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
@media (max-width: 699px) { .pub-row__media { order: -1; min-height: 0; } .pub-row__media img { max-height: 220px; } }
.library .resource-note { margin-top: 40px; }


/* ---------- Typography: Plus Jakarta Sans headings, Inter body ---------- */
body { font-size: 1.0625rem; line-height: 1.65; color: var(--grey-900); }
h1, h2, h3, .hero .hero__title, .area-card__title, .pub-row__title, .footer-brand, .brand__name { font-family: var(--heading); }
h1, .hero .hero__title { font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.18; font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-weight: 700; letter-spacing: -.01em; }
.hero .hero__title { font-size: clamp(2.3rem, 4.8vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.brand__name { font-weight: 800; letter-spacing: .01em; }
.hero__lead, .page-hero__lead { font-size: 1.2rem; line-height: 1.55; }
.btn { font-family: var(--sans); font-weight: 700; letter-spacing: .005em; }
.nav__list a { font-weight: 600; font-size: .95rem; }
.kicker { font-family: var(--sans); font-weight: 800; }

/* ---------- Bigger key figures ---------- */
.stats-strip li { padding: 26px 16px; }
.stats-strip strong { font: 800 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--heading); letter-spacing: -.03em; color: var(--brand); }
.stats-strip span { font-size: .98rem; font-weight: 600; color: var(--grey-700); margin-top: 10px; }

.glance li { padding: 24px 22px; }
.glance strong { font: 800 clamp(2.4rem, 4vw, 3.3rem)/1 var(--heading); letter-spacing: -.03em; margin-bottom: 12px; }
.glance span { font-size: 1rem; line-height: 1.45; }
.glance--dark strong { color: var(--accent); }
@media (min-width: 1100px) { .glance { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

.stat__value { font: 800 2.6rem/1.05 var(--heading); letter-spacing: -.03em; }
.stat__value--pending { font-size: 1.25rem; letter-spacing: 0; }

/* The counting number sits in a span inside the figure: keep the figure's size, not the label's */
.stats-strip strong .count-up, .glance strong .count-up { display: inline; font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }

/* Five figures share a row: size them to the column so long numbers never collide */
.glance strong { font-size: clamp(2rem, 2.45vw, 2.75rem); white-space: nowrap; }
.glance li { padding: 22px 18px; min-width: 0; }


/* ---------- Programme icons ---------- */
.area-card { position: relative; }
.area-card__icon {
  position: relative; z-index: 2; align-self: flex-start;
  width: 60px; height: 60px; margin: -30px 0 0 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--white);
  border: 4px solid var(--white); box-shadow: 0 6px 16px rgba(7,47,61,.18);
  transition: background-color .2s, color .2s, transform .2s;
}
.area-card__icon svg { width: 28px; height: 28px; }
.area-card:hover .area-card__icon { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.area-card__icon + .area-card__body { padding-top: 12px; }
/* Featured card sits side by side on wide screens: put its icon on the photo corner */
.area-card--feature .area-card__icon { background: var(--accent); color: var(--on-accent); }
@media (min-width: 1024px) {
  .area-card--feature .area-card__icon { position: absolute; top: 20px; left: 0; margin: 0 0 0 20px; }
  .area-card--feature .area-card__icon + .area-card__body { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .area-card:hover .area-card__icon { transform: none; } }

.work-item__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.work-item__icon svg { width: 30px; height: 30px; }
.work-item:hover .work-item__icon { background: var(--brand); color: var(--white); }


/* ---------- Home "Our work": icon cards, no photos ---------- */
.area-grid--icons .area-card { padding: 32px 28px 28px; border-top: 4px solid transparent; }
.area-grid--icons .area-card:hover { border-top-color: var(--accent); }
.area-grid--icons .area-card__icon,
.area-grid--icons .area-card--feature .area-card__icon {
  position: static; margin: 0 0 22px; width: 68px; height: 68px; border: 0; border-radius: 18px;
  background: var(--brand-soft); color: var(--brand); box-shadow: none;
}
.area-grid--icons .area-card__icon svg { width: 34px; height: 34px; }
.area-grid--icons .area-card:hover .area-card__icon { background: var(--brand); color: var(--white); transform: none; }
.area-grid--icons .area-card__body,
.area-grid--icons .area-card__icon + .area-card__body { padding: 0; gap: 10px; }
.area-grid--icons .area-card__title { font-size: 1.3rem; }

/* ADR focus card: dark, spans two columns */
.area-grid--icons .area-card--feature { background: var(--brand-dark); border-color: var(--brand-dark); color: #cfe3ea; }
.area-grid--icons .area-card--feature .area-card__title { color: var(--white); font-size: 1.7rem; }
.area-grid--icons .area-card--feature .area-card__more { color: var(--accent); }
.area-grid--icons .area-card--feature .area-card__icon { background: var(--accent); color: var(--on-accent); }
.area-grid--icons .area-card--feature:hover .area-card__icon { background: var(--white); color: var(--brand-dark); }
@media (min-width: 1024px) {
  .area-grid--icons .area-card--feature { flex-direction: row; align-items: flex-start; gap: 28px; padding: 36px; }
  .area-grid--icons .area-card--feature .area-card__icon { width: 84px; height: 84px; flex: none; margin: 0; }
  .area-grid--icons .area-card--feature .area-card__icon svg { width: 42px; height: 42px; }
}


/* ---------- Generated document cover (used when no real cover exists) ---------- */
.thumb {
  container-type: inline-size; position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; width: 100%; border: 0; border-radius: 3px;
  padding: 11% 10% 10%; display: flex; flex-direction: column; gap: 6%;
  background:
    radial-gradient(circle at 115% 105%, rgba(247,178,122,.35) 0 28%, transparent 29%),
    radial-gradient(circle at 115% 105%, transparent 0 36%, rgba(247,178,122,.18) 37% 39%, transparent 40%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 55%, var(--brand-deeper) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.thumb__org { font: 800 6.2cqw/1.2 var(--sans); letter-spacing: .12em; color: var(--accent); }
.thumb__rule { display: block; width: 22%; height: 3px; background: var(--accent); border-radius: 2px; }
.thumb__title { font: 800 9.5cqw/1.2 var(--heading); color: var(--white); letter-spacing: -.01em; }
.thumb__type {
  margin-top: auto; align-self: flex-start; background: var(--accent); color: var(--on-accent);
  font: 800 6cqw/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4% 6%; border-radius: 2px;
}

/* ---------- Publication preview tiles ---------- */
.pub-grid:has(.pub-tile) { gap: 28px; }
.pub-tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 16px;
  box-shadow: 0 2px 6px rgba(7,47,61,.05);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.pub-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(7,47,61,.16); }
.pub-tile:focus-within { outline: 3px solid #f2b705; outline-offset: 3px; }

/* Tinted shelf with the cover standing on it */
.pub-tile__shelf {
  position: relative; height: 270px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.9) 0, transparent 45%),
    linear-gradient(160deg, var(--brand-soft) 0%, #cfe6ee 100%);
}
.pub-tile__shelf::after {
  content: ""; position: absolute; left: 50%; bottom: 26px; width: 150px; height: 14px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(7,47,61,.28), transparent 70%);
}
.pub-tile__book {
  position: relative; z-index: 1; width: 150px;
  transform: rotate(-4deg); transform-origin: bottom center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  border-radius: 2px 6px 6px 2px; box-shadow: 12px 16px 28px rgba(7,47,61,.30);
}
/* spine shading and page edges */
.pub-tile__book::before {
  content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 8px; border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 60%, transparent);
}
.pub-tile__book::after {
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; right: -5px; width: 6px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #fbfbfb 0 2px, #e2e6ea 2px 3px);
}
.pub-tile__book .pub__cover img, .pub-tile__book .thumb {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 0; border-radius: 2px 6px 6px 2px; box-shadow: none;
}
.pub-tile:hover .pub-tile__book { transform: rotate(0deg) translateY(-10px) scale(1.04); }

.pub-tile__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 20px; }
.pub-tile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-size: .86rem; color: var(--grey-500); font-weight: 600; }
.pub-tile__type {
  background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 10px;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.pub-tile__title {
  font-size: 1.18rem; line-height: 1.3; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-tile__title a { color: var(--brand-dark); text-decoration: none; }
.pub-tile__title a:focus-visible { outline: none; }
/* the title link fills the whole tile */
.pub-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pub-tile__summary {
  margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: var(--grey-700);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-tile__foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--grey-200);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pub-tile__read { font-weight: 800; color: var(--brand); }
.pub-tile__read span { display: inline-block; transition: transform .25s; }
.pub-tile:hover .pub-tile__read span { transform: translateX(5px); }
.pub-tile__download {
  position: relative; z-index: 2; width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand); background: var(--brand-soft);
  transition: background-color .2s, color .2s;
}
.pub-tile__download svg { width: 19px; height: 19px; }
.pub-tile__download:hover { background: var(--brand); color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .pub-tile, .pub-tile__book, .pub-tile__read span { transition: none; }
  .pub-tile:hover, .pub-tile:hover .pub-tile__book, .pub-tile:hover .pub-tile__read span { transform: none; }
  .pub-tile__book { transform: none; }
}

/* Keep long cover titles inside the cover and the type label on its own line */
.thumb__title { font-size: 8.4cqw; line-height: 1.22; min-height: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.thumb__type { flex: none; white-space: nowrap; }


/* ---------- Full-width partnership banner ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 560px; display: grid; place-items: center; text-align: center;
  padding: 96px 0; color: var(--white);
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* darker at the bottom where the text sits, so it stays readable over any photo */
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,47,61,.35) 0%, rgba(7,47,61,.62) 45%, rgba(7,47,61,.88) 100%);
}
.cta-band__content { max-width: 920px; }
.cta-band h2 {
  color: var(--white); margin: 0 0 18px;
  font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -.03em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.cta-band__text {
  max-width: 680px; margin: 0 auto 34px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: #e3f1f5;
}
.cta-band__btn {
  background: var(--accent); color: var(--on-accent); border-radius: 4px;
  padding: 18px 44px; font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.cta-band__btn:hover { background: var(--white); color: var(--brand-dark); }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.motion .cta-band__bg { transform: scale(1.08); transition: transform 6s ease-out; }
.motion .cta-band.is-inview .cta-band__bg { transform: scale(1); }
@media (max-width: 600px) { .cta-band { min-height: 480px; padding: 72px 0; } .cta-band__btn { padding: 16px 32px; } }


/* ---------- News & Media page ---------- */
.page-hero--tall { padding: 56px 0 64px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump-links a {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 9px 18px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.jump-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#news, #media { scroll-margin-top: 90px; }

/* Featured story */
.story-feature {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 18px;
  box-shadow: 0 10px 34px rgba(7,47,61,.09);
}
@media (min-width: 960px) { .story-feature { grid-template-columns: 1.05fr 1fr; } }
.story-feature__media { position: relative; margin: 0; min-height: 280px; }
.story-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-feature__tag {
  position: absolute; left: 20px; top: 20px; background: var(--accent); color: var(--on-accent);
  font: 800 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px;
}
.story-feature__body { padding: 32px 28px; }
@media (min-width: 960px) { .story-feature__body { padding: 44px 44px 40px; } }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 14px; font-size: .9rem; font-weight: 600; color: var(--grey-500); }
.story-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.story-meta svg { width: 16px; height: 16px; color: var(--brand); }
.story-meta__topic { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 11px; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.story-feature__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.18; margin: 0 0 14px; }
.story-feature__lead { font-size: 1.1rem; line-height: 1.6; color: var(--grey-700); margin: 0 0 22px; }

.story-results { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 18px 22px; margin-bottom: 22px; }
.story-results__title { margin: 0 0 10px; font: 800 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.story-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.story-results li { position: relative; padding-left: 28px; color: var(--grey-900); font-size: .98rem; }
.story-results li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.story-more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-weight: 800; color: var(--brand); padding: 10px 0;
}
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.story-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.story-more__close, .story-more[open] .story-more__open { display: none; }
.story-more[open] .story-more__close { display: inline; }
.story-more .prose { padding-top: 10px; border-top: 1px solid var(--grey-200); margin-top: 6px; }
.story-more .prose p { color: var(--grey-700); }

/* More news + media enquiries */
.news-more { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 900px) { .news-more { grid-template-columns: 2fr 1fr; } }
.news-tile {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 18px; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .news-tile { grid-template-columns: 240px 1fr; } }
.news-tile__media { margin: 0; min-height: 200px; position: relative; }
.news-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-tile__body { padding: 24px 26px; }
.news-tile__title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 10px; }
.news-tile__body p { color: var(--grey-700); font-size: .98rem; }
.badge-soon { display: inline-block; margin: 4px 0 0; background: var(--grey-100); color: var(--grey-500) !important; border-radius: 999px; padding: 5px 12px; font-size: .82rem !important; font-weight: 700; }
.news-cta { background: var(--brand-dark); color: #cfe3ea; border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.news-cta > svg { width: 44px; height: 44px; color: var(--accent); }
.news-cta h3 { color: var(--white); font-size: 1.3rem; margin: 4px 0 0; }
.news-cta p { margin: 0 0 8px; font-size: .97rem; }
.news-cta__link { color: var(--white); font-weight: 700; text-decoration: none; margin-top: 6px; }
.news-cta__link:hover { color: var(--accent); }

/* Gallery */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.gallery-filter[hidden] { display: none; }
.gallery-filter button {
  font: 700 .92rem var(--sans); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--grey-200); background: var(--white); color: var(--grey-900);
}
.gallery-filter button:hover { border-color: var(--brand); color: var(--brand); }
.gallery-filter button[aria-pressed="true"] { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }

.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }
.photo-grid__item[hidden] { display: none; }
.photo-grid__item--wide { grid-column: span 2; }
.photo-grid__item--tall { grid-row: span 2; }
.photo-grid__item a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: var(--grey-200); }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.photo-grid__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; color: #e3f1f5; font-size: .82rem; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(7,47,61,.88));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.photo-grid__cap b { display: block; color: var(--white); font: 700 .98rem/1.3 var(--heading); }
.photo-grid__item a:hover img, .photo-grid__item a:focus-visible img { transform: scale(1.06); }
.photo-grid__item a:hover .photo-grid__cap, .photo-grid__item a:focus-visible .photo-grid__cap { opacity: 1; transform: none; }
@media (hover: none) { .photo-grid__cap { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .photo-grid__item img, .photo-grid__cap { transition: none; } }

/* Lightbox */
.lightbox { width: min(1100px, 94vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(4,26,34,.92); }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__figure figcaption { margin-top: 14px; color: #cfe3ea; font-size: .95rem; }
.lightbox__figure figcaption strong { color: var(--white); }
.lightbox__count { display: block; margin-top: 4px; color: var(--accent); font-weight: 700; font-size: .85rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.14); color: var(--white);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); color: var(--on-accent); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { right: 0; top: -58px; }
.lightbox__nav { top: calc(39vh - 24px); }
.lightbox__nav--prev { left: -8px; }
.lightbox__nav--next { right: -8px; }
@media (min-width: 1200px) { .lightbox__nav--prev { left: -64px; } .lightbox__nav--next { right: -64px; } }

/* News page with a single story: media enquiries as a full-width banner */
.news-more--single { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .news-cta--wide { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 24px; padding: 28px 32px; }
  .news-cta--wide > svg { grid-row: span 2; }
  .news-cta--wide h3 { margin: 0; }
  .news-cta--wide p { grid-column: 2; margin: 0; }
  .news-cta--wide .btn { grid-column: 3; grid-row: 1 / span 2; }
  .news-cta--wide .news-cta__link { grid-column: 4; grid-row: 1 / span 2; margin: 0; }
}
/* ---------- Social media icons ---------- */
.social-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: var(--white); text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.social-links a:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.social-links svg { width: 19px; height: 19px; }
/* Contact page: icons with names, on a light background */
.social-links--labelled { margin-top: 10px; gap: 8px 18px; }
.social-links--labelled a { width: auto; height: auto; border-radius: 0; background: none; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.social-links--labelled a:hover { background: none; color: var(--brand-dark); transform: none; text-decoration: underline; }
.social-links--labelled svg { width: 20px; height: 20px; }
/* News page media box */
.news-cta__social { margin-top: 4px; }
@media (min-width: 800px) { .news-cta--wide .news-cta__social { grid-column: 4; grid-row: 1 / span 2; margin: 0; } }
/* Contact form confirmation */
.form-success { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; padding: 12px 16px; color: var(--brand-dark); font-weight: 600; }
.contact-list .social-links svg { width: 20px; height: 20px; padding: 0; border-radius: 0; background: none; color: var(--brand); flex: none; }
.contact-list .social-links li { display: block; }

.site-footer ul.social-links { display: flex; gap: 10px; }
