/**
 * Module: Shared LAE 2026 results table.
 */

.govgr-results-page {
    padding: 2.5rem 0 4rem;
}

.govgr-results-page,
.govgr-results-page *,
.govgr-results-page *::before,
.govgr-results-page *::after {
    box-sizing: border-box;
}

.govgr-results-page__header {
    max-width: 54rem;
    margin-bottom: 2rem;
}

.govgr-results-page__eyebrow {
    margin: 0 0 0.5rem;
    color: #003476;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.govgr-results-page__header h1 {
    margin: 0 0 0.75rem;
    color: #0b0c0c;
    font-size: 2.5rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.govgr-results-page__header > p:last-child {
    margin: 0;
    color: #3d3d3d;
    font-size: 1.125rem;
    line-height: 1.6;
}

.govgr-results-table-wrap {
    max-width: 100%;
    border-top: 4px solid #003476;
    overflow-x: auto;
    outline: 0;
}

.govgr-results-table-wrap:focus-visible {
    box-shadow: 0 0 0 3px #ffdd00;
}

.govgr-results-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: #ffffff;
    color: #0b0c0c;
}

.govgr-results-table th,
.govgr-results-table td {
    padding: 1rem;
    border: 1px solid #b1b4b6;
    text-align: left;
    vertical-align: top;
}

.govgr-results-table th {
    background: #f2f5f8;
    color: #003476;
    font-weight: 700;
    line-height: 1.35;
}

.govgr-results-table td {
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.govgr-results-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.govgr-results-summary {
    margin-bottom: 1rem;
}

.govgr-results-summary__count {
    margin: 0 0 0.75rem;
    color: #0b0c0c;
    font-weight: 700;
}

.govgr-results-summary__notice {
    margin: 0;
    padding: 0.875rem 1rem;
    border-left: 4px solid #ffdd00;
    background: #fffdf2;
    color: #3d3d3d;
    line-height: 1.55;
}

.govgr-provider-directory__disclaimer {
    margin: -0.75rem 0 1.5rem;
    padding: 0.875rem 1rem;
    border-left: 4px solid #ffdd00;
    background: #fffdf2;
    color: #3d3d3d;
    line-height: 1.55;
}

.govgr-provider-directory__filters {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    border-top: 4px solid #003476;
    background: #f2f5f8;
}

.govgr-provider-directory__field {
    min-width: 0;
}

.govgr-provider-directory__field:nth-child(1) {
    grid-column: span 6;
}

.govgr-provider-directory__field:nth-child(2) {
    grid-column: span 4;
}

.govgr-provider-directory__field--search {
    grid-column: span 7;
}

.govgr-provider-directory__field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #0b0c0c;
    font-weight: 700;
}

.govgr-provider-directory__field select,
.govgr-provider-directory__field input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 2px solid #505a5f;
    border-radius: 0;
    background: #ffffff;
    color: #0b0c0c;
    font: inherit;
}

.govgr-provider-directory__field select:focus,
.govgr-provider-directory__field input:focus,
.govgr-provider-directory__reset:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px #0b0c0c;
}

.govgr-provider-directory__reset {
    grid-column: span 3;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 2px solid #003476;
    border-radius: 0;
    background: #ffffff;
    color: #003476;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.govgr-provider-directory__reset:hover {
    background: #e7edf5;
}

.govgr-provider-directory__count {
    margin: 0 0 0.75rem;
    color: #3d3d3d;
    font-weight: 700;
}

.govgr-provider-directory__table {
    table-layout: fixed;
}

.govgr-provider-directory__table a {
    color: #005ea8;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.govgr-provider-directory__table a:hover {
    color: #003078;
    text-decoration-thickness: 2px;
}

.govgr-provider-directory__table a:focus-visible {
    outline: 3px solid #ffdd00;
    outline-offset: 2px;
    background: #ffdd00;
    color: #0b0c0c;
}

.govgr-provider-directory__primary,
.govgr-provider-directory__secondary,
.govgr-provider-directory__links {
    display: block;
}

.govgr-provider-directory__secondary {
    margin-top: 0.3rem;
    color: #3d3d3d;
}

.govgr-provider-directory__links {
    overflow-wrap: anywhere;
}

.govgr-provider-directory__links > * {
    display: block;
}

.govgr-provider-directory__links > * + * {
    margin-top: 0.35rem;
}

.govgr-provider-directory__empty {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid #b1b4b6;
    border-top: 4px solid #003476;
    background: #ffffff;
    color: #0b0c0c;
    font-weight: 700;
}

.govgr-provider-directory__table[data-category="accommodation"] th:nth-child(1) {
    width: 15%;
}

.govgr-provider-directory__table[data-category="accommodation"] th:nth-child(2) {
    width: 18%;
}

.govgr-provider-directory__table[data-category="accommodation"] th:nth-child(3) {
    width: 15%;
}

.govgr-provider-directory__table[data-category="accommodation"] th:nth-child(4) {
    width: 18%;
}

.govgr-provider-directory__table[data-category="accommodation"] th:nth-child(5) {
    width: 14%;
}

.govgr-provider-directory__table[data-category="accommodation"] th:nth-child(6) {
    width: 20%;
}

.govgr-provider-directory__table[data-category="travel-agencies"] th:nth-child(1),
.govgr-provider-directory__table[data-category="bookstores"] th:nth-child(1),
.govgr-provider-directory__table[data-category="camps"] th:nth-child(1) {
    width: 15%;
}

.govgr-provider-directory__table[data-category="travel-agencies"] th:nth-child(2),
.govgr-provider-directory__table[data-category="bookstores"] th:nth-child(2),
.govgr-provider-directory__table[data-category="camps"] th:nth-child(2) {
    width: 19%;
}

.govgr-provider-directory__table[data-category="travel-agencies"] th:nth-child(3),
.govgr-provider-directory__table[data-category="bookstores"] th:nth-child(3),
.govgr-provider-directory__table[data-category="camps"] th:nth-child(3) {
    width: 15%;
}

.govgr-provider-directory__table[data-category="travel-agencies"] th:nth-child(4),
.govgr-provider-directory__table[data-category="bookstores"] th:nth-child(4),
.govgr-provider-directory__table[data-category="camps"] th:nth-child(4) {
    width: 24%;
}

.govgr-provider-directory__table[data-category="travel-agencies"] th:nth-child(5),
.govgr-provider-directory__table[data-category="bookstores"] th:nth-child(5),
.govgr-provider-directory__table[data-category="camps"] th:nth-child(5) {
    width: 13%;
}

.govgr-provider-directory__table[data-category="travel-agencies"] th:nth-child(6),
.govgr-provider-directory__table[data-category="bookstores"] th:nth-child(6),
.govgr-provider-directory__table[data-category="camps"] th:nth-child(6) {
    width: 14%;
}

.govgr-provider-directory__table[data-category="theatres"] th:nth-child(1) {
    width: 22%;
}

.govgr-provider-directory__table[data-category="theatres"] th:nth-child(2) {
    width: 17%;
}

.govgr-provider-directory__table[data-category="theatres"] th:nth-child(3) {
    width: 19%;
}

.govgr-provider-directory__table[data-category="theatres"] th:nth-child(4) {
    width: 11%;
}

.govgr-provider-directory__table[data-category="theatres"] th:nth-child(5) {
    width: 13%;
}

.govgr-provider-directory__table[data-category="theatres"] th:nth-child(6) {
    width: 18%;
}

.govgr-results-table--lae-results {
    table-layout: fixed;
}

.govgr-results-table--lae-results th:nth-child(1) {
    width: 10%;
}

.govgr-results-table--lae-results th:nth-child(2) {
    width: 38%;
}

.govgr-results-table--lae-results th:nth-child(3) {
    width: 32%;
}

.govgr-results-table--lae-results th:nth-child(4) {
    width: 20%;
}

.govgr-results-table--lae-results th:nth-child(3),
.govgr-results-table--lae-results td:nth-child(3) {
    white-space: nowrap;
    overflow-wrap: normal;
}

@media (min-width: 701px) {
    .govgr-results-table--lae-results th:nth-child(1),
    .govgr-results-table--lae-results td:nth-child(1),
    .govgr-results-table--lae-results th:nth-child(4),
    .govgr-results-table--lae-results td:nth-child(4) {
        white-space: nowrap;
        overflow-wrap: normal;
    }
}

.govgr-results-status {
    display: inline-block;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid #505a5f;
    background: #f3f2f1;
    color: #0b0c0c;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
}

.govgr-results-status--completed,
.govgr-results-status--approved {
    border-color: #00703c;
    background: #e7f5ed;
    color: #005a30;
}

.govgr-results-status--in_review {
    border-color: #b58800;
    background: #fff7d6;
    color: #594800;
}

.govgr-results-status--documents_required {
    border-color: #d4351c;
    background: #fcebea;
    color: #942514;
}

@media (max-width: 700px) {
    .govgr-results-page {
        padding: 1.75rem 0 3rem;
    }

    .govgr-results-page__header h1 {
        font-size: 2rem;
    }

    .govgr-results-table-wrap {
        overflow: visible;
    }

    .govgr-provider-directory__filters {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        padding: 1rem;
    }

    .govgr-provider-directory__field,
    .govgr-provider-directory__reset {
        grid-column: 1 / -1;
        width: 100%;
    }

    .govgr-results-table,
    .govgr-results-table tbody,
    .govgr-results-table tr,
    .govgr-results-table td {
        display: block;
        width: 100%;
    }

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

    .govgr-results-table tr {
        margin-bottom: 1rem;
        border: 1px solid #b1b4b6;
        background: #ffffff;
    }

    .govgr-results-table td {
        display: grid;
        grid-template-columns: minmax(8.5rem, 42%) minmax(0, 1fr);
        min-width: 0;
        gap: 0.75rem;
        padding: 0.75rem;
        border: 0;
        border-bottom: 1px solid #d8dde0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .govgr-results-table td:last-child {
        border-bottom: 0;
    }

    .govgr-results-table td::before {
        content: attr(data-label);
        color: #003476;
        font-weight: 700;
    }
}

@media (max-width: 430px) {
    .govgr-results-table td {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}
