/* scaffold.css: the prototype control bar only. Visibly outside the design:
   monospace, inverted, fixed above the page. Reads tokens, defines no colours.
   Nvok can ignore this file.

   The bar is a drawer. Closed, it slides up out of the viewport and only a
   small tab in the top right corner stays, so the page reads without it.
   The tab hangs off the bar's bottom edge, so one transform moves both. */
body { padding-top: var(--scaffold-h, 40px); }
html[data-scaffold="closed"] body { padding-top: 0; }

.scaffold {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--scaffold-h, 40px);
  background: var(--text);
  color: var(--ground);
  font: 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  transition: transform var(--hover-duration);
}
html[data-scaffold="closed"] .scaffold { transform: translateY(-100%); }

.scaffold__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  padding: 0 var(--space-2);
  overflow-x: auto;
  white-space: nowrap;
}
.scaffold__label { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.scaffold__note { margin-left: auto; opacity: 0.6; }
.scaffold__group { display: inline-flex; align-items: center; gap: 4px; }
.scaffold__group > span { opacity: 0.6; margin-right: 4px; }
.scaffold button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--ground);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.scaffold button[aria-pressed="true"] { background: var(--ground); color: var(--text); }
.scaffold button:focus-visible { outline: 2px solid var(--ground); outline-offset: 1px; }

/* The tab. Sits under the bar's right corner; when the bar is up, the tab is
   the only thing left at the top edge. Written as .scaffold .scaffold__toggle
   so it outranks the generic button rule above. */
.scaffold .scaffold__toggle {
  position: absolute;
  top: 100%;
  right: var(--space-2);
  height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 0 0 4px 4px;
  background: var(--text);
  color: var(--ground);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scaffold .scaffold__toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.scaffold__toggle::after { content: "\25B4"; /* small up triangle */ }
html[data-scaffold="closed"] .scaffold__toggle::after { content: "\25BE"; /* small down triangle */ }
