/* Section navigation stays within reach on both small and large screens. */
html { scroll-padding-top: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 24px;
}
.site-header .brand { min-width: 0; }
.site-navigation { margin-left: auto; flex: 0 0 auto; }
.menu-toggle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border: 1px solid rgba(214,181,238,.65);
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.menu-toggle svg { display: block; width: 24px; height: 24px; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}
.site-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: max(5%, calc((100vw - 1250px) / 2));
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid #bfa3c8;
  border-radius: 12px;
  background: #eee2f4;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(29,23,45,.22);
}
.site-menu[hidden] { display: none; }
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.site-menu a:hover { background: #e1cbe8; }
.site-menu a:focus-visible { outline: 2px solid #914b74; outline-offset: -2px; }
.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 0;
  white-space: nowrap;
}
.hero[id], .section[id], .campus[id] { scroll-margin-top: 112px; }
@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; gap: 10px; }
  .site-navigation { margin-left: 0; }
  .menu-toggle { width: 44px; height: 44px; padding: 9px; }
  .site-header .brand { gap: 8px; font-size: 17px; }
  .site-header .brand-mark, .site-header .brand small { display: none; }
  .site-header .header-cta { font-size: 12px; padding: 10px 8px; gap: 5px; }
  .site-header .header-cta .icon-arrow { width: 16px; height: 16px; flex-basis: 16px; }
  .site-menu { left: 16px; right: 16px; width: auto; max-height: calc(100dvh - 94px); }
  .hero[id], .section[id], .campus[id] { scroll-margin-top: 94px; }
}
@media (max-width: 370px) {
  .site-header { gap: 8px; }
  .site-header .brand { font-size: 15px; letter-spacing: 0; }
}
