/* Version banner and switcher. Loaded beside docs.css so archived snapshots keep their own theme
   and still show which version the page covers. */
.docs-version-banner {
  padding: 8px 20px;
  background: var(--panel, #fff);
  border-bottom: 1px solid var(--panel-border, #e3e1ec);
  color: var(--text, #181622);
  font-size: 0.84rem;
  line-height: 1.45;
}
.docs-version-banner[hidden] { display: none; }
.docs-version-banner.is-older {
  background: #fff7ed;
  border-bottom-color: #fdba74;
}
.docs-covers {
  margin: 0;
  font-weight: 700;
}
.docs-version-older { margin: 2px 0 0; }
.docs-version-older a { font-weight: 700; }

.docs-version-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #615d6c);
}
.docs-version-switcher-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.docs-version-switcher select {
  font: inherit;
  font-weight: 600;
  color: var(--text, #181622);
  background: var(--bg, #fff);
  border: 1px solid var(--panel-border, #e3e1ec);
  border-radius: 999px;
  padding: 4px 8px;
}
.docs-version-go {
  font: inherit;
  font-weight: 700;
  color: var(--text, #181622);
  background: var(--bg, #fff);
  border: 1px solid var(--panel-border, #e3e1ec);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.docs-version-switcher select:focus-visible,
.docs-version-go:focus-visible {
  outline: 2px solid var(--accent-strong, #92400e);
  outline-offset: 2px;
}
.docs-version-notes-link,
.docs-version-snapshot-link {
  color: var(--accent-strong, #92400e);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .docs-header-actions { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .docs-version-switcher { flex-wrap: wrap; min-width: 0; }
  .docs-version-notes-link, .docs-version-snapshot-link { white-space: normal; }
  .docs-version-go { min-height: 44px; }
}

.docs-version-notes-pointer {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--panel-border, #e3e1ec);
  border-radius: 8px;
  background: var(--panel, #fff);
}
