/* The labs (labs/*.html): each brings its own stylesheet, and this file
   carries what they share. Loaded by every lab page after its own <style>. */

/* The skip link before the bar, to the page's <main id="main-content">. */
.skip-link.sb-skip {
  position: absolute; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px;
  background: #1a3a2a; color: #ffffff;
  font: 600 13px/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; letter-spacing: 0.02em; text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.skip-link.sb-skip:focus { transform: none; outline: 2px solid #ff7eb6; outline-offset: 2px; }
main#main-content:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .skip-link.sb-skip { transition: none; } }

/* A lab companion's opening on a phone. Its steps faded in as the page
   scrolled, so the first screen was the title over blank paper, with
   "Scroll to begin" below the fold; here the whole opening shows at once.
   And its share, colours and dark-mode buttons (fixed at the top right)
   sat over the small label above the title: the sticky panels start
   below them. */
@media (max-width: 760px) {
  #opening .seq-step { opacity: 1; transform: none; }
  .scroll-seq .seq-sticky { padding-top: max(4.5rem, clamp(2rem, 5vh, 4rem)); }
}
