*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --color-green: #00823f;
    --color-blue: #26286f;
    --color-white: #ffffff;
    --color-gold: #d0a242;
    --color-bg: #eef1f8;
    --color-surface: #ffffff;
    --color-text: #1c2140;
    --color-muted: #565d7a;
    --color-border: #d7dce8;
    --font-sans: Georgia, "Times New Roman", Times, serif;
    --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans",
        sans-serif;
    --layout-max-width: 88rem;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: transparent;
    padding: 0;
}

.site-header__utility {
    background: var(--color-green);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    border-bottom: 2px solid rgba(208, 162, 66, 0.65);
}

.site-header__utility-inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0.45rem clamp(1rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1.25rem;
}

.site-header__quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
}

.site-header__quick-link {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
}

.site-header__quick-link:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.site-header__quick-sep {
    opacity: 0.55;
    user-select: none;
}

.site-header__utility-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

@media (max-width: 760px) {
    .site-header__utility-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header__quick-links {
        justify-content: center;
    }

    .site-header__utility-cluster {
        justify-content: space-between;
    }
}

.site-header__utility-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
}

.site-header__utility-link {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
}

.site-header__utility-link:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.site-header__utility-sep {
    opacity: 0.55;
    user-select: none;
}

.site-header__utility-phone {
    opacity: 0.92;
}

.site-header__utility-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.site-header__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.site-header__social-link:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

.site-header__social-icon {
    display: block;
    flex-shrink: 0;
}

.site-header__top {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.site-header__brand-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 1.15rem clamp(1rem, 4vw, 3rem) 1.25rem;
    text-align: center;
}

.site-logo-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    background: transparent;
    margin: 0 auto;
}

.site-logo-link:hover {
    text-decoration: none;
    opacity: 0.92;
}

.site-logo {
    display: block;
    width: auto;
    height: clamp(3.75rem, 10vw, 5.25rem);
    max-width: 100%;
    object-fit: contain;
}

.site-header__titles {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
}

.site-brand__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 2.4vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-blue);
    text-align: center;
}

/* Primary navigation (CSS-only via <details>) */
.site-nav {
    background: var(--color-blue);
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem) 0.75rem;
    border-bottom: 4px solid var(--color-gold);
}

.site-nav__list {
    margin: 0 auto;
    max-width: var(--layout-max-width);
    padding: 0.65rem 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem 0.35rem;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: inline-block;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.site-nav__link:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.site-nav__link.is-active {
    color: var(--color-white);
    background: rgba(0, 130, 63, 0.45);
    box-shadow: inset 0 0 0 1px rgba(208, 162, 66, 0.55);
}

.site-nav__details {
    position: relative;
}

.site-nav__summary {
    list-style: none;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

.site-nav__summary::-webkit-details-marker {
    display: none;
}

.site-nav__summary::after {
    content: " ▾";
    font-size: 0.75em;
    opacity: 0.85;
}

.site-nav__details[open] > .site-nav__summary {
    background: rgba(255, 255, 255, 0.1);
}

.site-nav__sub {
    margin: 0.35rem 0 0;
    padding: 0.5rem 0;
    list-style: none;
    min-width: min(100vw - 2rem, 17rem);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(38, 40, 111, 0.18);
    z-index: 40;
}

.site-nav__item--dropdown {
    position: relative;
}

@media (min-width: 768px) {
    .site-nav__sub {
        position: absolute;
        left: 0;
        top: 100%;
    }
}

.site-nav__sub a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--color-blue);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav__sub a:hover {
    background: rgba(0, 130, 63, 0.08);
    text-decoration: none;
}

.home-hero-full {
    width: 100%;
    background-color: #252528;
    background-image: linear-gradient(
            135deg,
            rgba(28, 28, 32, 0.78) 0%,
            rgba(18, 18, 22, 0.82) 100%
        ),
        var(--home-hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgba(255, 255, 255, 0.98);
    padding: clamp(2rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 3rem);
}

.home-hero-full__inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

.home-hero-full__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--color-white);
    padding-left: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.home-hero-full__prose p {
    margin: 0 0 1.1rem;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    max-width: min(68rem, 100%);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.97);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.home-hero-full__prose p:last-child {
    margin-bottom: 0;
}

.resources-download {
    width: 100%;
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.resources-download__card {
    margin: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: clamp(1.25rem, 2.8vw, 1.85rem);
    box-shadow: 0 8px 28px rgba(38, 40, 111, 0.06);
}

.resources-download__main-title {
    margin: 0 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(208, 162, 66, 0.55);
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--color-blue);
}

.resources-download__columns {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .resources-download__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.resources-download__subsection {
    margin: 0;
}

.resources-download__subtitle {
    margin: 0 0 0.85rem;
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--color-blue);
}

.resources-download__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.resources-download__item {
    margin: 0;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
}

.resources-download__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resources-download__link {
    color: var(--color-green);
    font-weight: 600;
    text-decoration: none;
}

.resources-download__link:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.news-teaser {
    width: 100%;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.news-teaser__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(208, 162, 66, 0.55);
}

.news-teaser__title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--color-blue);
}

.news-teaser__all {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-green);
    text-decoration: none;
}

.news-teaser__all:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.news-teaser__grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .news-teaser__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .news-teaser__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.news-teaser__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(38, 40, 111, 0.06);
}

.news-teaser__media {
    aspect-ratio: 16 / 10;
    background: #e8eaf4;
    overflow: hidden;
}

.news-teaser__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-teaser__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem 1rem;
    flex: 1;
}

.news-teaser__date {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-muted);
}

.news-teaser__card-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1.35;
}

.news-teaser__excerpt {
    margin: 0;
    flex: 1;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.45;
}

.news-teaser__link {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-green);
    text-decoration: none;
}

.news-teaser__link:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.news-page__article {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--color-border);
}

.news-page__article:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.news-page__layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .news-page__layout {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
        align-items: start;
    }
}

.news-page__media {
    border-radius: 12px;
    overflow: hidden;
    background: #e8eaf4;
    border: 1px solid var(--color-border);
}

.news-page__img {
    display: block;
    width: 100%;
    height: auto;
}

.news-page__date {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-muted);
}

.news-page__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 700;
    color: var(--color-blue);
}

.news-page__desc {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.news-page__cta {
    margin: 0.85rem 0 0;
}

.news-page__link {
    font-weight: 600;
    color: var(--color-green);
}

.news-page__link:hover {
    color: var(--color-blue);
}

.news-page__pager {
    margin-top: 2rem;
}

.news-page__pager nav .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-page__pager nav .pagination li a,
.news-page__pager nav .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.news-page__pager nav .pagination li a:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.news-page__pager nav .pagination li.active span {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

.news-page__pager nav .pagination li.disabled span {
    opacity: 0.45;
}

.funding-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem 1rem;
    margin: -0.25rem 0 1.5rem;
}

.funding-filter__label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-blue);
    padding-top: 0.35rem;
}

.funding-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.funding-filter__link {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.funding-filter__link:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.funding-filter__link.is-active {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

.funding-filter__link.is-active:hover {
    color: var(--color-white);
    border-color: var(--color-blue);
}

.funding-page__section {
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.funding-page__section--archive .funding-table tbody tr {
    opacity: 0.92;
}

.funding-page__heading {
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(208, 162, 66, 0.55);
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: var(--color-blue);
}

.funding-page__empty {
    margin: 0;
    color: var(--color-muted);
    font-style: italic;
}

.funding-table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 6px 20px rgba(38, 40, 111, 0.06);
}

.funding-table {
    width: 100%;
    min-width: min(52rem, 100%);
    border-collapse: collapse;
    font-size: 0.9rem;
}

.funding-table thead {
    background: rgba(38, 40, 111, 0.06);
}

.funding-table th,
.funding-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.funding-table th {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--color-blue);
    white-space: nowrap;
}

.funding-table tbody tr:last-child td {
    border-bottom: none;
}

.funding-table tbody tr:hover {
    background: rgba(0, 130, 63, 0.04);
}

.funding-table__desc {
    max-width: min(28rem, 100%);
    color: var(--color-text);
    line-height: 1.45;
}

.funding-table__title {
    display: block;
    font-weight: 600;
}

.funding-table__meta {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 400;
}

.funding-table__muted {
    color: var(--color-muted);
}

.funding-table__link {
    font-weight: 600;
    color: var(--color-green);
    white-space: nowrap;
}

.funding-table__link:hover {
    color: var(--color-blue);
}

.staff-section__heading {
    margin: 0 0 1.25rem;
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 700;
    color: var(--color-blue);
}

.staff-section {
    width: 100%;
}

.staff-section--home {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.site-main {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
    flex: 1;
}

.page-intro {
    margin: -0.5rem 0 1.75rem;
    color: var(--color-muted);
    max-width: min(56rem, 100%);
}

.content-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-top: 4px solid var(--color-green);
    box-shadow: 0 10px 36px rgba(38, 40, 111, 0.06);
}

.content-card--prose .inner-page-title {
    margin-top: 0;
}

.content-card--prose p {
    margin: 0 0 1rem;
    color: var(--color-text);
    max-width: min(62rem, 100%);
}

.content-card--prose p:last-child {
    margin-bottom: 0;
}

.staff-grid {
    margin: 0;
    padding: 0 0 0.35rem;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.staff-card {
    margin: 0;
    flex: 1 1 0;
    min-width: min(11.5rem, 82vw);
}

.staff-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(38, 40, 111, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.staff-card__link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(38, 40, 111, 0.12);
}

.staff-card__media {
    display: block;
    /* Was 4/5; 8/5 gives ~50% less image height for the same card width */
    aspect-ratio: 8 / 5;
    background: #e8eaf4;
    overflow: hidden;
}

.staff-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.staff-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem 0.75rem 0.65rem;
    flex: 1;
    justify-content: center;
}

.staff-card__name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-blue);
}

.staff-card__role {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.35;
}

.staff-card__cta {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-green);
}

.inner-page-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-blue);
}

.hero-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-green);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 12px 40px rgba(38, 40, 111, 0.08);
}

.hero-card h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-blue);
}

.hero-card p.lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--color-muted);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(208, 162, 66, 0.18);
    color: var(--color-blue);
    border: 1px solid var(--color-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid var(--color-green);
}

.panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-family: var(--font-sans);
    color: var(--color-blue);
}

.panel p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.panel p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: auto;
    padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2rem;
    border-top: 4px solid var(--color-gold);
    background: var(--color-blue);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
    color: var(--color-gold);
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--color-white);
}

.site-footer__inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-footer__copy {
    margin: 0;
    opacity: 0.82;
    font-size: 0.82rem;
}

.layout-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
