.docs-page {
    --header-height: 84px;
}

.docs-page .docs-hero {
    position: relative;
    display: flex;
    min-height: 480px;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 4rem) 0 4.5rem;
    color: #fff;
    background: linear-gradient(118deg, #073c30 0%, #07533c 58%, #0c6949 100%);
}

.docs-hero::before {
    position: absolute;
    inset: 0;
    content: '';
    opacity: .2;
    background-image: linear-gradient(35deg, transparent 48%, rgba(255,255,255,.14) 49%, transparent 50%), linear-gradient(145deg, transparent 48%, rgba(255,255,255,.10) 49%, transparent 50%);
    background-size: 84px 84px;
    mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.docs-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 3rem;
    align-items: end;
}

.docs-hero-copy { max-width: 850px; }
.docs-hero .eyebrow { display: flex; align-items: center; gap: .7rem; color: #e9d16d; }
.docs-hero .eyebrow span { display: block; width: 25px; height: 1px; background: currentColor; }
.docs-hero h1 { max-width: 810px; margin-bottom: 1rem; color: #fff; font-size: clamp(2.65rem, 5vw, 4.6rem); }
.docs-hero-copy > p:last-child { max-width: 680px; margin: 0; color: #e0eee5; font-size: 1.08rem; }
.docs-index { display: grid; gap: .75rem; justify-items: start; padding-bottom: .5rem; color: #d7e7dc; font-size: .83rem; line-height: 1.5; }
.docs-index-number { color: #f0d875; font-family: 'Newsreader', Georgia, serif; font-size: 1.8rem; }
.docs-index-rule { width: 100%; height: 1px; background: rgba(255,255,255,.36); }

.docs-section { background: var(--paper); }
.docs-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.35rem; }
.docs-section-heading > div { max-width: 690px; }
.docs-section-heading .section-marker { margin-bottom: 1rem; }
.docs-section-heading h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); }
.docs-section-heading > p { max-width: 390px; margin: 0 0 .25rem; color: #53665e; font-size: .95rem; }
.featured-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.featured-doc { display: flex; min-height: 365px; flex-direction: column; align-items: flex-start; padding: 1.55rem 1.45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(150deg, #f2f7f2, #fff 62%); }
.doc-kicker { display: block; margin-bottom: .8rem; color: #16834e; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-doc h3 { margin-bottom: .8rem; font-size: 1.55rem; }
.featured-doc > p { margin-bottom: 1rem; color: #4b5e55; font-size: .91rem; line-height: 1.62; }
.doc-byline { margin-top: auto; padding-top: .75rem; color: #6a7971; font-size: .77rem; line-height: 1.5; }
.doc-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .95rem; color: var(--forest) !important; font-size: .86rem; font-weight: 800; text-decoration: underline; text-decoration-color: #a8c2ae; text-underline-offset: 4px; }
.doc-link:hover { color: #0b7446 !important; text-decoration-color: currentColor; }
.doc-link:focus-visible, .archive-tools :focus-visible { outline: 3px solid #b68100; outline-offset: 3px; }

.archive-section { background: #f2f6f1; }
.archive-tools { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(190px, 250px) auto; gap: .8rem; align-items: center; margin-bottom: 1.3rem; }
.archive-search, .archive-filter { display: flex; min-height: 48px; align-items: center; gap: .65rem; padding: 0 .9rem; color: #496357; background: #fff; border: 1px solid #cbd9ce; }
.archive-search i { color: #16834e; }
.archive-search input, .archive-filter select { width: 100%; min-width: 0; padding: .65rem 0; color: var(--ink); background: transparent; border: 0; font: inherit; font-size: .87rem; }
.archive-search input:focus, .archive-filter select:focus { outline: 0; }
.archive-count { color: #53665e; font-size: .82rem; text-align: right; white-space: nowrap; }
.document-list { border-top: 1px solid #cbd9ce; }
.doc-entry { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.2rem .25rem; border-bottom: 1px solid #cbd9ce; }
.doc-entry[hidden] { display: none; }
.doc-entry-copy { max-width: 780px; }
.doc-entry .doc-kicker { margin-bottom: .25rem; font-size: .66rem; }
.doc-entry h3 { margin: 0 0 .25rem; font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 800; }
.doc-entry p { margin: 0; color: #53665e; font-size: .86rem; line-height: 1.5; }
.doc-entry .doc-link { flex: 0 0 auto; margin-top: 0; }
.archive-empty { margin: 1.5rem 0; color: #53665e; }
.archive-note { max-width: 800px; margin: 1.8rem 0 0; color: #63756c; font-size: .8rem; line-height: 1.6; }

.high-contrast .docs-hero { background: #001d0f; }

@media (max-width: 767.98px) {
    .docs-page { --header-height: 74px; }
    .docs-hero { min-height: 0 !important; padding: calc(var(--header-height) + 2.7rem) 0 3rem !important; }
    .docs-hero-inner { grid-template-columns: 1fr; gap: 1.6rem; }
    .docs-index { grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; width: min(100%, 390px); }
    .docs-index-number { font-size: 1.4rem; }
    .docs-index-rule { width: auto; }
    .docs-section-heading { display: block; }
    .docs-section-heading > p { margin-top: .8rem; }
    .featured-docs { grid-template-columns: 1fr; }
    .featured-doc { min-height: 0; }
    .doc-byline { margin-top: .1rem; }
    .archive-tools { grid-template-columns: 1fr; }
    .archive-count { text-align: left; }
}

@media (max-width: 480px) {
    .docs-page .container { padding-right: 1.15rem; padding-left: 1.15rem; }
    .docs-hero h1 { font-size: 2.55rem; }
    .doc-entry { align-items: flex-start; flex-direction: column; gap: .25rem; }
    .doc-entry .doc-link { margin-top: .45rem; }
}