/* Archive overlay for the frozen docs.apimetrics.io copy.
   The only supported edits to this site are in this file and archive.js. */
:root {
  --archive-banner-h: 40px;
  --archive-banner-bg: #2a324f;      /* ReadMe project primary (--project-color-primary) */
  --archive-banner-fg: #ffffff;
  --archive-banner-link: #9fd1ff;
}
html:not(.no-banner) body { padding-top: var(--archive-banner-h); }
#archive-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10010;
  height: var(--archive-banner-h); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px;
  background: var(--archive-banner-bg); color: var(--archive-banner-fg);
  font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
#archive-banner a { color: var(--archive-banner-link); text-decoration: underline; font-weight: 600; }
#archive-banner a:hover { color: #fff; }
/* `?nobanner` (set by archive.js as a class on <html>) removes the banner entirely. */
html.no-banner #archive-banner { display: none; }
html.no-banner body { padding-top: 0; }
/* ReadMe pins the sidebar and the reference "Playground" column with position:sticky; top:0.
   Push them under the banner so the top of the navigation is never hidden. */
html:not(.no-banner) .rm-Sidebar.hub-sidebar,
html:not(.no-banner) section[class*="Playground-section_sticky"] { top: var(--archive-banner-h) !important; }
html:not(.no-banner) .rm-Sidebar.hub-sidebar { max-height: calc(100vh - var(--archive-banner-h)) !important; }
html:not(.no-banner) a.rm-JumpTo.Button_primary { top: calc(10px + var(--archive-banner-h)) !important; }
/* Try It is a ReadMe backend feature; it is disabled in the archive. */
button.rm-TryIt[disabled], button[class*="TryIt"][disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) {
  :root { --archive-banner-h: 56px; }
  #archive-banner { font-size: 12px; padding: 0 10px; }
}
