@font-face {
    font-family: "Source Serif 4";
    src: url("assets/fonts/sourceserif4.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("assets/fonts/inter.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --serif: "Source Serif 4", Georgia, serif;
    --sans: Inter, system-ui, sans-serif;
    --title-home: clamp(2rem, 4.2vw, 3.75rem);
    --title-page: clamp(1.75rem, 3.15vw, 2.75rem);
    --title-section: clamp(1.5rem, 2.45vw, 2.25rem);
    --title-subsection: clamp(1.17rem, 1.7vw, 1.5rem);
    --reading-width: 65ch;
    --section-space: clamp(2.5rem, 5vw, 5rem);
    --space: var(--section-space);
    --image-radius: .65rem;
    --control-radius: .3rem;
    --control-height: 46px;
    --content-gutter: clamp(1rem, 5vw, 5rem);
}

body { font: 1rem/1.68 var(--sans); }
.wrap { width: min(100% - var(--content-gutter) * 2, 75rem); }
.header-inner { width: min(100% - clamp(2rem, 6vw, 6rem), 86rem); }
h1,h2,h3 { line-height: 1.18; font-weight: 600; letter-spacing: -.025em; }
h1,.content .page-header h1 { font-size: var(--title-page); }
h2,.content h2,.home-intro h2,.research-field h2,.home-initiatives h2,
.home-library h2,.home-media h2,.home-leadership h2 { font-size: var(--title-section); }
h3,.feature-copy h3 { font-size: var(--title-subsection); }
.landscape-copy h1 { font-size: var(--title-home); line-height: 1.1; }
.lead,.intro-copy,.ccpal-page-about .about-lead { font: 1.06rem/1.65 var(--sans); }
.measure,.prose { max-width: var(--reading-width); }
.page-header,.content > .page-header,.content > article > .page-header {
    margin-block: 1.15rem clamp(1.65rem, 3vw, 3rem);
    padding: clamp(1.3rem, 3.6vw, 3.25rem) clamp(1rem, 4vw, 3rem);
}
.demo-visual figcaption,.publication-landscape figcaption { font-size: .78rem; }

.button,button:not(.resources-toggle):not(.opening-skip),.hero-secondary {
    min-height: var(--control-height);
    padding: .58rem 1rem;
    border-radius: var(--control-radius);
    border: 1px solid transparent;
    font: 650 .92rem/1.25 var(--sans);
    gap: .6rem;
}
.button,button:not(.resources-toggle):not(.opening-skip),.landscape-copy .button {
    background: #315d40;
    color: #fff;
}
.button:hover,button:not(.resources-toggle):not(.opening-skip):hover,.landscape-copy .button:hover {
    background: #244a33;
    color: #fff;
}
.hero-secondary {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}
.hero-secondary:is(:hover,:focus-visible) { background: #fff; color: var(--navy); }
.editorial-link { font-size: .93rem; text-underline-offset: .23em; }
button:disabled { opacity: .65; cursor: not-allowed; }
.button:focus-visible,button:focus-visible,.hero-secondary:focus-visible {
    outline-offset: 3px;
}
.landscape-copy .button { padding: .58rem 1rem; }

@media (max-width: 767px) {
    :root {
        --title-home: clamp(2rem, 8.7vw, 2.38rem);
        --title-page: clamp(1.75rem, 7vw, 2rem);
        --title-section: clamp(1.5rem, 5.8vw, 1.75rem);
    }
}

.landscape-hero {
    min-height: clamp(32rem, 72svh, 43rem);
    padding-block: clamp(4.5rem, 12svh, 7rem) 6.5rem;
}
.home-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem 2.25rem;
    border-top: 1px solid var(--line);
}
.home-contact h2 { margin: 0; }
.initiative-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: center;
    margin-block: 1.25rem var(--section-space);
    padding-block: clamp(1.4rem, 3vw, 3rem);
    border-block: 1px solid var(--line);
}
.initiative-protected { grid-template-columns: minmax(0,1fr); }
.initiative-lead h1 { max-width: 23ch; }
.initiative-lead p:not(.status) { max-width: 52ch; margin-bottom: 0; }
.initiative-lead .status {
    display: inline-block;
    padding: .2rem .65rem;
    border: 1px solid #a79985;
    border-radius: var(--control-radius);
}
.initiative-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--image-radius) var(--image-radius) 0 0;
}
.initiative-photo > img { border-radius: var(--image-radius); }
.initiative-copy h2 { margin-block: 1.45em .5em; }
.initiative-copy h2:first-child { margin-top: 0; }
.initiative-sections { display: grid; gap: clamp(2.25rem, 5vw, 5rem); }
.initiative-section.with-photo {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1rem, 5vw, 5rem);
    align-items: center;
}
.initiative-section .demo-visual { margin: 0; }
.initiative-section img {
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: var(--image-radius);
}
.initiative-section:nth-child(2) img { aspect-ratio: 4/3; }
.initiative-section:nth-child(3) img { aspect-ratio: 16/9; }
.initiative-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.initiative-photo-grid > :first-child { grid-column: 1 / -1; }
.initiative-section .initiative-photo-grid img { aspect-ratio: 16/10; }


.ccpal-page-about .about-section .demo-visual img {
    aspect-ratio: 4/3;
    border-radius: var(--image-radius) var(--image-radius) 0 0;
}
.research-section > figure img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.research-section:nth-of-type(even) > figure img { aspect-ratio: 4/3; }
.research-section .demo-visual img { border-radius: var(--image-radius) var(--image-radius) 0 0; }
.initiative-grid .initiative-card { margin-block: 1.35rem; }
.initiative-grid .initiative-card .demo-visual img { aspect-ratio: 4/3; }
.home-intro .demo-visual img,.profile-image { border-radius: var(--image-radius); overflow: hidden; }
.post-type-archive-ccpal_publications .archive-entry > img,.publication-spotlight > img {
    aspect-ratio: 3/4;
    height: auto;
    object-fit: contain;
    background: #e6ebdf;
    border-radius: var(--image-radius);
}
.post-type-archive-ccpal_media .archive-entry > :is(img,figure) { aspect-ratio: 16/9; }
.post-type-archive-ccpal_media .archive-entry img { border-radius: var(--image-radius); }
.site-footer .footer-tagline { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }

@media (max-width: 767px) {
    .landscape-hero { min-height: clamp(31rem, 76svh, 40rem); padding-block: 5.4rem 6.1rem; }
    .initiative-intro, .initiative-section.with-photo { grid-template-columns: minmax(0, 1fr); }
    .initiative-lead h1 { max-width: none; }
    .initiative-photo img { aspect-ratio: 16/10; }
}

/* Group a title, explanation and action around the same reading measure. */
:root {
    --editorial-gap: clamp(1.4rem,5vw,5.5rem);
    --editorial-surface: #edf0e6;
}
.home-intro,.ccpal-page-about .about-intro {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: var(--editorial-gap);
    padding-block: var(--section-space);
    margin-block: 0;
}
.home-intro h2,.about-intro h1 {
    margin: 0 0 .45em;
    max-width: 16ch;
}
.editorial-copy > p:not(.eyebrow),.editorial-copy .measure {
    max-width: 48ch;
    margin-bottom: 1rem;
}
.editorial-copy .eyebrow { margin-bottom: .65rem; }
.editorial-gallery {
    display: grid;
    grid-template-columns: minmax(0,1.26fr) minmax(0,.9fr);
    gap: .8rem;
    align-items: start;
}
.editorial-gallery > :nth-child(2) { margin-top: clamp(1.5rem,6vw,4.25rem); }
.editorial-gallery > figure:not(.demo-visual) { margin-inline: 0; min-width: 0; }
.editorial-gallery img {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--image-radius) var(--image-radius) 0 0;
}
.editorial-gallery > :nth-child(2) img { aspect-ratio: 5/6; }
.editorial-gallery figcaption {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding-inline: 0;
}
.button.button-outline {
    background: transparent;
    border-color: var(--green);
    color: var(--green);
}
.button.button-outline:is(:hover,:focus-visible) { background: var(--green); color: white; }
.theme-grid {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    gap: clamp(1.3rem,4vw,3.5rem);
}
.theme-story { min-width: 0; border-bottom: 1px solid #aebaae; }
.theme-story figure { margin: 0; }
.theme-story img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--image-radius) var(--image-radius) 0 0;
}
.theme-story:nth-child(2n) img { object-position: center 64%; }
.theme-story figcaption { background: transparent; padding-inline: 0; }
.theme-story .feature-copy { padding: .6rem 0 1rem; }
.theme-story h3 { margin: 0 0 .24em; }
.theme-story h3 a { text-decoration-thickness: 1px; }
.theme-story p { margin: 0; }
.home-digest { padding-block: var(--section-space); border-bottom: 1px solid var(--line); }
.digest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--editorial-gap); }
.digest-grid > section { min-width: 0; border-top: 1px solid #889d89; padding-top: .85rem; }
.digest-grid h3 { margin-bottom: .45em; }
.digest-grid .feature-row { padding: .75rem 0; background: transparent; border-bottom: 1px solid var(--line); }
.digest-grid .feature-copy { padding: clamp(.75rem,2vw,1.4rem); }
.digest-grid h4 { margin-block: .4rem; font: 650 1rem/1.25 var(--sans); }

.editorial-band { margin-block: 0 var(--section-space); }
.home-contact { background: var(--editorial-surface); border: 0; padding-inline: clamp(1rem,4vw,3rem); }
.home-contact p { margin: .55rem 0 0; }
.ccpal-page-about .about-values { padding: clamp(1rem,4vw,2.4rem); border: 0; }
.ccpal-page-about .about-section:not(.about-split):not(.about-objectives) { display: block; padding-block: clamp(1.3rem,3vw,2.2rem); }
.ccpal-page-about .about-split, .ccpal-page-about .about-objectives { display: grid; }
.about-directions { border-block: 1px solid var(--line); }
.about-directions p:last-child,.research-intro .lead p:last-child { margin-bottom: 0; }
.content > .research-intro { padding-inline: 0; border-color: var(--green); background: transparent; }
.research-intro .lead { max-width: 61ch; }
.ccpal-page-research .research-section { padding: clamp(1rem,3vw,2.25rem); }
.initiative-lead .editorial-link { margin-top: .8rem; }
.initiative-grid .initiative-card { border-bottom: 1px solid var(--line); background: transparent; }
.initiative-grid .initiative-card .feature-copy { padding-block: 1.3rem; }
.archive-empty {
    gap: clamp(1rem,4vw,3rem);
    align-items: center;
    padding-block: 1.25rem;
}
.archive-empty .notice { background: transparent; }
.post-type-archive-ccpal_publications .archive-empty .cover-stage { grid-row: auto; }
.ccpal-page-leadership .leadership-profile .measure { max-width: 56ch; }
.ccpal-page-leadership .profile-image img { aspect-ratio: 4/4.6; }
.contact-layout { margin-block: clamp(1.8rem,5vw,4rem); align-items: start; }
.contact-copy { padding-top: .75rem; border-top: 1px solid var(--green); }
.contact-copy .notice { margin-block: 1.4rem 0; }
.contact-visual { padding: 0; background: transparent; }
.contact-visual .demo-visual img { border-radius: var(--image-radius) var(--image-radius) 0 0; }

@media (max-width: 767px) {
    .home-intro,.ccpal-page-about .about-intro,.theme-grid,.digest-grid { grid-template-columns: minmax(0,1fr); }
    .editorial-gallery { gap: .65rem; }
    .theme-story img { aspect-ratio: 16/8; }
    .digest-grid .feature-row { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: no-preference) {
    .ccpal-arrived .editorial-copy > :is(h1,h2,.eyebrow) { animation: v6-editorial-text 460ms var(--motion-ease) both; }
    .ccpal-arrived .editorial-copy > :is(p:not(.eyebrow),.measure,a) { animation: v6-editorial-text 480ms var(--motion-ease) 90ms both; }
    .ccpal-arrived .editorial-gallery > * { animation: v6-editorial-photo 680ms var(--motion-ease) 60ms both; }
    .ccpal-arrived .editorial-gallery > :nth-child(2) { animation-delay: 150ms; }
    .theme-story img { transition: filter 200ms ease; }
    .theme-story:is(:hover,:focus-within) img { filter: saturate(1.13); }
}
@keyframes v6-editorial-text { from { opacity: .76; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes v6-editorial-photo { from { clip-path: inset(0 0 9%); transform: translateY(10px); } to { clip-path: inset(0); transform: none; } }

.archive-empty > .demo-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.archive-empty .cover-stage { min-height: clamp(12rem,23vw,19rem); }

/* Shared responsive header + mobile/tablet homepage hero refinements */
@media (max-width: 420px) {
    .wrap { width: min(100% - 1.75rem, 75rem); }
    .header-inner { gap: .5rem; flex-wrap: nowrap; }
    .brand { gap: .45rem; padding: .35rem 0; min-width: 0; }
    .brand img { width: 38px; height: auto; flex-shrink: 0; }
    .brand strong { font-size: 1rem; }
    .brand small {
        font-size: .62rem;
        margin-top: .1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 11.5rem;
    }
    .menu-toggle {
        flex-shrink: 0;
        white-space: nowrap;
        padding: .4rem .68rem;
        font-size: .84rem;
        min-height: 44px;
    }
}

@media (max-width: 900px) {
    .landscape-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        padding-block: clamp(1.5rem, 4.5vw, 2.75rem) 1rem;
    }
    .landscape-copy .eyebrow {
        font-size: .72rem;
        letter-spacing: .07em;
        line-height: 1.45;
        max-width: 34ch;
        margin-bottom: .45rem;
    }
    .landscape-copy .lead {
        font-size: clamp(1rem, 3.6vw, 1.12rem);
        line-height: 1.55;
        margin-bottom: 1.1rem;
    }
    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem .85rem;
        align-items: center;
    }
    .hero-actions > a { min-height: 44px; }
    .landscape-caption {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 1.25rem;
        padding-top: .5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: .4rem 1rem;
    }
}

@media (max-width: 640px) {
    .landscape-caption a:nth-child(2) { display: none; }
}

/* Upcoming Events hero popup, Publication category tabs, and Team & Members grid */
.hero-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.25rem, 3.5vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-events-popup {
    background: rgba(255, 253, 246, 0.97);
    color: var(--navy);
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: .35rem;
    box-shadow: 0 18px 42px rgba(7, 29, 42, 0.34);
    overflow: hidden;
    max-width: 26rem;
    justify-self: end;
    width: 100%;
}
.hero-events-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .65rem 1rem;
    background: #edf0e6;
    border-bottom: 1px solid var(--line);
}
.hero-events-kicker {
    margin: 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--green);
}
.hero-events-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hero-events-count {
    font-size: .75rem;
    font-weight: 600;
    color: #3f525d;
}
.hero-events-close {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    border-radius: .2rem;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-events-close:hover,
.hero-events-close:focus-visible {
    background: var(--navy);
    color: white;
}
.hero-events-poster img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.hero-events-body {
    padding: .95rem 1.1rem 1.1rem;
    display: grid;
    gap: .45rem;
}
.hero-events-mode {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--earth);
}
.hero-events-body h2 {
    margin: 0;
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
    line-height: 1.25;
    color: var(--navy);
}
.hero-events-summary {
    margin: 0;
    font-size: .9rem;
    line-height: 1.48;
    color: #2f434e;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-events-meta {
    margin: .2rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
    font-size: .82rem;
    border-top: 1px solid var(--line);
    padding-top: .5rem;
}
.hero-events-meta > div:nth-child(3) {
    grid-column: 1 / -1;
}
.hero-events-meta dt {
    font-weight: 700;
    color: #465863;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hero-events-meta dd {
    margin: 0;
    color: var(--navy);
}
.hero-events-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}
.hero-events-actions .hero-events-register {
    background: var(--green);
    color: white;
    padding: .5rem .95rem;
    min-height: 40px;
    font-size: .88rem;
}
.hero-events-actions .hero-events-register:hover {
    background: var(--navy);
}
.hero-events-pager {
    display: inline-flex;
    gap: .35rem;
}
.hero-events-nav {
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    padding: .35rem .65rem;
    min-height: 36px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: .2rem;
}
.hero-events-nav:hover {
    background: #edf0e6;
}
@media (max-width: 900px) {
    .hero-stage-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-events-popup {
        justify-self: stretch;
        max-width: none;
    }
}

.publication-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.category-tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .95rem;
    border: 1px solid var(--line);
    background: #fffdf6;
    color: var(--navy);
    text-decoration: none;
    font-weight: 650;
    font-size: .92rem;
    border-radius: .25rem;
}
.category-tab:hover,
.category-tab:focus-visible {
    border-color: var(--green);
    color: var(--green);
}
.category-tab.is-active {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.team-section {
    padding-block: clamp(1.75rem, 4.5vw, 3.25rem);
    border-top: 1px solid var(--line);
}
.team-section > h2 {
    margin-bottom: 1.25rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}
.team-card {
    display: flex;
    flex-direction: column;
    background: #fffdf6;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
}
.team-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    object-position: center 20%;
}
.team-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: grid;
    gap: .4rem;
}
.team-body h3 {
    margin: 0;
    font-size: 1.2rem;
}
.team-designation {
    margin: 0;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green);
}
.team-bio {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
}
@media (max-width: 960px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
