/* Scope the shared shell so each lab keeps its own renderer and workspace styles. */
body > header.sa-site-header {
  display: block !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: #101615 !important;
  position: sticky;
  top: 0;
  z-index: 50;
}
body > header.sa-site-header > sa-navigation {
  display: block;
  height: 100%;
  color: #e4e9e1;
}
body > .sa-skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  background: #c7e9ae;
  color: #152015;
  padding: 12px 18px;
  border-radius: 4px;
  font: 14px system-ui;
  text-decoration: none;
}
body > .sa-skip-link:focus {
  top: 12px;
}
@media (max-width: 600px) {
  body > header.sa-site-header {
    height: 64px !important;
    min-height: 64px !important;
  }
}

body.embedded > header.sa-site-header {
  display: none !important;
}
/* On phones the shared switcher replaces the long cross-project sidebar list. */
@media (max-width: 720px) {
  body[data-site-lab="physics"] aside nav[aria-label="Environments and labs"],
  body[data-site-lab="physics"]
    aside
    .nav-label:has(+ nav[aria-label="Environments and labs"]) {
    display: none;
  }
  body[data-site-lab="sandbox"] .intro,
  body[data-site-lab="embodied-agent"] .intro,
  body[data-site-lab="agent"] .intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  body[data-site-lab="sandbox"] .intro > div + div,
  body[data-site-lab="embodied-agent"] .intro > div + div {
    display: none;
  }
}

html {
  scroll-padding-top: 96px;
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 84px;
  }
}
/* Keep a lab's contextual return link alongside its content. */
main > .sa-context-link {
  display: inline-flex;
  margin: 0 0 20px;
  color: #b4c8a7;
  font:
    12px system-ui,
    sans-serif;
  text-decoration: none;
}
main > .sa-context-link:hover {
  color: #dcf2cc;
}
main > .sa-context-link:focus-visible {
  outline: 2px solid #c7e9ae;
  outline-offset: 5px;
}
