/* Layout controls use the retained shared palette without redefining it. */
html body header.orion-public-header .orion-public-nav-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding-block: 0;
}
html body header.orion-public-header a.orion-public-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  font-size: 22px !important;
  line-height: 1.1;
}
html body header.orion-public-header .orion-public-brand span {
  font-size: 14px !important;
  line-height: 1.2;
}
html body header.orion-public-header .orion-public-menu {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
html body header.orion-public-header [data-orion-menu-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--text);
  background: var(--surface);
  list-style: none;
  cursor: pointer;
}
html body header.orion-public-header [data-orion-menu-toggle]::marker,
html body header.orion-public-header [data-orion-menu-toggle]::-webkit-details-marker { display: none; }
html body header.orion-public-header [data-orion-menu-toggle] span { font-size: 14px !important; }
html body header.orion-public-header [data-orion-menu-toggle] svg { width: 20px; height: 20px; flex: none; }
html body header.orion-public-header nav.orion-public-links {
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}
html body header.orion-public-header button.orion-theme-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 8px;
}
@media (max-width: 767px) {
  /* The retained one-pixel bottom border is part of the 64px outer budget. */
  html body header.orion-public-header .orion-public-nav-wrap { height: 63px; min-height: 63px; }
  html body header.orion-public-header .orion-public-brand span { display: none; }
  html body header.orion-public-header .orion-public-menu { position: static; }
  html body header.orion-public-header nav.orion-public-links {
    position: absolute;
    inset: 64px 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  html body header.orion-public-header nav.orion-public-links a { justify-content: flex-start; }
}
@media (min-width: 768px) {
  html body header.orion-public-header .orion-public-nav-wrap { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
  html body header.orion-public-header .orion-public-menu { justify-self: end; }
  html body header.orion-public-header nav.orion-public-links { flex-wrap: wrap; justify-content: flex-end; width: auto; }
  html.orion-layout-ready body header.orion-public-header [data-orion-menu-toggle] { display: none; }
  /* Native details remains a usable Menu fallback in older browsers without JS. */
  @supports selector(details::details-content) {
    html body header.orion-public-header .orion-public-menu::details-content { content-visibility: visible; display: contents; }
    html body header.orion-public-header [data-orion-menu-toggle] { display: none; }
  }
}
/* The background spans the page; the existing notice contents follow its grid. */
html body :is(.orion-site-notice, .orion-preview-notice, .orion-archived-notice) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-inline-size: none;
  margin-inline: 0;
  padding-inline: 0 !important;
  background: var(--surface-alt);
}
html body p.home-top-line {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  max-inline-size: none;
  margin-inline: 0;
  padding-inline: 0 !important;
}
html body .orion-notice-content { display: block; width: min(1180px, calc(100% - 32px)); margin-inline: auto; text-align: start; }
