/* ===== Tokens ===== */
:root {
    --chalk: #12304a;
    --chalk-deep: #0c2236;
    --leaf: #1a7048;
    --leaf-dark: #12543a;
    --marigold: #f2b705;
    --paper: #f6f8fa;
    --white: #fff;
    --ink: #14212d;
    --muted: #465766;
    --line: #d3dde4;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --gap: clamp(1rem, 3vw, 2rem);
    --section: clamp(3rem, 8vw, 6rem);
}

/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 1.0625rem/1.65 var(--font-body);
    color: var(--ink);
    background: var(--white);
    overflow-wrap: break-word
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .6em;
    color: var(--chalk);
    text-wrap: balance
}

h1 {
    font-size: clamp(2.1rem, 6vw, 4rem)
}

h2 {
    font-size: clamp(1.65rem, 4vw, 2.6rem)
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem)
}

p {
    margin: 0 0 1em;
    max-width: 68ch
}

ul,
ol {
    padding-left: 1.25rem
}

a {
    color: var(--leaf-dark);
    text-underline-offset: .2em;
    text-decoration: none;
}

a:hover {
    color: var(--chalk)
}

:focus-visible {
    outline: 3px solid var(--chalk);
    outline-offset: 3px;
    padding: 0 0.2rem;
    border-radius: 0.53rem;
    box-shadow: 0 0 0 6px var(--marigold)
}

.on-dark :focus-visible {
    outline-color: var(--white)
}

:target {
    scroll-margin-top: 1rem
}

.container {
    width: min(72rem, 100% - 2rem);
    margin-inline: auto
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0
}

/* ===== Skip links ===== */
.skip-links {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    z-index: 100
}

.skip-links__link {
    position: absolute;
    left: .5rem;
    top: -20rem;
    padding: .75rem 1.25rem;
    background: var(--marigold);
    color: var(--chalk-deep);
    font-weight: 700;
    border-radius: .5rem;
    text-decoration: none
}

.skip-links__link:focus {
    top: .5rem
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .6rem 1.4rem;
    border: 2px solid transparent;
    border-radius: .5rem;
    font: 700 1rem/1.2 var(--font-body);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s
}

.btn--primary {
    background: var(--marigold);
    color: var(--chalk-deep)
}

.btn--primary:hover {
    background: #ffd043;
    color: var(--chalk-deep)
}

.btn--brand {
    background: var(--leaf-dark);
    color: var(--white)
}

.btn--brand:hover {
    background: var(--chalk);
    color: var(--white)
}

.btn--outline {
    border-color: currentColor;
    color: inherit;
    background: transparent
}

.btn--outline:hover {
    background: rgba(255, 255, 255, .14);
    color: inherit
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem
}

/* ===== Header ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    z-index: 50
}

.header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding-block: .75rem
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--chalk);
    font: 700 1.3rem/1.1 var(--font-display);
    text-decoration: none
}

.brand__mark {
    flex: none;
    width: 2.5rem;
    height: 2.5rem
}

.menu-toggle {
    display: none;
    min-height: 2.75rem;
    padding: .5rem 1rem;
    border: 2px solid var(--chalk);
    border-radius: .5rem;
    background: var(--white);
    color: var(--chalk);
    font: 700 1rem var(--font-body);
    cursor: pointer
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none
}

.nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .4rem .8rem;
    border-radius: .5rem;
    color: var(--chalk);
    font-weight: 600;
    text-decoration: none
}

.nav__link:hover {
    background: var(--paper);
    text-decoration: underline
}

.nav__link--cta {
    background: var(--chalk);
    color: var(--white)
}

.nav__link--cta:hover {
    background: var(--leaf-dark);
    color: var(--white)
}

@media (min-height:42rem) and (min-width:60rem) {
    .header {
        position: sticky;
        top: 0
    }

    html {
        scroll-padding-top: 5rem
    }
}

@media (max-width:60rem) {
    .js .menu-toggle {
        display: inline-flex;
        align-items: center
    }

    .js .nav {
        display: none;
        width: 100%
    }

    .js .nav--open {
        display: block
    }

    .js .nav__list {
        flex-direction: column;
        align-items: stretch
    }

    .js .nav__link {
        width: 100%
    }
}

/* ================= Site Logo ===================*/

.site-logo {
    width: 50px;
    height: 50px;
}

/* ===== Hero (chalkboard with ruled lines) ===== */
.hero {
    color: var(--white);
    background:
        repeating-linear-gradient(0deg, transparent 0 2.4rem, rgba(255, 255, 255, .06) 2.4rem calc(2.4rem + 1px)),
        linear-gradient(135deg, var(--chalk-deep), var(--chalk));
    padding-block: var(--section)
}

.hero__inner {
    display: grid;
    gap: calc(var(--gap)*2);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center
}

.hero__title {
    color: var(--white)
}

.hero__title-mark {
    background: linear-gradient(transparent 62%, var(--leaf) 62% 92%, transparent 92%);
    padding-inline: .1em
}

.hero__lead {
    font-size: 1.2rem;
    color: #e3ecf2
}

.hero__media {
    position: relative
}

.hero__img {
    width: 100%;
    border-radius: 1.5rem 1.5rem 1.5rem .25rem;
    border: 4px solid var(--white);
    aspect-ratio: 4/3;
    object-fit: cover
}

.hero__badge {
    position: absolute;
    left: .75rem;
    bottom: -1rem;
    max-width: calc(100% - 1.5rem);
    margin: 0;
    padding: .5rem .9rem;
    background: var(--marigold);
    color: var(--chalk-deep);
    font-weight: 700;
    font-size: .95rem;
    border-radius: .5rem
}

@media (max-width: 765px) {

    .btn-group {
        display: flex;
        justify-content: center;
    }

    .btn-group .btn {
        width: 100%;
        padding: 0.9rem;
    }
}

/* ===== Sections ===== */
.section {
    padding-block: var(--section)
}

.section--soft {
    background: var(--paper)
}

.section--dark {
    background: var(--chalk);
    color: var(--white)
}

.section--dark h2,
.section--dark h3 {
    color: var(--white)
}

.section__intro {
    max-width: 46rem;
    margin-bottom: 2rem
}

.section__intro p {
    color: var(--muted)
}

.section--dark .section__intro p {
    color: #dbe6ee
}

.split {
    display: grid;
    gap: calc(var(--gap)*2);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center
}

.figure {
    margin: 0
}

.figure__img {
    width: 100%;
    border-radius: .25rem 1.5rem .25rem 1.5rem;
    aspect-ratio: 4/3;
    object-fit: cover
}

/* ===== Vision / mission ===== */
.statement {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border-left: .4rem solid var(--leaf);
    background: var(--paper)
}

.statement__title {
    margin: 0 0 .25rem;
    font-size: 1.3rem
}

.statement__text {
    margin: 0
}

/* ===== Impact report card ===== */
.report {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    margin: 0
}

.report__item {
    display: flex;
    flex-direction: column-reverse;
    padding: 1.25rem;
    border: 2px dashed rgba(255, 255, 255, .45);
    border-radius: .25rem
}

.report__label {
    margin: 0;
    color: #dbe6ee
}

.report__value {
    margin: 0;
    font: 700 clamp(2rem, 5vw, 3rem)/1 var(--font-display);
    color: var(--marigold)
}

.note {
    font-size: .9rem;
    color: #c5d4df;
    margin-top: 1.5rem
}

/* ===== Programme cards ===== */
.grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    list-style: none;
    margin: 0;
    padding: 0
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .25rem 1.25rem .25rem 1.25rem;
    overflow: hidden
}

.card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem
}

.card__text {
    color: var(--muted)
}

.card__link {
    margin-top: auto;
    font-weight: 700
}

/* ===== Approach steps ===== */
.steps {
    counter-reset: step;
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    list-style: none;
    margin: 0;
    padding: 0
}

.steps__item {
    counter-increment: step;
    padding-top: 1rem;
    border-top: .3rem solid var(--leaf)
}

.steps__item::before {
    content: "Step " counter(step);
    display: block;
    margin-bottom: .25rem;
    font-weight: 700;
    color: var(--leaf-dark)
}

.steps__title {
    margin-bottom: .3em
}

/* ===== Quote ===== */
.quote {
    margin: 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1.25rem .25rem 1.25rem .25rem;
    border: 1px solid var(--line)
}

.quote__text {
    font: 1.3rem/1.5 var(--font-display);
    color: var(--chalk)
}

.quote__cite {
    font-style: normal;
    font-weight: 700
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 8rem;
    grid-auto-flow: dense;
    list-style: none;
    margin: 0;
    padding: 0
}

.gallery__cell {
    min-height: 0
}

.gallery__cell--wide {
    grid-column: span 2
}

.gallery__cell--tall {
    grid-row: span 2
}

.gallery__cell--feature {
    grid-column: span 2;
    grid-row: span 2
}

.gallery__item {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: .25rem 1rem .25rem 1rem;
    background: var(--paper);
    overflow: hidden;
    cursor: zoom-in
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.gallery__item:hover .gallery__img {
    transform: scale(1.06)
}

@media (min-width: 40rem) {
    .gallery {
        gap: var(--gap);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 10rem
    }
}

@media (min-width: 64rem) {
    .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 12rem
    }
}

/* ===== Gallery lightbox ===== */
.lightbox {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(12, 34, 54, .97);
    color: var(--white);
    overflow: hidden
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto 1fr
}

.lightbox::backdrop {
    background: var(--chalk-deep)
}

body:has(.lightbox[open]) {
    overflow: hidden
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem
}

.lightbox__count {
    margin: 0;
    font-weight: 700
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 0;
    margin: 0;
    padding: 0 1rem 5rem;
    touch-action: pan-y
}

.lightbox__img {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 12rem);
    object-fit: contain;
    border-radius: .5rem;
    user-select: none
}

.lightbox__caption {
    max-width: 46rem;
    text-align: center;
    color: #dbe6ee
}

.lightbox__btn {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(12, 34, 54, .7);
    color: var(--white);
    cursor: pointer;
    transition: background-color .2s
}

.lightbox__btn:hover {
    background: var(--leaf-dark)
}

.lightbox__btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.lightbox__nav {
    position: absolute;
    bottom: 1rem
}

.lightbox__nav--prev {
    left: calc(50% - 3.5rem)
}

.lightbox__nav--next {
    right: calc(50% - 3.5rem)
}

@media (min-width: 48rem) {
    .lightbox__figure {
        padding: 0 5rem 1.5rem
    }

    .lightbox__img {
        max-height: calc(100dvh - 8rem)
    }

    .lightbox__nav {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%)
    }

    .lightbox__nav--prev {
        left: 1.5rem
    }

    .lightbox__nav--next {
        right: 1.5rem
    }
}

/* ===== Get involved ===== */
.involve__details {
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, .1);
    border-radius: .5rem
}

.involve__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: .25rem 1rem;
    padding-block: .4rem;
    border-bottom: 1px solid rgba(255, 255, 255, .2)
}

.involve__row:last-child {
    border-bottom: 0
}

.involve__row dt {
    font-weight: 700
}

.involve__row dd {
    margin: 0
}

/* ===== Partners ===== */
.partners {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    list-style: none;
    margin: 0;
    padding: 0
}

.partners__item {
    display: grid;
    place-items: center;
    min-height: 5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: var(--white);
    color: var(--muted);
    font-weight: 600;
    text-align: center
}

/* ===== FAQ (native details, keyboard friendly) ===== */
.faq__item {
    border-bottom: 1px solid var(--line)
}

.faq__question {
    display: block;
    padding: 1rem 4px;
    font-weight: 700;
    color: var(--chalk);
    cursor: pointer;
    min-height: 2.75rem
}

.faq__answer {
    margin: 0 0 1rem;
    color: var(--muted)
}

/* ===== Forms ===== */
.form {
    display: grid;
    gap: 1rem
}

.form__field {
    display: grid;
    gap: .35rem
}

.form__label {
    font-weight: 700
}

.form__input {
    width: 100%;
    min-height: 2.75rem;
    padding: .6rem .8rem;
    border: 2px solid #5d7384;
    border-radius: .5rem;
    background: var(--white);
    color: var(--ink);
    font: inherit
}

.form__input:focus-visible {
    border-color: var(--chalk)
}

.form__input[aria-invalid="true"] {
    border-color: #b42318
}

.form__error,
.form__error-summary {
    color: #b42318;
    font-weight: 700
}

.form__status,
.form__error-summary {
    margin: 0
}

.form__hint {
    font-size: .9rem;
    color: var(--muted)
}

.form__status {
    font-weight: 700;
    color: var(--leaf-dark)
}

.form [type="submit"]:disabled {
    cursor: wait;
    opacity: .7
}

.contact {
    display: grid;
    gap: calc(var(--gap)*2);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr))
}

.contact__list {
    margin: 0;
    padding: 0;
    list-style: none
}

.contact__item {
    padding-block: .4rem
}

/* ===== Footer ===== */
.footer {
    background: var(--chalk-deep);
    color: #dbe6ee;
    padding-block: 3rem 2rem
}

.footer a {
    color: var(--white)
}

.footer__grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.footer__mobile-grid {
    display: contents
}

.footer__title {
    font: 700 1.1rem var(--font-display);
    color: var(--white);
    margin: 0 0 .5rem
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none
}

.footer__list li {
    padding-block: .2rem
}

.footer__legal {
    margin: 2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: .9rem;
    max-width: none
}

@media (max-width: 765px) {
    .footer {
        padding: 0.56rem;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .footer__mobile-grid {
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (min-width: 766px) and (max-width: 60rem) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .footer__grid>div:first-child {
        grid-column: 1 / -1
    }
}

/* ===== User preferences ===== */
@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

@media (forced-colors:active) {

    .btn,
    .nav__link--cta {
        border: 2px solid ButtonText
    }

    .report__item {
        border-color: CanvasText
    }
}

@media print {

    .skip-links,
    .menu-toggle,
    .hero__media {
        display: none
    }
}