/* The figure under the app page's headline (src/landing/onto.mjs, onto.js). One writer owns this file.
   Paper, ink and rules come from theme.css roles. The four trap colours are the app's own (DotMountain.color,
   light mode); theme.css has no role for them, and on this figure colour means only a named trap. */
.onto{--onto-off:#6f93b5;--onto-mixed:#c07f8e;--onto-rule:#8e86bf;--onto-step:#c9a066}

/* Directly under the headline: no v10 rule or gap above it. */
.page-app .lx-route.onto{padding-top:0;border-top:0}

/* Wide windows: a narrow column of steps and a wide figure, as the tablet walk below it. */
.onto .onto-grid{grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:0 4%}
.onto .lx-step{max-width:340px}
.onto .lx-step small{display:flex;flex-wrap:wrap;gap:6px 0}
.lx-route.is-live .onto-stage{justify-content:center;align-items:center}

.onto-fig{position:relative;width:100%}
.onto-plot{position:relative}
/* Height in vh is divided by the page zoom (theme.css); onto.js also caps it at 0.8 of the width. */
.onto-canvas{display:block;width:100%;height:calc(100vh / var(--z,1) - 215px);min-height:340px;
  --onto-open:var(--tint-3);--onto-right:var(--ink);--onto-missed:var(--ink-6);
  --onto-over-open:var(--tint-2);--onto-over-right:var(--ink-5);--onto-over-missed:var(--rule-2);
  --onto-page:var(--page);--onto-line:var(--rule-1)}
.onto-layer{position:absolute;inset:0;pointer-events:none}
.onto-layer>*{position:absolute;left:0;top:0;opacity:0;visibility:hidden;white-space:nowrap;font-size:13px;line-height:18px;letter-spacing:-.005em}
.onto-card{display:flex;flex-direction:column;gap:2px;padding:9px 12px 10px;background:var(--page);border:1px solid var(--rule-2);color:var(--ink-2);font-size:14px!important;line-height:20px!important}
.onto-key{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 6px 1px 1px;vertical-align:middle;background:var(--onto-off)}
.onto-name{color:var(--ink-2)}
.onto-count{color:var(--ink-5);font-variant-numeric:tabular-nums}
.onto-note{color:var(--ink-5);font-size:12px!important}
.onto-label{display:block;text-align:right;margin-top:9px;font-size:11px;line-height:1;color:var(--ink-5);letter-spacing:0}

/* Narrow windows: the figure is pinned at the top at its own height (white.css, landing.js); it keeps one height
   in every step, and the steps pass under it. */
@media (max-width:1000px){
  .onto .onto-grid{grid-template-columns:1fr}
  .onto .lx-step{max-width:none}
  .onto-canvas{height:calc(46vh / var(--z,1));min-height:200px}
  .onto-layer>*{font-size:12px;line-height:16px}
  .onto-card{font-size:12.5px!important;line-height:18px!important;padding:7px 10px 8px}
  .onto-note{font-size:11px!important}
  .onto-label{margin-top:7px}
}

/* Order of 2026-11-18: the mountain takes the full width under the step text on every window. The figure is
   pinned at the top at its own height and the steps pass under it (landing.js: .lx-stacked), as on a phone. */
@media (min-width:1001px){
  .onto.lx-stacked .onto-grid{grid-template-columns:1fr}
  .onto.lx-stacked .lx-stage{order:-1}
  .page-index .onto.lx-stacked.is-live .lx-stage{display:block;top:0;height:auto;min-height:0;padding-block:18px 14px;background:var(--page);z-index:2}
  .onto.lx-stacked .onto-canvas{height:calc(54vh / var(--z,1));min-height:300px}
  .onto.lx-stacked .lx-step{max-width:620px}
}
