/**
 * Documents page section.
 */

.documents-section {
    --Neutrals-01: #EEEDED;
    --Neutrals-03: #000;
    --Primary-100: #0B0B0B;
    background: black;
    color: var(--Neutrals-01);
    padding: 3rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .documents-section {
        padding: 4rem 1.5rem 5rem;
    }
}

@media (min-width: 1024px) {
    .documents-section {
        min-height: 100vh;
    }
}

.documents-section-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .documents-section-inner {
        padding: 0 1.5rem;
    }
}

.documents-section-header {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .documents-section-header {
        margin-bottom: 3rem;
    }
}

/* Section title – Desktop/Heading/H1 */
.documents-section-title {
    color: var(--Neutrals-01, #EEEDED);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
    margin: 0;
}

@media (min-width: 768px) {
    .documents-section-title {
        font-size: 56px;
    }
}

/* Grid: full width, 1 col mobile, 3 cols on large screens */
.documents-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Stair layout: first card 120px from top, second 60px, third 0 */
    .documents-card:nth-child(3n + 1) {
        margin-top: 120px;
    }
    .documents-card:nth-child(3n + 2) {
        margin-top: 60px;
    }
    .documents-card:nth-child(3n + 3) {
        margin-top: 0;
    }
}

/* Card: black base + inline SVG conic gradient + CSS linear gradient overlay */
.documents-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #903510;
    background: var(--Neutrals-03, #000);
    overflow: hidden;
}

/* Inline SVG conic gradient — positioned as background layer */
.documents-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Linear gradient overlay at 0.4 opacity (default) */
.documents-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 95%),
        linear-gradient(180deg, rgba(9, 9, 9, 0) 0%, #F65B1B 100%);
    opacity: 0.25;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.documents-card:hover::after {
    opacity: 0.55;
}

/* Full-card clickable link */
.documents-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

@media (min-width: 1440px) {
    .documents-card {
        height: 540px;
    }
}

@media (min-width: 1600px) {
    .documents-card {
        height: 660px;
    }
}




.documents-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .documents-card-content {
        padding: 50px 25px;
    }
}

/* Category /// Date – Desktop/Body/Medium | Caps */
.documents-card-meta {
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1.6px;
    color: var(--Neutrals-01, #EEEDED);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .documents-card-meta {
        font-size: 16px;
        margin-bottom: 1.6rem;
    }
}

.documents-card-meta-sep {
    margin: 0 0.25rem;
    color: #F65B1B;
}

.documents-card-date {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Document title – Desktop/Heading/H4; sits below category/date, gap below pushes button down */
.documents-card-title {
    color: var(--Neutrals-01, #EEEDED);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin: 0;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .documents-card-title {
        font-size: 32px;
    }
}

/* View Document button – at bottom of card (margin-top: auto creates gap above) */
.documents-card-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--Neutrals-01, #EEEDED);
    font-family: "Forma DJR Text", "forma-djr-text", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.5px;
    text-transform: normal;
    text-decoration: none;
    border: 1px solid var(--Neutrals-01, #EEEDED);
    padding: 12px;
    height: 56px;
    overflow: clip;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
    width: fit-content;
}

@media (min-width: 768px) {
    .documents-card-download {
        font-size: 20px;
    }
}

.documents-card:hover .documents-card-download {
    color: var(--Neutrals-01);
    border-color: var(--Neutrals-01);
    gap: 16px;
}

.documents-card-download-arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
