.documents-page {
    padding: 0 0 7em;
    color: #282825;
}

.documents-page__heading {
    margin: 0 0 .9em;
    font-family: "Arsenal", serif;
    font-size: 5rem;
    font-weight: 400;
    line-height: .96;
}

.documents {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 900px);
    gap: clamp(48px, 7vw, 112px);
    align-items: start;
}

.documents__nav {
    position: sticky;
    top: 120px;
}

.documents__tabs {
    border-top: 1px solid #d8d8d3;
}

.documents__tab {
    position: relative;
    display: block;
    width: 100%;
    min-height: 70px;
    padding: 20px 22px;
    border: 0;
    border-bottom: 1px solid #d8d8d3;
    color: #444440;
    font-family: "TT Interfaces", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.documents__tab::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #DEDE63;
    opacity: 0;
    transition: opacity .2s ease;
}

.documents__tab:hover,
.documents__tab:focus-visible,
.documents__tab.is-active {
    color: #151513;
    background: #f5f5f2;
}

.documents__tab.is-active::before {
    opacity: 1;
}

.documents__tab:focus-visible {
    outline: 2px solid #DEDE63;
    outline-offset: 2px;
}

.documents__panel[hidden] {
    display: none;
}

.documents__title {
    max-width: 850px;
    margin: -.15em 0 1em;
    font-family: "Arsenal", serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 400;
    line-height: 1.08;
}

.documents__body {
    color: #3f3f3b;
    font-family: "TT Interfaces", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.68;
}

.documents__body h3 {
    margin: 2.2em 0 .7em;
    color: #282825;
    font-family: "Arsenal", serif;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1.2;
}

.documents__body h3:first-child {
    margin-top: 0;
}

.documents__body p {
    margin: 0 0 1em;
}

.documents__body ul {
    margin: 0 0 1.35em;
    padding: 0;
    list-style: none;
}

.documents__body li {
    position: relative;
    margin: .4em 0;
    padding-left: 22px;
}

.documents__body li::before {
    content: '';
    position: absolute;
    top: .72em;
    left: 0;
    width: 7px;
    height: 7px;
    background: #DEDE63;
}

.documents__details {
    line-height: 1.8;
}

.documents__body a {
    color: inherit;
    text-decoration-color: #DEDE63;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 991px) {
    .documents-page__heading {
        font-size: 4rem;
    }

    .documents {
        grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .documents-page {
        padding-bottom: 4.5em;
    }

    .documents-page__heading {
        margin-bottom: .65em;
        font-size: 3.25rem;
    }

    .documents {
        display: block;
    }

    .documents__nav {
        position: static;
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5) 40px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .documents__tabs {
        display: flex;
        width: max-content;
        min-width: 100%;
        padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
        border-top: 0;
        border-bottom: 1px solid #d8d8d3;
    }

    .documents__tab {
        width: min(72vw, 280px);
        min-height: 62px;
        padding: 15px 18px;
        border-bottom: 0;
        border-left: 1px solid #e3e3df;
        font-size: .9375rem;
    }

    .documents__tab:last-child {
        border-right: 1px solid #e3e3df;
    }

    .documents__tab::before {
        top: auto;
        right: 0;
        width: auto;
        height: 4px;
    }

    .documents__title {
        font-size: 2.25rem;
    }

    .documents__body {
        font-size: 1rem;
        line-height: 1.62;
    }
}
