/* Site search — suggestions dropdown + search results page */

.sat-search-highlight,
mark.sat-search-highlight {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-weight: 600;
    padding: 0;
}

.sat-search-form {
    position: relative;
}

.navbar-mobile-search.sat-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.navbar-mobile-search .sat-search-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.navbar-mobile-search .sat-search-input-row input {
    flex: 1;
    min-width: 0;
}

.sat-search-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.sat-search-form .sat-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 10050;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: min(52vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sat-search-wrap--mobile .sat-search-suggest {
    top: auto;
    bottom: calc(100% + 6px);
    max-height: min(42vh, 300px);
}

.sat-search-suggest.is-open {
    display: block;
}

.sat-search-suggest[hidden] {
    display: none !important;
}

.sat-search-suggest__status {
    padding: 12px 14px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #e5e5e5;
}

.sat-search-suggest__status:last-child {
    border-bottom: none;
}

.sat-search-suggest__group + .sat-search-suggest__group {
    border-top: 1px solid #e5e5e5;
}

.sat-search-suggest__group-label {
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.sat-search-suggest__item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #000;
    border-top: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.sat-search-suggest__item:first-of-type {
    border-top: none;
}

.sat-search-suggest__item:hover,
.sat-search-suggest__item.is-active {
    background: #f5f5f5;
}

.sat-search-suggest__item-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 2px;
}

.sat-search-suggest__item-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.sat-search-suggest__item-meta {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #555;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sat-search-suggest__footer {
    border-top: 3px solid #000;
    padding: 0;
}

.sat-search-suggest__view-all {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    text-align: center;
    transition: background 0.15s ease;
}

.sat-search-suggest__view-all:hover,
.sat-search-suggest__view-all.is-active {
    background: #000;
    color: #fff;
}

#desktop-search-form.sat-search-form {
    overflow: visible;
}

#desktop-search-form .sat-search-suggest {
    top: calc(100% + 2px);
    left: 10px;
    right: 10px;
    width: auto;
}

/* Search results page */
.sat-search-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.sat-search-page__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.sat-search-page__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sat-search-page__query,
.sat-search-page__meta {
    color: #444;
    margin-bottom: 1rem;
}

.sat-search-page__empty {
    padding: 2rem 0;
    border-top: 3px solid #000;
}

.sat-search-page__empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sat-search-page__group {
    border-top: 3px solid #000;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.sat-search-page__group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.sat-search-page__group-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.sat-search-page__group-count {
    font-size: 0.875rem;
    color: #666;
}

.sat-search-page__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: inherit;
}

.sat-search-page__item:hover {
    background: #fafafa;
}

.sat-search-page__item-type {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #666;
    min-width: 5rem;
}

.sat-search-page__item-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sat-search-page__item-path,
.sat-search-page__item-excerpt {
    display: block;
    font-size: 0.9rem;
    color: #555;
}

.sat-search-page__item-arrow {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
}
