/* ORTHO//TABLE: the shared lab layout (../assets/theme.css) carries the page. Only the clickable table, the solid slice
   beside it and the declaration map in the drawer belong to this page; colours come from the tokens, never from hex
   values. The stage holds the WebGL canvas of kit.solid (inserted first), #cv (the parked still of that canvas) and
   #flat, the 2D overlay with the table and the side panels, which never takes the pointer: the stage listens. */
#flat { pointer-events: none; }
#cv, #stage canvas.solid-gl { cursor: grab; touch-action: none; }
#stage.on-cell #cv, #stage.on-cell canvas.solid-gl { cursor: pointer; }
.sheet .evh { margin: 16px 0 6px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; }
.declmap { display: grid; gap: 6px; }

/* a phone gets a taller stage: the ball, the table and the side panel are stacked in it */
@media (max-width: 520px) {
  :root:not([data-embed]) .lab .center { grid-template-rows: minmax(max(440px, 84vh), auto) auto auto; }
}

/* Cited figures keep their short notes complete; detailed notes remain in the full laboratory. */
:root[data-embed][data-figure] .lab .tour { background: var(--panel-solid); }
/* on a phone the frame is about 334 × 500: the scene buttons give way to the title (◀ ▶ step through every card, and
   so every scene), and the title, the legend, the note and the transport are set tighter */
@media (max-width: 480px) {
  :root[data-embed][data-figure] #stage .hud-tr { display: none; }
  :root[data-embed][data-figure] #stage .hud-tl { top: 10px; left: 14px; max-width: calc(100% - 28px); gap: 1px; }
  :root[data-embed][data-figure] #stage .hud-tl .big { font-size: 12px; letter-spacing: 0.08em; }
  :root[data-embed][data-figure] #stage .hud-tl .sub { font-size: 11px; line-height: 1.32; }
  :root[data-embed][data-figure] #stage .hud-bl { left: 14px; right: 14px; bottom: 12px; gap: 1px 10px; font-size: 10px; line-height: 1.28; }
  :root[data-embed][data-figure] #stage .hud-bl .sw.box { width: 8px; height: 8px; }
  :root[data-embed][data-figure] .lab .tour { gap: 6px; padding: 4px 6px; }
  :root[data-embed][data-figure] .lab .tour .tbtn { min-width: 26px; height: 28px; padding: 0 4px; }
  :root[data-embed][data-figure] .lab .tour .what { font-size: 11.5px; line-height: 1.34; }
  :root[data-embed][data-figure] .lab .tour .what b { font-size: 10.5px; letter-spacing: 0.06em; }
  :root[data-embed][data-figure] .app.lab > footer.rail .tbtn { height: 26px; min-width: 30px; }
  :root[data-embed][data-figure] .app.lab > footer.rail .tau { font-size: 15px; }
}
/* a cited figure in a book page: the solid's column runs to the foot of the stage, the legend keeps to the right of it */
:root[data-embed][data-figure] #stage.legend-right .hud-bl { left: var(--fig-legend-left); }
