/* The same four destinations on every page, available before JavaScript runs. */
header.als-header {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  width: 100%;
  max-width: none;
  /* Slimmed (Oct 28, 2026, Graham): the tall band read as a big empty
     slab above the border on phones. One snug brand row now. */
  min-height: 62px;
  margin: 0;
  padding: 9px max(20px, calc((100% - 1100px) / 2));
  border-bottom: 1px solid #e0e4dc;
  background: #fcf8f2fa;
  color: #28453f;
  text-align: left;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif;
}
header.als-header * { box-sizing: border-box; }
header.als-header > .brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 4px 0;
  color: #285d56;
  font: 750 1.02rem/1.35 'Nunito',ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
header.als-header > .brand svg { flex-shrink: 0; }
header.als-header .als-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-wrap: nowrap;
  gap: 4px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 4px;
  border: 1px solid #dfe7dd;
  border-radius: 16px;
  background: #eaf0e7;
  overflow: visible;
}
header.als-header .als-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 15px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #36584d;
  
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
header.als-header .als-nav a:hover { background: #f8faf5; text-decoration: none; }
header.als-header .als-nav a[aria-current] {
  background: #fffdf9;
  color: #6d527a;
  box-shadow: 0 2px 7px #394b3c0d;
}
header.als-header a:focus-visible,
header.als-header button:focus-visible {
  outline: 3px solid #84638c;
  outline-offset: 3px;
}
header.als-header .als-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  width: 100%;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #e2e7df;
}
header.als-header .als-tools > nav,
header.als-header .als-tools > .top-actions {
  position: static;
  grid-area: auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  transform: none;
}
header.als-header .als-tools .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
header.als-header .als-tools > nav:not(.segmented) {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 22px;
  width: 100%;
}
@media (max-width: 660px) {
  header.als-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 14px;
  }
  header.als-header .als-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
  }
  header.als-header .als-nav a {
    min-height: 42px;
    padding: 8px 6px;
    font-size: .75rem;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.35;
  }
  header.als-header .als-tools { gap: 8px; padding-top: 8px; }
  header.als-header .als-tools-conversations .segmented { flex: 1; min-width: 130px; }
  header.als-header .als-tools-conversations .segmented button { min-width: 0; padding: 8px; font-size: .76rem; }
  header.als-header .als-tools-conversations .top-actions { gap: 5px; margin-left: auto; }
  header.als-header .als-tools-conversations .top-actions .small { min-height: 38px; padding: 8px; font-size: .72rem; }
}
@media (max-width: 380px) {
  header.als-header .als-tools-conversations .segmented { flex-basis: 100%; }
}
@media print { header.als-header { display: none !important; } }

@media (min-width: 661px) and (max-width: 880px) {
  header.als-header { gap: 10px 12px; padding-inline: 18px; }
  header.als-header .als-nav a { padding-inline: 10px; font-size: .79rem; }
}
