/* One header row; disclosure submenus stay inside their parent navigation item. */
.master-stage .site-header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0;
  flex-wrap: nowrap;
}
.master-stage .site-header .logo { grid-column: 1; grid-row: 1; order: 0; }
.master-stage .site-header .header-actions {
  grid-column: 3; grid-row: 1; order: 0; width: auto; flex-basis: auto;
}
.master-stage .site-header nav {
  position: static; grid-column: 2; grid-row: 1; order: 0;
  display: flex !important; flex-wrap: nowrap; justify-content: center;
  gap: .45rem; width: auto; min-width: 0;
}
.master-stage .site-header nav .nav-menu { position: relative; display: block; width: auto; }
.master-stage .site-header .nav-parent-row { display: flex; align-items: center; }
.master-stage .site-header nav a {
  width: auto; min-height: 44px; padding: .5rem .15rem;
  color: #414042 !important; background: transparent !important;
  font-size: .88rem !important; font-weight: 500; white-space: nowrap; border-radius: 6px;
}
.master-stage .site-header nav a:is(:hover, :focus-visible, [aria-current="page"], [aria-current="location"]) {
  background: #afdae6 !important;
}
.master-stage .site-header .nav-submenu-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; min-width: 24px; min-height: 44px; padding: 0;
  border: 0; background: transparent; color: #414042; cursor: pointer;
}
.master-stage .site-header .nav-submenu-button svg,
.master-stage .site-header .nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; }
.master-stage .site-header .nav-submenu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.master-stage .site-header .nav-dropdown {
  position: absolute; top: 100%; left: 0; right: auto;
  width: 17rem; min-width: 17rem; max-width: calc(100vw - 2rem);
  margin: 0; padding: .4rem; border: 1px solid rgba(65,64,66,.12);
  border-radius: 12px; background: #fff; box-shadow: 0 .4rem 1.2rem rgba(65,64,66,.1);
  flex-direction: column; gap: 0;
}
.master-stage .site-header .nav-dropdown:not([hidden]) { display: flex !important; }
.master-stage .site-header .nav-dropdown[hidden] { display: none !important; }
.master-stage .site-header nav .nav-dropdown a {
  width: 100%; padding: .65rem .75rem; white-space: normal;
}
.master-stage .site-header .nav-toggle {
  display: none !important; grid-column: 3; grid-row: 1; order: 0;
  align-items: center; justify-content: center; margin: 0; padding: 0;
  min-width: 44px; width: 44px; height: 44px; min-height: 44px;
  border: 1px solid rgba(65,64,66,.35); border-radius: 999px;
  background: transparent; color: #414042; cursor: pointer;
}
.master-stage .site-header .nav-toggle[aria-expanded="true"] { background: #afdae6; }
.master-stage .site-header .nav-close-icon { display: none; }
.master-stage .site-header .nav-toggle[aria-expanded="true"] .nav-close-icon { display: block; }
.master-stage .site-header .nav-toggle[aria-expanded="true"] .nav-menu-icon { display: none; }
.master-stage .site-header :is(.nav-submenu-button, .nav-toggle):focus-visible { outline: 2px solid #414042; outline-offset: 3px; }
.master-stage .site-header[data-nav-mode="compact"] { grid-template-columns: minmax(0, 1fr) auto auto; }
.master-stage .site-header[data-nav-mode="compact"] .header-actions { grid-column: 2; }
.master-stage .site-header[data-nav-mode="compact"] .nav-toggle { display: inline-flex !important; }
.master-stage .site-header[data-nav-mode="compact"] nav {
  display: none !important; position: absolute; top: 100%; left: 0; right: 0; bottom: auto;
  grid-area: auto; height: auto; transform: none;
  width: 100%; padding: .5rem var(--layout-gutter, 1rem) 1rem;
  max-height: calc(100svh - var(--nav-header-height, 100px)); overflow-y: auto;
  background: var(--paper, #faf8f3); border-bottom: 1px solid rgba(65,64,66,.15);
  flex-direction: column; align-items: stretch; gap: .15rem;
}
.master-stage .site-header[data-nav-mode="compact"] nav.is-open { display: flex !important; }
.master-stage .site-header[data-nav-mode="compact"] nav > :is(a, .nav-menu) { width: 100%; }
.master-stage .site-header[data-nav-mode="compact"] .nav-parent-row { width: 100%; }
.master-stage .site-header[data-nav-mode="compact"] nav a {
  display: flex; flex: 1; font-size: .95rem !important; padding: .6rem .75rem;
}
.master-stage .site-header[data-nav-mode="compact"] .nav-submenu-button { width: 44px; min-width: 44px; }
.master-stage .site-header[data-nav-mode="compact"] .nav-dropdown {
  position: static; width: 100%; min-width: 0; max-width: none;
  padding: .2rem .4rem .2rem 1rem; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; background: #fff;
}
@media (max-width: 600px) {
  .master-stage .site-header { min-height: 76px; padding: .75rem 1rem; column-gap: .5rem; }
  .master-stage .site-header .logo img { width: clamp(80px, 25vw, 120px); }
  .master-stage .site-header .header-social { display: none; }
  .master-stage .site-header .header-actions { gap: .4rem; }
  .master-stage .site-header .header-actions .need { font-size: .75rem; }
  .master-stage .site-header .header-actions .donate { min-width: 0; }
}
/* Measure the actual single-line labels, even while the compact menu is hidden. */
.master-stage .site-header[data-nav-measuring] nav {
  display: flex !important; position: fixed !important; top: -10000px !important; left: 0 !important; right: auto !important;
  width: max-content !important; max-width: none !important; height: auto !important;
  visibility: hidden; flex-direction: row !important; flex-wrap: nowrap !important;
  padding: 0 !important; gap: .45rem !important; overflow: visible !important;
}
.master-stage .site-header[data-nav-measuring] nav > :is(a, .nav-menu) { width: auto !important; }
.master-stage .site-header[data-nav-measuring] .nav-parent-row { width: auto !important; }
.master-stage .site-header[data-nav-measuring] nav a { flex: none; width: auto !important; font-size: .88rem !important; padding: .5rem .15rem !important; }
.master-stage .site-header[data-nav-measuring] .nav-submenu-button { width: 24px !important; min-width: 24px !important; }
.master-stage .site-header[data-nav-measuring] .nav-dropdown { display: none !important; }
