.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1rem 2rem;
  letter-spacing: normal;
  z-index: 30;
}
.site-header .header-left { flex: 1 1 auto; min-width: 0; }
.site-header .logo { color: #fff; text-decoration: none; font-size: 1.9rem; letter-spacing: 1px; }
.site-header .subtitle { display: block; margin: 0.2rem 0 0; font-size: 0.85rem; letter-spacing: normal; }
.site-header > .header-right { flex-wrap: wrap; gap: 0.2rem; }
.site-header .header-right .category-link { padding: 0.4rem 0.65rem; white-space: nowrap; }
.site-header .header-right [aria-current="page"] { background: #b9152c; }
.site-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-search { flex: 0 1 260px; min-width: 0; position: relative; margin: 0; font-size: 1rem; font-weight: 400; }
.site-search-control { position: relative; }
.site-search input {
  box-sizing: border-box; width: 100%; min-height: 44px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: 9px;
  padding: 0.65rem 3.1rem 0.65rem 0.85rem;
  background: #fff; color: #002244; font: inherit;
}
.site-search input:focus { outline: 3px solid #ffccd4; outline-offset: 2px; }
.site-search button {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 3px; right: 3px; width: 38px; height: 38px;
  padding: 8px; margin: 0; border-radius: 7px;
  background: #fff; color: #b9152c;
}
.site-search button:hover { background: #fff0f3; }
.site-search svg, .site-mobile-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-search-panel {
  box-sizing: border-box; position: absolute; top: calc(100% + 8px); right: 0;
  width: max(100%, 300px); max-width: calc(100vw - 32px);
  padding: 0.6rem; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; color: #002244; box-shadow: 0 10px 30px rgba(0,0,0,0.18); z-index: 50;
}
.site-search-panel p { margin: 0; padding: 0.4rem 0.5rem 0.65rem; font-size: 0.85rem; color: #64748b; }
.site-search-panel ul { list-style: none; margin: 0; padding: 0; max-height: min(360px, 55vh); overflow-y: auto; }
.site-search-panel a { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 6px; color: #002244; text-decoration: none; }
.site-search-panel a img { display: block; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.site-search-panel a span { min-width: 0; overflow-wrap: anywhere; }
.site-search-panel a:hover, .site-search-panel a:focus-visible { background: #fff0f3; color: #b9152c; }
.site-search-panel[hidden], .site-search-panel li[hidden] { display: none !important; }
.site-mobile-menu { display: none; position: relative; font-size: 1rem; font-weight: 500; }
.site-mobile-menu summary {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  box-sizing: border-box; min-width: 44px; min-height: 44px;
  padding: 0.5rem; border: 1px solid rgba(255,255,255,0.5); border-radius: 8px;
  cursor: pointer; list-style: none;
}
.site-mobile-menu summary::-webkit-details-marker { display: none; }
.site-mobile-menu[open] summary { background: #b9152c; }
.site-mobile-menu nav {
  box-sizing: border-box; position: absolute; top: calc(100% + 10px); right: 0;
  width: min(290px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
  padding: 0.6rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18); z-index: 60;
}
.site-mobile-menu nav a { display: block; padding: 0.8rem; border-radius: 6px; color: #002244; text-decoration: none; }
.site-mobile-menu nav a:hover, .site-mobile-menu nav a[aria-current="page"] { background: #fff0f3; color: #b9152c; }
.site-header a:focus-visible, .site-header summary:focus-visible, .site-header button:focus-visible { outline: 3px solid #ffacbb; outline-offset: 2px; }
@media (max-width: 1150px) {
  .site-header .site-search { flex: 1 0 100%; order: 3; }
  .site-search-panel { width: 100%; }
}
@media (max-width: 760px) {
  .site-header { padding: 0.85rem 1rem; gap: 0.85rem; }
  .site-header .header-left { flex: 1 1 0; }
  .site-header .logo { font-size: 1.6rem; }
  .site-header .subtitle { font-size: 0.75rem; }
  .site-header > .header-right { display: none !important; }
  .site-header .site-mobile-menu { display: block; }
  .site-header .site-search { order: 3; }
}
