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

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

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

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

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

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

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

.brand-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;
}

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

.brand-directory-search {
    max-width: 1000px;
    position: relative;
}

.brand-search {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.brand-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;
}

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

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

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

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

.brand-search__clear {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #5c6b73;
    display: inline-flex;
    flex-shrink: 0;
    height: 34px;
    justify-content: center;
    width: 30px;
}

.brand-search__clear:hover {
    background: #edf3f4;
}

.brand-search__clear[hidden],
.brand-search__results[hidden] {
    display: none;
}

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

.brand-search__hint {
    color: #3e566c;
    font-size: 13px;
    margin: 9px 0 0;
}

.brand-search__alphabet {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
}

.brand-search__alphabet-label {
    color: #344e65;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-search__alphabet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.brand-search__letter {
    align-items: center;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #aac0c7;
    border-radius: 5px;
    color: #344e65;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    min-width: 32px;
    padding: 0 8px;
    text-decoration: none;
}

.brand-search__letter:hover {
    background: #fff;
    border-color: #0b6fba;
    color: #075789;
}

.brand-search__letter[aria-current="page"] {
    background: #0b6fba;
    border-color: #0b6fba;
    color: #fff;
}

.brand-search__letter.is-disabled {
    background: rgba(238, 244, 245, .6);
    border-color: #c8d5d8;
    color: #91a1a6;
}

.brand-search__results {
    background: #fff;
    border: 1px solid #b9cdd2;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(31, 55, 65, .18);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 0;
    margin-top: 8px;
    max-height: 400px;
    overflow: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    z-index: 8;
}

.brand-search__result {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #243238;
    display: grid;
    gap: 12px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 7px 9px;
    text-decoration: none;
}

.brand-search__result:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.brand-search__result:hover,
.brand-search__result.is-active {
    background: #edf6f8;
    border-color: #afcbd2;
    color: #075789;
}

.brand-search__visual {
    align-items: center;
    border-radius: 5px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 54px;
}

.brand-search__visual img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.brand-search__visual--text {
    background: #eaf2ff;
    color: #244c91;
    font-size: 11px;
    font-weight: 800;
    width: 38px;
}

.brand-search__visual--text[data-tone="2"] { background: #e9f8f5; color: #0f766e; }
.brand-search__visual--text[data-tone="3"] { background: #fff2df; color: #a65308; }
.brand-search__visual--text[data-tone="4"] { background: #f2edff; color: #6941c6; }
.brand-search__visual--text[data-tone="5"] { background: #fdecef; color: #b4234a; }
.brand-search__result-copy { min-width: 0; }
.brand-search__result-name { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.brand-search__result-meta { color: #607078; display: block; font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.brand-search__result-action { color: #789099; font-size: 12px; }
.brand-search__message { color: #607078; grid-column: 1 / -1; margin: 0; padding: 16px; text-align: center; }
.brand-directory-search.is-loading .brand-search__input > i { animation: brand-search-spin .8s linear infinite; }
.brand-directory-search.is-loading .brand-search__input > i::before { content: "\f110"; }

@keyframes brand-search-spin { to { transform: rotate(360deg); } }

.brand-library .public-ad-slot--themed {
    background: rgba(255, 255, 255, .76);
    border: 1px solid #b0cad7;
    border-radius: 8px;
    inline-size: 100%;
    max-inline-size: min(100%, calc(var(--public-ad-preferred-inline-size, 970px) + 26px));
    padding: 12px;
}

.brand-library .public-ad-slot--themed .public-ad-slot__label {
    color: #3e566c;
    letter-spacing: 0;
    opacity: 1;
}

.brand-library .public-ad-slot--themed .public-ad-slot__content {
    inline-size: 100%;
    overflow-x: auto;
    text-align: center;
}

.brand-library .public-ad-slot--themed :where(img, video, iframe) {
    margin-inline: auto;
}

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

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

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

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

.brand-library__results-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.brand-library__clear {
    color: #0b6fba;
    font-weight: 650;
    text-decoration: none;
}

.brand-library__clear i {
    margin-right: 4px;
}

.brand-library .subject-directory-table-shell {
    border-color: #d8e2e5;
    border-radius: 8px;
    box-shadow: none;
}

.brand-library .subject-directory-table thead th {
    background: #edf3f4;
    color: #4f656d;
}

.brand-library .subject-directory-table > :not(caption) > * > * {
    border-color: #e3eaec;
    padding-block: .65rem;
}

.brand-library .subject-directory-table tbody tr:hover > * {
    background: #f3f8f8;
}

.brand-library .subject-directory-card {
    border-color: #d8e2e5;
    border-radius: 8px;
    box-shadow: none;
}

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

.brand-library .subject-pagination {
    display: flex;
    justify-content: center;
}

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

@media (max-width: 991px) {
    .brand-library__watermark {
        font-size: 190px;
        opacity: .07;
        right: 30px;
        top: 30px;
    }
}

@media (max-width: 767.98px) {
    .brand-search__results {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-library .subject-directory-table tbody tr {
        border-color: #d8e2e5;
        border-radius: 8px;
        box-shadow: none;
    }
}

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

    .brand-library__watermark {
        font-size: 130px;
        right: 20px;
        top: 24px;
    }

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

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

    .brand-search {
        gap: 10px;
    }

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

    .brand-search__submit {
        font-size: 0;
        padding: 12px 16px;
    }

    .brand-search__submit i {
        font-size: 16px;
    }

    .brand-search__hint {
        line-height: 1.45;
    }

    .brand-search__alphabet-links {
        gap: 4px;
    }

    .brand-search__letter {
        height: 30px;
        min-width: 30px;
        padding-inline: 7px;
    }

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

    .brand-library__results-heading {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-directory-search.is-loading .brand-search__input > i {
        animation: none;
    }
}
