/* Iframe-contained public document archive. No parent-site styles are required. */
html,
body {
    min-height: 100%;
}

body {
    background: #f3f6fa;
    color: #17324d;
    font-family: "Open Sans", Arial, sans-serif;
}

.ris-archive {
    padding: 24px 0 40px;
}

.ris-archive-container {
    max-width: 1040px;
}

.archive-intro {
    padding: 28px 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #00237d 0%, #005b9f 100%);
    border-radius: 14px 14px 0 0;
}

.archive-eyebrow {
    margin: 0 0 6px;
    color: #5a728d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.archive-intro .archive-eyebrow {
    color: #bfe4fb;
}

.archive-intro h1,
.archive-intro h2,
.archive-results h2 {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 700;
}

.archive-intro h1 {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
}

.archive-description {
    max-width: 620px;
    margin: 10px 0 0;
    color: #e3f3fc;
    font-size: 16px;
    line-height: 1.55;
}

.archive-search,
.archive-results {
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(14, 45, 76, .08);
}

.archive-search {
    display: grid;
    grid-template-columns: minmax(215px, .72fr) minmax(0, 1.6fr);
    gap: 18px;
    padding: 22px 32px;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid #dce6ef;
}

.filter-field,
.search-field {
    min-width: 0;
}

.archive-search label {
    display: block;
    margin: 0 0 7px;
    color: #28455f;
    font-size: 13px;
    font-weight: 700;
}

.archive-search .form-control {
    height: 48px;
    border: 1px solid #9db1c3;
    border-radius: 7px;
    box-shadow: none;
    color: #17324d;
    font-size: 15px;
}

.archive-search .form-control:focus {
    border-color: #009ee1;
    box-shadow: 0 0 0 3px rgba(0, 158, 225, .2);
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-input-group .form-control {
    min-width: 0;
}

.search-button,
.download-button,
.pagination-button,
.sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.search-button {
    min-width: 116px;
    padding: 0 18px;
    color: #ffffff !important;
    background: #00237d;
}

.search-button:hover,
.search-button:focus {
    color: #ffffff !important;
    background: #004f8d;
}

.archive-results {
    padding: 28px 32px 32px;
    border-radius: 0 0 14px 14px;
}

.results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.results-heading h2 {
    color: #00237d;
    font-size: 22px;
}

.results-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #506a81;
    font-size: 13px;
    line-height: 1.55;
    text-align: right;
}

.results-summary strong {
    color: #17324d;
}

.document-list {
    border-top: 1px solid #dce6ef;
}

.document-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid #dce6ef;
}

.document-type {
    display: block;
    width: 64px;
    min-height: 52px;
    padding: 5px;
    border-radius: 6px;
    color: #005b9f;
    background: #e3f3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    overflow-wrap: anywhere;
    text-align: center;
}

.document-type > span {
    display: block !important;
    white-space: nowrap;
}

.document-type-size {
    margin-top: 3px;
    color: #507b9c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 8px;
    color: #657c90;
    font-size: 13px;
}

.document-category {
    color: #005b9f;
    font-weight: 700;
}

.document-meta time::before {
    content: "•";
    margin-right: 14px;
    color: #9db1c3;
}


.document-body {
    color: #28455f;
    font-size: 15px;
    line-height: 1.6;
}

.document-body mark {
    padding: 0 2px;
    border-radius: 2px;
    color: inherit;
    background: #fff0a8;
}

.document-action {
    padding-top: 4px;
}

.download-button {
    min-width: 126px;
    padding: 0 14px;
    border: 1px solid #005b9f;
    color: #005b9f !important;
    background: #ffffff;
    font-size: 14px;
}

.download-button:hover,
.download-button:focus {
    color: #ffffff !important;
    background: #005b9f;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination-bar-top {
    margin-top: 10px;
}

.pagination-button {
    width: 44px;
    padding: 0;
    border: 1px solid #9db1c3;
    color: #005b9f !important;
    background: #ffffff;
}

.sort-button {
    min-width: 150px;
    padding: 0 14px;
    border: 1px solid #75b7da;
    color: #004b78 !important;
    background: #e3f3fc;
    font-size: 13px;
}

.sort-button:hover,
.sort-button:focus {
    border-color: #004b78;
    color: #ffffff !important;
    background: #0074ae;
}

.pagination-button:hover,
.pagination-button:focus {
    border-color: #005b9f;
    color: #ffffff !important;
    background: #005b9f;
}

.pagination-button[disabled],
.pagination-button.aspNetDisabled {
    cursor: not-allowed;
    opacity: .45;
}

.empty-state {
    padding: 50px 20px;
    border: 1px dashed #9db1c3;
    border-radius: 10px;
    color: #506a81;
    background: #f7fafc;
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 12px;
    color: #009ee1;
    font-size: 30px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: #00237d;
    font-size: 18px;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ris-archive a:focus,
.ris-archive select:focus,
.ris-archive input:focus {
    outline: 3px solid #f6c945;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .ris-archive {
        padding: 12px 0 24px;
    }

    .ris-archive-container {
        width: auto;
        margin: 0 12px;
        padding: 0;
    }

    .archive-intro,
    .archive-search,
    .archive-results {
        padding-right: 18px;
        padding-left: 18px;
    }

    .archive-intro {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .archive-intro h1 {
        font-size: 27px;
    }

    .archive-search {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .results-summary {
        align-items: flex-start;
        text-align: left;
    }

    .document-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
    }

    .document-type {
        width: 56px;
    }

    .document-action {
        grid-column: 1 / -1;
        padding: 0 0 0 70px;
    }

    .download-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .search-input-group {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .document-meta time::before {
        display: none;
    }

    .pagination-bar {
        justify-content: center;
    }
}
