.grs {
    --grs-ink: #171311;
    --grs-muted: #79594f;
    --grs-line: #e6dfdd;
    --grs-pink: #fae0e5;
    --grs-serif: Georgia, "Times New Roman", serif;
    --grs-panel-top: 104px;
    color: var(--grs-ink);
}

.grs .grs__panel {
    box-sizing: border-box;
    position: fixed;
    inset: var(--grs-panel-top) 0 auto;
    width: min(720px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - var(--grs-panel-top) - 16px);
    max-height: calc(100dvh - var(--grs-panel-top) - 16px);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 26px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px #25150f26;
    background: #fffdfd;
    color: var(--grs-ink);
}

.grs__panel::backdrop { background: #24171314; }
.grs :is(.grs__clear, .grs__results, .grs__all)[hidden] { display: none; }

.grs .grs__form, .grs .grs__field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.grs .grs__field {
    flex: 1;
    min-width: 0;
    padding: 2px 6px;
    border: 1px solid #bcb5b5;
    border-radius: 14px;
}

.grs .grs__icon, .grs .grs__clear {
    display: inline-grid;
    flex: none;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--grs-ink);
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
}

.grs .grs__icon svg { width: 28px; height: 28px; display: block; }

.grs .grs__input {
    appearance: none;
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--grs-ink);
    font: clamp(18px, 4vw, 26px)/1.3 var(--grs-serif);
}

.grs__input::-webkit-search-cancel-button { display: none; }
.grs .grs__clear { color: var(--grs-muted); font: 17px var(--grs-serif); }
.grs :is(a, button, input):focus-visible { outline: 2px solid var(--grs-muted); outline-offset: 2px; }

.grs .grs__status {
    margin: 16px 2px 5px;
    color: var(--grs-muted);
    font: 15px/1.4 system-ui, sans-serif;
}

.grs .grs__status:empty { margin: 0; }
.grs .grs__status--count { font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }
.grs .grs__results { list-style: none; margin: 0; padding: 0; }
.grs .grs__results li { margin: 0; padding: 0; }
.grs .grs__results li + li { border-top: 1px solid var(--grs-line); }

.grs .grs__results a {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 17px);
    padding: 6px 2px;
    color: var(--grs-ink);
    font: clamp(17px, 3.4vw, 25px)/1.22 var(--grs-serif);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.grs .grs__results a:hover span:last-child { text-decoration: underline; }

.grs .grs__picture {
    flex: 0 0 clamp(68px, 15vw, 108px);
    aspect-ratio: 1.65;
    overflow: hidden;
    border-radius: 12px;
    background: #f2e9e3;
}

.grs .grs__picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.grs .grs__all {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--grs-pink);
    color: var(--grs-ink);
    font: clamp(17px, 3.4vw, 24px)/1.3 var(--grs-serif);
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.grs .grs__all::after { content: '→' / ''; margin-left: .55em; }
.grs .grs__all:hover { background: #f5d1da; }

@media (max-height: 540px) {
    .grs .grs__panel { inset-block-start: 12px; max-height: calc(100dvh - 24px); }
}
