/* Header search (C3, UX spec FINAL v1 + Final 8:47 PM Oct 16 2026). Loaded by the shared/menu.js hook. Never yellow; marks are bold only. */
html.hs-ready .header-search-bar{display:none;position:absolute;top:100%;left:0;right:0;background:#1a1a1a;padding:12px 16px;border-top:1px solid rgba(255,255,255,.15);z-index:100;box-sizing:border-box;font-family:"Libre Franklin",system-ui,sans-serif}
html.hs-ready .header-search-bar.open{display:block}
.hs-bar .search-wrap{position:relative;max-width:600px;margin:0 auto}
.hs-top{display:flex;align-items:center;gap:8px}
.hs-bar input{flex:1 1 auto;min-width:0;width:100%;box-sizing:border-box;padding:12px 16px;font-size:1rem;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-family:inherit}
.hs-bar input::placeholder{color:rgba(255,255,255,.62)}
.hs-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hs-close{display:none;flex:0 0 44px;width:44px;height:44px;align-items:center;justify-content:center;background:transparent;border:1px solid rgba(255,255,255,.42);color:#fff;cursor:pointer;position:relative}
.hs-close-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hs-close:focus-visible .hs-close-l{position:static;width:auto;height:auto;clip:auto;margin-left:4px;font-size:.8rem}
.hs-close:focus-visible{width:auto;padding:0 8px}
.hs-list{position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:calc(100vh - 160px);overflow:auto;background:var(--paper,#fff);color:var(--ink,#1d1d1b);border:1px solid var(--line,#d9d4c7);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.18);padding:6px 0;animation:hs-fade .12s ease-out;text-align:left}
.hs-list[hidden]{display:none}
@keyframes hs-fade{from{opacity:0}to{opacity:1}}
.hs-gh{font-size:14px;font-weight:600;color:#5b5a55;padding:10px 16px 4px}
.hs-row{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 16px;color:inherit;text-decoration:none;box-sizing:border-box}
.hs-row.hs-g{min-height:64px}
.hs-row.hs-act,.hs-row:hover{background:rgba(31,117,86,.08);box-shadow:inset 4px 0 0 #1F7556}
.hs-th{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:0 0 56px;background:#ece8de}
.hs-ic{width:36px;height:36px;flex:0 0 36px;border-radius:8px;background:rgba(31,117,86,.12);color:#1F7556;display:inline-flex;align-items:center;justify-content:center}
.hs-tx{display:flex;flex-direction:column;min-width:0}
.hs-t{font-size:16px;font-weight:600;line-height:1.3}
.hs-m{font-size:14px;color:#5b5a55;line-height:1.35}
.hs-t mark,.hs-pg mark{font-weight:700;background:transparent;color:inherit}
.hs-all{min-height:48px;color:#1F7556;font-weight:600;justify-content:space-between;border-top:1px solid var(--line,#e6e1d4);margin-top:4px}
.hs-note{padding:12px 16px;font-size:15px}
.hs-note a{color:#1F7556;font-weight:600}
.hs-retry{margin-left:8px;min-height:44px;padding:0 14px;border:1px solid #1F7556;background:transparent;color:#1F7556;border-radius:8px;font:inherit;cursor:pointer}
.hs-empty{margin:4px 12px}
html.hs-lock,html.hs-lock body{overflow:hidden}
@media (max-width:767px){
  html.hs-ready .header-search-bar.hs-sheet{position:fixed;inset:0;top:0;z-index:1000;padding:calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(12px + env(safe-area-inset-left));border-top:0;overflow:hidden;display:flex;flex-direction:column}
  .hs-sheet .search-wrap{max-width:none;width:100%;display:flex;flex-direction:column;height:100%}
  .hs-sheet input{height:48px;font-size:16px}
  .hs-sheet .hs-close{display:inline-flex}
  .hs-sheet .hs-list{position:static;flex:1 1 auto;max-height:none;margin-top:10px;border-radius:12px 12px 0 0;animation:none}
  .hs-row{min-height:48px}
}
@media (prefers-color-scheme:dark){
  .hs-list{background:var(--paper,#16181a);color:var(--ink,#ecebe6);border-color:rgba(255,255,255,.14)}
  .hs-gh,.hs-m{color:#b4b1a8}
  .hs-row.hs-act,.hs-row:hover{background:rgba(94,214,176,.14);box-shadow:inset 4px 0 0 #6fe0bd}
  .hs-ic{background:rgba(94,214,176,.18);color:#6fe0bd}
  .hs-all,.hs-note a{color:#6fe0bd}
  .hs-retry{border-color:#6fe0bd;color:#6fe0bd}
}
@media (prefers-reduced-motion:reduce){.hs-list{animation:none}.hs-list,.hs-sheet{scroll-behavior:auto}}
