/*
    Block: Resources & Downloads
    Note: Selectors must start with .block-resources-downloads
*/

@layer blocks {
    .block-resources-downloads .text-content {
        padding-bottom: 3.75rem;
    }

    .block-resources-downloads .bs-icon {
        width: 0.8125rem;
    }

    .block-resources-downloads .accordion {
        border: 1px solid rgb(from var(--c-dark-blue) r g b / 0.15);
    }

    .block-resources-downloads .accordion .ac-content-inner {
        padding: 0 2rem 0;
    }

    .block-resources-downloads .accordion:has(.ac-state:checked) {
        background-color: rgb(from var(--c-dark-blue) r g b / 0.05);
    }

    .block-resources-downloads .accordion .ac-trigger {
        padding: 1.875rem 2rem;
    }

    .block-resources-downloads .accordion .ac-state:checked ~ .ac-content .ac-content-inner {
        padding: 0.5rem 2rem 1.875rem !important;
    }

    .block-resources-downloads .accordion .ac-title {
        font-size: var(--fs-17-24);
    }

    .block-resources-downloads thead tr {
        border-bottom: 1px solid rgb(from var(--c-blue) r g b / 0.15);
    }

    .block-resources-downloads thead tr th {
        width: 100%;
        text-align: left;
        padding: 1.25rem 1.875rem;
        font-size: var(--fs-16-20);
        background-color: rgb(from var(--c-blue) r g b / 0.1);
        font-weight: 500;
        color: var(--c-dark-blue);
    }

    .block-resources-downloads table {
        table-layout: fixed;
        width: 100%;
        border-collapse: collapse;
    }

    .block-resources-downloads .table.is-simple thead tr th:nth-child(1) {
        width: 23.77%;
    }

    .block-resources-downloads .table.is-simple thead tr th:nth-child(2) {
        width: 49.21%;
    }

    .block-resources-downloads .table.is-simple thead tr th:nth-child(3) {
        width: 27.02%;
    }

    .block-resources-downloads .table.is-simple tbody tr td:nth-child(1) {
        width: 23.77%;
        color: var(--c-dark-blue);
        font-weight: 600;
    }

    .block-resources-downloads .table.is-simple tbody tr td:nth-child(2) {
        width: 49.21%;
    }

    .block-resources-downloads .table.is-simple tbody tr td:nth-child(3) {
        width: 27.02%;
    }
    
    .block-resources-downloads .table.is-detailed thead tr th:nth-child(1) {
        width: 12.41%;;
    }

    .block-resources-downloads .table.is-detailed thead tr th:nth-child(2) {
        width: 16.99%;
    }

    .block-resources-downloads .table.is-detailed thead tr th:nth-child(3) {
        width: 70.60%;
    }

    .block-resources-downloads .table.is-detailed tbody tr td:nth-child(1) {
        width: 12.41%;;
        color: var(--c-dark-blue);
        font-weight: 600;
    }

    .block-resources-downloads .table.is-detailed tbody tr td:nth-child(2) {
        width: 16.99%;
    }

    .block-resources-downloads .table.is-detailed tbody tr td:nth-child(3) {
        width: 70.60%;
    }

    .block-resources-downloads .table tbody tr td {
        padding: 1.25rem 1.875rem;
        background-color: white;
    }

    .block-resources-downloads .table tbody tr {
        border-bottom: 1px solid rgb(from var(--c-dark-blue) r g b / 0.15);
    }

    .table tbody tr:last-of-type {
        border-bottom: 0;
    }

    .block-resources-downloads .table .data-code,
    .block-resources-downloads .table.is-detailed .data-description {
        vertical-align: top;
    }

    .block-resources-downloads .table.is-detailed .data-description .title {
        margin: 0;
        font-weight: 600;
        color: var(--c-dark-blue);
    }

    .block-resources-downloads .ac-content-inner {
        overflow-x: auto;
    }

    @media (max-width: 767px) {
        .block-resources-downloads .ac-content-inner {
          -webkit-overflow-scrolling: touch;
        }
        .block-resources-downloads table {
            margin-inline: 1.25rem;
        }
        .block-resources-downloads .ac-content-inner table.is-simple {
          min-width: 39.375rem;
        }
        .block-resources-downloads .ac-content-inner table.is-detailed {
            min-width: 32.125rem;
          }
        .block-resources-downloads .text-content {
            padding-bottom: 2.5rem;
        }
        .block-resources-downloads .accordion .ac-trigger {
            padding: 1.25rem;
        }
        .block-resources-downloads .table.is-simple thead tr th:nth-child(1),
        .block-resources-downloads .table.is-simple thead tr th:nth-child(2),
        .block-resources-downloads .table.is-simple thead tr th:nth-child(3) {
            padding: 1rem 1.25rem;
        }
        .block-resources-downloads .table tbody tr td {
            padding: 1.125rem 1.25rem;
        }
        .block-resources-downloads .ac-content-inner {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .block-resources-downloads .ac-content-inner::-webkit-scrollbar {
            display: none;
        }
        .block-resources-downloads .table.is-simple thead tr th:nth-child(1),
        .block-resources-downloads .table.is-simple tbody tr td:nth-child(1) {
            width: 28.57%;
        }
        .block-resources-downloads .table.is-simple thead tr th:nth-child(2),
        .block-resources-downloads .table.is-simple tbody tr td:nth-child(2) {
            width: 42.86%;
        }
        .block-resources-downloads .table.is-simple thead tr th:nth-child(3),
        .block-resources-downloads .table.is-simple tbody tr td:nth-child(3) {
            width: 28.57%;
        }
        .block-resources-downloads .table.is-detailed thead tr th:nth-child(1),
        .block-resources-downloads .table.is-detailed tbody tr td:nth-child(1) {
            width: 16.54%;
        }
        .block-resources-downloads .table.is-detailed thead tr th:nth-child(2),
        .block-resources-downloads .table.is-detailed tbody tr td:nth-child(2) {
            width: 22.18%;
        }
        .block-resources-downloads .table.is-detailed thead tr th:nth-child(3),
        .block-resources-downloads .table.is-detailed tbody tr td:nth-child(3) {
            width: 61.28%
        }
        .block-resources-downloads .accordion .ac-content-inner {
            padding: 0;
        }
        .block-resources-downloads .accordion .ac-state:checked ~ .ac-content .ac-content-inner {
            padding: .625rem 0 1.25rem !important;
        }
    }

}
