main.search-main {
    justify-content: flex-start;
    padding-block-end: clamp(2rem, 5vw, 4rem);
}
.search-form {
    max-width: 32rem;
    margin-top: 1.25rem;
}
.search-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.375rem;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
}
.search-controls {
    display: flex;
}
.search-controls input[type="search"], .search-controls button {
    min-height: 3rem;
    border: 1px solid var(--navy);
    border-radius: 0;
    font: inherit;
}
.search-controls input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.875rem;
    background: #fff;
    color: var(--ink);
}
.search-controls button {
    padding: 0.5rem clamp(1rem, 3vw, 1.75rem);
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.search-controls button:hover { background: #17384f; }
.search-controls :focus-visible {
    position: relative;
    outline: 3px solid var(--red);
    outline-offset: 2px;
}
.search-help {
    margin-block: 0.75rem;
    font-size: 0.875rem;
}
.search-help a, .search-footer a {
    text-decoration: underline;
    text-underline-offset: 0.22em;
}
.search-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #fbfaf6;
}
.search-index li + li { border-inline-start: 1px solid var(--rule); }
.search-index .index-link {
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 3.75rem;
    padding: 0.75rem clamp(1rem, 2vw, 1.5rem);
    font-size: 1rem;
}
.search-index .index-link:hover { background: #f4f2e9; }
.search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    font-size: 0.875rem;
}
.search-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
@media (max-width: 48rem) {
    .search-index { grid-template-columns: 1fr; }
    .search-index li + li { border-inline-start: 0; }
    .search-index .index-link { min-height: 3rem; }
}
