.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 252, 247, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(32, 50, 70, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.site-header.is-condensed .brand-row {
  padding: 0.72rem 0;
}

.site-header.is-condensed {
  box-shadow: 0 12px 30px rgba(23, 37, 56, 0.08);
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

.brand-row {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.92rem;
  transition: padding 0.18s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 48px;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-utility {
  display: none;
  align-items: center;
  gap: 1rem;
  margin-right: 0.35rem;
}

.header-utility a {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.icon-button--ghost,
.nav-toggle,
.mobile-drawer__close,
.search-panel__close {
  inline-size: 42px;
  block-size: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(47, 86, 120, 0.12);
  background: transparent;
  color: var(--brand-primary);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.icon-button--ghost:hover,
.icon-button--ghost:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible,
.mobile-drawer__close:hover,
.mobile-drawer__close:focus-visible,
.search-panel__close:hover,
.search-panel__close:focus-visible {
  background: rgba(47, 86, 120, 0.08);
}

.nav-shell {
  position: relative;
  z-index: 121;
  background: #2f5678;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-shell__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.search-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--site-header-offset, 98px);
  z-index: 119;
  background: rgba(255, 252, 247, 0.98);
  border-top: 1px solid rgba(47, 86, 120, 0.12);
  box-shadow: 0 18px 42px rgba(23, 37, 56, 0.1);
}

.search-panel[hidden] {
  display: none;
}

.search-panel__inner {
  padding-top: 1.25rem;
  padding-bottom: 1.35rem;
}

.search-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-panel__header h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.search-panel__form input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(47, 86, 120, 0.18);
  background: #fff;
  padding: 0 1rem;
  font-size: 1rem;
}

.search-panel__results {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.search-panel__results .post-card {
  grid-template-columns: 110px 1fr;
}

.search-panel__results .post-card__thumb {
  aspect-ratio: 4 / 3;
}

.search-panel__empty {
  color: var(--text-secondary);
  padding: 0.35rem 0 0.2rem;
}
