/* Compact shared header. This file follows the older site styles. */
.site-header {
  position: static;
  top: auto;
  background: #fff;
  backdrop-filter: none;
}
.site-header .header-top {
  min-height: 64px;
  padding-block: 2px;
  gap: 16px;
}
.site-header .brand-wordmark {
  display: block;
  flex: 0 0 180px;
  width: 180px;
  max-width: 180px;
  min-width: 0;
}
.site-header .brand-wordmark picture,
.site-header .brand-wordmark img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
}
.site-header .header-actions { gap: 10px; flex-shrink: 0; }
.site-header .header-actions .btn {
  font-size: .84rem;
  min-height: 44px;
  padding: 8px 16px;
}
/* Retire the earlier generated Join label; use one real text label. */
.site-header .header-actions .btn-primary::before { content: none; }
.site-header .header-actions .btn-primary span { margin-left: 0; font-size: inherit; }
.site-header .join-label-wide { display: inline; }
.site-header .join-label-short { display: none; }
.site-header .site-nav { display: block; max-height: none; }
.site-header .nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 18px;
  min-height: 44px;
  padding: 0;
}
.site-header .nav-inner a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: .84rem;
  line-height: 1.35;
  padding: 9px 0;
}
.site-header .mobile-toggle { display: none; }
.site-search-band { background: #f6f9fc; border-bottom: 1px solid #e3ebf3; }
.site-search-band .container { display: flex; justify-content: flex-end; padding-block: 9px; }
.global-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 560px);
  margin: 0;
}
.global-search-form input {
  display: block;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #9cacc0;
  border-radius: 10px;
  padding: 9px 13px;
  color: #172f50;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.global-search-form input::placeholder { color: #566b81; opacity: 1; }
.global-search-form button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 19px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 10px;
}
.global-search-form input:focus-visible,
.global-search-form button:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #315d97;
  outline-offset: 3px;
}
/* Keep the content close to the search strip without changing its type scale. */
.page-main > .hero:first-child { padding-top: 52px; }
.page-main > .page-hero:first-child { padding-top: 44px; }
@media (max-width: 1240px) {
  .site-header .mobile-toggle { display: inline-grid; place-items: center; }
  .site-header .site-nav { display: none; max-height: min(60vh, 540px); overflow: auto; }
  .site-header .site-nav.open { display: block; }
  .site-header .nav-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px;
    min-height: 0;
    padding-block: 8px;
  }
  .site-header .nav-inner a { font-size: .92rem; padding: 10px 4px; border-bottom: 1px solid #e5ecf4; }
}
@media (max-width: 580px) {
  .site-header .header-top { min-height: 58px; gap: 10px; }
  .site-header .brand-wordmark { flex-basis: 145px; width: 145px; max-width: 145px; }
  .site-header .sponsor-top { display: none; }
  .site-header .header-actions { gap: 7px; }
  .site-header .header-actions .btn { font-size: .85rem; padding: 8px 12px; gap: 6px; }
  .site-header .join-label-wide { display: none; }
  .site-header .join-label-short { display: inline; }
  .site-header .nav-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .site-search-band .container { padding-block: 8px; }
  .global-search-form { gap: 7px; }
  .global-search-form input { padding-inline: 10px; }
  .global-search-form button { padding-inline: 13px; }
  .page-main > .hero:first-child { padding-top: 36px; }
  .page-main > .page-hero:first-child { padding-top: 32px; }
}
@media (max-width: 360px) {
  .site-header .brand-wordmark { flex-basis: 125px; width: 125px; max-width: 125px; }
  .site-header .header-top { gap: 7px; }
  .site-header .header-actions { gap: 5px; }
  .site-header .header-actions .btn { padding-inline: 10px; }
}
@media print { .site-search-band { display: none !important; } }
