/* ==========================================================================
   Dikuno Community Development Trust — site stylesheet
   Shared by the WordPress theme and the static HTML site.

   EASY EDITS: colours, fonts and widths are all variables in the :root block
   below. Change a value there and it updates across the whole site.
   ========================================================================== */

:root {
  /* Colours — taken from the Dikuno 2025 Annual Report */
  --paper: #fdfaf3;        /* page background */
  --cream: #f6ebd2;        /* soft card background */
  --cream-deep: #ecd9aa;   /* borders and accents on cream */
  --forest: #1f4d2e;       /* main brand green (headings, buttons) */
  --forest-deep: #10301e;  /* footer, hero overlay, dark bands */
  --leaf: #5d7c33;         /* olive green accent */
  --orange: #d27a24;       /* burnt orange accent */
  --terracotta: #b2432a;   /* terracotta accent */
  --gold: #c79a1f;         /* quote marks and rules */
  --sun: #ffe53b;          /* the report's yellow: buttons and contour lines */
  --ink: #26261f;          /* body text */
  --muted: #5a5a4d;        /* secondary text */
  --brown: #8f5f31;        /* light-weight heading line */
  --line: #e6d8b8;

  /* Type */
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --measure: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--forest-deep); }

.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--sun); color: var(--forest-deep);
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--forest); }
p { margin: 0 0 1.1em; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, button.btn {
  display: inline-block; padding: .8em 1.7em; border-radius: 999px; border: 2px solid var(--sun);
  background: var(--sun); color: var(--forest-deep); font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover, .wp-block-button__link:hover { background: #ffd400; border-color: #ffd400; color: var(--forest-deep); }
.btn--green { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--green:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest-deep); }

/* ---------- Top bar + header ---------- */
.site-top { position: sticky; top: 0; z-index: 60; }
.topbar { background: var(--forest-deep); color: #e9e2cc; font-size: .8rem; line-height: 1.45; }
.topbar .wrap { padding-block: .4rem; text-align: center; }
.topbar p { margin: 0; max-width: none; }
.topbar strong { color: var(--sun); }
.topbar a { color: var(--sun); text-decoration: underline; text-underline-offset: .15em; font-weight: 600; }
.topbar a:hover, .topbar a:focus-visible { color: #fff; }
.social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(255,255,255,.12); }
.social a:hover { background: var(--sun); color: var(--forest-deep); }
.social svg { width: 1rem; height: 1rem; fill: currentColor; }

.site-header { position: relative; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }
.brand { display: block; flex: none; }
.brand img { height: 4.2rem; width: auto; }
.nav-toggle { display: none; }

.primary-nav .menu, .primary-nav .menu ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; gap: .1rem; }
.primary-nav .menu > li { position: relative; }
.primary-nav a {
  display: block; padding: .75rem .8rem; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .98rem; line-height: 1.2; border-radius: 999px;
}
.primary-nav .menu > li > a:hover, .primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a, .primary-nav a[aria-current="page"] { color: var(--forest); background: var(--cream); }
.primary-nav .menu > .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; vertical-align: .12em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-toggle { display: none; }
.primary-nav .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 14.5rem; padding: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 30px rgba(16,48,30,.14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu,
.primary-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: 8px; font-weight: 500; padding: .6rem .8rem; }
.primary-nav .sub-menu a:hover { background: var(--cream); color: var(--forest); }
/* Third level: opens to the left of its parent item so it never runs off the right edge of the screen */
.primary-nav .sub-menu li { position: relative; }
.primary-nav .sub-menu .sub-menu { left: auto; right: calc(100% - .25rem); top: -.55rem; }
.primary-nav .sub-menu > li:hover > .sub-menu, .primary-nav .sub-menu > li:focus-within > .sub-menu,
.primary-nav .sub-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu > .menu-item-has-children > a::after {
  content: ""; float: right; width: .42em; height: .42em; margin: .45em .1em 0 .8em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(135deg);
}
.search-toggle { background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--ink); border-radius: 50%; }
.search-toggle:hover { background: var(--cream); }
.search-toggle svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.header-search { background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.header-search[hidden] { display: none; }
.header-search form { display: flex; gap: .6rem; }
.header-search input[type="search"] { flex: 1; padding: .8rem 1.1rem; border: 1px solid var(--cream-deep); border-radius: 999px; font: inherit; background: #fff; }

@media (min-width: 1061px) {
  /* logo left, main menu centred on the page */
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .primary-nav { grid-column: 2; grid-row: 1; }
  .site-header .search-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 1060px) {
  .site-header .wrap { min-height: 4.5rem; }
  .brand img { height: 3.4rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; background: var(--forest); color: #fff; border: 0;
    padding: .65rem 1.1rem; border-radius: 999px; font: 700 .95rem var(--font-body); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(16,48,30,.12); display: none; max-height: calc(100vh - 7rem); overflow: auto; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; padding: .6rem var(--gutter) 1.2rem; gap: 0; }
  .primary-nav a { padding: .85rem .5rem; border-radius: 8px; font-size: 1.02rem; }
  .primary-nav .menu > li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .primary-nav .menu > li > .sub-menu { grid-column: 1 / -1; }
  .primary-nav .menu > .menu-item-has-children > a::after { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: none; border: 0; cursor: pointer; color: var(--forest); }
  .sub-toggle::before { content: ""; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-top: -.25rem; }
  li.is-open > .sub-toggle::before { transform: rotate(225deg); margin-top: .25rem; }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--sun); border-radius: 0; background: transparent; display: none; padding: 0 0 .5rem .8rem; margin-left: .3rem; }
  .primary-nav li.is-open > .sub-menu { display: block; }
  .primary-nav .sub-menu > li { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .primary-nav .sub-menu > li > .sub-menu { grid-column: 1 / -1; }
  .primary-nav .sub-menu > .menu-item-has-children > a::after { display: none; }
  .primary-nav .sub-menu .sub-menu { right: auto; top: auto; margin-left: .3rem; }
}

@media (max-width: 700px) { .topbar { font-size: .7rem; line-height: 1.35; } .topbar .wrap { padding-block: .35rem; } }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--forest-deep); color: #fff; isolation: isolate; overflow: hidden; }
.hero__slides { position: relative; height: clamp(26rem, 68vh, 40rem); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
/* Photo-only slide (trustees): no text, no dark overlay, so faces stay clear */
.hero__slide--photo::before { display: none; }
.hero__slide--photo .hero__bg img { object-position: center 65%; }
@media (min-width: 701px) { .hero__slide--photo .hero__bg img { object-position: center top; } }
.hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,38,24,.92) 0%, rgba(10,38,24,.74) 38%, rgba(10,38,24,.18) 72%, rgba(10,38,24,0) 100%);
}
.hero__content { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 3rem 5rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1; color: #fff; margin: 0 0 1.1rem; max-width: 15ch; text-wrap: balance;
}
.hero__text { font-size: clamp(1.02rem, 1.6vw, 1.25rem); max-width: 34rem; margin: 0 0 1.8rem; color: #f4eed9; }
.hero__ui { position: absolute; z-index: 5; right: var(--gutter); bottom: 1.5rem; display: flex; align-items: center; gap: .8rem; padding: .4rem .6rem; border-radius: 999px; background: rgba(16,48,30,.55); }
.hero__dots { display: flex; gap: .5rem; }
.hero__dot { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero__dot[aria-current="true"] { background: var(--sun); border-color: var(--sun); }
.hero__arrow, .hero__pause {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(16,48,30,.55); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.hero__arrow:hover, .hero__pause:hover { background: var(--sun); border-color: var(--sun); color: var(--forest-deep); }
.hero__arrow svg, .hero__pause svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
.hero.is-paused .hero__pause .i-pause { display: none; }
@media (max-width: 700px) {
  .hero__slide::before { background: linear-gradient(180deg, rgba(10,38,24,.55) 0%, rgba(10,38,24,.9) 100%); }
  .hero__content { justify-content: flex-end; padding-block: 2rem 6rem; }
  .hero__ui { left: var(--gutter); right: auto; }
  .hero__arrow { display: none; }
}

/* ---------- Inner page header ---------- */
.page-hero { position: relative; background: var(--forest-deep); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; right: -4rem; top: -6rem; width: 28rem; height: 28rem; background: url("../images/contour-arcs.svg") center / contain no-repeat; opacity: .55; z-index: -1; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4.5rem; background: url("../images/contour-band.svg") center / 100% 100% no-repeat; opacity: .8; z-index: -1; }
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; color: #fff; margin: 0; }
.page-hero p { margin: .9rem 0 0; font-size: 1.15rem; color: #efe6c8; max-width: 38rem; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; color: #cfc7aa; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--sun); }

/* ---------- Page body ---------- */
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry-content > * { margin-left: 0; margin-right: auto; }
.entry-content > :is(p, ul, ol, h2, h3, h4, blockquote, .wp-block-quote, .wp-block-heading, .wp-block-list, .wp-block-paragraph) { max-width: var(--measure); }
.entry-content > :is(h2, .wp-block-heading) { margin-top: 2.2em; font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 800; }
.entry-content > h3 { margin-top: 1.8em; font-size: 1.3rem; color: var(--brown); }
.entry-content > :where(ul, ol)[class]:not(.wp-block-list) { max-width: var(--wrap); padding-left: 0; }
.entry-content > .dk-timeline, .entry-content > .dk-allocation { width: min(100%, 54rem); }
.entry-content :where(ul, ol):not([class]), .entry-content .wp-block-list { padding-left: 1.3em; }
.entry-content :where(ul, ol):not([class]) > li, .entry-content .wp-block-list > li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--orange); }
.entry-content > .anchor { height: 0; scroll-margin-top: 10.5rem; margin: 0; max-width: none; }
.entry-content > .anchor + * { margin-top: 0; }
.entry-content > .dk-title { margin-top: clamp(3rem, 7vw, 5rem); }
.entry-content > .anchor + .dk-title, .entry-content > .anchor:first-child + .dk-title { margin-top: 0; }
.entry-content > .anchor { margin-top: clamp(3rem, 7vw, 5rem); }
.entry-content > .anchor:first-child { margin-top: 0; }
[id] { scroll-margin-top: 10.5rem; }

blockquote, .wp-block-quote {
  position: relative; margin: 2rem auto; padding: 1.4rem 1.6rem 1.2rem 3.6rem; background: var(--cream);
  border-radius: var(--radius); font-style: italic; color: #2f4a2a;
}
blockquote::before, .wp-block-quote::before { content: "\201C"; position: absolute; left: .9rem; top: .1rem; font: 700 4.4rem/1 Georgia, serif; color: var(--gold); }
blockquote p, .wp-block-quote p { margin: 0 0 .6em; }
blockquote cite, .wp-block-quote cite { display: block; font-style: normal; font-weight: 700; font-size: .95rem; color: var(--forest); }

/* ---------- Two-line brand headings: light line over bold line ----------
   In the editor, write:  Our <strong>Vision</strong>  (the bold word becomes the second line) */
.dk-title { text-transform: uppercase; font-weight: 300; color: var(--brown); line-height: 1.04; margin: 0 0 1.1rem; font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: .005em; max-width: none; }
.dk-title strong, .dk-title b { display: block; font-weight: 800; color: var(--forest); }
.dk-title--light { color: #e8d9aa; }
.dk-title--light strong { color: #fff; }
.dk-title--center { text-align: center; }
.dk-title::after { content: ""; display: block; width: 3.5rem; height: 4px; margin-top: .9rem; background: var(--sun); border-radius: 4px; }
.dk-title--center::after { margin-inline: auto; }
.entry-content > .dk-title { max-width: var(--wrap); }

/* ---------- Split (image + text) ---------- */
.dk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; max-width: var(--wrap); margin-block: clamp(1.5rem, 4vw, 3rem); }
.dk-split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dk-split--flip > :first-child { order: 2; }
.dk-split img, .dk-split .wp-block-image img { width: 100%; object-fit: cover; }
.dk-split figure { margin: 0; }
.dk-split--arch figure img, .dk-split--arch .wp-block-image img, .dk-arch img, img.dk-arch { aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 32% 32% 18px 18px; }
.dk-split--photo figure img, .dk-split--photo .wp-block-image img { aspect-ratio: 4 / 3; border-radius: 6px var(--radius) 6px var(--radius); }
.dk-split__text > :last-child { margin-bottom: 0; }
.dk-split__text .dk-title { margin-top: 0; }
@media (max-width: 800px) {
  .dk-split, .dk-split--flip { grid-template-columns: minmax(0, 1fr); }
  .dk-split--flip > :first-child { order: 0; }
  .dk-split--arch img, .dk-arch img { max-width: 22rem; margin-inline: auto; }
}

/* WordPress "Media & Text" block used as an image + text row */
.entry-content .wp-block-media-text, .home-content .wp-block-media-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; max-width: var(--wrap); margin-block: clamp(1.5rem, 4vw, 3rem); }
.entry-content .wp-block-media-text.has-media-on-the-right, .home-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.wp-block-media-text .wp-block-media-text__media { margin: 0; grid-row: 1; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { grid-column: 2; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
.wp-block-media-text .wp-block-media-text__media img { width: 100%; height: auto; object-fit: cover; }
.wp-block-media-text .wp-block-media-text__content { padding: 0; }
.wp-block-media-text__content > :last-child { margin-bottom: 0; }
.wp-block-media-text.dk-split--arch .wp-block-media-text__media img { aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 32% 32% 18px 18px; }
.wp-block-media-text.dk-split--photo .wp-block-media-text__media img { aspect-ratio: 4 / 3; border-radius: 6px var(--radius) 6px var(--radius); }
.wp-block-media-text.dk-split--plain .wp-block-media-text__media img { border-radius: 0; aspect-ratio: auto; }
.wp-block-media-text.pillar-mt { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: clamp(2rem, 5vw, 3.5rem); }
.entry-content .wp-block-media-text.pillar-mt.has-media-on-the-right, .home-content .wp-block-media-text.pillar-mt.has-media-on-the-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-media-text.pillar-mt .wp-block-media-text__media img { aspect-ratio: 3 / 2; border-radius: 6px var(--radius) 6px var(--radius); }
.wp-block-media-text.pillar-mt.has-media-on-the-right .wp-block-media-text__media img { border-radius: var(--radius) 6px var(--radius) 6px; }
@media (max-width: 800px) {
  .entry-content .wp-block-media-text, .home-content .wp-block-media-text, .entry-content .wp-block-media-text.has-media-on-the-right,
  .entry-content .wp-block-media-text.pillar-mt.has-media-on-the-right, .home-content .wp-block-media-text.has-media-on-the-right, .home-content .wp-block-media-text.pillar-mt.has-media-on-the-right { grid-template-columns: minmax(0, 1fr) !important; }
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media, .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: auto; }
  .wp-block-media-text.dk-split--arch .wp-block-media-text__media img { max-width: 22rem; margin-inline: auto; }
}
.wp-block-buttons { gap: .6rem; margin-top: 1.2rem; }
.wp-block-button.btn--green .wp-block-button__link { background: var(--forest); border-color: var(--forest); color: #fff; }
.wp-block-button.btn--green .wp-block-button__link:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.wp-block-button.btn--ghost .wp-block-button__link { background: transparent; color: var(--forest); border-color: var(--forest); }
.wp-block-button.btn--ghost .wp-block-button__link:hover { background: var(--forest); color: #fff; }

/* Home page content area (WordPress) */
.home-content > * { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.home-content > .dk-stats, .home-content > .cta-band, .home-content > .home-section, .home-content > .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.home-content > .dk-title { margin-top: clamp(3rem, 7vw, 5.5rem); }
.home-content > .dk-title.dk-title--center { text-align: center; }
.home-content > .intro-text { max-width: 52rem; text-align: center; font-size: 1.2rem; color: #3b3b30; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.home-content > .intro-text strong { color: var(--forest); }
.home-content > .home-section { margin-block: 0; }

/* ---------- Callout (vision/mission, notes) ---------- */
.dk-callout { max-width: var(--wrap); background: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); position: relative; overflow: hidden; margin-block: 2.5rem; }
.dk-callout::after { content: ""; position: absolute; right: -3rem; bottom: -3rem; width: 14rem; height: 14rem; background: url("../images/contour-arcs.svg") center / contain no-repeat; opacity: .5; transform: rotate(180deg); pointer-events: none; }
.dk-callout h3, .dk-callout .dk-callout__title { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--forest); font-weight: 800; }
.dk-callout p { margin: 0; position: relative; z-index: 1; }
.dk-callout--2 { --cols: 2; }
@media (max-width: 800px) { .dk-callout--2 { --cols: 1; } }
.entry-content > .dk-callout:not(.dk-callout--2) { max-width: var(--measure); }

/* ---------- Home: intro ---------- */
.intro { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); text-align: center; }
.intro__inner { max-width: 52rem; margin-inline: auto; }
.intro .dk-title { text-align: center; }
.intro .dk-title::after { margin-inline: auto; }
.intro p { font-size: 1.2rem; color: #3b3b30; }
.intro p strong { color: var(--forest); }

/* ---------- Home: feature rows ---------- */
.features { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.features .dk-split { margin-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Stats band ---------- */
.dk-stats { position: relative; background: var(--forest); color: #fff; overflow: hidden; isolation: isolate; padding-block: clamp(3.5rem, 8vw, 6rem); }
.dk-stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/contour-wave.svg") center / cover no-repeat; opacity: .28; }
.dk-stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem); }
.dk-stats__item { border-top: 3px solid var(--sun); padding-top: 1rem; }
.dk-stats__num { font-variant-numeric: tabular-nums; display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; color: var(--sun); }
.dk-stats__label { display: block; margin-top: .45rem; color: #efe9d2; font-size: 1.02rem; line-height: 1.4; max-width: 15rem; }
.dk-stats .dk-title { margin-bottom: 2.5rem; }
.entry-content > .dk-stats { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
@media (max-width: 800px) { .dk-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .dk-stats__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pillars ---------- */
.dk-pillars { max-width: var(--wrap); }
.home-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.home-section--cream { background: var(--cream); }
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-block: clamp(2rem, 5vw, 3.5rem); }
.pillar:nth-child(even) .pillar__media { order: 2; }
.pillar .pillar__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px var(--radius) 6px var(--radius); }
.pillar:nth-child(even) .pillar__media img { border-radius: var(--radius) 6px var(--radius) 6px; }
.pillar__title { text-transform: uppercase; margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; font-weight: 300; color: var(--brown); }
.pillar__title strong { display: block; font-weight: 800; color: var(--forest); }
.pillar__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.pillar__tags li { background: var(--cream); border: 1px solid var(--cream-deep); color: var(--forest); font-weight: 700; padding: .3rem .9rem; border-radius: 999px; font-size: .92rem; margin: 0; }
.home-section--cream .pillar__tags li { background: #fff; }
@media (max-width: 800px) { .pillar { grid-template-columns: minmax(0, 1fr); } .pillar:nth-child(even) .pillar__media { order: 0; } }

/* ---------- Goals ---------- */
.dk-goals { max-width: var(--wrap); list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; margin-block: 2rem; }
.dk-goal { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; text-align: center; margin: 0; }
.dk-goal:nth-child(4) { grid-column: 2 / span 2; }
.dk-goal:nth-child(5) { grid-column: 4 / span 2; }
.dk-goal img { width: 7.5rem; height: 7.5rem; object-fit: contain; margin: 0 auto 1rem; }
.dk-goal h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 .4rem; }
.dk-goal p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.home-section--cream .dk-goal { border-color: var(--cream-deep); }
@media (max-width: 900px) { .dk-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dk-goal, .dk-goal:nth-child(4), .dk-goal:nth-child(5) { grid-column: auto; } .dk-goal:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .dk-goals { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pathway ---------- */
.dk-pathway { max-width: var(--wrap); list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; margin-block: 1.5rem 2.5rem; position: relative; }
.dk-pathway li { position: relative; padding-top: 4.4rem; margin: 0; counter-increment: step; }
.dk-pathway li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--sun); font: 700 1.5rem var(--font-display); z-index: 1; }
.dk-pathway li::after { content: ""; position: absolute; top: 1.6rem; left: 3.2rem; right: -1.25rem; border-top: 2px dashed var(--orange); }
.dk-pathway li:last-child::after { display: none; }
.dk-pathway h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.dk-pathway p { font-size: .96rem; line-height: 1.55; margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .dk-pathway { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .dk-pathway li { padding: 0 0 0 4.4rem; min-height: 3.2rem; }
  .dk-pathway li::after { top: 3.4rem; bottom: -1.4rem; left: 1.6rem; right: auto; border-top: 0; border-left: 2px dashed var(--orange); }
}

/* ---------- Timeline ---------- */
.dk-timeline { max-width: 54rem; list-style: none; padding: 0; margin: 2rem 0; position: relative; }
.dk-timeline::before { content: ""; position: absolute; left: 9.65rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--cream-deep); }
.dk-timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 2.4rem; margin: 0 0 2.2rem; position: relative; }
.dk-timeline li::after { content: ""; position: absolute; left: 9.1rem; top: .75rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--forest); border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--forest); }
.dk-timeline__year { font: 700 2rem/1.1 var(--font-display); color: var(--forest); text-align: right; padding-top: .2rem; }
.dk-timeline h3 { margin: 0 0 .3rem; font-size: 1.15rem; color: var(--terracotta); }
.dk-timeline p { margin: 0; color: #3f3f33; }
@media (max-width: 600px) {
  .dk-timeline::before { left: .6rem; }
  .dk-timeline li { grid-template-columns: minmax(0, 1fr); gap: .2rem; padding-left: 2.2rem; }
  .dk-timeline li::after { left: 0; }
  .dk-timeline__year { text-align: left; }
}

/* ---------- Footprint rings ---------- */
.dk-footprint { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-block: 1.5rem 2rem; }
.rings { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, transparent 22.3%), var(--cream); display: grid; place-items: center; }
.rings::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: var(--cream-deep); border: 2px dashed var(--orange); }
.rings::after { content: ""; position: absolute; inset: 31%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--gold); }
.rings__core { position: relative; z-index: 2; text-align: center; line-height: 1.15; font-weight: 800; color: var(--forest); font-size: .95rem; }
.rings__core strong { display: block; font: 700 1.55rem var(--font-display); color: var(--orange); }
.rings__label { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); text-align: center; font-size: .8rem; font-weight: 700; color: var(--forest); line-height: 1.2; background: var(--paper); padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.rings__label--a { top: 22.5%; }
.rings__label--b { top: 3.5%; }
.dk-footprint ul { padding-left: 1.2em; }
.dk-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.dk-facts li { margin: 0; border-left: 4px solid var(--sun); padding-left: .9rem; }
.dk-facts strong { display: block; font: 700 2rem/1 var(--font-display); color: var(--forest); }
.dk-facts span { font-size: .9rem; color: var(--muted); line-height: 1.35; display: block; }
@media (max-width: 800px) { .dk-footprint { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .dk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dk-facts li:last-child { grid-column: 1 / -1; } }

/* ---------- Foreword ---------- */
.dk-foreword { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; background: var(--forest); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3.5rem); margin-block: 3rem; overflow: hidden; position: relative; isolation: isolate; }
.dk-foreword::before { content: ""; position: absolute; inset: 0; background: url("../images/contour-band.svg") center bottom / 100% 60% no-repeat; opacity: .35; z-index: -1; }
.dk-foreword img { width: min(100%, 17rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--sun); margin-inline: auto; }
.dk-foreword blockquote { background: transparent; color: #fff; padding: 0 0 0 3.2rem; margin: 0 0 1rem; font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.3; font-style: italic; }
.dk-foreword blockquote::before { color: var(--sun); left: 0; }
.dk-foreword cite { color: var(--sun); }
.dk-foreword p { color: #e9e2cc; margin: 0 0 1.2rem; }
@media (max-width: 800px) { .dk-foreword { grid-template-columns: minmax(0, 1fr); text-align: center; } .dk-foreword blockquote { padding-left: 0; padding-top: 3rem; } .dk-foreword blockquote::before { left: 50%; transform: translateX(-50%); top: -.5rem; } }

/* ---------- Team ---------- */
.dk-team { max-width: var(--wrap); }
.dk-team h2, .dk-team .dk-team__heading { max-width: none; }
.team-grid { list-style: none; padding: 0; margin: 1.5rem 0 3.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.25rem; }
.team-card { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 1.6rem 1rem 1.4rem; text-align: center; }
.team-card__photo { width: 8.5rem; height: 8.5rem; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); background: #fff; display: grid; place-items: center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card__initials { font: 700 2.4rem var(--font-display); color: var(--forest); }
.team-card h3 { margin: 0 0 .1rem; font-size: 1.08rem; color: var(--ink); font-weight: 700; }
.team-grid--admin { grid-template-columns: repeat(auto-fill, minmax(15rem, 20rem)); }
.team-card__logo { height: 7rem; margin: 0 auto 1rem; padding: .9rem 1rem; background: #fff; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--cream-deep); display: grid; place-items: center; }
.team-card__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.team-card p { margin: 0; color: var(--forest); font-size: .93rem; font-weight: 600; line-height: 1.35; }
.team-chair { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem); margin: 1.5rem 0 3rem; }
.team-chair .team-card__photo { width: 11rem; height: 11rem; border-color: var(--sun); margin: 0; }
.team-chair h3 { color: #fff; font-size: 1.6rem; margin: 0 0 .2rem; }
.team-chair p { margin: 0; color: var(--sun); font-weight: 700; }
@media (max-width: 560px) { .team-chair { grid-template-columns: minmax(0, 1fr); text-align: center; } .team-chair .team-card__photo { margin-inline: auto; } }
.committees { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: var(--wrap); margin-block: 1.5rem 2rem; }
.committee { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.4rem; border-top: 5px solid var(--leaf); }
.committee:nth-child(2) { border-top-color: var(--orange); }
.committee:nth-child(3) { border-top-color: var(--terracotta); }
.committee h3 { font-size: 1.12rem; margin: 0 0 .5rem; }
.committee p { margin: 0; font-size: .97rem; color: #3f3f33; line-height: 1.55; }
@media (max-width: 800px) { .committees { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Alchemy family ---------- */
.dk-alchemy { max-width: var(--wrap); text-align: center; margin-block: 2rem; }
.dk-alchemy__node { display: inline-block; background: #fff; border: 3px solid var(--gold); border-radius: 999px; padding: .8rem 1.8rem; font-weight: 800; color: var(--forest); }
.dk-alchemy__link { width: 2px; height: 1.6rem; background: var(--forest); margin-inline: auto; }
.dk-alchemy__row { list-style: none; margin: 0; padding: 1.6rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; position: relative; }
.dk-alchemy__row::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; border-top: 2px solid var(--forest); }
.dk-alchemy__row li { margin: 0; position: relative; background: var(--cream); border-radius: 14px; padding: .9rem .6rem; font-weight: 700; font-size: .92rem; line-height: 1.25; color: var(--forest); display: grid; place-items: center; }
.dk-alchemy__row li::before { content: ""; position: absolute; top: -1.6rem; left: 50%; height: 1.6rem; border-left: 2px solid var(--forest); }
.dk-alchemy__row li.current { background: var(--forest); color: #fff; }
.dk-alchemy__row a { color: inherit; text-decoration: none; }
.dk-alchemy__row a:hover { text-decoration: underline; color: var(--terracotta); }
@media (max-width: 800px) { .dk-alchemy__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dk-alchemy__row::before, .dk-alchemy__row li::before { display: none; } }
@media (max-width: 440px) { .dk-alchemy__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Voices ---------- */
.dk-voices { max-width: var(--wrap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-block: 1.5rem; }
.dk-voices blockquote { margin: 0; }
@media (max-width: 800px) { .dk-voices { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Partners ---------- */
.dk-partners { list-style: none; padding: 0; margin: 2rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 62rem; }
.dk-partners li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; font-weight: 700; color: var(--forest); font-size: .96rem; }
.dk-partners img { height: 3rem; width: auto; }
.home-section--cream .dk-partners li { border-color: var(--cream-deep); }

/* ---------- Project cards ---------- */
.dk-projects { max-width: var(--wrap); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.8rem; }
.filter { border: 2px solid var(--forest); background: transparent; color: var(--forest); font: 700 .95rem var(--font-body); padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; }
.filter:hover { background: var(--cream); }
.filter[aria-pressed="true"] { background: var(--forest); color: #fff; }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 1.6rem; }
.card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 28px rgba(16,48,30,.13); }
.card[hidden] { display: none; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tag { font-size: .8rem; font-weight: 700; background: var(--cream); color: var(--forest); padding: .15rem .7rem; border-radius: 999px; }
.tag--prov { background: var(--forest); color: #fff; }
.card h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.card h3 a { color: var(--forest); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { color: var(--terracotta); }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card__more { margin-top: auto; font-weight: 700; color: var(--terracotta); font-size: .95rem; }
.empty-note { padding: 1.2rem 1.4rem; background: var(--cream); border-radius: var(--radius); }

/* ---------- Project detail ---------- */
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.project-layout__side { position: sticky; top: 7rem; }
.project-body, .project-layout > * { min-width: 0; }
.project-lead { font-size: 1.25rem; color: #3b3b30; line-height: 1.6; margin-bottom: 1.5rem; }
.project-aside { background: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.2rem; }
.project-aside h2 { font-size: 1.05rem; margin: 1.2rem 0 .6rem; color: var(--terracotta); }
.project-aside h2:first-child { margin-top: 0; }
.project-aside ul { margin: 0; padding-left: 1.1em; font-size: .97rem; line-height: 1.5; }
.project-aside p { font-size: .97rem; line-height: 1.5; }
.project-cover { margin: 0 0 1.5rem; }
.project-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px var(--radius) 6px var(--radius); }
.project-body > :is(p, ul, ol, h2, h3, blockquote) { max-width: 46rem; }
.project-body > h2 { margin-top: 2em; font-size: 1.6rem; font-weight: 800; }
.project-body > blockquote { margin-inline: 0; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 700; }
@media (max-width: 950px) { .project-layout { grid-template-columns: minmax(0, 1fr); } .project-layout__side { position: static; order: -1; } }

/* ---------- Results strip ---------- */
.dk-results { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; max-width: var(--wrap); }
.dk-results li { margin: 0; background: var(--forest); color: #fff; border-radius: var(--radius); padding: 1.1rem 1rem; }
.dk-results strong { display: block; font: 700 2.4rem/1 var(--font-display); color: var(--sun); margin-bottom: .3rem; }
.dk-results span { font-size: .9rem; line-height: 1.3; display: block; color: #efe9d2; }

/* ---------- Allocation bars ---------- */
.dk-allocation { max-width: var(--measure); list-style: none; padding: 0; margin: 1.5rem 0; }
.dk-allocation li { margin: 0 0 1.1rem; }
.dk-allocation__row { display: flex; justify-content: space-between; font-weight: 700; color: var(--forest); margin-bottom: .3rem; }
.dk-allocation__bar { height: .9rem; background: var(--cream); border-radius: 999px; overflow: hidden; }
.dk-allocation__bar span { display: block; height: 100%; border-radius: 999px; background: var(--forest); }
.dk-allocation li:nth-child(2) .dk-allocation__bar span { background: var(--orange); }
.dk-allocation li:nth-child(3) .dk-allocation__bar span { background: var(--terracotta); }

/* ---------- Gallery ---------- */
.dk-gallery, .wp-block-gallery.has-nested-images { max-width: var(--wrap); list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.dk-gallery figure, .wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0; position: relative; width: auto !important; }
.dk-gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; border-radius: 12px; overflow: hidden; }
.dk-gallery button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.dk-gallery img, .wp-block-gallery.has-nested-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .25s; }
.dk-gallery button:hover img { transform: scale(1.03); }
.dk-gallery figcaption { font-size: .88rem; color: var(--muted); padding-top: .4rem; line-height: 1.4; }
.project-body .dk-gallery { margin-block: 2rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10,30,18,.88); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; padding: .8rem 1rem 0; font-size: .98rem; }
.lightbox__close { position: absolute; top: -3rem; right: 0; background: var(--sun); color: var(--forest-deep); border: 0; border-radius: 999px; padding: .5rem 1.2rem; font: 700 .95rem var(--font-body); cursor: pointer; }

/* ---------- Tenders ---------- */
.tender-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; max-width: var(--wrap); }
.tender { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--leaf); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.tender[data-status="closed"] { border-left-color: var(--muted); }
.tender h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.tender p { margin: 0 0 .6rem; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.tender__meta { font-weight: 700; font-size: .95rem; color: var(--forest); }
.badge { display: inline-block; font-size: .8rem; font-weight: 800; padding: .15rem .7rem; border-radius: 999px; margin-right: .6rem; background: var(--leaf); color: #fff; }
.tender[data-status="closed"] .badge { background: var(--muted); }
@media (max-width: 700px) { .tender { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.5rem; max-width: var(--wrap); }
.pub { margin: 0; display: grid; grid-template-columns: 14rem 1fr; gap: 1.8rem; background: var(--cream); border-radius: var(--radius); overflow: hidden; align-items: stretch; }
.pub img { width: 100%; height: 100%; object-fit: cover; min-height: 11rem; }
.pub__body { padding: 1.5rem 1.8rem 1.6rem 0; align-self: center; }
.pub h3 { margin: .2rem 0 .5rem; font-size: 1.4rem; }
@media (max-width: 650px) { .pub { grid-template-columns: minmax(0, 1fr); } .pub__body { padding: 0 1.4rem 1.5rem; } .pub img { height: 11rem; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 4rem); max-width: var(--wrap); align-items: start; }
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 1.8rem; }
.contact-card h2, .contact-card h3 { font-size: 1.1rem; margin: 1.3rem 0 .3rem; color: var(--terracotta); }
.contact-card h2:first-child, .contact-card h3:first-child { margin-top: 0; }
.contact-card p { margin: 0; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--forest); }
.form-row input, .form-row textarea, .form-row select { width: 100%; font: inherit; padding: .8rem 1rem; border: 2px solid var(--cream-deep); border-radius: 12px; background: #fff; color: var(--ink); }
.form-row input:focus, .form-row textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(31,77,46,.2); }
.form-row textarea { min-height: 9rem; resize: vertical; }
.form-hint { font-size: .9rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 1.2rem; padding: .9rem 1.2rem; border-radius: 12px; font-weight: 600; }
.form-status--ok { background: #e3f1d8; color: #1f4d2e; }
.form-status--err { background: #fbe3dc; color: #8a2f1a; }
.form-status:empty { display: none; }
@media (max-width: 850px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stories (news cards) ---------- */
.story-grid { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.6rem; max-width: var(--wrap); }
.story-meta { font-size: .85rem; font-weight: 700; color: var(--terracotta); margin-bottom: .4rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--cream); overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../images/contour-wave.svg") center / cover no-repeat; opacity: .35; z-index: -1; }
.cta-band h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 .8rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.cta-band .btn + .btn { margin-left: .6rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--forest-deep); color: #e4dec6; margin-top: 0; isolation: isolate; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 11rem; background: url("../images/contour-band.svg") center top / 100% 100% no-repeat; opacity: .5; z-index: -1; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-main { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-logo { display: inline-block; background: var(--paper); padding: .6rem .9rem; border-radius: 14px; margin-bottom: 1.1rem; }
.footer-logo img { height: 3.8rem; width: auto; }
.site-footer h2 { font-size: 1.05rem; color: var(--sun); margin: 0 0 1rem; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact p { margin: 0 0 .5rem; }
.whistle { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 1.1rem 1.3rem; font-size: .93rem; line-height: 1.55; margin-bottom: 1.5rem; }
.whistle strong { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-block: 1.2rem 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .9rem; }
.footer-bottom ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
@media (max-width: 950px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-main { grid-template-columns: minmax(0, 1fr); } }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--forest); color: #fff; cursor: pointer; display: none; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.to-top.is-visible { display: grid; }
.to-top:hover { background: var(--terracotta); }
.to-top svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ---------- Cookie notice (static site) ---------- */
.cookie-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 80; max-width: 24rem; background: #fff; border: 1px solid var(--cream-deep); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: 0 16px 34px rgba(16,48,30,.22); font-size: .93rem; line-height: 1.5; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0 0 .9rem; }
.cookie-note__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-note .btn { padding: .55em 1.2em; font-size: .93rem; }

/* ---------- 404 + search + posts ---------- */
.notfound { text-align: center; padding-block: 3rem; }
.notfound .big { font: 700 clamp(5rem, 20vw, 10rem)/1 var(--font-display); color: var(--forest); margin: 0; }
.post-meta { color: var(--terracotta); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--forest); text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--forest); color: #fff; }
.wp-block-image img, .entry-content img { border-radius: 12px; }
.alignwide { max-width: var(--wrap); }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .hero__slide { transition: none; }
}
@media print {
  .site-top, .topbar, .site-header, .site-footer, .hero__ui, .cookie-note, .to-top, .cta-band { display: none; }
  body { background: #fff; }
}

/* ---------- Rotating photo banner (home "Our work") ---------- */
.dk-rotator, .dk-rotator.wp-block-gallery.has-nested-images { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; padding: 0; gap: 0; max-width: none; background: var(--cream); border-radius: 6px var(--radius) 6px var(--radius); }
.dk-rotator > figure, .dk-rotator.wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0 !important; width: 100% !important; height: 100%; display: block !important; flex: none !important; }
.dk-split .dk-rotator img, .dk-rotator img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; display: block; }
.dk-rotator:not(.is-ready) > figure:not(:first-child) { display: none !important; }
.dk-rotator.is-ready > figure { position: absolute !important; inset: 0; opacity: 0; transition: opacity 1s ease; }
.dk-rotator.is-ready > figure.is-active { opacity: 1; }
.dk-rotator__dots { position: absolute; left: 0; right: 0; bottom: .8rem; z-index: 2; display: flex; gap: .5rem; justify-content: center; }
.dk-rotator__dots button { width: .7rem; height: .7rem; padding: 0; border-radius: 50%; border: 2px solid #fff; background: rgba(31, 77, 46, .55); cursor: pointer; }
.dk-rotator__dots button[aria-current="true"] { background: var(--sun); border-color: var(--sun); }
.dk-rotator__dots button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dk-rotator.is-ready > figure { transition: none; } }
.dk-rotator--wide, .dk-rotator.dk-rotator--wide.wp-block-gallery.has-nested-images { aspect-ratio: 16 / 9; margin: 0 0 1.5rem; max-width: 100%; }

/* WordPress admin bar offset for the pinned whistleblowing bar */
.admin-bar .site-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-top { top: 46px; } }

/* Early childhood resources: link cards */
.res-grid { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--wrap); }
.res-card { margin: 0; display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius); overflow: hidden; }
.res-card__art { margin: 0; aspect-ratio: 8 / 5; background: var(--cream-deep); }
.res-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-card__body { padding: 1.4rem 1.6rem 1.7rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.res-card h3 { margin: .7rem 0 .5rem; font-size: 1.35rem; line-height: 1.2; }
.res-card p { margin: 0 0 1rem; max-width: none; }
.res-card__chips { list-style: none; padding: 0; margin: 0 0 1.3rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.res-card__chips li { margin: 0; font-size: .8rem; font-weight: 600; color: var(--forest); background: #fff; border: 1px solid var(--cream-deep); padding: .1rem .65rem; border-radius: 999px; }
.res-card .btn { margin-top: auto; }
@media (max-width: 760px) { .res-grid { grid-template-columns: minmax(0, 1fr); } }
