/* Header search and native search results share the site's visual tokens. */
.nikko-header-search { position: relative; z-index: 10002; display: block; flex: 0 0 44px; width: 44px; min-width: 44px; }
.nikko-header-search[hidden] { display: none; }
.nikko-header-search > summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--nikko-brand-border); border-radius: 50%; background: var(--nikko-surface); color: var(--nikko-brand-wine); list-style: none; cursor: pointer; }
.nikko-header-search > summary::-webkit-details-marker { display: none; }
.nikko-header-search > summary svg { display: block; width: 21px; height: 21px; }
.nikko-header-search > summary:is(:hover, :focus-visible), .nikko-header-search[open] > summary { border-color: var(--nikko-brand-wine); background: var(--nikko-brand-wine-soft); color: var(--nikko-brand-wine-dark); }
.nikko-header-search__panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(480px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--nikko-brand-border); border-radius: var(--nikko-radius-md); background: var(--nikko-surface); color: var(--nikko-brand-ink); box-shadow: var(--nikko-shadow-md); font: 14px/1.5 var(--nikko-font-sans); }
.nikko-header-search__panel > p { margin: 10px 0 0; color: var(--nikko-brand-muted); font-size: 12px; }
.nikko-search-form { width: 100%; margin: 0; }
.nikko-search-form label { display: block; margin-bottom: 8px; color: var(--nikko-brand-ink); font-size: 14px; font-weight: 700; }
.nikko-search-form__fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.nikko-search-form input[type='search'] { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--nikko-brand-border-strong); border-radius: var(--nikko-radius-sm); background: var(--nikko-surface); color: var(--nikko-brand-ink); font: 14px/1.4 var(--nikko-font-sans); }
.nikko-search-form input::placeholder { color: var(--nikko-brand-muted); opacity: 1; }
.nikko-search-form button { min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--nikko-action-radius); background: var(--nikko-brand-wine); color: var(--nikko-brand-paper); font: 700 14px/1.4 var(--nikko-font-sans); cursor: pointer; }
.nikko-search-form button:is(:hover, :focus-visible) { background: var(--nikko-brand-wine-dark); color: var(--nikko-brand-paper); }
.nikko-header-search :focus-visible, .nikko-search-form :focus-visible { outline: 2px solid var(--nikko-brand-wine); outline-offset: 3px; }
.nikko-search-results__header { padding: clamp(36px, 6vw, 70px) 0 30px; }
.nikko-search-results__header h1 { margin: 12px 0; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.nikko-search-results__header > p:not(.nikko-tax-archive__eyebrow) { color: var(--nikko-brand-muted); }
.nikko-search-results__header .nikko-search-form { max-width: 820px; margin-top: 24px; padding: 20px; border: 1px solid var(--nikko-brand-border); border-radius: var(--nikko-radius-md); background: var(--nikko-surface); }
.nikko-search-results__count { margin: 0 0 18px; color: var(--nikko-brand-muted); font-size: 14px; }
.nikko-search-results__empty { padding: 32px; border: 1px solid var(--nikko-brand-border); border-radius: var(--nikko-radius-md); background: var(--nikko-surface); }
.nikko-search-results__empty h2 { margin-top: 0; font-size: 24px; }
.nikko-search-results__empty > div { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.nikko-search-results__empty a { color: var(--nikko-brand-wine); text-underline-offset: 3px; }
@media (min-width: 1025px) and (max-width: 1200px) {
    #masthead .top-menu-header { --nikko-menu-font-size: var(--nikko-text-small); --nikko-menu-link-padding: 8px; --nikko-action-label: var(--nikko-text-small); --nikko-action-padding: 8px 12px; }
    #masthead .site-logo-img img { max-height: 44px; }
}
@media (max-width: 480px) {
    .nikko-header-search__panel { padding: 16px; }
    .nikko-search-form__fields { gap: 8px; }
    .nikko-search-form button { padding-inline: 14px; }
    .nikko-search-form input[type='search'] { padding-inline: 10px; font-size: 16px; }
    .nikko-search-results__header .nikko-search-form { padding: 16px; }
    .nikko-search-results__empty { padding: 22px; }
}
@media print {
    .nikko-header-search { display: none !important; }
}
