.dt-header .dt-search-clear {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf4fa;
    color: #53708a;
    cursor: pointer;
    transition: background .2s ease,color .2s ease,transform .2s ease;
}

.dt-header .dt-search-clear:hover,
.dt-header .dt-search-clear:focus-visible {
    background: #dfeffc;
    color: #0755a5;
    transform: scale(1.08);
}

    .dt-header .dt-search-clear[hidden], .dt-header #search-result[hidden], .dt-header #search-result [hidden] {
        display: none !important;
    }

.dt-header__container.search-result-content {
    position: relative;
    z-index: 5;
    /* The Figma navigation bar is pointer-events:none so the transparent
       bar does not block the page. Search results must opt back in to input. */
    pointer-events: auto;
}

.dt-header #search-result.dt-search-results {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
    width: min(900px,calc(100% - 48px));
    max-height: min(72vh,660px);
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #dceaf5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px #133c6530;
    color: #173c60;
    font: 15px/1.6 'Inter_24pt-Regular',Arial,sans-serif;
    z-index: 50;
    pointer-events: auto;
    animation: dt-search-enter .16s ease-out;
    scrollbar-width: thin;
    scrollbar-color: #b8d1e7 transparent;
}

.dt-search-top {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 26px 12px;
    border-bottom: 1px solid rgba(214,230,242,.72);
    background: linear-gradient(120deg,#f0f8ff,#fffdf3);
}

    .dt-search-top strong {
        display: block;
        font: 23px/1.4 'Inter_24pt-SemiBold',Arial,sans-serif;
        color: #0755a5;
    }

.dt-search-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #28815f;
    margin-bottom: 3px;
}

.dt-search-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #dceaf5;
    border-radius: 13px;
    background: #fff;
    color: #38607f;
    cursor: pointer;
    transition: background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}

.dt-search-close:hover,
.dt-search-close:focus-visible {
    border-color: #b9d8ed;
    background: #eef7ff;
    color: #0755a5;
    transform: rotate(90deg);
}

.dt-search-status {
    margin: 0;
    padding: 12px 24px;
    color: #647a8e;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dt-search-groups {
    display: grid;
    grid-template-columns: minmax(220px,.72fr) minmax(320px,1.28fr);
    gap: 20px;
    padding: 0 24px 20px;
}

.dt-search-group {
    min-width: 0;
}

    .dt-search-group:last-child {
        grid-column: 1 / -1;
    }

    .dt-search-group h3 {
        display: flex;
        gap: 8px;
        align-items: center;
        margin: 0 0 7px;
        padding: 0 0 8px;
        border-bottom: 1px solid #e8f0f6;
        color: #1c526d;
        font: 16px/1.5 'Inter_24pt-SemiBold',Arial,sans-serif;
    }

        .dt-search-group h3 i {
            color: #25855e;
        }

        .dt-search-group h3 > span {
            display: inline-grid;
            place-items: center;
            min-width: 23px;
            height: 23px;
            margin-left: auto;
            border-radius: 8px;
            background: #edf5fc;
            color: #0755a5;
            font-size: 14px;
        }

.dt-header #search-result a.dt-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #274760;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.dt-header #search-result a.dt-search-item::after {
    flex: 0 0 auto;
    margin-left: auto;
    color: #8db1cb;
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    font-weight: 900;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease,transform .2s ease,color .2s ease;
}

    .dt-header #search-result a.dt-search-item:hover, .dt-header #search-result a.dt-search-item:focus-visible {
        background: #f0f7ff;
        border-color: #dcebf8;
        color: #0755a5;
        box-shadow: 0 5px 14px rgba(28,91,145,.08);
        transform: translateY(-1px);
    }

    .dt-header #search-result a.dt-search-item:hover::after,
    .dt-header #search-result a.dt-search-item:focus-visible::after {
        color: #0755a5;
        opacity: 1;
        transform: translateX(0);
    }

.dt-search-item > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dt-search-item img {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 9px;
    background: #edf5fc;
}

.dt-search-item mark {
    padding: 1px 0;
    background: #fff0ab;
    color: inherit;
    border-radius: 3px;
}

.dt-search-bottom {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 2;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #e8f0f6;
    background: #f8fbfe;
}

    .dt-search-bottom > span {
        font-size: 15px;
        color: #718699;
    }

.dt-header #search-result .dt-search-all, .dt-search-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: #0755a5;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease,box-shadow .2s ease,transform .2s ease;
}

.dt-header #search-result .dt-search-all:hover,
.dt-header #search-result .dt-search-all:focus-visible,
.dt-search-retry:hover,
.dt-search-retry:focus-visible {
    background: #064786;
    box-shadow: 0 7px 16px rgba(7,85,165,.2);
    transform: translateY(-1px);
}

.dt-search-loading {
    padding: 0 24px 20px;
}

    .dt-search-loading span {
        display: block;
        height: 42px;
        margin: 8px 0;
        border-radius: 12px;
        background: linear-gradient(90deg,#eef4f9,#fafcfe,#eef4f9);
        background-size: 200% 100%;
        animation: dt-search-shimmer 1.3s linear infinite;
    }

        .dt-search-loading span:nth-child(2) {
            width: 85%;
        }

        .dt-search-loading span:nth-child(3) {
            width: 65%;
        }

@keyframes dt-search-enter {
    from {
        opacity: 0;
        translate: 0 -5px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes dt-search-shimmer {
    to {
        background-position: -200% 0;
    }
}

@media(min-width: 1200px) {
    .dt-header #search-result.dt-search-results {
        width: min(940px,calc(100vw - 72px));
        border-radius: 24px;
        box-shadow: 0 24px 65px rgba(19,60,101,.2),0 5px 18px rgba(19,60,101,.06);
    }

    .dt-search-group {
        padding: 4px;
        border: 1px solid #edf3f7;
        border-radius: 16px;
        background: rgba(250,253,255,.72);
    }

        .dt-search-group h3 {
            padding: 8px 9px 9px;
        }

    .dt-header #search-result a.dt-search-item {
        min-height: 50px;
        padding: 10px 9px;
    }

    .dt-header__search:focus-within {
        filter: drop-shadow(0 5px 13px rgba(7,85,165,.13));
    }
}

@media(max-width: 599px) {
    .dt-header #search-result.dt-search-results {
        right: 12px;
        width: calc(100% - 24px);
        border-radius: 17px;
        max-height: calc(100dvh - 175px);
    }

    .dt-search-top {
        padding: 16px 16px 8px;
    }

        .dt-search-top strong {
            font-size: 17px;
        }

    .dt-search-status {
        padding: 10px 16px;
    }

    .dt-search-groups {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 12px 16px;
    }

    .dt-search-bottom {
        padding: 12px 16px;
    }

        .dt-search-bottom > span {
            display: none;
        }

    .dt-search-bottom {
        justify-content: flex-end;
    }

    .dt-search-item img {
        flex-basis: 60px;
        width: 60px;
        height: 48px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .dt-header #search-result, .dt-search-loading span {
        animation: none !important;
    }

        .dt-header #search-result a {
            transition: none !important;
        }
}
