/* The simple graph picture (graph-picture.js): nine columns K to 8, a box per topic, its steps under it when its
   chevron is open, the prerequisites as arrows. One light theme: the brand's tokens from primer.css with fallbacks,
   strokes in currentColor so the picture reads on the desks' white and inside the dark field if ever placed there.
   The figure's host is a grid column of minmax(0, 1fr) with min-width 0, so at 390 px the page never widens and the
   picture scrolls sideways and down inside its own box (docs/engineering/PROBLEMS.md, the columns' lesson).
   The overlay (a child's coordinates, M1-F): belief in four steps of leaf, the ring by evidence, a gap mark in
   oxblood, the frontier outlined in ochre; From and To, when lit, ringed outside both; the classes come from graph-picture.js, the colours live here. */
.graph-picture { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; max-width: 100%; color: var(--ink, #173a32); }
.gp-caption { margin: 0; color: var(--ink-soft, #53685f); }
.gp-scroll { overflow: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; max-height: 72vh; border: 1px solid var(--line, #dce4df); border-radius: 8px; background: #fff; outline: none; }
/* primer.css caps every svg at max-width 100%; this one must keep its drawn width so the box scrolls instead of squeezing it (the walk at 390, 2026-10-24). */
.gp-svg { display: block; max-width: none; font: 500 10.5px/1 var(--sans, system-ui, sans-serif); }
.gp-head { font-weight: 600; font-size: 12px; fill: var(--ink-soft, #53685f); letter-spacing: .04em; text-transform: uppercase; }
.gp-col.is-child-grade .gp-head { fill: var(--oxblood, #782d3b); }
.gp-edge { fill: none; stroke: currentColor; stroke-opacity: .42; stroke-width: 1.2px; }
.gp-svg marker path { fill: currentColor; fill-opacity: .6; }
.gp-node, .gp-toggle { cursor: pointer; outline: none; }
.gp-box { fill: #fff; stroke: currentColor; stroke-width: 1.2px; }
.gp-node.is-sub .gp-box { fill: var(--paper, #f6f1e7); }
.gp-label { fill: var(--ink, #173a32); font-weight: 600; }
.gp-node.is-sub .gp-label { font-weight: 500; }
.gp-node:hover .gp-box, .gp-node:focus-visible .gp-box { stroke-width: 2.2px; }
.gp-node[aria-pressed="true"] .gp-box { stroke: var(--oxblood, #782d3b); stroke-width: 2.6px; }
.gp-node.is-focus .gp-box { stroke: var(--ink, #173a32); stroke-width: 3px; }
.gp-toggle-hit { fill: transparent; }
.gp-toggle:hover .gp-toggle-hit, .gp-toggle:focus-visible .gp-toggle-hit { fill: color-mix(in srgb, var(--ink, #173a32) 10%, transparent); }
.gp-chevron { fill: none; stroke: currentColor; stroke-width: 1.8px; stroke-linecap: round; stroke-linejoin: round; }
/* The overlay. */
.gp-node.is-belief-1 .gp-box { fill: color-mix(in srgb, var(--leaf, #7f9c5b) 22%, #fff); }
.gp-node.is-belief-2 .gp-box { fill: color-mix(in srgb, var(--leaf, #7f9c5b) 48%, #fff); }
.gp-node.is-belief-3 .gp-box { fill: color-mix(in srgb, var(--leaf, #7f9c5b) 76%, #fff); }
.gp-node.is-unknown .gp-box { fill: #fff; stroke-opacity: .5; stroke-dasharray: 2 3; }
.gp-node.is-suff-none .gp-box { stroke-width: .8px; stroke-dasharray: 2 3; }
.gp-node.is-suff-thin .gp-box { stroke-dasharray: 5 3; }
.gp-node.is-suff-enough .gp-box { stroke-width: 2.4px; }
.gp-gap { fill: var(--oxblood, #782d3b); }
.gp-frontier { fill: none; stroke: var(--accent, #b66a36); } /* its stroke width is the markup's (PICTURE.FRONTIER_W), so the ring's clearance is in numbers */
/* The legend, in words, a key before each. */
.gp-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font: 12px/1.5 var(--sans, system-ui, sans-serif); color: var(--ink-soft, #53685f); }
.gp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.gp-key { display: inline-block; width: 14px; height: 12px; border: 1.2px solid currentColor; border-radius: 3px; background: #fff; }
.gp-key.is-arrow { width: 22px; height: 0; border-width: 0 0 1.2px; border-radius: 0; background: none; }
.gp-key.is-belief-1 { background: color-mix(in srgb, var(--leaf, #7f9c5b) 22%, #fff); }
.gp-key.is-belief-2 { background: color-mix(in srgb, var(--leaf, #7f9c5b) 48%, #fff); }
.gp-key.is-belief-3 { background: color-mix(in srgb, var(--leaf, #7f9c5b) 76%, #fff); }
.gp-key.is-suff-none { border-style: dotted; border-width: .8px; }
.gp-key.is-suff-thin { border-style: dashed; }
.gp-key.is-suff-enough { border-width: 2.4px; }
.gp-key.is-gap { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--oxblood, #782d3b); }
.gp-key.is-frontier { border: 2px solid var(--accent, #b66a36); }
/* From and To lit on the big picture (the tutor's Map, tutor-map-page.js): a ring outside the box and outside the frontier's outline, oxblood dashed for From and ink solid for To,
   so the overlay's fill and its evidence ring stay readable under them. */
.gp-lit { fill: none; pointer-events: none; } /* its stroke width is the markup's (PICTURE.RING_W), so the gap that keeps two rings apart is one number */
.gp-lit.is-from { stroke: var(--oxblood, #782d3b); stroke-dasharray: 6 3; }
.gp-lit.is-to { stroke: var(--ink, #173a32); }
.gp-key.is-from { border: 2px dashed var(--oxblood, #782d3b); }
.gp-key.is-to { border: 2.4px solid var(--ink, #173a32); }
@media (max-width: 600px) { .gp-scroll { max-height: 60vh; } }

/* The small picture on the founder's right pane (pathPicture): one column that fits its cell, From and To lit and each a press to the Maths map, the way between in ink, one short line when it has one. */
.gp-path { margin: 0; display: grid; gap: 4px; min-width: 0; }
.gp-path .gp-svg { width: 100%; max-width: 216px; height: auto; }
.gp-path .gp-node.is-still { cursor: default; }
.gp-path [data-gp-open] { cursor: pointer; }
.gp-path [data-gp-open]:hover .gp-box, .gp-path [data-gp-open]:focus-visible .gp-box { stroke-width: 3.4px; }
.gp-path .is-from .gp-box { stroke: var(--oxblood, #782d3b); stroke-width: 2.4px; fill: color-mix(in srgb, var(--accent, #b66a36) 24%, #fff); }
.gp-path .is-to .gp-box { stroke: var(--ink, #173a32); stroke-width: 2.8px; fill: color-mix(in srgb, var(--leaf, #7f9c5b) 40%, #fff); }
.gp-path .gp-edge.is-path { stroke-opacity: .9; stroke-width: 1.6px; }
.gp-path .gp-line { margin: 0; }
/* The founder desk's Maths map filter (knowledge-graphs.js, desk-v3-maths-map): a box the filter lit, or a shut topic holding a lit step, filled warm and outlined, the same yellow as the field's. */
.gp-node.is-match .gp-box { fill: #fff3cf; stroke: #b07d00; stroke-width: 2.4px; }
.gp-key.is-match { background: #fff3cf; border: 2px solid #b07d00; }
