/* ORTHO//ONTOLOGY: the shared lab layout (../assets/theme.css) carries the page. Only the clickable memory row, the
   flat overlay over the solid stage and the small sub-heading in the deck belong to this page; colours come from the
   tokens, never from hex values. */
#flat { pointer-events: none; }
#stage.on-cell { cursor: pointer; }
/* a wide stage keeps a column on the right for the die: the title wraps short of it */
#stage.col3 .hud-tl { max-width: var(--pod-hud-max); }
/* a phone gives the stage more height: the die takes a band above the flat drawings */
@media (max-width: 600px) {
  :root:not([data-embed]):not([data-thumb-mode]):not([data-shot]) .lab .center { grid-template-rows: minmax(500px, 74vh) auto auto; }
}
.sec .sub2 { margin: 12px 0 6px; font-size: 11px; }

/* 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 card's name and 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: 4px 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; }
  /* an English card's name is longer than its Chinese one and set in capitals: without the extra spacing it keeps to
     two lines between ◀ ▶ (the longest, the superposed address, to three closer ones), so the bar stays under 84 px and the die
     keeps its share of the stage */
  :root[data-lang="en"][data-embed][data-figure] .lab .tour .what b { letter-spacing: 0; line-height: 1.2; }
  :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; }
}
