/* =========================================================
   DIGITAL HERITAGE GUYANA — COMPLETE LANDING PAGE
========================================================= */

:root {
    --dhg-forest: #1f4d3a;
    --dhg-deep-green: #102f24;
    --dhg-dark-green: #0b241b;
    --dhg-moss: #70806b;
    --dhg-ivory: #f8f5ef;
    --dhg-cream: #f2ecdf;
    --dhg-sand: #ddd1ba;
    --dhg-gold: #c9a452;
    --dhg-charcoal: #202621;
    --dhg-white: #ffffff;
    --dhg-border: rgba(31, 77, 58, 0.18);
}

html {
    scroll-behavior: smooth;
}

.dhg-landing-page {
    width: 100%;
    overflow: hidden;
    background: var(--dhg-ivory);
    color: var(--dhg-charcoal);
}

.dhg-landing-page *,
.dhg-landing-page *::before,
.dhg-landing-page *::after {
    box-sizing: border-box;
}

.dhg-landing-page h1,
.dhg-landing-page h2,
.dhg-landing-page h3,
.dhg-landing-page p {
    max-width: none;
}

.dhg-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.dhg-narrow {
    width: min(850px, calc(100% - 48px));
    text-align: center;
}

.dhg-section {
    padding: 110px 0;
}

.dhg-section-label,
.dhg-eyebrow {
    margin: 0 0 18px;
    color: var(--dhg-forest);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.dhg-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dhg-section p {
    font-size: 1.03rem;
    line-height: 1.8;
}

.dhg-section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.dhg-section-heading p:last-child {
    margin-top: 22px;
}

/* HERO */

.dhg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--dhg-white);
    isolation: isolate;

    background-image:
        url("../img/mv-barima-memorial-background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.dhg-hero::before {
    content: "";
    position: absolute;
    inset: -5%;
    z-index: -2;

    background-image:
        url("../img/mv-barima-memorial-background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    animation: dhgHeroZoom 20s ease-in-out infinite alternate;
}

.dhg-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(5, 17, 13, 0.38) 0%,
            rgba(5, 17, 13, 0.64) 64%,
            rgba(5, 17, 13, 0.86) 100%
        );
}

.dhg-hero-content {
    width: min(920px, calc(100% - 40px));
    padding: 130px 0 120px;
}

.dhg-eyebrow {
    color: var(--dhg-white);
    opacity: 0;
    animation: dhgReveal 0.9s ease forwards 0.3s;
}

.dhg-hero h1 {
    margin: 0;
    color: var(--dhg-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.2rem, 12vw, 9.5rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    opacity: 0;
    animation: dhgReveal 1.1s ease forwards 0.8s;
}

.dhg-memorial-title {
    margin: 28px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    opacity: 0;
    animation: dhgReveal 0.9s ease forwards 1.5s;
}

.dhg-memorial-date {
    margin: 0;
    color: var(--dhg-sand);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    animation: dhgReveal 0.9s ease forwards 2s;
}

.dhg-memorial-lines {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 42px 0;
}

.dhg-memorial-lines span {
    display: inline-block;
    opacity: 0;
}

.dhg-memorial-lines span:nth-child(1) {
    animation: dhgReveal 0.8s ease forwards 2.5s;
}

.dhg-memorial-lines span:nth-child(2) {
    animation: dhgReveal 0.8s ease forwards 3s;
}

.dhg-memorial-lines span:nth-child(3) {
    animation: dhgReveal 0.8s ease forwards 3.5s;
}

.dhg-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: dhgReveal 0.9s ease forwards 4.1s;
}

.dhg-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 27px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.dhg-button:hover,
.dhg-button:focus {
    transform: translateY(-3px);
}

.dhg-button-light {
    background: var(--dhg-white);
    color: var(--dhg-deep-green);
}

.dhg-button-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--dhg-white);
}

.dhg-button-outline:hover,
.dhg-button-outline:focus {
    background: var(--dhg-white);
    color: var(--dhg-deep-green);
}

.dhg-button-dark {
    margin-top: 24px;
    background: var(--dhg-deep-green);
    color: var(--dhg-white);
}

.dhg-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--dhg-white);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: translateX(-50%);
    opacity: 0;
    animation: dhgRevealCentered 0.9s ease forwards 4.8s;
}

.dhg-scroll-line {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.75);
    animation: dhgScrollPulse 1.8s ease-in-out infinite;
}

/* INTRODUCTION */

.dhg-introduction {
    background: var(--dhg-ivory);
}

.dhg-introduction .dhg-lead {
    margin-top: 30px;
    font-size: 1.2rem;
    line-height: 1.75;
}

/* FEATURED MEMORIAL */

.dhg-featured-memorial {
    background: var(--dhg-white);
}

.dhg-feature-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.dhg-feature-copy p:not(.dhg-section-label) {
    max-width: 670px;
    margin: 28px 0;
}

.dhg-feature-panel {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
    color: var(--dhg-white);
    background:
        linear-gradient(
            180deg,
            rgba(8, 26, 19, 0.15),
            rgba(8, 26, 19, 0.9)
        ),
        url("../img/mv-barima-memorial-background.jpg")
        center / cover no-repeat;
}

.dhg-feature-panel strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
}

.dhg-feature-panel span {
    margin-top: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dhg-feature-kicker {
    margin: 0 0 14px;
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* LINKS */

.dhg-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dhg-forest);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 5px;
}

.dhg-text-link-light {
    color: var(--dhg-white);
}

/* CARDS */

.dhg-explore-section {
    background: var(--dhg-cream);
}

.dhg-card-grid {
    display: grid;
    border-top: 1px solid var(--dhg-border);
    border-left: 1px solid var(--dhg-border);
}

.dhg-card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dhg-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-right: 1px solid var(--dhg-border);
    border-bottom: 1px solid var(--dhg-border);
    color: var(--dhg-charcoal);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.28);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.dhg-card:hover,
.dhg-card:focus {
    background: var(--dhg-white);
    transform: translateY(-5px);
}

.dhg-card-number {
    margin-bottom: 65px;
    color: var(--dhg-moss);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.dhg-card h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
}

.dhg-card p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.65;
}

.dhg-card-arrow {
    margin-top: auto;
    padding-top: 28px;
    color: var(--dhg-forest);
    font-weight: 700;
}

/* COMMUNITIES */

.dhg-community-section {
    color: var(--dhg-white);
    background: var(--dhg-deep-green);
}

.dhg-community-section .dhg-section-label {
    color: var(--dhg-sand);
}

.dhg-community-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dhg-community-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--dhg-white);
    text-decoration: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.03),
            rgba(0, 0, 0, 0.3)
        );
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.dhg-community-card:hover,
.dhg-community-card:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.dhg-community-region {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dhg-community-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.community-page-intro {
    max-width: 850px;
    margin: 0 auto;
}

.community-page-intro p {
    max-width: 760px;
}

/* COLLECTIONS */

.dhg-collections-section {
    background: var(--dhg-white);
}

.dhg-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dhg-collection-card {
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    border: 1px solid var(--dhg-border);
    color: var(--dhg-charcoal);
    text-decoration: none;
    background:
        linear-gradient(
            135deg,
            var(--dhg-cream),
            var(--dhg-ivory)
        );
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dhg-collection-card:hover,
.dhg-collection-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(20, 49, 38, 0.11);
}

.dhg-collection-card span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

/* PROGRAMMES */

.dhg-programme-section {
    background: var(--dhg-sand);
}

.dhg-programme-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: start;
}

.dhg-programme-layout p:not(.dhg-section-label) {
    margin-top: 0;
}

.dhg-music-section {
    color: var(--dhg-white);
    background: var(--dhg-dark-green);
}

.dhg-music-section .dhg-section-label {
    color: var(--dhg-gold);
}

/* LEARNING AND RESEARCH */

.dhg-learning-research {
    background: var(--dhg-ivory);
}

.dhg-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--dhg-border);
    border-left: 1px solid var(--dhg-border);
}

.dhg-large-card {
    min-height: 480px;
    padding: 48px;
    border-right: 1px solid var(--dhg-border);
    border-bottom: 1px solid var(--dhg-border);
}

.dhg-large-card h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.dhg-large-card p:not(.dhg-section-label) {
    margin: 28px 0;
}

/* CONTRIBUTE */

.dhg-contribute-section {
    background: var(--dhg-gold);
}

.dhg-contribute-section .dhg-section-label {
    color: var(--dhg-dark-green);
}

/* FOOTER */

.dhg-landing-footer {
    padding: 80px 0 36px;
    color: var(--dhg-white);
    background: #081b14;
}

.dhg-footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.dhg-footer-layout strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.dhg-footer-layout p {
    line-height: 1.7;
}

.dhg-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    gap: 12px 30px;
}

.dhg-footer-links a,
.dhg-footer-bottom a {
    color: var(--dhg-white);
    text-decoration: none;
}

.dhg-footer-links a:hover,
.dhg-footer-bottom a:hover {
    text-decoration: underline;
}

.dhg-footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* ANIMATIONS */

@keyframes dhgReveal {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dhgRevealCentered {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes dhgHeroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.09);
    }
}

@keyframes dhgScrollPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(0.45);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .dhg-feature-layout,
    .dhg-programme-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .dhg-card-grid-four,
    .dhg-community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dhg-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dhg-section {
        padding: 78px 0;
    }

    .dhg-container,
    .dhg-narrow {
        width: min(100% - 34px, 1180px);
    }

    .dhg-hero-content {
        padding: 110px 0 120px;
    }

    .dhg-memorial-lines {
        flex-direction: column;
    }

    .dhg-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: min(330px, 100%);
        margin: 0 auto;
    }

    .dhg-card-grid-four,
    .dhg-community-grid,
    .dhg-collection-grid,
    .dhg-split-grid,
    .dhg-footer-layout {
        grid-template-columns: 1fr;
    }

    .dhg-card {
        min-height: 280px;
    }

    .dhg-community-card {
        min-height: 260px;
    }

    .dhg-large-card {
        min-height: auto;
        padding: 36px 28px;
    }

    .dhg-footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dhg-hero::before,
    .dhg-eyebrow,
    .dhg-hero h1,
    .dhg-memorial-title,
    .dhg-memorial-date,
    .dhg-memorial-lines span,
    .dhg-hero-actions,
    .dhg-scroll,
    .dhg-scroll-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none;
    }

    .dhg-scroll {
        transform: translateX(-50%);
    }
}

/* =====================================
   LANDING PAGE - HIDE OMEKA HEADER
===================================== */

.home header,
.home .site-title,
.home nav,
.home .site-nav,
.home .navigation,
.home .menu-toggle,
.home #site-header,
.home #header {
    display: none !important;
}

/* Allow the hero to occupy the full screen */
.home #content{
    margin:0 !important;
    padding:0 !important;
}

.home main{
    margin:0 !important;
    padding:0 !important;
}

/* =========================================================
   SHARED MUSEUM TYPOGRAPHY + COLLECTION CARD SYSTEM
   ========================================================= */

/* Shared section labels */
.community-collection-label,
.community-section-label,
.music-label,
.music-section-label,
.oral-history-label,
.oral-history-section-label,
.dh-label,
.dh-section-label,
.ce-label,
.ce-section-label,
.edu-label,
.edu-section-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}

/* Shared hero titles */
.community-collection-intro h1,
.music-hero h1,
.oral-history-hero h1,
.dh-hero h1,
.ce-hero h1,
.edu-hero h1 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    line-height: 0.96 !important;
    letter-spacing: -0.045em !important;
}

/* Shared section headings */
.community-collection-section h2,
.community-archive-explore h2,
.music-categories h2,
.music-research h2,
.oral-history-collections h2,
.oral-history-contribute h2,
.dh-projects h2,
.dh-methods h2,
.ce-research h2,
.ce-methods h2,
.edu-resources h2,
.edu-pathways h2,
.edu-lab-link h2 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    line-height: 1.03 !important;
    letter-spacing: -0.035em !important;
}

/* Shared card typography */
.community-archive-card h3,
.music-card h3,
.oral-history-card h3,
.dh-card h3,
.ce-card h3,
.edu-card h3,
.edu-pathway h3 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    line-height: 1.14 !important;
    letter-spacing: -0.02em !important;
}

/* Shared card bodies */
.community-archive-card p,
.music-card p,
.oral-history-card p,
.dh-card p,
.ce-card p,
.edu-card p,
.edu-pathway p {
    line-height: 1.68 !important;
}

/* Shared card interaction */
.community-archive-card,
.music-card,
.oral-history-card,
.dh-card,
.ce-card,
.edu-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease !important;
}

.community-archive-card:hover,
.community-archive-card:focus-visible,
.music-card:hover,
.music-card:focus-visible,
.oral-history-card:hover,
.oral-history-card:focus-visible,
.dh-card:hover,
.dh-card:focus-visible,
.ce-card:hover,
.ce-card:focus-visible,
.edu-card:hover,
.edu-card:focus-visible {
    transform: translateY(-7px) !important;
    border-color: rgba(241, 211, 145, 0.62) !important;
    box-shadow: 0 22px 45px rgba(23, 59, 45, 0.18) !important;
}

/* Shared keyboard focus */
.community-archive-card:focus-visible,
.music-card:focus-visible,
.oral-history-card:focus-visible,
.dh-card:focus-visible,
.ce-card:focus-visible,
.edu-card:focus-visible {
    outline: 3px solid #f1d391 !important;
    outline-offset: 4px !important;
}

/* =========================================================
   SHARED COLLECTION CARD SYSTEM
   ========================================================= */

.dhg-collection-card,
.community-archive-card,
.music-card,
.oral-history-card,
.dh-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 59, 45, 0.16);
    text-decoration: none;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.dhg-collection-card h3,
.community-archive-card h3,
.music-card h3,
.oral-history-card h3,
.dh-card h3 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
}

.dhg-card-category,
.community-archive-card > span,
.music-card > span,
.oral-history-card > span,
.dh-card > span {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
}

.dhg-collection-card p,
.community-archive-card p,
.music-card p,
.oral-history-card p,
.dh-card p {
    line-height: 1.65 !important;
}

.community-archive-card:hover,
.community-archive-card:focus-visible,
.music-card:hover,
.music-card:focus-visible,
.oral-history-card:hover,
.oral-history-card:focus-visible,
.dh-card:hover,
.dh-card:focus-visible {
    color: #fff !important;
    background: #173b2d !important;
    border-color: rgba(241, 211, 145, 0.65) !important;
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(23, 59, 45, 0.18);
}

.community-archive-card:hover p,
.community-archive-card:focus-visible p,
.music-card:hover p,
.music-card:focus-visible p,
.oral-history-card:hover p,
.oral-history-card:focus-visible p,
.dh-card:hover p,
.dh-card:focus-visible p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* =========================================================
   TABLET + MOBILE OPTIMIZATION
   ========================================================= */

/* Prevent overflow everywhere */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

/* -------------------------
   TABLET
   ------------------------- */

@media screen and (max-width: 900px) {

    /* Hero typography */
    .community-collection-intro h1,
    .music-hero h1,
    .oral-history-hero h1,
    .dh-hero h1,
    .ce-hero h1,
    .edu-hero h1 {
        font-size: clamp(3rem, 9vw, 5.4rem) !important;
        line-height: 0.98 !important;
    }

    /* Section headings */
    .community-collection-section h2,
    .community-archive-explore h2,
    .music-categories h2,
    .music-research h2,
    .oral-history-collections h2,
    .oral-history-contribute h2,
    .dh-projects h2,
    .dh-methods h2,
    .ce-research h2,
    .ce-methods h2,
    .edu-resources h2,
    .edu-pathways h2,
    .edu-lab-link h2 {
        font-size: clamp(2.25rem, 6vw, 4rem) !important;
    }

    /* Homepage collections */
    #featured-collections .dhg-featured-grid {
        grid-template-columns: 1fr !important;
    }

    #featured-collections .dhg-collection-card {
        min-height: 420px !important;
    }

    /* Collection grids */
    .community-archive-grid,
    .music-grid,
    .oral-history-grid,
    .dh-grid,
    .ce-grid,
    .edu-grid,
    .edu-pathway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* -------------------------
   MOBILE
   ------------------------- */

@media screen and (max-width: 600px) {

    /* Avoid edge collisions */
    main,
    section,
    .site-content,
    .blocks,
    .blocks-inner,
    .block {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Hero titles */
    .community-collection-intro h1,
    .music-hero h1,
    .oral-history-hero h1,
    .dh-hero h1,
    .ce-hero h1,
    .edu-hero h1 {
        font-size: clamp(2.65rem, 12vw, 4.15rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.035em !important;
        overflow-wrap: anywhere;
    }

    /* Long Computational Ethnomusicology title */
    .ce-hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.75rem) !important;
    }

    /* Hero lead copy */
    .community-collection-lead,
    .music-lead,
    .oral-history-lead,
    .dh-lead,
    .ce-lead,
    .edu-lead {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    /* Section headings */
    .community-collection-section h2,
    .community-archive-explore h2,
    .music-categories h2,
    .music-research h2,
    .oral-history-collections h2,
    .oral-history-contribute h2,
    .dh-projects h2,
    .dh-methods h2,
    .ce-research h2,
    .ce-methods h2,
    .edu-resources h2,
    .edu-pathways h2,
    .edu-lab-link h2 {
        font-size: clamp(2.1rem, 9vw, 3.3rem) !important;
        line-height: 1.04 !important;
    }

    /* Action buttons stack */
    .community-collection-actions,
    .music-buttons,
    .oral-history-actions,
    .dh-actions,
    .ce-actions,
    .edu-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .community-collection-actions a,
    .music-buttons a,
    .oral-history-actions a,
    .dh-actions a,
    .ce-actions a,
    .edu-actions a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Homepage intro */
    #digital-heritage-introduction {
        width: 100% !important;
        overflow: hidden !important;
    }

    .dhg-introduction-inner {
        width: calc(100% - 30px) !important;
        margin: 0 auto !important;
    }

    /* Featured Collections */
    #featured-collections .dhg-featured-inner {
        width: calc(100% - 30px) !important;
    }

    #featured-collections .dhg-featured-heading h2 {
        font-size: clamp(2.6rem, 12vw, 4rem) !important;
    }

    #featured-collections .dhg-featured-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #featured-collections .dhg-collection-card {
        min-height: 350px !important;
    }

    #featured-collections .dhg-card-content {
        padding: 26px 22px !important;
    }

    #featured-collections .dhg-card-content h3 {
        font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    }

    /* All collection grids collapse */
    .community-archive-grid,
    .music-grid,
    .oral-history-grid,
    .dh-grid,
    .ce-grid,
    .edu-grid,
    .edu-pathway-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cards */
    .community-archive-card,
    .music-card,
    .oral-history-card,
    .dh-card,
    .ce-card,
    .edu-card {
        min-height: 220px !important;
        padding: 24px !important;
    }

    /* Touch devices should not depend on hover */
    .community-archive-card::after,
    .music-card::after,
    .oral-history-card::after,
    .dh-card::after,
    .ce-card::after,
    .edu-card::after {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* -------------------------
   VERY SMALL PHONES
   ------------------------- */

@media screen and (max-width: 420px) {

    .community-collection-intro h1,
    .music-hero h1,
    .oral-history-hero h1,
    .dh-hero h1,
    .edu-hero h1 {
        font-size: 2.55rem !important;
    }

    .ce-hero h1 {
        font-size: 2.2rem !important;
    }

    #featured-collections .dhg-featured-heading h2 {
        font-size: 2.6rem !important;
    }

    .community-collection-actions a,
    .music-buttons a,
    .oral-history-actions a,
    .dh-actions a,
    .ce-actions a,
    .edu-actions a {
        padding: 13px 16px !important;
    }
}

/* =========================================================
   GLOBAL MUSEUM SPACING SYSTEM
   ========================================================= */

/* Standard content width */
.community-collection-intro-inner,
.community-collection-section-inner,
.music-hero-inner,
.music-inner,
.oral-history-hero-inner,
.oral-history-inner,
.dh-hero-inner,
.dh-inner,
.ce-hero-inner,
.ce-inner,
.edu-hero-inner,
.edu-inner {
    width: min(1120px, calc(100% - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Consistent hero spacing */
.community-collection-intro,
.music-hero,
.oral-history-hero,
.dh-hero,
.ce-hero,
.edu-hero {
    min-height: 72vh !important;
    padding-top: 120px !important;
    padding-bottom: 90px !important;
}

/* Consistent section spacing */
.community-collection-section,
.community-archive-explore,
.music-categories,
.music-research,
.oral-history-collections,
.oral-history-contribute,
.dh-projects,
.dh-methods,
.ce-research,
.ce-methods,
.edu-resources,
.edu-pathways,
.edu-lab-link {
    padding-top: 110px !important;
    padding-bottom: 110px !important;
}

/* Consistent heading-to-copy spacing */
.community-collection-section h2 + p,
.music-categories h2 + p,
.music-research h2 + p,
.oral-history-collections h2 + p,
.oral-history-contribute h2 + p,
.dh-projects h2 + p,
.dh-methods h2 + p,
.ce-research h2 + p,
.ce-methods h2 + p,
.edu-resources h2 + p,
.edu-pathways h2 + p,
.edu-lab-link h2 + p {
    margin-top: 28px !important;
}

/* Consistent grid spacing */
.community-archive-grid,
.music-grid,
.oral-history-grid,
.dh-grid,
.ce-grid,
.edu-grid,
.edu-pathway-grid {
    margin-top: 50px !important;
    gap: 20px !important;
}

/* Tablet */
@media screen and (max-width: 900px) {
    .community-collection-intro,
    .music-hero,
    .oral-history-hero,
    .dh-hero,
    .ce-hero,
    .edu-hero {
        min-height: 660px !important;
        padding-top: 95px !important;
        padding-bottom: 70px !important;
    }

    .community-collection-section,
    .community-archive-explore,
    .music-categories,
    .music-research,
    .oral-history-collections,
    .oral-history-contribute,
    .dh-projects,
    .dh-methods,
    .ce-research,
    .ce-methods,
    .edu-resources,
    .edu-pathways,
    .edu-lab-link {
        padding-top: 88px !important;
        padding-bottom: 88px !important;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .community-collection-intro-inner,
    .community-collection-section-inner,
    .music-hero-inner,
    .music-inner,
    .oral-history-hero-inner,
    .oral-history-inner,
    .dh-hero-inner,
    .dh-inner,
    .ce-hero-inner,
    .ce-inner,
    .edu-hero-inner,
    .edu-inner {
        width: calc(100% - 30px) !important;
    }

    .community-collection-intro,
    .music-hero,
    .oral-history-hero,
    .dh-hero,
    .ce-hero,
    .edu-hero {
        min-height: 620px !important;
        padding-top: 82px !important;
        padding-bottom: 58px !important;
    }

    .community-collection-section,
    .community-archive-explore,
    .music-categories,
    .music-research,
    .oral-history-collections,
    .oral-history-contribute,
    .dh-projects,
    .dh-methods,
    .ce-research,
    .ce-methods,
    .edu-resources,
    .edu-pathways,
    .edu-lab-link {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }

    .community-archive-grid,
    .music-grid,
    .oral-history-grid,
    .dh-grid,
    .ce-grid,
    .edu-grid,
    .edu-pathway-grid {
        margin-top: 36px !important;
        gap: 16px !important;
    }
}

/* =========================================================
   ACCESSIBILITY — STRONG KEYBOARD FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 4px solid #ffd866 !important;
    outline-offset: 5px !important;
    box-shadow:
        0 0 0 3px #173b2d,
        0 0 0 7px #ffd866 !important;
}

/* Cards */
.dhg-collection-card:focus-visible,
.community-archive-card:focus-visible,
.barima-archive-card:focus-visible,
.music-card:focus-visible,
.oral-history-card:focus-visible,
.dh-card:focus-visible,
.ce-card:focus-visible,
.edu-card:focus-visible {
    outline: 4px solid #ffd866 !important;
    outline-offset: 5px !important;
    transform: translateY(-6px) !important;
    box-shadow:
        0 0 0 3px #173b2d,
        0 0 0 8px #ffd866,
        0 24px 45px rgba(0, 0, 0, 0.24) !important;
}

/* Text links/buttons */
.dhg-introduction-button:focus-visible,
.dh-actions a:focus-visible,
.ce-actions a:focus-visible,
.edu-actions a:focus-visible,
.oral-history-actions a:focus-visible,
.music-buttons a:focus-visible {
    background: #ffd866 !important;
    color: #10251d !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   ACCESSIBILITY — CONTRAST REFINEMENT
   ========================================================= */

/* Small gold/brown labels on pale backgrounds */
.barima-section-label,
.community-section-label,
.dh-card > span,
.ce-card > span,
.edu-label,
.edu-section-label,
.edu-card > span {
    color: #7a5d27 !important;
}

/* Keep gold bright on dark backgrounds */
.dhg-featured-label,
.dhg-card-category,
.dhg-card-link,
.music-label,
.music-section-label,
.oral-history-label,
.oral-history-section-label,
.dh-label,
.dh-section-label,
.ce-label,
.ce-section-label {
    color: #f1d391;
}

/* =========================================================
   COMMUNITY SITE HEADER + NAVIGATION — REFINED
   ========================================================= */

.community-site-header {
    position: relative;
    z-index: 50;
    width: 100%;
    background: #10251d;
    border-bottom: 1px solid rgba(241, 211, 145, 0.22);
}

.community-site-header-inner {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

/* -------------------------
   Community identity
   ------------------------- */

.community-site-title {
    flex: 0 1 310px;
    min-width: 210px;
}

.community-site-title a {
    display: block;

    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.02em;

    text-decoration: none;
}

.community-site-title a:hover,
.community-site-title a:focus-visible {
    color: #f1d391;
}

/* -------------------------
   Navigation
   ------------------------- */

.community-site-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

.community-site-navigation ul.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0;
    margin: 0;
    padding: 0;

    list-style: none;
}

.community-site-navigation ul.navigation > li {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.community-site-navigation a {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 92px;
    padding: 0 13px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0.055em;

    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.community-site-navigation a::after {
    content: "";
    position: absolute;

    left: 13px;
    right: 13px;
    bottom: 0;

    height: 2px;

    background: #f1d391;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.22s ease;
}

/* Hover */

.community-site-navigation a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
}

.community-site-navigation a:hover::after {
    transform: scaleX(1);
}

/* Current page */

.community-site-navigation li.active > a,
.community-site-navigation a[aria-current="page"] {
    color: #f1d391;
}

.community-site-navigation li.active > a::after,
.community-site-navigation a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Keyboard */

.community-site-navigation a:focus-visible,
.community-site-title a:focus-visible {
    outline: 3px solid #ffd866;
    outline-offset: -5px;
}

/* =========================================================
   DIGITAL HERITAGE — COLLECTION NAVIGATION
   ========================================================= */

.dhg-collection-navigation {
    position: relative;
    z-index: 20;

    width: 100%;

    border-bottom: 1px solid rgba(23, 59, 45, 0.1);

    background: #f8f5ee;
}

.dhg-collection-navigation-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
}

.dhg-back-to-collections {
    display: inline-flex;
    align-items: center;

    color: #173b2d;
    text-decoration: none;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dhg-back-to-collections:hover,
.dhg-back-to-collections:focus-visible {
    color: #8a6733;
}

.dhg-collection-sequence {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;

    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid rgba(23, 59, 45, 0.08);
}

.dhg-collection-previous,
.dhg-collection-next {
    display: flex;
    flex-direction: column;
    gap: 3px;

    color: #173b2d;
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.3;
}

.dhg-collection-next {
    align-items: flex-end;
    text-align: right;
}

.dhg-collection-previous span,
.dhg-collection-next span {
    color: #8a6733;

    font-family: Arial, sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dhg-collection-previous:hover,
.dhg-collection-next:hover,
.dhg-collection-previous:focus-visible,
.dhg-collection-next:focus-visible {
    color: #8a6733;
}

.dhg-collection-nav-placeholder {
    min-height: 1px;
}

@media screen and (max-width: 650px) {

    .dhg-collection-navigation-inner {
        width: calc(100% - 30px);
    }

    .dhg-collection-sequence {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dhg-collection-next {
        align-items: flex-start;
        text-align: left;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1050px) {

    .community-site-header-inner {
        width: min(100% - 40px, 1180px);
        min-height: auto;

        flex-direction: column;
        align-items: stretch;

        gap: 0;
        padding-top: 20px;
    }

    .community-site-title {
        flex: none;
        min-width: 0;
        padding-bottom: 17px;
    }

    .community-site-navigation {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .community-site-navigation ul.navigation {
        width: max-content;
        min-width: 100%;

        justify-content: flex-start;
    }

    .community-site-navigation a {
        min-height: 54px;
        padding: 0 14px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .community-site-header-inner {
        width: calc(100% - 30px);
        padding-top: 17px;
    }

    .community-site-title {
        padding-bottom: 14px;
    }

    .community-site-title a {
        font-size: 1.18rem;
    }

    .community-site-navigation {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);

        padding-left: 15px;
        padding-right: 15px;
    }

    .community-site-navigation a {
        min-height: 50px;
        padding: 0 12px;

        font-size: 0.68rem;
        letter-spacing: 0.045em;
    }
}

/* =========================================================
   COMMUNITY SITES — SHARED VISUAL SYSTEM
   ========================================================= */

.community-site {
    background: #f6f1e7;
    color: #173b2d;
}

.community-site .site-content {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 100px;
}

.community-site h1,
.community-site h2,
.community-site h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #173b2d;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.community-site h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 28px;
}

.community-site h2 {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.08;
    margin-top: 55px;
    margin-bottom: 22px;
}

.community-site h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.community-site p,
.community-site li {
    color: #46594f;
    line-height: 1.75;
}

.community-site a {
    color: #6f5424;
}

.community-site a:hover {
    color: #173b2d;
}

/* Content blocks */
.community-site .blocks,
.community-site .block {
    width: 100%;
}

.community-site .block {
    margin-bottom: 38px;
}

/* Give important content panels a museum-card feel */
.community-site .block-html,
.community-site .block-pageTitle,
.community-site .block-itemShowcase,
.community-site .block-itemWithMetadata {
    padding: 30px;
    border: 1px solid rgba(23, 59, 45, 0.14);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 12px 28px rgba(23, 59, 45, 0.06);
}

/* Images */
.community-site img {
    border-radius: 2px;
}

/* =========================================================
   COMMUNITY-SPECIFIC ACCENTS
   ========================================================= */

.site-kabakaburi .community-site-header {
    border-top: 4px solid #8a5a44;
}

.site-kamarang .community-site-header {
    border-top: 4px solid #5b6f46;
}

.site-santa-rosa .community-site-header {
    border-top: 4px solid #b2794b;
}

.site-waramadong .community-site-header {
    border-top: 4px solid #536a78;
}

/* =========================================================
   RESPONSIVE COMMUNITY CONTENT
   ========================================================= */

@media screen and (max-width: 900px) {
    .community-site .site-content {
        padding-top: 55px;
    }
}

@media screen and (max-width: 600px) {
    .community-site .site-content {
        width: calc(100% - 30px);
        padding: 45px 0 75px;
    }

    .community-site .block-html,
    .community-site .block-pageTitle,
    .community-site .block-itemShowcase,
    .community-site .block-itemWithMetadata {
        padding: 22px;
    }
}

/* =========================================================
   COMMUNITY SITES — REFINED VISUAL SYSTEM
   ========================================================= */

.community-site {
    background: #f7f3ea;
    color: #173b2d;
}

.community-site .site-content {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0 100px;
}

.community-site h1,
.community-site h2,
.community-site h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #173b2d;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.community-site h1 {
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.community-site h2 {
    margin: 48px 0 20px;
    font-size: clamp(1.9rem, 3.3vw, 3.1rem);
    line-height: 1.1;
}

.community-site h3 {
    margin-top: 0;
    font-size: 1.45rem;
    line-height: 1.25;
}

.community-site p,
.community-site li {
    color: #46594f;
    font-size: 1rem;
    line-height: 1.75;
}

.community-site a {
    color: #6f5424;
}

.community-site a:hover,
.community-site a:focus-visible {
    color: #173b2d;
}

/* Standard Omeka content blocks */

.community-site .blocks,
.community-site .block {
    width: 100%;
}

.community-site .block {
    margin-bottom: 32px;
}

.community-site .block-html,
.community-site .block-pageTitle,
.community-site .block-itemShowcase,
.community-site .block-itemWithMetadata {
    padding: 30px;
    border: 1px solid rgba(23, 59, 45, 0.12);
    background: #fffdf8;
    box-shadow: 0 8px 24px rgba(23, 59, 45, 0.05);
}

.community-site img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* =========================================================
   COMMUNITY INTERIOR PAGES
   ========================================================= */

.community-page-intro {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.community-page-intro > :first-child {
    margin-top: 0;
}

.community-page-intro p {
    max-width: 760px;
}

.community-page-intro h2 {
    margin-top: 52px;
}

.community-site .block-pageTitle h2 {
    margin: 0;
}

.community-site .block-html > :first-child {
    margin-top: 0;
}

.community-site .block-html > :last-child {
    margin-bottom: 0;
}

.community-site blockquote {
    margin: 32px 0;
    padding: 22px 26px;

    border-left: 3px solid #8d6b2d;
    background: #eee8dc;

    color: #3f5449;
}

.community-site hr {
    margin: 45px 0;
    border: 0;
    border-top: 1px solid rgba(23, 59, 45, 0.16);
}

.community-site table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdf8;
}

.community-site th,
.community-site td {
    padding: 14px 16px;
    border: 1px solid rgba(23, 59, 45, 0.14);
    text-align: left;
    vertical-align: top;
}

.community-site th {
    color: #173b2d;
    background: #eee8dc;
}

/* =========================================================
   COMMUNITY HEADER
   ========================================================= */

.community-site-header {
    width: 100%;
    background: #173b2d;
    border-bottom: 1px solid rgba(241, 211, 145, 0.22);
}

.community-site-header-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.community-site-title {
    flex: 1;
}

.community-site-title a {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    line-height: 1.2;
    text-decoration: none;
}

.community-site-title a:hover,
.community-site-title a:focus-visible {
    color: #f1d391;
}

/* Header navigation now secondary */

.community-site-navigation {
    display: none;
}

/* =========================================================
   COMMUNITY NAVIGATION CARDS
   ========================================================= */

.community-nav-cards {
    padding: 54px 0 66px;
    background: #eee8dc;
    border-bottom: 1px solid rgba(23, 59, 45, 0.1);
}

.community-nav-cards-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.community-nav-label {
    margin: 0 0 10px;
    color: #765c2e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.community-nav-cards h2 {
    margin: 0;
    max-width: 800px;
    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
}

.community-nav-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.community-nav-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    min-height: 150px;
    padding: 24px;

    border: 1px solid rgba(23, 59, 45, 0.14);
    background: #fffdf8;
    color: #173b2d;

    text-decoration: none;

    box-shadow: 0 7px 18px rgba(23, 59, 45, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.community-nav-card:hover,
.community-nav-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(111, 84, 36, 0.5);
    box-shadow: 0 14px 28px rgba(23, 59, 45, 0.1);
}

.community-nav-card-title {
    max-width: 85%;
    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    line-height: 1.25;
}

.community-nav-card-arrow {
    color: #8d6b2d;
    font-size: 1.25rem;
}

/* =========================================================
   COMMUNITY-SPECIFIC ACCENTS
   ========================================================= */

.site-kabakaburi .community-site-header {
    border-top: 4px solid #8a5a44;
}

.site-kamarang .community-site-header {
    border-top: 4px solid #5b6f46;
}

.site-santa-rosa .community-site-header {
    border-top: 4px solid #b2794b;
}

.site-waramadong .community-site-header {
    border-top: 4px solid #536a78;
}

/* =========================================================
   RESPONSIVE COMMUNITY SYSTEM
   ========================================================= */

@media screen and (max-width: 900px) {

    .community-nav-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-site .site-content {
        padding-top: 50px;
    }
}

@media screen and (max-width: 600px) {

    .community-site-header-inner,
    .community-nav-cards-inner,
    .community-site .site-content {
        width: calc(100% - 30px);
    }

    .community-site-header-inner {
        min-height: 70px;
    }

    .community-nav-cards {
        padding: 42px 0 52px;
    }

    .community-nav-card-grid {
        grid-template-columns: 1fr;
    }

    .community-nav-card {
        min-height: 120px;
        padding: 21px;
    }

    .community-site .site-content {
        padding: 42px 0 70px;
    }

    .community-site .block-html,
    .community-site .block-pageTitle,
    .community-site .block-itemShowcase,
    .community-site .block-itemWithMetadata {
        padding: 22px;
    }
}

/* =========================================================
   RESEARCHER PROFILE
   ========================================================= */

.researcher-profile {
    width: min(920px, 100%);
    margin: 0 auto;
}

.researcher-profile-header {
    padding: 20px 0 48px;
    border-bottom: 1px solid rgba(23, 59, 45, 0.16);
}

.profile-kicker {
    margin: 0 0 12px;
    color: #84672e;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.researcher-profile h1 {
    margin: 0 0 22px;
    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 0.98;
}

.profile-lead {
    max-width: 760px;
    margin: 0;
    color: #46594f;
    font-size: 1.18rem;
    line-height: 1.7;
}

.profile-section {
    padding: 44px 0;
    border-bottom: 1px solid rgba(23, 59, 45, 0.12);
}

.profile-section h2 {
    margin: 0 0 22px;
}

.profile-section h3 {
    margin-bottom: 8px;
}

.profile-section p {
    max-width: 760px;
}

.profile-interests {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
    padding-left: 22px;
}

.profile-links a,
.profile-project-links a,
.profile-primary-link {
    font-weight: 600;
}

.profile-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.profile-project-links a {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid rgba(23, 59, 45, 0.2);
    background: #fffdf8;
    color: #173b2d;
    text-decoration: none;
}

.profile-project-links a:hover,
.profile-project-links a:focus-visible {
    border-color: #84672e;
}

.profile-primary-link {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 18px;
    background: #173b2d;
    color: #ffffff;
    text-decoration: none;
}

.profile-primary-link:hover,
.profile-primary-link:focus-visible {
    background: #84672e;
    color: #ffffff;
}

@media screen and (max-width: 600px) {
    .profile-interests {
        grid-template-columns: 1fr;
    }

    .profile-links span {
        display: none;
    }

    .profile-links a {
        display: block;
        margin-bottom: 10px;
    }
}

/* =========================================================
   ABOUT DIGITAL HERITAGE GUYANA
   ========================================================= */

.digital-heritage-site .dhgy-about {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 100px;
    color: #173b2d;
}

/* -------------------------
   Opening statement
   ------------------------- */

.dhgy-about-header {
    max-width: 920px;
    padding: 35px 0 64px;
    border-bottom: 1px solid rgba(23, 59, 45, 0.15);
}

.about-kicker,
.about-section-label {
    margin: 0 0 12px;

    color: #80622e;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.dhgy-about-header h1 {
    margin: 0 0 24px;

    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.about-lead {
    max-width: 800px;
    margin: 0;

    color: #46594f;
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    line-height: 1.7;
}

/* -------------------------
   Standard sections
   ------------------------- */

.about-section {
    padding: 62px 0;
    border-bottom: 1px solid rgba(23, 59, 45, 0.12);
}

.about-section > h2 {
    max-width: 760px;
    margin: 0 0 25px;

    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.about-section > p {
    max-width: 780px;
    color: #46594f;
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================================================
   ABOUT — PROJECT AREA CARDS
   ========================================================= */

.about-area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
    margin-top: 38px;
}

.about-area-card {
    display: flex;
    flex-direction: column;

    min-height: 220px;
    padding: 25px;

    border: 1px solid rgba(23, 59, 45, 0.14);
    background: #fffdf8;

    color: #173b2d;
    text-decoration: none;

    box-shadow: 0 8px 22px rgba(23, 59, 45, 0.05);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.about-area-card > span {
    margin-bottom: auto;

    color: #947239;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.about-area-card h3 {
    margin: 36px 0 10px;

    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.2;
}

.about-area-card p {
    margin: 0;
    color: #5b6961;
    font-size: 0.92rem;
    line-height: 1.6;
}

.about-area-card:hover,
.about-area-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(128, 98, 46, 0.55);
    box-shadow: 0 15px 30px rgba(23, 59, 45, 0.09);
}

/* =========================================================
   ABOUT — RESEARCHER FEATURE
   ========================================================= */

.about-researcher {
    margin: 30px 0;
    padding: 54px;

    border: 1px solid rgba(23, 59, 45, 0.14);
    background: #eee8dc;
}

.about-researcher-copy {
    max-width: 760px;
}

.about-researcher h2 {
    margin: 0 0 20px;

    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
}

.about-researcher p {
    color: #46594f;
    line-height: 1.75;
}

.about-profile-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 17px;

    background: #173b2d;
    color: #ffffff !important;

    font-weight: 650;
    text-decoration: none;
}

.about-profile-link:hover,
.about-profile-link:focus-visible {
    background: #80622e;
    color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE ABOUT PAGE
   ========================================================= */

@media screen and (max-width: 900px) {

    .about-area-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-researcher {
        padding: 38px;
    }
}

@media screen and (max-width: 600px) {

    .digital-heritage-site .dhgy-about {
        width: calc(100% - 30px);
        padding: 45px 0 70px;
    }

    .dhgy-about-header {
        padding-top: 15px;
    }

    .about-section {
        padding: 46px 0;
    }

    .about-area-grid {
        grid-template-columns: 1fr;
    }

    .about-area-card {
        min-height: 175px;
    }

    .about-researcher {
        margin: 15px 0;
        padding: 28px 22px;
    }
}

/* =========================================================
   ABOUT — CONTACT
   ========================================================= */

.about-contact {
    padding-top: 58px;
}

.about-contact-details {
    max-width: 720px;
    margin-top: 28px;
    padding: 28px 30px;

    border: 1px solid rgba(23, 59, 45, 0.14);
    background: #fffdf8;

    box-shadow: 0 10px 24px rgba(23, 59, 45, 0.05);
}

.about-contact-details p {
    margin: 0 0 14px;
    color: #46594f;
    line-height: 1.6;
}

.about-contact-details p:last-child {
    margin-bottom: 0;
}

.about-contact-details strong {
    color: #173b2d;
}

.about-contact-details a {
    color: #80622e;
    font-weight: 600;
    text-decoration: none;
}

.about-contact-details a:hover,
.about-contact-details a:focus-visible {
    color: #173b2d;
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .about-contact-details {
        padding: 22px;
    }
}

/* Computational Ethnomusicology — visualisation sections */

.ce-viz-section {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ce-viz-heading {
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.ce-viz-heading h3 {
    margin: 0.35rem 0 0.8rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.ce-viz-heading p:last-child {
    max-width: 720px;
    line-height: 1.7;
}


/* Main featured graph */

.ce-viz-primary {
    margin: 0 0 3rem;
}

.ce-viz-primary img {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}


/* All figures */

.ce-viz-figure {
    margin: 0;
}

.ce-viz-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ce-viz-figure figcaption {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    line-height: 1.65;
}

.ce-viz-figure figcaption strong {
    display: block;
    margin-bottom: 0.25rem;
}


/* Key findings */

.ce-viz-findings {
    margin: 3rem 0;
}

.ce-viz-finding-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.ce-viz-finding-grid > div {
    padding: 1.4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ce-viz-finding-grid strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.ce-viz-finding-grid span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.ce-viz-finding-grid p {
    margin: 0;
    line-height: 1.55;
}


/* Secondary graph gallery */

.ce-viz-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.ce-viz-gallery .ce-viz-figure {
    display: flex;
    flex-direction: column;
}

.ce-viz-gallery .ce-viz-figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* Analytical commentary */

.ce-viz-commentary {
    max-width: 900px;
    margin: 3.5rem 0 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ce-viz-commentary p:not(.ce-section-label) {
    margin: 0 0 1.25rem;
    line-height: 1.75;
}

.ce-viz-commentary p:last-child {
    margin-bottom: 0;
}


/* Return link */

.ce-viz-return {
    display: inline-block;
    margin-top: 1rem;
}


/* Responsive */

@media (max-width: 900px) {

    .ce-viz-finding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ce-viz-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {

    .ce-viz-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .ce-viz-finding-grid {
        grid-template-columns: 1fr;
    }

    .ce-viz-primary {
        margin-bottom: 2.25rem;
    }

    .ce-viz-figure figcaption {
        font-size: 0.9rem;
    }

    .ce-viz-commentary {
        margin-top: 2.5rem;
        padding: 1.5rem 0;
    }
}

/* =========================================================
   EDUCATION CURRICULUM — RESOURCE LIBRARY
   ========================================================= */

.edu-library-group {
    margin-top: 4rem;
}

.edu-library-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.edu-library-heading h3 {
    margin: 0 0 0.75rem;
    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.edu-library-heading > p:last-child {
    margin: 0;
    max-width: 700px;
    color: #46594f;
    line-height: 1.7;
}

.edu-library-kicker {
    margin: 0 0 0.65rem;
    color: #80622e;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* Resource grid */

.edu-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}


/* Individual resource card */

.edu-library-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 1.6rem;
    border: 1px solid rgba(23, 59, 45, 0.16);
    background: #fffdf8;
    box-sizing: border-box;

    /* Prevent old rules from clipping content */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.edu-resource-type {
    margin-bottom: 0.8rem;
    color: #80622e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.edu-library-card h4 {
    margin: 0 0 0.85rem;
    color: #173b2d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.25;

    overflow: visible !important;
    max-height: none !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
}

.edu-library-card p {
    margin: 0 0 1.25rem;
    color: #46594f;
    line-height: 1.65;

    overflow: visible !important;
    max-height: none !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
}


/* PDF action */

.edu-resource-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.edu-resource-link,
.edu-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.7rem 1rem;
    background: #173b2d;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
}

.edu-resource-link:hover,
.edu-resource-link:focus-visible,
.edu-download-link:hover,
.edu-download-link:focus-visible {
    background: #80622e;
    color: #ffffff !important;
}


/* Mobile */

@media screen and (max-width: 700px) {

    .edu-library-group {
        margin-top: 3rem;
    }

    .edu-library-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .edu-library-card {
        width: 100%;
        padding: 1.35rem;
    }

    .edu-resource-link,
    .edu-download-link {
        width: 100%;
        box-sizing: border-box;
    }
}
