:root {
    --gk-search-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --gk-search-focus: #0b5f9e;
}

.gk-topbar-name {
    display: none;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

.gk-topbar-name-line1,
.gk-topbar-name-line2 {
    display: inline-block;
    white-space: nowrap;
}

.gk-topbar-left,
.gk-topbar-actions { flex: 0 0 auto; }

@media (min-width: 1024px) {
    .gk-topbar-name { display: block; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .gk-topbar-name {
        font-size: 10px;
        line-height: 1.2;
        padding: 0 6px;
    }
}

.gk-search-trigger,
.gk-mobile-search-toggle,
.gk-search-close,
.gk-search-clear,
.gk-search-submit,
.gk-mobile-search-clear,
.gk-mobile-search-submit,
.gk-search-page-clear,
.gk-search-page-submit,
.gk-search-page-nav {
    -webkit-tap-highlight-color: transparent;
}

.gk-search-trigger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-section);
    color: var(--text);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--gk-search-ease);
}

.gk-search-trigger:active { transform: scale(0.97); }

.gk-search-trigger:focus-visible,
.gk-mobile-search-toggle:focus-visible,
.gk-search-close:focus-visible,
.gk-search-clear:focus-visible,
.gk-search-submit:focus-visible,
.gk-mobile-search-clear:focus-visible,
.gk-mobile-search-submit:focus-visible,
.gk-mobile-search-result:focus-visible,
.gk-mobile-search-more:focus-visible,
.gk-search-page-clear:focus-visible,
.gk-search-page-submit:focus-visible,
.gk-search-page-nav:focus-visible,
.gk-search-popular-link:focus-visible,
.gk-search-result:focus-visible,
.gk-search-more:focus-visible {
    outline: 3px solid var(--gk-search-focus) !important;
    outline-offset: 3px !important;
}

@media (hover: hover) and (pointer: fine) {
    .gk-search-trigger:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--primary);
    }

    .gk-mobile-search-toggle:hover,
    .gk-search-popular-link:hover,
    .gk-search-result:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
    }

    .gk-search-close:hover {
        border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
        background: var(--primary-soft);
        color: var(--primary);
        transform: translateY(-1px);
    }

    .gk-search-clear:hover,
    .gk-mobile-search-clear:hover,
    .gk-search-page-clear:hover {
        background: var(--primary-soft);
        color: var(--primary);
    }

    .gk-search-submit:hover,
    .gk-mobile-search-submit:hover,
    .gk-search-page-submit:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
}

body.gk-search-open { overflow: hidden; }

.gk-site-search {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(21, 34, 43, 0.52);
    color: var(--text);
    opacity: 0;
    transition: opacity 250ms var(--gk-search-ease);
    overscroll-behavior: contain;
}

.gk-site-search[open] { display: block; }
.gk-site-search::backdrop { background: transparent; }

.gk-site-search[data-state="open"] {
    opacity: 1;
}

.gk-site-search[data-state="closing"] {
    opacity: 0;
}

.gk-search-panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 24px 72px rgba(21, 34, 43, 0.24);
    opacity: 0;
    transform: translateY(-48px) scale(0.995);
    transform-origin: top center;
    transition: opacity 250ms var(--gk-search-ease), transform 250ms var(--gk-search-ease);
}

.gk-site-search[data-state="open"] .gk-search-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gk-site-search[data-state="closing"] .gk-search-panel {
    opacity: 0;
    transform: translateY(-48px) scale(0.995);
}

.gk-search-inner {
    width: min(100% - 40px, 1160px);
    margin: 0 auto;
    padding: 22px 0 30px;
}

.gk-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.gk-search-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gk-search-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 750;
    line-height: 1.2;
}

.gk-search-close {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 650;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--gk-search-ease);
}

.gk-search-close:active,
.gk-search-clear:active,
.gk-search-submit:active { transform: scale(0.97); }

.gk-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 8px 9px 8px 18px;
    border: 2px solid color-mix(in srgb, var(--primary) 55%, var(--border));
    border-radius: 16px;
    background: var(--bg-section);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.gk-search-box:focus-within {
    border-color: var(--gk-search-focus);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gk-search-focus) 17%, transparent);
    background: var(--bg);
}

.gk-search-box > svg { color: var(--primary); }

.gk-search-input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    outline: 0 !important;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 650;
    line-height: 1.25;
    -webkit-appearance: none;
    appearance: none;
}

.gk-search-input::-webkit-search-decoration,
.gk-search-input::-webkit-search-cancel-button,
.gk-search-input::-webkit-search-results-button,
.gk-search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.gk-search-input::placeholder { color: var(--text-secondary); opacity: 0.75; }
.gk-search-input[aria-invalid="true"]::placeholder { color: #a61b27; opacity: 1; }

/* Error state is shown by the red placeholder and the status text;
   the global `form [aria-invalid="true"]` ring from layout-fixes.css
   must not paint a box around the borderless input itself. */
.gk-search-form .gk-search-input[aria-invalid="true"],
.gk-mobile-search-form .gk-mobile-search-input[aria-invalid="true"],
.gk-search-page-form .gk-search-page-input[aria-invalid="true"] {
    border: 0;
    box-shadow: none !important;
}

.gk-search-clear {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--gk-search-ease);
}

.gk-search-clear[hidden] { display: none !important; }

.gk-search-submit {
    min-height: 48px;
    padding: 10px 21px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    transition: background-color 150ms ease, transform 150ms var(--gk-search-ease);
}

.gk-search-meta {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 2px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.gk-search-meta p { margin: 0; }
.gk-search-shortcut { flex: 0 0 auto; }
.gk-search-meta kbd {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-section);
    padding: 2px 6px;
    font: inherit;
    font-size: 11px;
}

.gk-search-content { padding-top: 20px; }
.gk-search-section-title {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gk-search-popular { display: flex; flex-wrap: wrap; gap: 9px; }
.gk-search-popular-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-section);
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gk-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gk-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: start;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-section);
    color: var(--text);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--gk-search-ease);
}

.gk-search-result:active { transform: scale(0.99); }
.gk-search-result-title { min-width: 0; font-size: 16px; font-weight: 750; line-height: 1.3; }
.gk-search-result-type {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gk-search-result-text { grid-column: 1 / -1; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }

.gk-site-search .gk-search-result {
    gap: 5px 13px;
    padding: 11px 13px;
}

.gk-site-search .gk-search-result-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-site-search .gk-search-result-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-search-results.is-leaving,
.gk-mobile-search-results.is-leaving,
.gk-search-page-results.is-leaving {
    opacity: 0.25;
    transform: translateY(-4px);
}

.gk-search-results.is-entering,
.gk-mobile-search-results.is-entering,
.gk-search-page-results.is-entering {
    opacity: 0;
    transform: translateY(6px);
}

.gk-search-results,
.gk-mobile-search-results,
.gk-search-page-results {
    transition: opacity 180ms var(--gk-search-ease), transform 180ms var(--gk-search-ease);
}

.gk-search-more,
.gk-mobile-search-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 38px;
    border: 1px dashed color-mix(in srgb, var(--primary) 48%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-soft) 58%, transparent);
    color: var(--primary);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--gk-search-ease);
}

.gk-search-more { grid-column: 1 / -1; }
.gk-search-more:active,
.gk-mobile-search-more:active { transform: scale(0.99); }

.gk-search-more-dots { display: inline-flex; align-items: center; gap: 5px; }
.gk-search-more-dots i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
}
.gk-search-more-dots i:nth-child(2) { opacity: 0.7; }
.gk-search-more-dots i:nth-child(3) { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
    .gk-search-more:hover,
    .gk-mobile-search-more:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        transform: translateY(-1px);
    }
}

.gk-search-empty {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin: 0;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-section);
    color: var(--text);
}

.gk-search-empty-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}
.gk-search-empty.is-error .gk-search-empty-icon { background: #fff0f1; color: #a61b27; }
.gk-search-empty strong { display: block; margin: 1px 0 3px; font-size: 15px; }
.gk-search-empty p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

.gk-search-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Inline search belongs to the existing mobile navigation, not to a modal. */
.gk-mobile-search { display: none; margin: 0 0 12px; }

.gk-mobile-search-toggle {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg-section);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, border-radius 200ms var(--gk-search-ease), transform 150ms var(--gk-search-ease);
}

.gk-mobile-search-toggle > svg:first-child { color: var(--primary); }
.gk-mobile-search-toggle > span { flex: 1; }
.gk-mobile-search-toggle:active { transform: scale(0.99); }
.gk-mobile-search-chevron {
    color: var(--text-secondary);
    transition: transform 200ms var(--gk-search-ease);
}

.gk-mobile-search.is-open .gk-mobile-search-toggle {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    border-radius: 13px 13px 8px 8px;
    background: var(--primary-soft);
}
.gk-mobile-search.is-open .gk-mobile-search-chevron { transform: rotate(180deg); }

.gk-mobile-search-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px);
    transform-origin: top center;
    transition: grid-template-rows 220ms var(--gk-search-ease), opacity 180ms ease, transform 220ms var(--gk-search-ease), visibility 0s linear 220ms;
}

.gk-mobile-search.is-open .gk-mobile-search-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.gk-mobile-search-panel-inner {
    min-height: 0;
    overflow: hidden;
    padding: 10px 2px 2px;
}

.gk-mobile-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
    min-height: 54px;
    padding: 6px 7px 6px 13px;
    border: 2px solid color-mix(in srgb, var(--primary) 45%, var(--border));
    border-radius: 13px;
    background: var(--bg);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.gk-mobile-search-box:focus-within {
    border-color: var(--gk-search-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-search-focus) 15%, transparent);
}
.gk-mobile-search-box > svg { color: var(--primary); }

.gk-mobile-search-input,
.gk-search-page-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0 !important;
    background: transparent;
    color: var(--text);
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.gk-mobile-search-input { padding: 9px 0; font-size: 16px; font-weight: 650; }
.gk-mobile-search-input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }

.gk-mobile-search-clear,
.gk-search-page-clear {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    transition: background-color 150ms ease, color 150ms ease, transform 150ms var(--gk-search-ease);
}

.gk-mobile-search-submit,
.gk-search-page-submit {
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: background-color 150ms ease, transform 150ms var(--gk-search-ease);
}
.gk-mobile-search-clear:active,
.gk-mobile-search-submit:active,
.gk-search-page-clear:active,
.gk-search-page-submit:active { transform: scale(0.97); }

.gk-mobile-search-status {
    min-height: 28px;
    margin: 0;
    padding: 7px 2px 4px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.gk-mobile-search-results { display: grid; gap: 6px; }
.gk-mobile-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-section);
    color: var(--text);
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms var(--gk-search-ease);
}
.gk-mobile-search-result:active { transform: scale(0.99); }
.gk-mobile-search-result-title {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gk-mobile-search-result-type {
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gk-mobile-search-more { width: 100%; min-height: 34px; }

/* Full results page: a browser-like search bar inside the site's own visual system. */
.gk-search-page {
    min-height: 58vh;
    padding: clamp(28px, 5vw, 64px) 16px clamp(56px, 8vw, 96px);
    background: linear-gradient(180deg, var(--bg-section) 0, var(--bg) 280px);
}
.gk-search-page-inner { width: min(100%, 1120px); margin: 0 auto; }
.gk-search-page-kicker {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gk-search-page h1 {
    margin: 0 0 24px;
    color: var(--text);
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.gk-search-page-bar {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg);
    box-shadow: 0 14px 42px rgba(21, 34, 43, 0.1);
}
.gk-search-page-nav {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-section);
    color: var(--text-secondary);
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms var(--gk-search-ease);
}
.gk-search-page-nav:active { transform: scale(0.97); }
.gk-search-page-form { min-width: 0; }
.gk-search-page-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    min-height: 52px;
    padding: 5px 6px 5px 15px;
    border: 2px solid color-mix(in srgb, var(--primary) 48%, var(--border));
    border-radius: 13px;
    background: var(--bg-section);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.gk-search-page-box:focus-within {
    border-color: var(--gk-search-focus);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gk-search-focus) 15%, transparent);
    background: var(--bg);
}
.gk-search-page-box > svg { color: var(--primary); }
.gk-search-page-input { padding: 10px 0; font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; }
.gk-search-page-submit { min-height: 42px; padding-inline: 19px; font-size: 14px; }
.gk-search-page-status { min-height: 42px; margin: 0; padding: 14px 4px 8px; color: var(--text-secondary); font-size: 14px; }
.gk-search-page-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gk-search-page-results .gk-search-empty { grid-column: 1 / -1; }

@media (hover: hover) and (pointer: fine) {
    .gk-mobile-search-result:hover { border-color: var(--primary); background: var(--primary-soft); }
    .gk-search-page-nav:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); transform: translateY(-1px); }
}

[hidden] { display: none !important; }

@media (max-width: 1279px) {
    .gk-search-trigger { display: none; }
    .gk-mobile-search { display: block; }
}

@media (max-width: 767px) {
    .gk-search-inner { width: min(100% - 24px, 1160px); padding: 15px 0 22px; }
    .gk-search-header { margin-bottom: 14px; }
    .gk-search-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .gk-search-close { width: 44px; padding: 8px; }
    .gk-search-box { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 60px; padding: 7px 8px 7px 14px; border-radius: 14px; }
    .gk-search-box > svg { width: 21px; height: 21px; }
    .gk-search-input { font-size: 18px; padding: 9px 0; }
    .gk-search-submit { grid-column: 1 / -1; width: 100%; min-height: 46px; }
    .gk-search-meta { align-items: flex-start; padding-top: 8px; line-height: 1.4; }
    .gk-search-shortcut { display: none; }
    .gk-search-results { grid-template-columns: minmax(0, 1fr); }
    .gk-site-search[data-state="closing"] .gk-search-panel { transform: translateY(-28px); }
    .gk-search-page { padding-inline: 12px; }
    .gk-search-page h1 { margin-bottom: 18px; }
    .gk-search-page-bar { grid-template-columns: auto auto minmax(0, 1fr); gap: 5px; padding: 6px; border-radius: 15px; }
    .gk-search-page-nav { width: 40px; height: 40px; }
    .gk-search-page-form { grid-column: 1 / -1; }
    .gk-search-page-box { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 12px; }
    .gk-search-page-submit { grid-column: 1 / -1; width: 100%; }
    .gk-search-page-results { grid-template-columns: minmax(0, 1fr); }
}

body.bvi-active .gk-site-search {
    --gk-search-focus: #ffbf47;
    color: var(--bvi-text) !important;
}
body.bvi-active .gk-search-panel,
body.bvi-active .gk-search-box,
body.bvi-active .gk-search-result,
body.bvi-active .gk-search-empty,
body.bvi-active .gk-search-popular-link,
body.bvi-active .gk-search-close,
body.bvi-active .gk-mobile-search-toggle,
body.bvi-active .gk-mobile-search-box,
body.bvi-active .gk-mobile-search-result,
body.bvi-active .gk-search-page,
body.bvi-active .gk-search-page-bar,
body.bvi-active .gk-search-page-box,
body.bvi-active .gk-search-page-nav {
    color: var(--bvi-text) !important;
    background: var(--bvi-bg) !important;
    border-color: var(--bvi-border) !important;
}
body.bvi-active .gk-search-input { color: var(--bvi-text) !important; background: transparent !important; border: 0 !important; }
body.bvi-active .gk-mobile-search-input,
body.bvi-active .gk-search-page-input { color: var(--bvi-text) !important; background: transparent !important; border: 0 !important; }
body.bvi-active .gk-search-submit,
body.bvi-active .gk-mobile-search-submit,
body.bvi-active .gk-search-page-submit { color: var(--bvi-bg) !important; background: var(--bvi-text) !important; border: 2px solid var(--bvi-text) !important; }

@media (prefers-reduced-motion: reduce) {
    .gk-site-search { transition-duration: 1ms; }
    .gk-search-panel { transform: none !important; transition-duration: 1ms !important; }
    .gk-search-trigger,
    .gk-mobile-search-toggle,
    .gk-mobile-search-panel,
    .gk-mobile-search-chevron,
    .gk-search-close,
    .gk-search-clear,
    .gk-search-submit,
    .gk-search-result,
    .gk-mobile-search-results,
    .gk-search-page-results,
    .gk-search-more,
    .gk-mobile-search-more,
    .gk-search-page-nav { transition: none; }
}


/* Поисковый ввод остаётся плоским в любом состоянии: без рамок, колец и обводок
   (глобальный ring `form [aria-invalid="true"]` из layout-fixes.css сюда не применяется). */
form .gk-search-input[aria-invalid="true"],
form .gk-mobile-search-input[aria-invalid="true"],
form .gk-search-page-input[aria-invalid="true"] {
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
}
.gk-search-input,
.gk-mobile-search-input,
.gk-search-page-input,
.gk-search-input:focus,
.gk-mobile-search-input:focus,
.gk-search-page-input:focus,
.gk-search-input:focus-visible,
.gk-mobile-search-input:focus-visible,
.gk-search-page-input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
