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

.header-search {
    display: flex;
    width: clamp(172px, 18vw, 236px);
    min-width: 0;
    height: 40px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 100, 255, .12);
}

.header-search input {
    min-width: 0;
    flex: 1;
    align-self: stretch;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 0 4px 0 14px;
    font-size: .84rem;
}

.header-search input::placeholder {
    color: #8792a5;
}

.header-search button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #4f5d73;
}

.header-search button:hover {
    background: var(--surface-2);
    color: var(--accent);
}

.header-search svg {
    width: 18px;
    height: 18px;
}

.search-page-header p:last-of-type {
    max-width: 760px;
}

.search-page-form {
    max-width: 760px;
    margin-top: 24px;
}

.search-page-field {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-page-field input {
    min-width: 0;
    min-height: 52px;
    flex: 1;
    border: 1px solid #cbd4e1;
    border-radius: 999px;
    background: white;
    color: var(--text);
    padding: 10px 20px;
    outline: none;
}

.search-page-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 100, 255, .12);
}

.search-results-section {
    min-height: 380px;
}

.search-result-heading {
    align-items: start;
}

.search-result-heading h2 {
    overflow-wrap: anywhere;
}

.search-result-count {
    margin: 8px 0 0;
    color: var(--muted);
}

@media (max-width: 1080px) {
    .main-nav {
        gap: 12px;
    }

    .header-search {
        width: 176px;
    }
}

@media (max-width: 860px) {
    .header-search {
        width: 144px;
    }

    .header-search input {
        padding-left: 11px;
        font-size: .78rem;
    }
}

@media (max-width: 720px) {
    .header-inner {
        gap: 10px;
    }

    .main-nav {
        gap: 6px;
    }

    .main-nav form.header-search {
        display: flex;
        width: 40px;
        flex: 0 0 40px;
    }

    .header-search input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav .button-small {
        padding-inline: 10px;
        font-size: .8rem;
    }

    .search-page-field {
        align-items: stretch;
    }

    .search-page-field .button {
        min-height: 48px;
        padding-inline: 18px;
    }
}

@media (max-width: 380px) {
    .main-nav .button-secondary {
        display: none;
    }
}
