/* The Night Shift: programming and robotics after dark. A drafting grid in
   lamp amber, code as the primary text, and a plotter that shows what the
   program makes the robot do. */

.bb-night {
  --bb-text: #F1ECE2;
  --bb-text-2: #C4C8D2;
  --bb-place: #6FD3E8;
  --bb-rubric: #FFB547;
  --bb-amber: #FFB547;
  --bb-cyan: #6FD3E8;
  --bb-veil: 15, 18, 25;
  background-color: #0F1219;
  background-image:
    radial-gradient(ellipse 50% 60% at 75% 40%, rgba(255, 181, 71, 0.12), transparent 70%),
    linear-gradient(rgba(255, 181, 71, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 181, 71, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
}

.bb-night .bb-board__text { border-left-color: rgba(255, 181, 71, 0.5); }

.bb-night__numeral {
  position: absolute;
  right: -1vw;
  bottom: -3vw;
  z-index: 0;
  margin: 0;
  font-family: var(--bb-font-mono);
  font-size: clamp(9rem, 24vw, 26rem);
  font-weight: 500;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 181, 71, 0.12);
  user-select: none;
}

.bb-night__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--bb-space-8);
  align-items: center;
  max-width: var(--bb-max);
  margin: 0 auto;
}

.bb-code {
  margin: 18px 0 0;
  padding: var(--bb-space-4) 0;
  border: 1px solid #3A3220;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.88);
  overflow-x: auto;
  counter-reset: bb-line;
}

/* Lines are joined by real newlines, so copying a plate keeps them; each
   line is a full-width inline block so the running line can be lit edge to
   edge without the newline adding a blank line. */
.bb-code code {
  display: block;
  font-family: var(--bb-font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  color: #D8DDE5;
}

.bb-code__line {
  display: inline-block;
  min-width: 100%;
  counter-increment: bb-line;
  padding-right: var(--bb-space-5);
  white-space: pre;
}

.bb-code__line::before {
  content: counter(bb-line);
  display: inline-block;
  width: 3rem;
  padding-right: var(--bb-space-4);
  text-align: right;
  color: #8C95A6;
}

.bb-code__line.is-running {
  color: #FFE2B0;
  background: rgba(255, 181, 71, 0.12);
  box-shadow: inset 3px 0 0 var(--bb-amber);
}

.bb-code__line.is-running::before { color: var(--bb-amber); }

.bb-plotter {
  margin: 0;
  padding: var(--bb-space-4);
  border: 1px solid #2A3A44;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.75);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 181, 71, 0.08);
}

.bb-plotter svg { display: block; width: 100%; height: auto; }

.bb-plotter__path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: bb-plot 4s var(--bb-ease-out) 0.4s forwards;
}

@keyframes bb-plot { to { stroke-dashoffset: 0; } }

.bb-telemetry {
  display: flex;
  justify-content: space-between;
  margin-top: var(--bb-space-3);
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bb-cyan);
}

.bb-float--d1 { top: 12%; left: 50%; }
.bb-float--d2 { bottom: 14%; left: 44%; width: clamp(50px, 5vw, 90px); }

@media (max-width: 1023px) {
  .bb-night__layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-plotter__path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 767px) {
  .bb-code code { font-size: 0.75rem; }
  .bb-code__line::before { width: 2rem; padding-right: var(--bb-space-3); }
}
/* The Night Shift's lesson sheets (docs/design/night-shift.md): the board's
   lamp-lit drafting grid behind each guide, Plex Mono for structure and Plex
   Sans for reading. Every text tone here holds at least 4.5:1 on the night. */

.bb-night.bb-n-page {
  --bb-n-text: #F1ECE2;
  --bb-n-text-2: #C4C8D2;
  --bb-n-quiet: #A3ACBB;
  --bb-n-rule: rgba(255, 181, 71, 0.24);
  --bb-n-rule-soft: rgba(241, 236, 226, 0.12);
  --bb-n-panel: rgba(10, 12, 17, 0.72);
  --bb-n-measure: 68ch;
  position: relative;
  overflow-x: clip;
  padding-bottom: var(--bb-space-10);
  color: var(--bb-n-text);
  font-family: var(--bb-font-text);
  font-size: var(--bb-fs-body);
  line-height: 1.6;
  counter-reset: bb-n-step;
  /* The board's glow belongs to the head; the page keeps only the grid. */
  background-image:
    linear-gradient(rgba(255, 181, 71, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 181, 71, 0.05) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
}

.bb-n-page :is(h1, h2, h3, h4) { color: var(--bb-n-text); }

/* Prose links only; :where keeps this below every component's own links. */
.bb-n-page :where(a:not([class])) {
  color: var(--bb-amber);
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 71, 0.4);
  text-underline-offset: 3px;
}

.bb-n-page :where(a:not([class])):hover { text-decoration-color: var(--bb-amber); }

.bb-n-page :focus-visible { outline: 2px solid var(--bb-cyan); outline-offset: 3px; }

.bb-n-wrap {
  width: min(var(--bb-max), calc(100% - (2 * var(--bb-margin))));
  margin-inline: auto;
}

/* ---- The head -------------------------------------------------------- */

/* flow-root keeps the layout's top margin inside the head on a page with no
   folio crumbs above it, where it would collapse through and bare the body. */
.bb-n-head {
  display: flow-root;
  position: relative;
  isolation: isolate;
  padding-bottom: var(--bb-space-8);
  background: radial-gradient(ellipse 60% 90% at 78% 30%, rgba(255, 181, 71, 0.13), transparent 70%);
}

.bb-n-head .bb-folio__list a,
.bb-n-head .bb-folio__list [aria-current] { color: var(--bb-n-text-2); }
.bb-n-head .bb-folio__list a:hover { color: var(--bb-n-text); }
.bb-n-head .bb-folio__list li + li::before { color: var(--bb-n-rule); }

.bb-n-head__numeral {
  position: absolute;
  right: max(var(--bb-margin), calc((100% - var(--bb-max)) / 2));
  bottom: 0;
  z-index: -1;
  margin: 0;
  font-family: var(--bb-font-mono);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 500;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 181, 71, 0.16);
  user-select: none;
}

.bb-n-head__layout {
  width: min(var(--bb-max), calc(100% - (2 * var(--bb-margin))));
  margin: var(--bb-space-8) auto 0;
}

.bb-n-head__text {
  padding-left: var(--bb-space-6);
  border-left: 1px solid rgba(255, 181, 71, 0.5);
}

.bb-n-head__aside { margin-top: var(--bb-space-7); }

@media (min-width: 1100px) {
  .bb-n-head__layout--aside {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--bb-space-8);
    align-items: center;
  }

  .bb-n-head__layout--aside .bb-n-head__aside { margin-top: 0; }
}

.bb-n-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 var(--bb-space-4);
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bb-n-kicker__lesson { color: var(--bb-n-text); }
.bb-n-kicker__shift { color: var(--bb-amber); letter-spacing: 0.08em; text-transform: none; }

.bb-n-title {
  max-width: 16em;
  margin: 0;
  font-family: var(--bb-font-serif);
  font-size: clamp(2.6rem, 1.5rem + 3.2vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.bb-n-place {
  margin: var(--bb-space-4) 0 0;
  font-family: var(--bb-font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bb-cyan);
}

.bb-n-lede {
  max-width: var(--bb-n-measure);
  margin: var(--bb-space-5) 0 0;
  font-size: var(--bb-fs-lead);
  line-height: 1.5;
  color: var(--bb-n-text-2);
}

.bb-n-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bb-space-3) var(--bb-space-5);
  margin: var(--bb-space-6) 0 0;
  padding: 0;
  list-style: none;
}

/* A plain mono link with an arrow: the shift's only button shape. */
.bb-n-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bb-amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 181, 71, 0.45);
}

.bb-n-link::after { content: "\2192"; transition: transform var(--bb-dur-1) var(--bb-ease-out); }
.bb-n-link:hover { color: #FFD08A; border-bottom-color: var(--bb-amber); }
.bb-n-link:hover::after { transform: translateX(3px); }

/* ---- Sections, numbered as steps ------------------------------------ */

.bb-n-section {
  padding-top: var(--bb-space-9);
}

.bb-n-h2 {
  display: flex;
  align-items: baseline;
  gap: var(--bb-space-4);
  margin: 0 0 var(--bb-space-6);
  padding-bottom: var(--bb-space-3);
  border-bottom: 1px solid var(--bb-n-rule);
  font-family: var(--bb-font-serif);
  font-size: var(--bb-fs-h2);
  font-weight: 500;
  line-height: 1.1;
}

.bb-n-h2::before {
  counter-increment: bb-n-step;
  content: counter(bb-n-step, decimal-leading-zero);
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bb-amber);
}

.bb-n-h3 {
  margin: 0 0 var(--bb-space-2);
  font-family: var(--bb-font-text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.bb-n-prose { max-width: var(--bb-n-measure); color: var(--bb-n-text-2); }
.bb-n-prose p { margin: 0 0 var(--bb-space-4); }

/* A ruled grid of short notes: prerequisites, platforms, tips. */
.bb-n-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0 var(--bb-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-n-notes > li {
  padding: var(--bb-space-4) 0;
  border-top: 1px solid var(--bb-n-rule-soft);
}

.bb-n-notes p { margin: 0; color: var(--bb-n-text-2); font-size: 0.95rem; }

.bb-n-label {
  display: block;
  margin-bottom: var(--bb-space-2);
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-cyan);
}

/* Link lists: resources, further guides. */
.bb-n-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-n-links li { padding: var(--bb-space-3) 0; border-top: 1px solid var(--bb-n-rule-soft); }
.bb-n-links li > span { display: block; margin-top: 2px; color: var(--bb-n-quiet); font-size: 0.9rem; }

.bb-n-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--bb-space-6) var(--bb-space-8);
}

@media (max-width: 767px) {
  .bb-n-head__layout { margin-top: var(--bb-space-6); }
  .bb-n-head__text { padding-left: var(--bb-space-4); }
  .bb-n-section { padding-top: var(--bb-space-8); }
}

/* ---- Shared parts of the guides --------------------------------------- */

.bb-n-subhead { margin-top: var(--bb-space-7); }

/* Short claims, ticked in amber. */
.bb-n-claims {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bb-space-2) var(--bb-space-5);
  margin: var(--bb-space-4) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  color: var(--bb-n-text-2);
}

.bb-n-claims li::before { content: "+ "; color: var(--bb-amber); }

/* Browser support, as a ruled line under the head. */
.bb-n-browsers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--bb-space-2) var(--bb-space-6);
  padding: var(--bb-space-4) 0;
  border-block: 1px solid var(--bb-n-rule-soft);
}

.bb-n-browsers .bb-n-label { margin: 0; }
.bb-n-browsers p { margin: 0; color: var(--bb-n-text-2); }
.bb-n-browsers ul { display: flex; flex-wrap: wrap; gap: var(--bb-space-2) var(--bb-space-5); margin: 0; padding: 0; list-style: none; font-family: var(--bb-font-mono); font-size: 0.85rem; }
.bb-n-browsers .is-yes { color: var(--bb-n-text); }
.bb-n-browsers .is-yes::before { content: "+ "; color: var(--bb-amber); }
.bb-n-browsers .is-no { color: var(--bb-n-quiet); }
.bb-n-browsers .is-no::before { content: "\2212\00a0"; }
.bb-n-browsers .is-no span { margin-left: 4px; font-size: 0.75rem; }

/* Hubs as a parts list: name and number. */
.bb-n-hubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0 var(--bb-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-n-hubs li {
  display: flex;
  justify-content: space-between;
  gap: var(--bb-space-3);
  padding: var(--bb-space-3) 0;
  border-top: 1px solid var(--bb-n-rule-soft);
}

.bb-n-hubs__model { font-family: var(--bb-font-mono); font-size: 0.85rem; color: var(--bb-cyan); }

/* A tutorial's numbered steps, each with its plate. */
.bb-n-steps { margin: var(--bb-space-6) 0 0; padding: 0; list-style: none; counter-reset: bb-n-substep; }

.bb-n-step {
  position: relative;
  padding: var(--bb-space-5) 0 var(--bb-space-6) var(--bb-space-8);
  border-top: 1px solid var(--bb-n-rule-soft);
  counter-increment: bb-n-substep;
}

.bb-n-step::before {
  content: counter(bb-n-substep);
  position: absolute;
  left: 0;
  top: var(--bb-space-5);
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--bb-amber);
  border-radius: 50%;
  font-family: var(--bb-font-mono);
  font-weight: 500;
  color: var(--bb-amber);
}

.bb-n-step__text { max-width: var(--bb-n-measure); margin: 0; color: var(--bb-n-text-2); }

.bb-n-columns--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }

@media (min-width: 1100px) {
  .bb-n-columns--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* The page's last word: one sentence and one link. */
.bb-n-close { text-align: left; }
.bb-n-close .bb-n-prose { margin-bottom: var(--bb-space-5); }

@media (max-width: 767px) {
  .bb-n-step { padding-left: var(--bb-space-7); }
  .bb-n-step::before { width: 1.75rem; height: 1.75rem; }
}

/* ---- The kit: a set's photograph on a paper print, and its facts ----- */

.bb-n-kit {
  margin: 0;
  padding: var(--bb-space-4);
  border: 1px solid #2A3A44;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.78);
}

/* minmax(0, 1fr) lets the 4:3 box, not the picture, decide the height;
   the board's ticket prints do the same. */
.bb-n-kit__print {
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: var(--bb-space-4);
  border-radius: var(--bb-radius-sm);
  background: #F4F1EA;
}

.bb-n-kit__print img { width: 100%; height: 100%; object-fit: contain; }

.bb-n-kit__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--bb-space-3) var(--bb-space-4);
  margin: var(--bb-space-4) 0 0;
}

.bb-n-kit__facts dt {
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-n-quiet);
}

.bb-n-kit__facts dd { margin: 2px 0 0; font-family: var(--bb-font-mono); font-size: 1.1rem; color: var(--bb-n-text); }

.bb-n-kit__shop { margin-top: var(--bb-space-4); }

/* A shop link: the shift's one filled button, lamp amber. */
.bb-n-shop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--bb-radius-sm);
  background: var(--bb-amber);
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #0F1219;
  text-decoration: none;
}

.bb-n-shop:hover { background: #FFC874; color: #0F1219; }

/* ---- Cards, notices and snippets ---------------------------------- */

.bb-n-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: var(--bb-space-5) var(--bb-space-6);
  margin: var(--bb-space-6) 0 0;
  padding: 0;
  list-style: none;
}

.bb-n-card {
  padding: var(--bb-space-4) 0 0;
  border-top: 1px solid var(--bb-n-rule);
}

.bb-n-card p { margin: 0 0 var(--bb-space-3); color: var(--bb-n-text-2); }
.bb-n-card .bb-n-label { margin-bottom: var(--bb-space-2); }
.bb-n-card ul:not([class]) { margin: 0 0 var(--bb-space-3); padding-left: 1.1em; color: var(--bb-n-text-2); }
.bb-n-card .bb-n-tags { margin-top: var(--bb-space-2); }
.bb-n-card__meta { font-family: var(--bb-font-mono); font-size: 0.8rem; color: var(--bb-n-quiet); }

.bb-n-notice {
  max-width: var(--bb-n-measure);
  margin: 0 0 var(--bb-space-7);
  padding: var(--bb-space-4) var(--bb-space-5);
  border-left: 3px solid var(--bb-amber);
  background: rgba(255, 181, 71, 0.07);
}

.bb-n-notice h3 { margin: 0 0 var(--bb-space-2); font-size: 1.05rem; }
.bb-n-notice p { margin: 0; color: var(--bb-n-text-2); }

.bb-n-snippet {
  margin: 0 0 var(--bb-space-3);
  padding: var(--bb-space-3) var(--bb-space-4);
  border: 1px solid #3A3220;
  border-radius: var(--bb-radius-sm);
  background: rgba(10, 12, 17, 0.92);
  font-family: var(--bb-font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #D8DDE5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bb-n-snippet .bb-n-k { color: #FFB547; }
.bb-n-snippet .bb-n-v { color: #F2A7E8; }
.bb-n-snippet .bb-n-b { color: #F4A890; }
.bb-n-snippet .bb-n-t { color: #F6DC8C; }
.bb-n-snippet .bb-n-f { color: #6FD3E8; }
.bb-n-snippet .bb-n-s { color: #B9E3A4; }
.bb-n-snippet .bb-n-n { color: #FFCF8A; }
.bb-n-snippet .bb-n-c { color: #96A0B1; }

/* A block program drawn as stacked blocks, the way the apps show one. */
.bb-n-blocks { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; max-width: 22rem; }

.bb-n-blocks li {
  padding: 10px 14px;
  border-radius: 6px 6px 6px 0;
  background: #2C3A4E;
  border-left: 6px solid var(--bb-amber);
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  color: var(--bb-n-text);
}

.bb-n-blocks li:first-child { border-left-color: var(--bb-cyan); border-radius: 14px 14px 6px 0; }

.bb-n-links--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0 var(--bb-space-6); }
.bb-n-after { margin-top: var(--bb-space-5); }

.bb-n-h4 {
  margin: var(--bb-space-3) 0 var(--bb-space-2);
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-cyan);
}

/* Ruled points with a bold lead-in. */
.bb-n-points { margin: 0; padding: 0; list-style: none; }
.bb-n-points li { padding: var(--bb-space-3) 0; border-top: 1px solid var(--bb-n-rule-soft); color: var(--bb-n-text-2); }
.bb-n-points strong { color: var(--bb-n-text); font-weight: 600; }

.bb-n-notice--lead { margin-top: var(--bb-space-8); }
.bb-n-notice h2 { margin: 0 0 var(--bb-space-2); font-family: var(--bb-font-text); font-size: 1.15rem; font-weight: 600; }

/* A comparison table, ruled like a parts list. */
.bb-n-table-wrap { overflow-x: auto; margin-top: var(--bb-space-6); }

.bb-n-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.bb-n-table th,
.bb-n-table td { padding: var(--bb-space-3) var(--bb-space-4) var(--bb-space-3) 0; border-bottom: 1px solid var(--bb-n-rule-soft); text-align: left; vertical-align: top; }

.bb-n-table thead th {
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-n-quiet);
  border-bottom-color: var(--bb-n-rule);
}

.bb-n-table tbody th strong { display: block; color: var(--bb-n-text); }
.bb-n-table tbody th span { font-family: var(--bb-font-mono); font-size: 0.8rem; font-weight: 400; color: var(--bb-cyan); }
.bb-n-table td { color: var(--bb-n-text-2); }

/* Scratch's block colours, kept dim enough for light text on the night. */
.bb-n-blocks li.bb-n-block--events { background: #5C4A12; border-left-color: #F2C230; }
.bb-n-blocks li.bb-n-block--motors { background: #1E3A5F; border-left-color: #4C97FF; }
.bb-n-blocks li.bb-n-block--control { background: #5A3812; border-left-color: #FFAB19; }
.bb-n-blocks li.bb-n-block--sensing { background: #14454F; border-left-color: #5CB1D6; }
.bb-n-blocks li.bb-n-block--conditions { background: #3E2A5C; border-left-color: #9966FF; }
.bb-n-blocks li.bb-n-block--in { margin-left: var(--bb-space-4); }
.bb-n-blocks li.bb-n-block--in2 { margin-left: var(--bb-space-7); }

/* ---- The shift board ------------------------------------------------- */

/* The board: the program under the h1, the plotter beside it from the top. */
.bb-n-head--board .bb-n-head__layout--aside { align-items: start; }
.bb-n-head__specimen { margin-top: var(--bb-space-6); }

/* Platforms as job tickets: ruled, numbered by level, with the kit. Four
   of them: one column, then two by two, then a row, never three and an
   orphan. */
.bb-n-tickets {
  display: grid;
  gap: var(--bb-space-5) var(--bb-space-5);
  margin: var(--bb-space-6) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) { .bb-n-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bb-n-tickets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bb-n-ticket {
  padding: var(--bb-space-4);
  border: 1px solid var(--bb-n-rule);
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.6);
}

.bb-n-ticket p { margin: 0 0 var(--bb-space-3); color: var(--bb-n-text-2); }
.bb-n-ticket .bb-n-claims { flex-direction: column; gap: 4px; margin: 0 0 var(--bb-space-3); }

.bb-n-ticket__print {
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  margin: var(--bb-space-3) 0 var(--bb-space-2);
  padding: var(--bb-space-3);
  border-radius: var(--bb-radius-sm);
  background: #F4F1EA;
}

.bb-n-ticket__print img { width: 100%; height: 100%; object-fit: contain; }

/* The syllabus: every lesson, numbered, on ruled lines. */
.bb-n-syllabus { margin: 0; padding: 0; list-style: none; }

.bb-n-syllabus a {
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 14rem) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--bb-space-4);
  padding: var(--bb-space-3) 0;
  border-top: 1px solid var(--bb-n-rule-soft);
  color: var(--bb-n-text);
  text-decoration: none;
}

.bb-n-syllabus a:hover .bb-n-syllabus__platform { color: var(--bb-amber); }
.bb-n-syllabus__number { font-family: var(--bb-font-mono); color: var(--bb-amber); }
.bb-n-syllabus__platform { font-weight: 600; }
.bb-n-syllabus__place { font-family: var(--bb-font-mono); font-size: 0.85rem; color: var(--bb-cyan); }

.bb-n-steps--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0 var(--bb-space-6); }

@media (max-width: 767px) {
  .bb-n-syllabus a { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .bb-n-syllabus__place { grid-column: 2; }
}
/* The Night Shift's code: plates, token colours, the sample cards and the
   lesson index. Plex Mono ships one weight, so tokens differ by colour
   alone, never bold or italic; every token holds 4.5:1 on the plate. */

.bb-n-plate {
  margin: var(--bb-space-4) 0 0;
  border: 1px solid #3A3220;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.92);
  overflow: hidden;
}

.bb-n-plate__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bb-space-3);
  padding: 6px var(--bb-space-3) 6px var(--bb-space-4);
  border-bottom: 1px solid rgba(255, 181, 71, 0.16);
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bb-n-plate__lang { color: var(--bb-n-quiet, #A3ACBB); }

.bb-n-plate__copy {
  padding: 4px 12px;
  border: 1px solid rgba(255, 181, 71, 0.5);
  border-radius: var(--bb-radius-sm);
  background: transparent;
  font: inherit;
  letter-spacing: 0.1em;
  color: var(--bb-amber);
  cursor: pointer;
}

.bb-n-plate__copy:hover { background: rgba(255, 181, 71, 0.12); }
.bb-n-plate__copy.is-copied { color: var(--bb-cyan); border-color: rgba(111, 211, 232, 0.6); }

/* The board's plate, set inside the card's frame. */
.bb-n-plate .bb-code {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* A long line wraps under its own code, past the line number, rather than
   hiding off the plate's edge; a wrap adds no newline, so copying is
   unchanged. */
.bb-n-plate .bb-code__line {
  --bb-n-gutter: 3rem;
  padding-left: var(--bb-n-gutter);
  text-indent: calc(-1 * var(--bb-n-gutter));
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bb-n-plate .bb-code__line::before { width: var(--bb-n-gutter); text-indent: 0; }

@media (max-width: 767px) {
  .bb-n-plate .bb-code__line { --bb-n-gutter: 2rem; }
}

.bb-code .bb-n-k { color: #FFB547; }
.bb-code .bb-n-v { color: #F2A7E8; }
.bb-code .bb-n-b { color: #F4A890; }
.bb-code .bb-n-t { color: #F6DC8C; }
.bb-code .bb-n-f { color: #6FD3E8; }
.bb-code .bb-n-s { color: #B9E3A4; }
.bb-code .bb-n-n { color: #FFCF8A; }
.bb-code .bb-n-c { color: #96A0B1; }
.bb-code .bb-n-d { color: #F4A890; }

/* A line the program reaches only through a sensor. */
.bb-code__line.is-waiting {
  background: rgba(111, 211, 232, 0.1);
  box-shadow: inset 3px 0 0 var(--bb-cyan);
}

/* ---- Sample cards ----------------------------------------------------- */

.bb-n-samples { display: grid; gap: var(--bb-space-5); }

.bb-n-sample {
  border-top: 1px solid var(--bb-n-rule, rgba(255, 181, 71, 0.24));
  scroll-margin-top: var(--bb-space-8);
}

.bb-n-sample[hidden] { display: none; }

.bb-n-sample__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--bb-space-2) var(--bb-space-4);
  padding: var(--bb-space-4) 0;
  cursor: pointer;
  list-style: none;
}

.bb-n-sample__head::-webkit-details-marker { display: none; }

.bb-n-sample__head::after {
  content: "+";
  font-family: var(--bb-font-mono);
  font-size: 1.25rem;
  color: var(--bb-amber);
}

.bb-n-sample[open] > .bb-n-sample__head::after { content: "\2212"; }

.bb-n-sample__number { grid-column: 1; grid-row: 1; }
.bb-n-sample__title { grid-column: 2; grid-row: 1; }
.bb-n-sample__level { grid-column: 2; grid-row: 2; }
.bb-n-sample__head::after { grid-column: 3; grid-row: 1; }

.bb-n-sample__number {
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bb-amber);
}

.bb-n-sample__title {
  margin: 0;
  font-family: var(--bb-font-text);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.bb-n-sample__level {
  margin-top: -2px;
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-cyan);
}

.bb-n-sample__body { padding-bottom: var(--bb-space-6); }

.bb-n-sample__lede { max-width: var(--bb-n-measure, 68ch); margin: 0; color: var(--bb-n-text-2, #C4C8D2); }

.bb-n-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--bb-space-4) 0 0;
  padding: 0;
  list-style: none;
}

.bb-n-tags li {
  padding: 3px 10px;
  border: 1px solid var(--bb-n-rule-soft, rgba(241, 236, 226, 0.12));
  border-radius: 999px;
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bb-n-text-2, #C4C8D2);
}

.bb-n-tags li.is-marked { border-color: rgba(255, 181, 71, 0.5); color: var(--bb-amber); }

/* A program that hands its path to a sensor says so where a plot would be. */
.bb-n-handover {
  max-width: var(--bb-n-measure, 68ch);
  margin: var(--bb-space-4) 0 0;
  padding: var(--bb-space-3) var(--bb-space-4);
  border-left: 3px solid var(--bb-cyan);
  background: rgba(111, 211, 232, 0.06);
  font-size: 0.95rem;
  color: var(--bb-n-text-2, #C4C8D2);
}


/* ---- The lesson index: contents, level filter, open and close ------- */

.bb-n-index-layout {
  display: grid;
  gap: var(--bb-space-8);
}

.bb-n-index {
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
}

.bb-n-index__title {
  margin: 0 0 var(--bb-space-3);
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-n-quiet, #A3ACBB);
}

.bb-n-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--bb-space-4);
  padding: 0;
  border: 0;
}

.bb-n-filters[hidden] { display: none; }

.bb-n-filter {
  padding: 4px 10px;
  border: 1px solid var(--bb-n-rule-soft, rgba(241, 236, 226, 0.12));
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: var(--bb-fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-n-text-2, #C4C8D2);
  cursor: pointer;
}

.bb-n-filter[aria-pressed="true"] { border-color: var(--bb-amber); color: #0F1219; background: var(--bb-amber); }

.bb-n-contents { margin: 0; padding: 0; list-style: none; counter-reset: none; }

.bb-n-contents a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  padding: 7px 0 7px 10px;
  border-left: 2px solid transparent;
  color: var(--bb-n-text-2, #C4C8D2);
  text-decoration: none;
}

.bb-n-contents a:hover { text-decoration: underline; text-underline-offset: 3px; }

.bb-n-contents a > span:first-child { color: var(--bb-amber); }
.bb-n-contents a:hover { color: var(--bb-n-text, #F1ECE2); }
.bb-n-contents a[aria-current="true"] { border-left-color: var(--bb-amber); color: var(--bb-n-text, #F1ECE2); }
.bb-n-contents li[hidden] { display: none; }

.bb-n-toggle {
  margin-top: var(--bb-space-4);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--bb-amber);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-n-toggle[hidden] { display: none; }

.bb-n-help {
  margin-top: var(--bb-space-6);
  padding-top: var(--bb-space-4);
  border-top: 1px solid var(--bb-n-rule-soft, rgba(241, 236, 226, 0.12));
  font-family: var(--bb-font-text);
  font-size: 0.95rem;
  color: var(--bb-n-text-2, #C4C8D2);
}

.bb-n-help p { margin: 0 0 var(--bb-space-2); }

@media (min-width: 1100px) {
  .bb-n-index-layout { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; }
  .bb-n-index { position: sticky; top: var(--bb-space-6); }
}

@media (max-width: 767px) {
  .bb-n-sample__head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px var(--bb-space-3); }
  .bb-n-sample__title { font-size: 1.05rem; }
}

/* ---- The plotter beside the code ------------------------------------ */

.bb-n-run { display: grid; gap: 0 var(--bb-space-6); }

.bb-n-plotter {
  margin: var(--bb-space-4) 0 0;
  padding: var(--bb-space-4);
  border: 1px solid #2A3A44;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.78);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 181, 71, 0.06);
}

.bb-n-plotter svg { display: block; width: 100%; height: auto; }
.bb-n-plotter__grid { fill: none; stroke: rgba(111, 211, 232, 0.14); stroke-width: 1; }
.bb-n-plotter__start { fill: var(--bb-cyan); }

.bb-n-seg {
  fill: none;
  stroke: var(--bb-amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Only a replay hides the path; the plate is whole without one. */
.is-armed .bb-n-seg { stroke-dasharray: 1 1; }

.bb-n-robot rect { fill: #10131A; stroke: var(--bb-amber); stroke-width: 2; }
.bb-n-robot path { fill: none; stroke: var(--bb-amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bb-n-telemetry {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px var(--bb-space-4);
  margin-top: var(--bb-space-3);
  font-family: var(--bb-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bb-cyan);
}

.bb-n-plotter__run {
  margin-top: var(--bb-space-3);
  padding: 6px 14px;
  border: 1px solid rgba(255, 181, 71, 0.55);
  border-radius: var(--bb-radius-sm);
  background: transparent;
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-amber);
  cursor: pointer;
}

.bb-n-plotter__run:hover { background: rgba(255, 181, 71, 0.12); }
.bb-n-plotter__run[hidden] { display: none; }

@media (min-width: 1100px) {
  .bb-n-run { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .bb-n-run .bb-n-plotter { position: sticky; top: var(--bb-space-6); }
}
/* The bench (docs/design/night-shift.md): the live control panel under the
   shift's lamp. The console beside the h1 connects; the instruments below
   read the hub and drive it, idle until a hub answers. */

.bb-n-bench__powered { margin: var(--bb-space-6) 0 0; }

/* ---- The console ------------------------------------------------------ */

.bb-n-console {
  padding: var(--bb-space-5);
  border: 1px solid #3A3220;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.88);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 181, 71, 0.07);
}

.bb-n-console__title,
.bb-n-instrument__title {
  margin: 0 0 var(--bb-space-4);
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-n-quiet);
}

.bb-n-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--bb-font-mono);
  font-size: 1.15rem;
  font-weight: 500;
}

.bb-n-status__lamp {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6B7385;
  box-shadow: 0 0 0 3px rgba(107, 115, 133, 0.2);
}

.bb-n-status[data-state="connecting"] .bb-n-status__lamp {
  background: var(--bb-amber);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.25), 0 0 14px rgba(255, 181, 71, 0.6);
  animation: bb-n-lamp 1.1s ease-in-out infinite;
}

.bb-n-status[data-state="connected"] .bb-n-status__lamp {
  background: var(--bb-cyan);
  box-shadow: 0 0 0 3px rgba(111, 211, 232, 0.25), 0 0 14px rgba(111, 211, 232, 0.7);
}

.bb-n-status:is([data-state="failed"], [data-state="unsupported"]) { color: #FF8A7A; }
.bb-n-status:is([data-state="failed"], [data-state="unsupported"]) .bb-n-status__lamp {
  background: #FF8A7A;
  box-shadow: 0 0 0 3px rgba(255, 138, 122, 0.25);
}

@keyframes bb-n-lamp { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .bb-n-status[data-state="connecting"] .bb-n-status__lamp { animation: none; }
}

.bb-n-console__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bb-space-3);
  margin-top: var(--bb-space-5);
}

.bb-n-console__hubs {
  margin: var(--bb-space-6) 0 0;
  padding-top: var(--bb-space-4);
  border-top: 1px solid var(--bb-n-rule-soft);
}

.bb-n-console .bb-n-claims { margin-top: var(--bb-space-2); font-size: 0.95rem; color: var(--bb-n-text-2); }

/* ---- Buttons ------------------------------------------------------------ */

.bb-n-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 181, 71, 0.55);
  border-radius: var(--bb-radius-sm);
  background: transparent;
  font-family: var(--bb-font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-amber);
  cursor: pointer;
}

.bb-n-button:hover:not(:disabled) { background: rgba(255, 181, 71, 0.12); }
.bb-n-button[hidden] { display: none; }

.bb-n-button--primary { padding-inline: 24px; border-color: var(--bb-amber); background: var(--bb-amber); color: #0F1219; }
.bb-n-button--primary:hover:not(:disabled) { background: #FFC56E; }

.bb-n-button--stop { border-color: rgba(111, 211, 232, 0.55); color: var(--bb-cyan); }
.bb-n-button--stop:hover:not(:disabled) { background: rgba(111, 211, 232, 0.12); }

.bb-n-button:disabled,
.bb-n-swatch:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- The instruments ---------------------------------------------------- */

.bb-n-bench {
  display: grid;
  gap: var(--bb-space-5);
  margin-top: var(--bb-space-7);
}

.bb-n-instrument {
  padding: var(--bb-space-5);
  border: 1px solid #2A3A44;
  border-radius: var(--bb-radius);
  background: rgba(10, 12, 17, 0.78);
}

@media (min-width: 900px) {
  .bb-n-bench { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .bb-n-instrument--controls { grid-column: 2; grid-row: 1 / span 2; }
}

.bb-n-readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bb-space-5);
  margin: 0;
}

.bb-n-readouts dt {
  font-family: var(--bb-font-mono);
  font-size: var(--bb-fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-n-quiet);
}

.bb-n-readouts dd {
  margin: 6px 0 0;
  font-family: var(--bb-font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--bb-cyan);
  overflow-wrap: anywhere;
}

.bb-n-readouts__battery { display: flex; align-items: center; gap: 10px; }

/* Ten cells, lit up to the battery's level. */
.bb-n-gauge {
  position: relative;
  flex: 1;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(241, 236, 226, 0.1) 0 calc(10% - 2px), transparent calc(10% - 2px) 10%);
  color: var(--bb-cyan);
}

.bb-n-gauge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 calc(10% - 2px), transparent calc(10% - 2px) 10%);
  clip-path: inset(0 calc((1 - var(--bb-n-level, 0)) * 100%) 0 0);
  transition: clip-path 500ms var(--bb-ease-out);
}

.bb-n-gauge[data-level="mid"] { color: var(--bb-amber); }
.bb-n-gauge[data-level="low"] { color: #FF8A7A; }

.bb-n-motor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--bb-space-3);
  padding: var(--bb-space-4) 0;
  border-top: 1px solid var(--bb-n-rule-soft);
}

.bb-n-instrument__title + .bb-n-motor { padding-top: 0; border-top: 0; }
.bb-n-motor .bb-n-h3 { margin: 0; }

.bb-n-motor__buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bb-space-2);
}

.bb-n-motor__buttons .bb-n-button { padding-inline: 8px; }

.bb-n-port {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 6px;
  border: 1px solid var(--bb-amber);
  border-radius: var(--bb-radius-sm);
  font-family: var(--bb-font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bb-amber);
}

.bb-n-led { padding-top: var(--bb-space-4); border-top: 1px solid var(--bb-n-rule-soft); }
.bb-n-led .bb-n-h3 { margin: 0; }

.bb-n-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: var(--bb-space-2);
  margin-top: var(--bb-space-3);
}

.bb-n-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--bb-n-rule-soft);
  border-radius: var(--bb-radius-sm);
  background: transparent;
  font-family: var(--bb-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--bb-n-text-2);
  cursor: pointer;
}

.bb-n-swatch::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bb-n-swatch);
  box-shadow: 0 0 10px var(--bb-n-swatch);
}

.bb-n-swatch:hover:not(:disabled) { border-color: var(--bb-n-swatch); color: var(--bb-n-text); }

.bb-n-swatch--red { --bb-n-swatch: #FF5A4E; }
.bb-n-swatch--green { --bb-n-swatch: #4FD685; }
.bb-n-swatch--blue { --bb-n-swatch: #5B95FF; }
.bb-n-swatch--yellow { --bb-n-swatch: #FFD84D; }
.bb-n-swatch--purple { --bb-n-swatch: #B072FF; }
.bb-n-swatch--white { --bb-n-swatch: #F4F1EA; }

.bb-n-ports { margin: 0; padding: 0; list-style: none; font-family: var(--bb-font-mono); font-size: 0.9rem; }

.bb-n-ports li {
  display: flex;
  align-items: center;
  gap: var(--bb-space-3);
  padding: 8px 0;
  border-top: 1px solid var(--bb-n-rule-soft);
}

.bb-n-ports li:first-child { border-top: 0; }
.bb-n-ports .is-empty { color: var(--bb-n-quiet); }

@media (max-width: 520px) {
  .bb-n-readouts { grid-template-columns: minmax(0, 1fr); }
}
/*
 * The Night Shift: the programming and robotics guides and the Bluetooth
 * bench (docs/design/night-shift.md). Linked only by those pages, through
 * DesignWorldHelper#design_world, and scoped under .bb-night.




 */
