.model-library {
    background: #f6f8f9;
    color: #243238;
    letter-spacing: 0;
}

.model-library__header {
    background: linear-gradient(112deg, #c7e1f7 0%, #d8edf4 52%, #b9e3de 100%);
    border-bottom: 1px solid #a8cedb;
    isolation: isolate;
    padding: 30px 0 18px;
    position: relative;
}

.model-library__header > .container {
    position: relative;
    z-index: 1;
}

.model-library__decoration {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    user-select: none;
}

.model-library__watermark {
    color: var(--brand-blue-action, #0b6fba);
    font-size: 255px;
    line-height: 1;
    opacity: .12;
    pointer-events: none;
    position: absolute;
    right: max(26px, calc((100% - 1296px) / 2 + 26px));
    top: 12px;
    transform: rotate(12deg);
    user-select: none;
}

.model-library__eyebrow {
    color: #075789;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.model-library__eyebrow i {
    margin-right: 6px;
}

.model-library h1 {
    color: var(--brand-navy, #10213b);
    font-size: 32px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 12px;
    max-width: 900px;
    overflow-wrap: anywhere;
}

.model-library__intro {
    color: #3e566c;
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 780px;
}

.model-search {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 920px;
}

.model-search__input {
    align-items: center;
    background: #fff;
    border: 1px solid #a3b8be;
    border-radius: 6px;
    display: flex;
    gap: 14px;
    min-height: 54px;
    min-width: 0;
    padding: 0 16px;
}

.model-search__input:focus-within {
    border-color: #0b6fba;
    outline: 3px solid #d7edf9;
}

.model-search__input > i {
    color: #48727d;
}

.model-search__input input {
    background: transparent;
    border: 0;
    font-size: 16px;
    min-width: 0;
    outline: none;
    padding: 12px 0;
    width: 100%;
}

.model-search__input input::-webkit-search-cancel-button {
    display: none;
}

.model-search__submit {
    align-items: center;
    border-radius: 6px;
    display: flex;
    font-weight: 650;
    gap: 8px;
    justify-content: center;
    min-height: 54px;
    padding: 10px 22px;
}

.model-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #5c6b73;
    display: inline-flex;
    flex-shrink: 0;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.model-icon-button[hidden],
.model-search__reset[hidden] {
    display: none;
}

.model-icon-button:hover {
    background: #edf3f4;
}

.model-search__help {
    align-items: center;
    color: #3e566c;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px 18px;
    grid-column: 1 / -1;
    justify-content: space-between;
}

.model-search__reset {
    color: #344e65;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.model-search__reset:hover {
    color: #075789;
    text-decoration: underline;
}

.model-search__status {
    color: #3e566c;
    font-size: 13px;
    margin: 6px 0 0;
    min-height: 20px;
}

.model-search__status.is-error {
    color: #a02d35;
}

.model-library__catalog {
    padding-bottom: 40px;
    padding-top: 26px;
}

.model-library__results-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.model-library h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.model-library__results-heading p {
    color: #5c6b73;
    font-size: 13px;
    margin: 0;
}

.model-library__page {
    color: #5c6b73;
    flex: 0 0 auto;
    font-size: 12px;
    text-align: right;
}

.model-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-tile {
    background: #fff;
    border: 1px solid #d8e2e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.model-tile:hover {
    border-color: #83aeb9;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.model-tile:focus-within {
    border-color: #0b6fba;
    outline: 3px solid #71bfd8;
    outline-offset: 3px;
}

.model-tile__top {
    display: flex;
    gap: 16px;
    padding: 18px 18px 12px;
}

.model-tile__visual {
    align-items: center;
    background: #f2f7f8;
    border: 1px solid #dfe8ea;
    border-radius: 7px;
    color: #0b6fba;
    display: flex;
    flex: 0 0 72px;
    flex-direction: column;
    gap: 5px;
    height: 72px;
    justify-content: center;
    overflow: hidden;
    padding: 7px;
    width: 72px;
}

.model-tile__visual img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.model-tile__visual--image {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.model-tile__visual > i {
    font-size: 15px;
    opacity: .72;
}

.model-tile__wordmark {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #17496c;
    display: -webkit-box;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-align: center;
    text-transform: uppercase;
}

.model-tile__identity {
    min-width: 0;
}

.model-tile__brand {
    color: #147364;
    display: block;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.model-tile__name {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.32;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.model-tile__link {
    color: #243238;
    text-decoration: none;
}

.model-tile__link::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.model-tile__link:hover {
    color: #0b6fba;
}

.model-tile__link:focus-visible {
    outline: 0;
}

.model-tile__type {
    color: #607078;
    font-size: 12px;
    margin: 0;
    overflow-wrap: anywhere;
}

.model-tile__type i {
    color: #8fa6ad;
    margin-right: 4px;
}

.model-tile__description {
    color: #617078;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
    padding: 0 18px;
}

.model-tile__footer {
    align-items: center;
    background: #fcfdfd;
    border-top: 1px solid #edf1f2;
    color: #0b6fba;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    min-height: 45px;
    overflow-wrap: anywhere;
    padding: 11px 18px;
}

.model-library__empty {
    color: #607078;
    padding: 65px 20px;
    text-align: center;
}

.model-library__empty > i {
    color: #76929b;
    font-size: 30px;
    margin-bottom: 18px;
}

.model-library__empty h3 {
    color: #243238;
    font-size: 20px;
}

.model-library__empty p {
    font-size: 14px;
}

.model-library [aria-busy="true"] {
    opacity: .6;
}

.model-library .subject-pagination {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.model-library a:focus-visible,
.model-library button:focus-visible {
    outline: 3px solid #71bfd8;
    outline-offset: 3px;
}

.model-library .model-tile__link:focus-visible {
    outline: 0;
}

@media (max-width: 991.98px) {
    .model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-library__watermark {
        font-size: 205px;
        opacity: .08;
        right: 32px;
        top: 28px;
    }
}

@media (max-width: 575.98px) {
    .model-library__header {
        padding-top: 22px;
    }

    .model-library__watermark {
        font-size: 140px;
        opacity: .07;
        right: 22px;
        top: 22px;
    }

    .model-library h1 {
        font-size: 26px;
    }

    .model-library__intro {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .model-search {
        gap: 10px;
    }

    .model-search__input {
        gap: 9px;
        padding: 0 10px 0 12px;
    }

    .model-search__submit {
        min-width: 52px;
        padding: 12px 16px;
    }

    .model-search__submit span {
        display: none;
    }

    .model-search__help {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .model-library__catalog {
        padding-top: 20px;
    }

    .model-library__results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .model-library__page {
        max-width: none;
        text-align: left;
    }

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

    .model-tile__top {
        gap: 13px;
        padding: 16px 16px 12px;
    }

    .model-tile__description {
        padding-inline: 16px;
    }

    .model-tile__footer {
        padding-inline: 16px;
    }

    .model-library .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .model-tile {
        transition: none;
    }
}
