@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

.gsh-page,
.gsh-page * {
    box-sizing: border-box;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

.gsh-page {
    --gsh-deep: #0f2a46;
    --gsh-muted: #5a708a;
    --gsh-line: rgba(15, 42, 70, 0.10);
    --gsh-accent: #1a73ff;
    --gsh-accent-hover: #0f63e8;
    --gsh-accent-glow: rgba(26, 115, 255, 0.14);
    --gsh-surface: #ffffff;
    --gsh-chip: #eef3f9;
    --gsh-chip-hover: #e2ebf5;

    min-height: calc(100vh - var(--header-v2-height, 72px));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 72px;
    background:
        radial-gradient(72% 56% at 14% -4%, rgba(81, 169, 205, 0.18) 0%, rgba(81, 169, 205, 0) 62%),
        radial-gradient(58% 48% at 88% 0%, rgba(32, 86, 153, 0.14) 0%, rgba(32, 86, 153, 0) 68%),
        linear-gradient(165deg, #eef3f8 0%, #e6edf5 55%, #dde6f0 100%);
}

.gsh-stage {
    width: min(860px, 100%);
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.gsh-hero {
    width: 100%;
    text-align: center;
}

.gsh-hero__title {
    margin: 0;
    color: var(--gsh-deep);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.gsh-hero__subtitle {
    margin: 12px auto 0;
    max-width: 68ch;
    color: var(--gsh-muted);
    font-size: clamp(14px, 2.2vw, 16px);
    line-height: 1.55;
    font-weight: 500;
}

.gsh-search {
    margin-top: 36px;
    position: relative;
    z-index: 400;    /* must beat .gsh-tabs sticky z-index: 350 */
}

/* ════════════════════════════════════════════════════════════════════
   IDLE BREATHING ANIMATION
   – Shell breathes with box-shadow & border-color
   – Three ripple rings expand and fade from pseudo-elements
   ════════════════════════════════════════════════════════════════════ */

/* 1. Shell breathing: soft shadow swell + tinted border */
@keyframes gsh-breath {
    0%   {
        box-shadow:
            0 1px 2px  rgba(12,40,70,.04),
            0 8px 24px rgba(12,40,70,.07),
            0 24px 48px rgba(12,40,70,.06);
        border-color: rgba(15,42,70,.08);
    }
    50%  {
        box-shadow:
            0 1px 2px  rgba(12,40,70,.04),
            0 10px 30px rgba(12,40,70,.09),
            0 28px 56px rgba(12,40,70,.07),
            0 0 0 5px  rgba(26,115,255,.07),
            0 0 32px   rgba(26,115,255,.13);
        border-color: rgba(26,115,255,.28);
    }
    100% {
        box-shadow:
            0 1px 2px  rgba(12,40,70,.04),
            0 8px 24px rgba(12,40,70,.07),
            0 24px 48px rgba(12,40,70,.06);
        border-color: rgba(15,42,70,.08);
    }
}

/* 2. Ripple ring — expands outward and dissolves */
@keyframes gsh-ripple {
    0%   { transform: scale(1);    opacity: .55; }
    100% { transform: scale(1.07); opacity: 0;   }
}

/* 3. Gradient border sweep (conic shimmer on the wrapper) */
@keyframes gsh-border-spin {
    0%   { --gsh-border-angle: 0deg;   }
    100% { --gsh-border-angle: 360deg; }
}

/* ── Ripple wrapper ── sits behind .gsh-search__shell ───────────────── */
.gsh-search__ripple {
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

/* Three concentric rings with staggered delays */
.gsh-search__ripple::before,
.gsh-search__ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(26, 115, 255, 0.35);
    animation: gsh-ripple 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gsh-search__ripple::before { animation-delay: 0s; }
.gsh-search__ripple::after  { animation-delay: 0.7s; }

/* ── Main shell ─────────────────────────────────────────────────────── */
.gsh-search__shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 64px;
    padding: 7px 7px 7px 24px;
    border-radius: 999px;
    background: var(--gsh-surface);
    border: 1px solid rgba(15, 42, 70, 0.10);
    box-shadow:
        0 1px 2px rgba(12, 40, 70, 0.04),
        0 8px 24px rgba(12, 40, 70, 0.07),
        0 24px 48px rgba(12, 40, 70, 0.06);
    animation: gsh-breath 4.8s ease-in-out infinite;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s ease;
}

/* Inner gloss */
.gsh-search__shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 42%);
    transition: opacity 0.25s ease;
    z-index: 0;
}

/* Blue tint overlay (focus) */
.gsh-search__shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, rgba(26, 115, 255, 0.07) 0%, rgba(26, 115, 255, 0) 55%);
    transition: opacity 0.25s ease;
    z-index: 0;
}

/* ── Hover ──────────────────────────────────────────────────────────── */
.gsh-search__shell:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(12, 40, 70, 0.05),
        0 14px 32px rgba(12, 40, 70, 0.10),
        0 32px 56px rgba(12, 40, 70, 0.08);
}

.gsh-search__shell:hover ~ .gsh-search__ripple,
.gsh-search__shell:focus-within ~ .gsh-search__ripple {
    display: none;
}

/* ── Focus ──────────────────────────────────────────────────────────── */
.gsh-search__shell:focus-within {
    animation: none;
    transform: translateY(-2px);
    border-color: rgba(26, 115, 255, 0.42);
    box-shadow:
        0 0 0 1px rgba(26, 115, 255, 0.28),
        0 0 0 5px var(--gsh-accent-glow),
        0 0 28px rgba(26, 115, 255, 0.16),
        0 4px 10px rgba(12, 40, 70, 0.06),
        0 18px 42px rgba(12, 40, 70, 0.10);
}

.gsh-search__shell:focus-within::before {
    opacity: 0.55;
}

.gsh-search__shell:focus-within::after {
    opacity: 1;
}

.gsh-search__input {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--gsh-deep);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.gsh-search__input::placeholder {
    color: #8fa0b3;
    font-weight: 500;
}

.gsh-search__btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: var(--gsh-accent);
    box-shadow: 0 4px 14px rgba(26, 115, 255, 0.32);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.gsh-search__btn svg {
    width: 22px;
    height: 22px;
}

.gsh-search__btn:hover {
    background: var(--gsh-accent-hover);
    box-shadow: 0 6px 18px rgba(26, 115, 255, 0.38);
}

.gsh-search__shell:focus-within .gsh-search__btn {
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.95),
        0 6px 18px rgba(26, 115, 255, 0.42);
}

.gsh-search__btn:active {
    transform: scale(0.96);
}

.gsh-hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gsh-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    border: 1px solid rgba(15, 42, 70, 0.10);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(12, 40, 70, 0.06);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.gsh-hero-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--gsh-accent);
    color: #ffffff;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.gsh-hero-action__icon svg {
    width: 16px;
    height: 16px;
}

.gsh-hero-action:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(26, 115, 255, 0.28);
    box-shadow: 0 4px 16px rgba(26, 115, 255, 0.12);
    transform: translateY(-1px);
}

.gsh-hero-action:hover .gsh-hero-action__icon {
    background: var(--gsh-accent-hover);
}

.gsh-hero-action:active {
    transform: translateY(0);
}


.gsh-results {
    margin-top: 0;
}

.gsh-tabs-sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
}

.gsh-tabs-placeholder {
    width: 100%;
}

.gsh-tabs {
    position: sticky;
    top: var(--header-v2-height, 72px);
    z-index: 350;
    margin: 0 0 16px;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    background: transparent;
}

.gsh-tabs:not(.is-stuck) .gsh-toolbar__title {
    display: none;
}

@keyframes gsh-tab-in {
    from { transform: translateY(-110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes gsh-tab-out {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(-110%); opacity: 0; }
}


/* Hidden until is-visible fires */
.gsh-tabs.is-stuck:not(.is-visible) {
    opacity: 0;
    transform: translateY(-110%);
}

.gsh-tabs.is-stuck.is-visible {
    animation: gsh-tab-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gsh-tabs__inner {
    width: 100%;
}

.gsh-tabs__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(15, 42, 70, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 16px rgba(12, 40, 70, 0.05);
}

.gsh-toolbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gsh-toolbar__title {
    display: none;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    white-space: nowrap;
    flex-shrink: 0;
}

.gsh-toolbar__title-icon {
    display: none;
}

.gsh-toolbar__title-text {
    color: var(--gsh-deep);
    font-size: clamp(15px, 2vw, 18px);
}

.gsh-toolbar__filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--gsh-chip);
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.gsh-toolbar__filter svg {
    width: 18px;
    height: 18px;
    color: var(--gsh-accent);
}

.gsh-toolbar__filter:hover {
    background: #e4edf7;
}

.gsh-toolbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gsh-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.gsh-toolbar__sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-left: auto;
}

.gsh-toolbar__sort-label {
    color: #7b8fa6;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gsh-tabs.is-stuck {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-v2-height, 72px);
    width: 100%;
    margin: 0;
    padding: 10px 0 12px;
    border-bottom-color: rgba(15, 42, 70, 0.06);
    background: rgba(226, 235, 245, 0.58);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    box-shadow: 0 10px 30px rgba(12, 40, 70, 0.07);
    transition: top 0.24s ease;
}

.gsh-tabs.is-stuck .gsh-toolbar__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 14px;
    border: 1px solid rgba(15, 42, 70, 0.08);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(12, 40, 70, 0.04);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.gsh-tabs.is-stuck .gsh-toolbar__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gsh-accent);
    color: #ffffff;
    flex-shrink: 0;
}

.gsh-tabs.is-stuck .gsh-toolbar__title-icon svg {
    width: 20px;
    height: 20px;
}

.gsh-tabs.is-stuck .gsh-tabs__inner {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
}

.gsh-tabs.is-stuck .gsh-tabs__toolbar {
    border-color: rgba(15, 42, 70, 0.08);
    box-shadow: 0 2px 10px rgba(12, 40, 70, 0.04);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gsh-custom-select-wrap {
    position: relative;
    width: 100%;
}

.gsh-custom-select {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.gsh-page .gsh-custom-select .custom-select-trigger,
.gsh-page .gsh-custom-select .custom-option {
    pointer-events: auto;
}

.gsh-custom-select.open {
    z-index: 40;
}

.gsh-custom-select .custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(15, 42, 70, 0.1);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(12, 40, 70, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gsh-custom-select .custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7c93;
    border-bottom: 2px solid #6b7c93;
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.gsh-custom-select.open .custom-select-trigger {
    border-color: rgba(26, 115, 255, 0.35);
    box-shadow: 0 0 0 3px var(--gsh-accent-glow);
}

.gsh-custom-select.open .custom-select-trigger::after {
    border-color: var(--gsh-accent);
    transform: translateY(-38%) rotate(-135deg);
}

.gsh-custom-select.disabled .custom-select-trigger {
    background: #eef3f9;
    color: #8fa0b3;
    cursor: not-allowed;
    box-shadow: none;
}

.gsh-custom-select .custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(15, 42, 70, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(12, 40, 70, 0.12);
    overflow: auto;
}

.gsh-custom-select.open-up .custom-options {
    top: auto;
    bottom: calc(100% + 8px);
}

.gsh-custom-select .custom-option {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.gsh-custom-select .custom-option:hover {
    background: #edf4ff;
    color: #1557d6;
}

.gsh-custom-select--sort {
    min-width: 210px;
}

.gsh-custom-select--field .custom-select-trigger {
    min-height: 40px;
    border-radius: 12px;
}

.gsh-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: flex;
    justify-content: flex-start;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gsh-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gsh-drawer {
    width: min(100vw, 420px);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    border-right: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 24px 0 50px rgba(15, 23, 42, 0.18);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
}

.gsh-drawer-overlay.is-open .gsh-drawer {
    transform: translateX(0);
}

.gsh-drawer__form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: 100%;
}

.gsh-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    background: rgba(255, 255, 255, 0.92);
}

.gsh-drawer__titlebox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.gsh-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
    color: #1557d6;
    flex-shrink: 0;
}

.gsh-drawer__icon svg {
    width: 20px;
    height: 20px;
}

.gsh-drawer__titlecopy h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: #102033;
}

.gsh-drawer__titlecopy p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #68758a;
}

.gsh-drawer__close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: #ffffff;
    color: #46566c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.gsh-drawer__body {
    padding: 18px 22px;
    overflow: auto;
}

.gsh-drawer__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gsh-drawer__group + .gsh-drawer__group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 42, 70, 0.06);
}

.gsh-drawer__group-title {
    margin: 0 0 4px;
    color: #7b8fa6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gsh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gsh-field__label {
    color: #4a627a;
    font-size: 12px;
    font-weight: 700;
}

.gsh-field__input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(15, 42, 70, 0.1);
    border-radius: 12px;
    background: #ffffff;
    color: var(--gsh-deep);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gsh-field__input::placeholder {
    color: #9aaec3;
}

.gsh-field__input:focus {
    outline: none;
    border-color: rgba(26, 115, 255, 0.35);
    box-shadow: 0 0 0 3px var(--gsh-accent-glow);
}

.gsh-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
    background: rgba(255, 255, 255, 0.92);
}

.gsh-drawer__apply {
    appearance: none;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--gsh-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gsh-drawer__apply:hover {
    background: var(--gsh-accent-hover);
}

.gsh-drawer__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: #7b8fa6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.gsh-drawer__reset:hover {
    color: var(--gsh-accent);
}

.gsh-results__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.gsh-results__title {
    margin: 0;
    color: var(--gsh-deep);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gsh-results__count {
    color: #7b8fa6;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gsh-query-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(26, 115, 255, 0.18);
    background: rgba(26, 115, 255, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gsh-query-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gsh-accent);
    color: #fff;
    flex-shrink: 0;
}

.gsh-query-banner__icon svg {
    width: 14px;
    height: 14px;
}

.gsh-query-banner__label {
    color: #6a8098;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gsh-query-banner__query {
    color: var(--gsh-deep);
    font-size: 14px;
    font-weight: 800;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gsh-query-banner__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(15, 42, 70, 0.06);
    color: #6a8098;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.gsh-query-banner__clear svg {
    width: 14px;
    height: 14px;
}

.gsh-query-banner__clear:hover {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
}

.gsh-results__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 2px 0;
    overflow-anchor: auto;
}

.gsh-results__tail {
    position: relative;
    min-height: 44px;
    margin-top: 8px;
}

.gsh-results__empty {
    padding: 28px 20px;
    border-radius: 18px;
    border: 1px dashed rgba(15, 42, 70, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--gsh-muted);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.gsh-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 42, 70, 0.08);
    background: var(--gsh-surface);
    color: inherit;
    text-decoration: none;
    box-shadow:
        0 1px 2px rgba(12, 40, 70, 0.04),
        0 6px 20px rgba(12, 40, 70, 0.05);
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s ease;
    isolation: isolate;
}

.gsh-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--gsh-accent) 0%, #4d9dff 100%);
    opacity: 0;
    transform: scaleY(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gsh-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 115, 255, 0.22);
    box-shadow:
        0 2px 6px rgba(12, 40, 70, 0.05),
        0 14px 32px rgba(12, 40, 70, 0.08);
}

.gsh-card:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.gsh-card__media {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f9;
    border: 1px solid rgba(15, 42, 70, 0.08);
    flex-shrink: 0;
}

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

.gsh-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.gsh-card__badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.gsh-card__badge--verified {
    background: rgba(26, 115, 255, 0.88);
}

.gsh-card__badge--pending {
    background: #f59e0b;
}

.gsh-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gsh-card__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.gsh-card__name {
    color: var(--gsh-deep);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gsh-card__dates-row {
    display: contents;
}

.gsh-card__dates {
    color: #6a8098;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.gsh-card__status {
    display: none;
}

.gsh-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.gsh-card__location,
.gsh-card__cemetery {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--gsh-chip);
    color: #4a627a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.gsh-card__location svg,
.gsh-card__cemetery svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #7b93ad;
}

.gsh-card__cemetery {
    background: rgba(26, 115, 255, 0.08);
    color: #2f6eb8;
}

.gsh-card__cemetery svg {
    color: var(--gsh-accent);
}

.gsh-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(26, 115, 255, 0.08);
    color: var(--gsh-accent);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.gsh-card__action svg {
    width: 18px;
    height: 18px;
}

.gsh-card:hover .gsh-card__action {
    background: var(--gsh-accent);
    color: #fff;
    transform: translateX(2px);
}

.gsh-paginator {
    margin-top: 12px;
}

.gsh-paginator[hidden] {
    display: none !important;
}

.gsh-page.is-pagination-loading .gsh-results__list {
    opacity: 0.55;
    pointer-events: none;
}

.gsh-scroll-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.gsh-scroll-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding-top: 8px;
    text-align: center;
    color: #7b8fa6;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gsh-scroll-status.is-active {
    opacity: 1;
}

.gsh-scroll-status--loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border-radius: 50%;
    border: 2px solid rgba(26, 115, 255, 0.22);
    border-top-color: var(--gsh-accent);
    animation: gsh-spin 0.7s linear infinite;
}

.gsh-scroll-status--done {
    color: #8a9cb0;
}

.gsh-scroll-status--error {
    color: #b45309;
}

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

.gsh-card--enter {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gsh-card--enter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gsh-card--skeleton {
    pointer-events: none;
    user-select: none;
}

.gsh-card--skeleton::before {
    display: none;
}

.gsh-card--skeleton:hover {
    transform: none;
    border-color: rgba(15, 42, 70, 0.08);
    box-shadow:
        0 1px 2px rgba(12, 40, 70, 0.04),
        0 6px 20px rgba(12, 40, 70, 0.05);
}

.gsh-skeleton {
    display: block;
    position: relative;
    overflow: hidden;
    background: #e6edf5;
    border-radius: 8px;
}

.gsh-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: gsh-shimmer 1.25s ease-in-out infinite;
}

@keyframes gsh-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.gsh-skeleton--block {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.gsh-skeleton--line {
    height: 14px;
    width: 72%;
}

.gsh-skeleton--line.gsh-skeleton--lg {
    height: 18px;
    width: 58%;
}

.gsh-skeleton--line.gsh-skeleton--sm {
    height: 12px;
    width: 88%;
    margin-top: 2px;
}

.gsh-skeleton--circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.gsh-card--skeleton .gsh-card__action {
    background: transparent;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .gsh-card--enter {
        transition: none;
    }

    .gsh-scroll-status {
        transition: none;
    }
}

@media (max-width: 560px) {
    .gsh-page {
        padding-top: 28px;
    }

    .gsh-search__shell {
        min-height: 58px;
        padding-left: 18px;
    }

    .gsh-search__input {
        font-size: 15px;
    }

    .gsh-search__btn {
        width: 44px;
        height: 44px;
    }

    .gsh-examples__label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2px;
    }

    .gsh-stage {
        gap: 36px;
    }

    .gsh-tabs__toolbar {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .gsh-toolbar__left {
        flex-wrap: nowrap;
        flex-shrink: 0;
        gap: 8px;
    }

    .gsh-toolbar__filter {
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
        gap: 6px;
    }

    .gsh-toolbar__filter svg {
        width: 16px;
        height: 16px;
    }

    .gsh-toolbar__sort {
        margin-left: auto;
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .gsh-toolbar__sort-label {
        display: none;
    }

    .gsh-custom-select--sort {
        min-width: 0;
        flex: 1 1 auto;
    }

    .gsh-custom-select--sort .custom-select-trigger {
        min-height: 38px;
        padding-right: 28px;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gsh-tabs.is-stuck .gsh-tabs__inner {
        width: calc(100% - 24px);
    }

    .gsh-results__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .gsh-hero-actions {
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 16px;
    }

    .gsh-hero-action {
        min-width: 0;
        padding: 4px 8px 4px 4px;
        font-size: 11px;
        gap: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gsh-hero-action__icon {
        width: 24px;
        height: 24px;
    }

    .gsh-hero-action__icon svg {
        width: 13px;
        height: 13px;
    }

    .gsh-results__list {
        gap: 12px;
        padding: 0;
    }

    .gsh-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow:
            0 1px 3px rgba(12, 40, 70, 0.05),
            0 8px 22px rgba(12, 40, 70, 0.07);
        -webkit-tap-highlight-color: transparent;
    }

    .gsh-card::before {
        display: none;
    }

    .gsh-card:hover {
        transform: none;
        border-color: rgba(15, 42, 70, 0.08);
        box-shadow:
            0 1px 3px rgba(12, 40, 70, 0.05),
            0 8px 22px rgba(12, 40, 70, 0.07);
    }

    .gsh-card:active {
        transform: scale(0.985);
        box-shadow:
            0 1px 2px rgba(12, 40, 70, 0.04),
            0 4px 14px rgba(12, 40, 70, 0.06);
    }

    .gsh-card__media {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border: 0;
        border-radius: 0;
        flex-shrink: 0;
        overflow: hidden;
        background: #e8eef5;
        isolation: isolate;
    }

    .gsh-card__media::before {
        content: "";
        position: absolute;
        inset: -28px;
        z-index: 0;
        background-color: #e8eef5;
        background-image: var(--gsh-card-photo);
        background-size: cover;
        background-position: center;
        filter: blur(26px) saturate(1.35);
        transform: scale(1.12);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .gsh-card__media[style*="--gsh-card-photo"]::before {
        opacity: 1;
    }

    .gsh-card__media img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .gsh-card__media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(180deg, rgba(8, 24, 44, 0) 55%, rgba(8, 24, 44, 0.12) 100%);
        pointer-events: none;
    }

    .gsh-card__body {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px 14px;
        min-width: 0;
    }

    .gsh-card__name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .gsh-card__name {
        font-size: 17px;
        line-height: 1.28;
        letter-spacing: -0.02em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .gsh-card__badge {
        display: none !important;
    }

    .gsh-card__dates-row {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        max-width: 100%;
        margin-top: 2px;
        padding: 4px 10px;
        border-radius: 8px;
        background: #f0f4f9;
    }

    .gsh-card__dates {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        padding: 0;
        margin: 0;
        border-radius: 0;
        background: transparent;
        color: #5a708a;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gsh-card__dates::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #9eb4cb;
        flex-shrink: 0;
    }

    .gsh-card__status {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: 8px;
        padding-left: 8px;
        border-left: 1px solid rgba(90, 112, 138, 0.28);
        color: #5a708a;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
    }

    .gsh-card__status--verified {
        color: #2f6eb8;
    }

    .gsh-card__status--pending {
        color: #b45309;
    }

    .gsh-card__meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid rgba(15, 42, 70, 0.07);
    }

    .gsh-card__location,
    .gsh-card__cemetery {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        max-width: none;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #4a627a;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
        white-space: normal;
        overflow: hidden;
        text-overflow: unset;
    }

    .gsh-card__location svg,
    .gsh-card__cemetery svg {
        width: 15px;
        height: 15px;
        margin-top: 1px;
        color: #8aa3bc;
        flex-shrink: 0;
    }

    .gsh-card__cemetery {
        color: #2f6eb8;
    }

    .gsh-card__cemetery svg {
        color: var(--gsh-accent);
    }

    .gsh-card__action {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 14px rgba(12, 40, 70, 0.14);
        color: var(--gsh-accent);
        transform: none;
    }

    .gsh-card:hover .gsh-card__action,
    .gsh-card:active .gsh-card__action {
        background: var(--gsh-accent);
        color: #fff;
        transform: none;
    }

    .gsh-card__action svg {
        width: 17px;
        height: 17px;
    }

    .gsh-card--skeleton .gsh-card__media {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .gsh-card--skeleton .gsh-card__body {
        padding: 12px 14px 14px;
    }

    .gsh-skeleton--circle {
        width: 36px;
        height: 36px;
    }

    .gsh-tabs {
        top: calc(env(safe-area-inset-top, 0px) + 56px);
        transition: top 0.24s ease;
    }

    .gsh-tabs.is-stuck {
        top: calc(env(safe-area-inset-top, 0px) + 56px);
    }

    html.menu-mobile-header-hidden .gsh-tabs,
    html.menu-mobile-header-hidden .gsh-tabs.is-stuck {
        top: calc(env(safe-area-inset-top, 0px));
    }

    .gsh-tabs.is-stuck .gsh-toolbar__title {
        display: none;
    }

    .gsh-toolbar__sort-label {
        display: none;
    }

    .gsh-search:has(.gsh-dates-panel.is-active) .gsh-search__ripple {
        border-radius: 18px;
    }

    .gsh-search__shell:has(.gsh-dates-panel.is-active) {
        flex-wrap: wrap;
        align-items: center;
        min-height: 58px;
        padding: 8px 8px 10px;
        border-radius: 18px;
        row-gap: 8px;
        animation: none;
    }

    .gsh-search__shell:has(.gsh-dates-panel.is-active) .gsh-search__divider {
        display: none;
    }

    .gsh-search__shell:has(.gsh-dates-panel.is-active) .gsh-mode-btn-wrap {
        order: 1;
        margin-left: 0;
    }

    .gsh-search__shell:has(.gsh-dates-panel.is-active) .gsh-search__btn {
        order: 2;
        margin-left: auto;
    }

    .gsh-search__shell:has(.gsh-dates-panel.is-active) .gsh-dates-panel {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        gap: 6px;
        padding: 0 2px;
        align-items: center;
    }

    .gsh-dates-panel__field {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        gap: 0;
    }

    .gsh-dates-panel__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .gsh-dates-panel__input {
        min-height: 38px;
        padding: 0 10px;
        font-size: 14px;
        border-radius: 10px;
    }

    .gsh-dates-panel__sep {
        margin-top: 0;
        align-self: center;
        font-size: 14px;
        line-height: 1;
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════
   SEARCH MODE SWITCHER
═══════════════════════════════════════════════════════ */

/* Shell override — tighter left padding for mode btn */
.gsh-search__shell {
    padding-left: 8px;
}

/* Thin vertical divider between btn and input area */
.gsh-search__divider {
    display: inline-block;
    width: 1px;
    height: 28px;
    background: rgba(15, 42, 70, 0.13);
    flex-shrink: 0;
    margin: 0 6px;
    border-radius: 1px;
}

/* ── Mode button wrapper ── */
.gsh-mode-btn-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 7px;
}

/* The mode toggle button — rounded pill to match shell curvature */
.gsh-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px 8px 9px;
    border: 1.5px solid rgba(15, 42, 70, 0.11);
    border-radius: 999px;         /* pill — matches the shell's 999px curvature */
    background: #f0f5fb;
    color: var(--gsh-deep);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}

.gsh-mode-btn:hover {
    background: #e3edf8;
    border-color: rgba(26, 115, 255, 0.28);
}

/* Active/open state */
.gsh-mode-btn[aria-expanded="true"] {
    background: var(--gsh-accent);
    border-color: var(--gsh-accent);
    color: #fff;
}

.gsh-mode-btn[aria-expanded="true"] .gsh-mode-btn__icon {
    color: #fff;
}

.gsh-mode-btn[aria-expanded="true"] .gsh-mode-btn__chevron {
    color: rgba(255,255,255,0.75);
    transform: rotate(180deg);
}

/* Keyboard focus — solid blue, no outline/ring/shadow */
.gsh-mode-btn:focus-visible {
    background: var(--gsh-accent) !important;
    border-color: var(--gsh-accent) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.gsh-mode-btn:focus-visible .gsh-mode-btn__icon {
    color: #fff !important;
}

.gsh-mode-btn:focus-visible .gsh-mode-btn__chevron {
    color: rgba(255,255,255,0.75) !important;
}

/* Icon inside button */
.gsh-mode-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--gsh-accent);
    transition: color 0.16s ease;
}

.gsh-mode-btn__icon svg {
    width: 18px;
    height: 18px;
}

/* Chevron */
.gsh-mode-btn__chevron {
    display: inline-flex;
    align-items: center;
    color: #96aabf;
    transition: transform 0.2s ease, color 0.16s ease;
}

.gsh-mode-btn__chevron svg {
    width: 13px;
    height: 13px;
}

/* ── Dropdown menu ─────────────────────────────────────
   z-index must beat .gsh-tabs sticky bar (z-index: 350)
   and any other stacking context on the page.
──────────────────────────────────────────────────────── */
.gsh-mode-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 100000;          /* beats sticky toolbar + drawer */
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(15, 42, 70, 0.09);
    background: #ffffff;
    box-shadow:
        0 4px 6px rgba(12, 40, 70, 0.04),
        0 12px 32px rgba(12, 40, 70, 0.12),
        0 24px 48px rgba(12, 40, 70, 0.08);
    animation: gsh-menu-in 0.17s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gsh-menu-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.gsh-mode-menu[hidden] {
    display: none;
}

/* ── Menu items ── */
.gsh-mode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease;
    font-family: inherit;
}

.gsh-mode-item:hover {
    background: #edf4ff;
}

.gsh-mode-item.is-active {
    background: rgba(26, 115, 255, 0.08);
    color: #1557d6;
}

.gsh-mode-item.is-active .gsh-mode-item__icon {
    background: rgba(26, 115, 255, 0.12);
    color: var(--gsh-accent);
}

.gsh-mode-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eef3f9;
    color: #607891;
    flex-shrink: 0;
    transition: background 0.14s ease, color 0.14s ease;
}

.gsh-mode-item:hover .gsh-mode-item__icon {
    background: rgba(26, 115, 255, 0.10);
    color: var(--gsh-accent);
}

.gsh-mode-item__icon svg {
    width: 17px;
    height: 17px;
}

.gsh-mode-item__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gsh-mode-item__text b {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.gsh-mode-item__text small {
    font-weight: 500;
    font-size: 11px;
    color: #8096ae;
    line-height: 1.35;
}

/* ── Search panels (name / dates / cemetery) ── */
.gsh-search__panel {
    display: none;
    flex: 1;
    min-width: 0;
}

.gsh-search__panel.is-active {
    display: flex;
}

input.gsh-search__panel {
    display: none;
    flex: 1 1 auto;
}

input.gsh-search__panel.is-active {
    display: block;
}

/* ── Dates panel ─────────────────────────────────────── */
.gsh-dates-panel {
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

/* Each labelled date field */
.gsh-dates-panel__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    cursor: default;
}

.gsh-dates-panel__label {
    font-size: 10px;
    font-weight: 700;
    color: #8fa0b3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    padding-left: 2px;
    pointer-events: none;
}

/* Date input — styled with visible border */
.gsh-dates-panel__input {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    border: 1.5px solid rgba(15, 42, 70, 0.14);
    border-radius: 9px;
    background: #f5f8fc;
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.17s ease, box-shadow 0.17s ease, background 0.17s ease;
    cursor: pointer;
}

.gsh-dates-panel__input:hover {
    border-color: rgba(26, 115, 255, 0.30);
    background: #eef4ff;
}

.gsh-dates-panel__input:focus {
    border-color: rgba(26, 115, 255, 0.50);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 255, 0.12);
}

/* Native date picker icon color */
.gsh-dates-panel__sep {
    color: #a0b3c8;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    align-self: center;
    margin-top: 14px; /* offset for label height */
}

/* ── Mobile adjustments ── */
@media (max-width: 560px) {
    .gsh-mode-btn {
        padding: 6px 8px 6px 7px;
    }

    .gsh-dates-panel {
        gap: 5px;
    }

    .gsh-dates-panel__input {
        font-size: 12px;
        padding: 0 6px;
    }
}


/* Divider line between mode btn and input */
.gsh-search__divider {
    display: inline-block;
    width: 1px;
    height: 28px;
    background: rgba(15, 42, 70, 0.12);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Mode button wrapper — relative for menu positioning */
.gsh-mode-btn-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 7px;
}

/* The pill-shaped mode toggle button */
.gsh-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 8px;
    border: 1px solid rgba(15, 42, 70, 0.12);
    border-radius: 999px;          /* pill — matches the shell's 999px curvature */
    background: rgba(238, 243, 249, 0.80);
    color: var(--gsh-deep);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
    position: relative;
    z-index: 1;
    outline: none;
}

.gsh-mode-btn:hover {
    background: rgba(225, 235, 248, 0.95);
    border-color: rgba(26, 115, 255, 0.25);
    box-shadow: 0 2px 8px rgba(26, 115, 255, 0.10);
}

.gsh-mode-btn[aria-expanded="true"] {
    background: rgba(26, 115, 255, 0.09);
    border-color: rgba(26, 115, 255, 0.32);
    box-shadow: 0 0 0 3px var(--gsh-accent-glow);
}

/* Keyboard focus — solid blue button, no outline/ring/shadow */
.gsh-mode-btn:focus,
.gsh-mode-btn:focus-visible {
    background: var(--gsh-accent) !important;
    border-color: var(--gsh-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}

.gsh-mode-btn:focus .gsh-mode-btn__icon,
.gsh-mode-btn:focus-visible .gsh-mode-btn__icon {
    color: #fff !important;
}

.gsh-mode-btn:focus .gsh-mode-btn__chevron,
.gsh-mode-btn:focus-visible .gsh-mode-btn__chevron {
    color: rgba(255,255,255,0.75) !important;
}

.gsh-mode-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--gsh-accent);
}

.gsh-mode-btn__icon svg {
    width: 18px;
    height: 18px;
}

.gsh-mode-btn__chevron {
    display: inline-flex;
    align-items: center;
    color: #8fa0b3;
    transition: transform 0.2s ease;
}

.gsh-mode-btn[aria-expanded="true"] .gsh-mode-btn__chevron {
    transform: rotate(180deg);
}

.gsh-mode-btn__chevron svg {
    width: 14px;
    height: 14px;
}

/* ── Dropdown menu ── */
.gsh-mode-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100000;          /* beats sticky toolbar (350) + drawer (10030) */
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(15, 42, 70, 0.10);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 8px 28px rgba(12, 40, 70, 0.13),
        0 2px 8px rgba(12, 40, 70, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: gsh-menu-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gsh-menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gsh-mode-menu[hidden] {
    display: none;
}

/* ── Menu items ── */
.gsh-mode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gsh-mode-item:hover {
    background: #edf4ff;
}

.gsh-mode-item.is-active {
    background: rgba(26, 115, 255, 0.09);
    color: #1557d6;
}

.gsh-mode-item.is-active .gsh-mode-item__icon {
    color: var(--gsh-accent);
}

.gsh-mode-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gsh-chip);
    color: #5a708a;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.gsh-mode-item:hover .gsh-mode-item__icon {
    background: rgba(26, 115, 255, 0.10);
    color: var(--gsh-accent);
}

.gsh-mode-item__icon svg {
    width: 17px;
    height: 17px;
}

.gsh-mode-item__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gsh-mode-item__text b {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.gsh-mode-item__text small {
    font-weight: 500;
    font-size: 11px;
    color: #7b8fa6;
    line-height: 1.3;
}

/* ── Search panels (name / dates / cemetery) ── */
.gsh-search__panel {
    display: none;
    flex: 1;
    min-width: 0;
}

.gsh-search__panel.is-active {
    display: flex;
}

/* Override for input panels */
input.gsh-search__panel {
    display: none;
    flex: 1 1 auto;
}

input.gsh-search__panel.is-active {
    display: block;
}

/* ── Dates panel ── */
.gsh-dates-panel {
    align-items: center;
    gap: 6px;
}

/* Date input — full type=date with visible border and background */
.gsh-dates-panel__input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 36px;
    padding: 0 8px;
    border: 1.5px solid rgba(15, 42, 70, 0.16);
    border-radius: 10px;
    background: #f5f8fc;
    color: var(--gsh-deep);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
    cursor: pointer;
    transition: border-color 0.17s ease, box-shadow 0.17s ease, background 0.17s ease;
}

.gsh-dates-panel__input:hover {
    border-color: rgba(26, 115, 255, 0.30);
    background: #eef4ff;
}

.gsh-dates-panel__input:focus {
    border-color: rgba(26, 115, 255, 0.50);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 255, 0.12);
}

.gsh-dates-panel__input::-webkit-calendar-picker-indicator {
    display: none;
}

.gsh-dates-panel__input::placeholder {
    color: #8fa0b3;
    font-weight: 500;
}

.gsh-dates-panel__sep {
    color: #8fa0b3;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 14px; /* offset for label height */
}

/* ── Mobile adjustments ── */
@media (max-width: 560px) {
    .gsh-mode-btn {
        padding: 5px 8px 5px 6px;
    }

    .gsh-mode-btn__label {
        display: none;
    }

    .gsh-dates-panel__input {
        font-size: 14px;
    }
}

