/* Site search overlay + header search icon. Reference tokens (INVENTORY section 8); layout never depends on motion. */
.site-header .search-toggle { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; margin: 0; border: 1px solid var(--line); border-radius: .65rem; color: var(--forest, #174b33); background: white; order: 0; transition: background .2s, border-color .2s; }
.site-header .search-toggle:hover { background: var(--pale); }
.site-header .search-toggle svg { width: 22px; height: 22px; }
@media (min-width: 1201px) {
  /* Out of flow, so the rest of the header keeps its reference position: sits just left of "Konsultasi". */
  .site-header .header-inner { position: relative; }
  .site-header .search-toggle { position: absolute; right: 7.9rem; top: calc(50% - 1.375rem); /* no transform: the hero intro tweens y on this element and its clearProps would drop a CSS translate */ }
}
@media (max-width: 1050px) {
  /* header order: brand, Konsultasi, search, menu toggle */
  .site-header .header-consult { order: 2; margin-left: auto; }
  .site-header .search-toggle { order: 3; }
  .site-header .menu-toggle:not(.search-toggle) { order: 4; margin-left: 0; }
}
@media (max-width: 580px) {
  .site-header .header-inner { gap: .4rem; }
  .site-header .search-toggle, .site-header .menu-toggle { width: 2.5rem; height: 2.5rem; }
  .site-header .header-consult { padding-inline: .65rem; }
}

.search-overlay { position: fixed; inset: 0; z-index: 1000; background: #f7f9f5; color: var(--ink, #202e26); font-family: Inter, Arial, sans-serif;
  opacity: 0; transform: translateY(-14px); transition: opacity .45s cubic-bezier(.455, .03, .515, .955), transform .45s cubic-bezier(.455, .03, .515, .955); overscroll-behavior: contain; }
.search-overlay.is-open { opacity: 1; transform: none; }
.search-overlay[hidden] { display: none; }
.search-shell { height: 100%; display: flex; flex-direction: column; }
.search-top { display: flex; align-items: center; gap: 12px; padding-top: 22px; padding-bottom: 14px; }
.search-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--green, #215b3e); padding: 6px 2px 10px; margin: 0; }
.search-bar svg { width: 26px; height: 26px; flex: none; color: var(--green, #215b3e); }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; color: var(--forest, #174b33); padding: 4px 0; -webkit-appearance: none; appearance: none; }
.search-bar input::placeholder { color: #8a9a8f; font-weight: 500; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-close { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line, #d6e1d8); border-radius: .65rem; background: white; color: var(--forest, #174b33); }
.search-close:hover { background: var(--pale, #eff5ed); }
.search-close svg { width: 22px; height: 22px; }
.search-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 48px; }
.search-top, .search-body { width: min(920px, calc(100% - 36px)); }
.search-status { margin: 18px 0 6px; font-size: 14px; color: var(--muted, #516156); }
.search-group { margin-top: 22px; }
.search-group h2 { margin: 0 0 8px; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green, #215b3e); }
.search-result { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; color: inherit; text-decoration: none; }
.search-result:not(:has(.search-thumb)) { grid-template-columns: 1fr; }
.search-result:hover, .search-result.is-active { background: white; border-color: var(--line, #d6e1d8); }
.search-result.is-active { outline: 2px solid var(--orange, #f59b45); outline-offset: -2px; }
.search-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--pale, #eff5ed); border: 1px solid var(--line, #d6e1d8); }
.search-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--forest, #174b33); line-height: 1.3; }
.search-excerpt { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--muted, #516156); overflow-wrap: anywhere; }
.search-result mark { background: var(--soft-orange, #fff3e7); color: var(--action-ink, #31261b); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 #ffd39c; }
.search-hint { margin: 28px 0 0; font-size: 12px; color: var(--muted, #516156); }
.search-hint kbd { font: inherit; font-weight: 600; border: 1px solid var(--line, #d6e1d8); border-radius: 5px; padding: 0 6px; margin-right: 6px; background: white; }
@media (max-width: 580px) { .search-hint { display: none; } .search-thumb { width: 52px; height: 52px; } .search-result { gap: 12px; padding: 10px 8px; } }
@media (prefers-reduced-motion: reduce) { .search-overlay { transition: none; transform: none; } }
@media (max-width: 350px) {
  /* 320px phones: brand + Konsultasi + search + menu overflowed the header by 16px */
  .site-header .header-inner { gap: .25rem; }
  .site-header .header-consult { padding-inline: .5rem; }
  .site-header .search-toggle, .site-header .menu-toggle { width: 2.25rem; height: 2.25rem; }
  .site-header .brand { min-width: 0; max-width: 108px; }
}
