:root {
    --bg: #f6f7f2;
    --surface: #ffffff;
    --surface-soft: #f7fbf8;
    --text: #13281d;
    --muted: #546d61;
    --primary: #1f7a45;
    --primary-dark: #145733;
    --secondary: #315d88;
    --warm: #ad6f2b;
    --accent: #def2e6;
    --accent-blue: #e7f0f8;
    --accent-warm: #fbefd8;
    --border: #d4e4da;
    --ring: rgb(31 122 69 / 25%);
    --shadow-sm: 0 8px 20px rgb(17 48 30 / 8%);
    --shadow-md: 0 18px 44px rgb(17 48 30 / 14%);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        linear-gradient(180deg, #f6f7f2 0%, #eef6f1 44%, #f8faf7 100%);
}

.container {
    width: min(1120px, 100% - 2rem);
    margin-inline: auto;
}

header {
    color: var(--text);
    padding: 1rem 0 0.45rem;
    background: transparent;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 330px;
    max-width: 100%;
    padding: 0.28rem 0.35rem;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgb(17 48 30 / 10%);
    outline: 3px solid var(--ring);
}

.brand-link img {
    display: block;
    width: 390px;
    max-width: 52vw;
    height: auto;
}

.nav-list {
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    border: 1px solid rgb(20 87 51 / 14%);
    border-radius: 999px;
    background: rgb(255 255 255 / 86%);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.nav-list a {
    color: var(--primary-dark);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 650;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    transform: translateY(-1px);
    background: rgb(222 242 230 / 72%);
    outline: none;
}

.nav-list a[aria-current="page"] {
    color: #fff;
    background: var(--primary);
}

.hero {
    margin-top: 1rem;
}

.hero-visual {
    margin: 0;
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 22px 58px rgb(8 38 21 / 24%);
    overflow: hidden;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: clamp(300px, 34vw, 390px);
    object-fit: cover;
    object-position: center;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(9 33 20 / 72%) 0%, rgb(9 33 20 / 38%) 46%, transparent 78%);
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    left: clamp(1.1rem, 4vw, 3rem);
    bottom: clamp(1.1rem, 4vw, 3rem);
    z-index: 1;
    max-width: min(620px, 62%);
    color: #fff;
    text-shadow: 0 2px 20px rgb(0 0 0 / 42%);
}

.hero-copy h1 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.55rem, 3.1vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.hero-copy p {
    max-width: 52ch;
    margin: 0;
    font-size: clamp(0.92rem, 1.12vw, 1.08rem);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
}

.hero-copy .hero-meta {
    margin-top: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f5f2dd;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.subtitle {
    max-width: 70ch;
    margin: 0;
    opacity: 0.95;
}

.meta {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.92rem;
    opacity: 0.9;
}

.search-form {
    margin-top: 0.45rem;
    max-width: 620px;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(9rem, auto) minmax(220px, 1fr);
    align-items: center;
    gap: 0.85rem;
    max-width: none;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--shadow-sm);
}

.hero-search .meta {
    margin-top: 0;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-search .filter {
    margin-bottom: 0;
}

main.container {
    margin-top: -0.35rem;
}

main section {
    margin-bottom: 1rem;
    padding: 1.4rem;
    border: 1px solid rgb(213 231 220 / 50%);
    border-radius: 14px;
    background: rgb(255 255 255 / 62%);
    backdrop-filter: blur(2px);
}

.section-feature {
    background: linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(231 240 248 / 78%));
    border-color: rgb(49 93 136 / 18%);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 78ch;
    color: #345344;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--warm);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
}

h2 {
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, #42a766, #1f7a45);
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 1.05rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--surface), var(--surface-soft));
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgb(17 48 30 / 12%);
}

.card h3 {
    margin-bottom: 0.45rem;
}

.card p,
.faq-item p {
    color: #274637;
}

.action-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.05rem;
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.action-card:nth-child(2) {
    border-left-color: var(--primary);
}

.action-card:nth-child(3) {
    border-left-color: var(--warm);
}

.action-card p,
.resource-overview,
.tagline {
    color: #345344;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.35rem;
    margin-top: auto;
    padding: 0.52rem 0.82rem;
    border-radius: 8px;
    color: #fff;
    background: var(--primary-dark);
    font-weight: 750;
    text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
    color: #fff;
    background: var(--secondary);
    outline: 3px solid var(--ring);
}

.resource-card {
    display: flex;
    flex-direction: column;
}

.resource-overview {
    font-size: 0.95rem;
}

.tagline {
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.card-action {
    margin-top: auto;
}

.related-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-terms a {
    display: inline-flex;
    padding: 0.38rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-weight: 750;
    text-decoration: none;
}

.resource-summary {
    border-left: 4px solid var(--primary);
    background: linear-gradient(180deg, var(--accent), #f6fcf7);
    margin-bottom: 0.9rem;
}

.resource-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 0.9rem;
}

.resource-detail-card {
    border-left: 4px solid var(--primary-dark);
}

.dossier-list {
    align-items: stretch;
}

.dossier-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.dossier-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f7fbf8 0%, #eef7f1 100%);
}

.dossier-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.dossier-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.05rem;
}

.dossier-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.dossier-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fbf8 0%, #eef7f1 100%);
    box-shadow: var(--shadow-sm);
}

.dossier-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pedagogical-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.dossier-chapter {
    border-left: 5px solid var(--secondary);
}

.dossier-chapter h4 {
    margin: 1.1rem 0 0.45rem;
    color: var(--primary-dark);
    font-size: 1.02rem;
}

.chapter-section {
    margin-top: 1rem;
    padding-top: 0.2rem;
    border-top: 1px solid var(--border);
}

.chapter-workshop {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgb(49 93 136 / 24%);
    border-radius: 10px;
    background: linear-gradient(180deg, #f7fbff 0%, #f7fbf8 100%);
}

.chapter-workshop h4 {
    margin-top: 0;
}

.dossier-vocabulary {
    margin-top: 1rem;
}

.vocabulary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vocabulary-links a {
    display: inline-flex;
    padding: 0.38rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    font-weight: 750;
    text-decoration: none;
}

.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0;
}

.chapter-nav a {
    display: inline-flex;
    padding: 0.46rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-weight: 750;
    text-decoration: none;
}

.chapter-nav a[aria-current="page"] {
    color: #fff;
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.dossier-chapter .lead {
    color: #345344;
    font-size: 1.08rem;
    font-weight: 650;
}

.references-card {
    margin-top: 1rem;
}

.reference-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.1rem;
}

.pillars .card {
    border-top: 4px solid var(--primary);
}

.filter {
    width: 100%;
    margin-bottom: 0.95rem;
    padding: 0.72rem 0.85rem;
    font-size: 1rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.filter:focus-visible,
.faq-button:focus-visible {
    outline: 3px solid var(--ring);
}

.sector-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.callout {
    padding: 0.7rem 0.85rem;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    background: var(--accent);
}

.list-tight {
    margin: 0;
    padding-left: 1.15rem;
}

.faq-item {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfefd;
}

.faq-button {
    width: 100%;
    padding: 0.2rem 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
}

a {
    color: var(--primary-dark);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary);
}

footer {
    margin-top: 2rem;
    padding: 1.3rem 0;
    color: #def0e4;
    background: #10261a;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0.6rem 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #f5f2dd;
    font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #bfe7ce;
}

@media (max-width: 640px) {
    header {
        padding-top: 1rem;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    .hero {
        margin-top: 0.65rem;
    }

    .hero-visual {
        border-radius: 18px;
    }

    .hero-visual img {
        height: 300px;
        object-position: 55% center;
    }

    .hero-visual::after {
        background: linear-gradient(0deg, rgb(9 33 20 / 78%) 0%, rgb(9 33 20 / 32%) 64%, transparent 100%);
    }

    .hero-copy {
        left: 0.8rem;
        right: 1rem;
        bottom: 0.8rem;
        width: calc(100% - 1.8rem);
        max-width: none;
    }

    .hero-copy h1 {
        margin-bottom: 0.4rem;
        max-width: 18ch;
        font-size: 1.18rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .hero-copy p {
        max-width: min(100%, 32ch);
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .hero-copy .hero-meta {
        margin-top: 0.4rem;
        font-size: 0.74rem;
    }

    .hero-search {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding: 0.8rem;
    }

    .nav-list {
        justify-content: center;
    }

    .header-top {
        flex-direction: column;
        gap: 0.65rem;
    }

    .brand-link {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .brand-link img {
        width: min(320px, 88vw);
        max-width: 100%;
    }

    .nav-list a {
        font-size: 0.82rem;
    }

    .dossier-hero {
        grid-template-columns: 1fr;
    }

    main.container {
        margin-top: -0.65rem;
    }

    main section {
        padding: 1rem;
        border-radius: 14px;
    }
}

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


:root {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0f1b14;
        --surface: #15261d;
        --surface-soft: #1a2e24;
        --text: #e3f2e8;
        --muted: #9eb8aa;
        --accent: #1f3a2c;
        --border: #2d4a3b;
        --ring: rgb(111 213 148 / 35%);
        --shadow-sm: 0 8px 20px rgb(0 0 0 / 32%);
        --shadow-md: 0 20px 48px rgb(0 0 0 / 45%);
    }

    body {
        background:
            linear-gradient(180deg, #0f1b14 0%, #13231a 52%, #101d16 100%),
            var(--bg);
    }

    .section-feature {
        background: linear-gradient(135deg, rgb(21 38 29 / 86%), rgb(20 43 58 / 78%));
    }

    .action-card {
        background: var(--surface);
    }

    .section-intro,
    .action-card p,
    .resource-overview,
    .tagline,
    .dossier-chapter .lead {
        color: #c5ddd1;
    }

    .chapter-nav a,
    .related-terms a {
        background: var(--surface);
    }

    .nav-list a[aria-current="page"] {
        background: #214a34;
        color: #dcf8e6;
    }

    .card p,
    .faq-item p {
        color: #c5ddd1;
    }

    footer {
        background: #0c1712;
        color: #cbe2d7;
    }
}
