/* Shared navigation for the Classic and 2026 manuals. */
:root { --manual-header-offset: 164px; }
html { scroll-padding-top: var(--manual-header-offset); }
.header-shell { gap: clamp(8px, 1.6vw, 24px); }
.header-shell .brand { min-width: 0; }
.manual-editions {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(var(--content), calc(100% - 8px));
  margin: 8px auto 0;
  padding: 6px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
  pointer-events: auto;
  font-size: .86rem;
  line-height: 1.3;
}
.manual-editions__label { font-weight: 700; }
.manual-editions__links { display: flex; gap: 6px; }
.manual-editions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}
.manual-editions a[aria-current] { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.manual-editions a:hover { background: var(--green-soft); color: var(--green-dark); }
.manual-editions a:focus-visible { outline: 3px solid #977011; outline-offset: 2px; }
.manual-editions .manual-editions__website { margin-left: auto; border-color: transparent; }
.manual-sidebar { top: var(--manual-header-offset); max-height: calc(100dvh - var(--manual-header-offset) - 16px); overflow-y: auto; scrollbar-width: thin; }
.manual-edition-note { margin-bottom: 24px; }
html:not(.manual-js) .menu-toggle { display: none; }
@media (max-width: 1120px) {
  html:not(.manual-js) .header-shell { flex-wrap: wrap; }
  html:not(.manual-js) .site-header .top-nav { display: flex; flex-wrap: wrap; width: 100%; order: 4; }
}
@media (max-width: 860px) {
  .manual-editions { width: 100%; }
  .manual-sidebar { max-height: none; overflow: visible; }
  .site-header:has(.header-shell.is-open) { max-height: 100dvh; overflow-y: auto; }
  .header-shell.is-open .search { display: block; }
  .search-results { position: static; width: 100%; margin-top: 8px; max-height: min(35dvh, 320px); overflow-y: auto; }
}
@media (max-width: 620px) {
  .manual-editions { gap: 4px; padding: 4px 6px; font-size: .78rem; }
  .manual-editions__label { display: none; }
  .manual-editions a { min-height: 40px; padding: 6px 8px; }
  .header-shell .brand-section { display: block; font-size: .58rem; letter-spacing: .045em; }
  .header-shell .brand-name { font-size: .9rem; }
}
@media print { .manual-editions { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
