/* (boxes, cards, formulas and fields are clear, --panel-2: transparent, so the site's paper runs through them)
   The game explorer inside the site: every rule is scoped to .explorer, the colours are tokens on it, and the dark
   theme follows the site's own switch (html.dark), so the page reads as part of the site. */
.explorer {
  --bg: transparent; --panel: rgba(255, 255, 255, 0.62); --panel-2: transparent; --border: rgba(0, 0, 0, 0.09);
  --text: #1b1b1f; --muted: #52525b; --faint: #62626c;
  --accent: #1f3fd0; --accent-soft: rgba(31, 63, 208, 0.1); --accent-ink: #ffffff;
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, 0.1); --warn: #b4461f; --warn-soft: rgba(180, 70, 31, 0.12);
  --bad: #b91c1c; --bad-soft: rgba(185, 28, 28, 0.09);
  --c1: #1f3fd0; --c2: #b4461f; --c3: #27272a; --c4: #7c3aed; --c5: #16a34a; --c6: #dc2626;
  --grid: rgba(0, 0, 0, 0.075); --track: rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-size: 15px; line-height: 1.55;
  max-width: 1080px; margin: 0 auto; padding: 4.7rem 20px 48px;
}
.dark .explorer {
  --panel: rgba(255, 255, 255, 0.035); --panel-2: transparent; --border: rgba(255, 255, 255, 0.09);
  --text: #ececef; --muted: #a1a1aa; --faint: #8e8f98;
  --accent: #8fb0ff; --accent-soft: rgba(143, 176, 255, 0.14); --accent-ink: #0b1220;
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, 0.12); --warn: #e5875c; --warn-soft: rgba(229, 135, 92, 0.12);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, 0.12);
  --c1: #8fb0ff; --c2: #e5875c; --c3: #e4e4e7; --c4: #c4b5fd; --c5: #4ade80; --c6: #f87171;
  --grid: rgba(255, 255, 255, 0.08); --track: rgba(255, 255, 255, 0.16);
  color-scheme: dark;
}
.explorer *, .explorer *::before, .explorer *::after { box-sizing: border-box; }
.explorer a { color: var(--accent); text-decoration: none; }
.explorer a:hover { text-decoration: underline; }

/* the head of the page */
.explorer .crumbs { font-size: 0.85rem; color: var(--faint); margin-bottom: 6px; }
.explorer .crumbs a { color: var(--faint); }
.explorer h1 { font-family: Newsreader, "Iowan Old Style", Georgia, serif; font-weight: 500; font-size: 2.3rem; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.02em; }
.explorer .sub { color: var(--muted); margin: 0 0 10px; max-width: 760px; font-size: 0.98rem; }
.explorer .topstrip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 0 0 12px; }
.explorer .topstrip > .facts { margin: 0; }
.explorer .topstrip > details.howto { margin: 0; }
.explorer .topstrip > details.howto[open] { flex-basis: 100%; margin-top: 6px; }
.explorer .facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.explorer .facts li { font-size: 0.8rem; color: var(--muted); }   /* (shapes, 11-09) no pill: the command is a line of code on the paper */
.explorer h2 { font-family: Newsreader, "Iowan Old Style", Georgia, serif; font-size: 1.28rem; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
/* (shapes, 11-09) a panel is a block of the page, not a box: no edge, no fill, no padding. Its heading and the space
   above it are what set it apart */
.explorer .panel { margin-bottom: 1.6rem; }
.explorer .muted { color: var(--muted); }
.explorer .small { font-size: 0.85rem; }
.explorer code, .explorer pre, .explorer .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.explorer p { margin: 0 0 8px; }

/* the games */
.explorer .tabs { display: flex; gap: 2px 22px; flex-wrap: wrap; margin-bottom: 14px; }
/* (shapes, 11-09) the games are a row of names, not capsules: the one that is on is in the accent, underlined in
   pencil (the same mark as the current chapter in the dissertation's contents); the others take the mark faintly
   under the pointer */
.explorer .tab { position: relative; border: 0; background: none; color: var(--text); padding: 7px 0 10px; border-radius: 0;
  cursor: pointer; font: inherit; font-size: 0.95rem; transition: color 0.15s; display: inline-flex; gap: 7px; align-items: baseline; }
.explorer .tab .ch { font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.explorer .tab::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 3px; height: 6px; pointer-events: none; background: currentColor; opacity: 0;
  -webkit-mask: url(/images/marks/underline.svg) 0 0 / 100% 100% no-repeat; mask: url(/images/marks/underline.svg) 0 0 / 100% 100% no-repeat; transition: opacity 0.15s; }
.explorer .tab:hover::after { opacity: 0.4; }
.explorer .tab[aria-selected="true"] { color: var(--accent); }
.explorer .tab[aria-selected="true"] .ch { color: var(--accent); opacity: 0.75; }
.explorer .tab[aria-selected="true"]::after { opacity: 0.9; }
@media (pointer: coarse) { .explorer .tab { padding: 12px 0 14px; } .explorer .tab::after { bottom: 7px; } }

.explorer .eq { font-family: "Cambria Math", "STIX Two Math", Georgia, serif; font-size: 0.98rem;
  padding: 2px 0 2px 1.1rem; margin: 10px 0; overflow-x: auto; white-space: nowrap; }   /* (shapes, 11-09) no box: displayed equations, set in a little */
.explorer .eq div { padding: 1px 0; }
@media (max-width: 600px) { .explorer .eq { font-size: 0.86rem; white-space: nowrap; padding-left: 0; } .explorer h1 { font-size: 1.6rem; } .explorer { padding-top: 4.2rem; } }
.explorer .controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px 18px; margin-top: 10px; }
.explorer .ctl label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.explorer .ctl label .val { color: var(--text); font-family: ui-monospace, Menlo, monospace; }
/* (--sl-in, css/sliders.css: the scale's end strokes stand under the label's first letter and the value's last digit) */
.explorer .ctl input[type=range] { width: 100%; margin: 6px 0 0; --sl-in: 2px; }
.explorer .ctl select, .explorer .ctl input[type=number] { width: 100%; font: inherit; font-size: 0.9rem; padding: 6px 2px 7px; border: 0; border-radius: 0;
  background-color: transparent; color: var(--text); margin-top: 4px; }
/* (shapes, 11-09) a field is a pencil line to write on, not a box (--field-line, partials/header.html, which gives
   every select on the site the same line) */
.explorer input[type=number] { background: var(--field-line) left bottom / 100% 6px no-repeat; }
/* the solver options: one strip under the sliders */
.explorer .ctl.ch6-view { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.explorer .ctl.ch6-view select { width: auto; }
.explorer .ctl.ch6-view .hint { flex: 1 1 280px; margin: 0; }
.explorer .ctl.opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  border-top: 1px dashed var(--border); padding-top: 12px; font-size: 0.88rem; color: var(--muted); }
.explorer .ctl.opts label.pick { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-start; }
.explorer .ctl.opts label.pick select { width: auto; margin-top: 0; }
.explorer .ctl.opts label.check { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-start; cursor: pointer; }
.explorer .ctl.opts input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.explorer .ctl.opts .hint { margin: 0; }
.explorer .hint { font-size: 0.8rem; color: var(--faint); margin-top: 3px; }
/* (shapes round 2, 11-09) the model file: a block of type inside one light pencil frame, lighter than a button's as it
   is the largest box on the page; the pencil turns to the accent while the file has the keyboard */
.explorer textarea#yaml { display: block; width: 100%; min-height: 320px; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: none;
  color: var(--text); border: 1px solid var(--border); border-radius: 0; padding: 12px 14px; margin-bottom: 7px; resize: vertical; tab-size: 2; }
.explorer textarea#yaml ~ .scr { --scr-opacity: 0.36; }
.explorer textarea#yaml.scr-in:focus-visible { outline: none; }
.explorer textarea#yaml.scr-in:focus-visible ~ .scr { color: var(--accent); opacity: 0.9; }
.explorer .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
/* the model in YAML or Python (the results' model panel and "Your model") */
.explorer details.modelcode { margin-top: 12px; }
.explorer details.modelcode > .codetabs { margin: 10px 0 8px; }
.explorer .codetabs { gap: 2px 18px; margin-bottom: 8px; }
.explorer .codetabs .tab { padding: 3px 0 8px; font-size: 0.85rem; }
.explorer .codetabs .tab::after { bottom: 2px; }
@media (pointer: coarse) { .explorer .codetabs .tab { padding: 12px 0 14px; } .explorer .codetabs .tab::after { bottom: 8px; } }
.explorer .pane { position: relative; }
.explorer .pane > pre.describe { overflow-x: auto; margin: 0; }
/* (cut-off, 11-09) model code wider than the pane fades out on the side where more of it lies, so a long line no
   longer stops dead at the edge; tied to the block's own sideways scroll, so code that fits is untouched. A browser
   without scroll-driven animations shows it as before. The same for a line of the model's equations wider than the
   phone, and for the Decision Mesh's round-by-round table (the explorer's own tables fade through data-more below) */
@property --cut-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --cut-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes cut-l { from { --cut-l: 0px; } to { --cut-l: 1.6rem; } }
@keyframes cut-r { from { --cut-r: 2.4rem; } to { --cut-r: 0px; } }
@supports (animation-timeline: scroll()) {
  .explorer .pane > pre.describe, .explorer .eq .tex.typeset, .explorer.mesh .tablewrap {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--cut-l), #000 calc(100% - var(--cut-r)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--cut-l), #000 calc(100% - var(--cut-r)), transparent);
    animation: cut-l linear both, cut-r linear both; animation-timeline: scroll(self inline), scroll(self inline); animation-range: 0px 24px, calc(100% - 24px) 100%; }
}
.explorer .pane .copycode { position: absolute; top: 4px; right: 2px; z-index: 1; padding: 3px 10px; color: var(--text); }   /* (shapes round 3, 11-09) a small pencil box like every other button here and the mesh's small "Clear", its word in the text's ink (round 2: the muted ink was the faintest thing on the screen) */
.explorer .pane .copycode.done::after { content: " \2713"; }
@media (pointer: coarse) { .explorer .pane .copycode::before { content: ""; position: absolute; inset: -9px -4px; } }   /* 30px drawn, 46 to the finger (::after is the tick) */
.explorer .pane.nopython { min-height: 320px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.explorer .pane.nopython[hidden] { display: none; }
.explorer .row select { font: inherit; font-size: 0.9rem; padding: 5px 2px 7px; border: 0; border-radius: 0; background-color: transparent; color: var(--text); }
/* (shapes round 2, 11-09) on a touch screen a select or a number field takes a tap from 44px: the room is added above
   the value, so the value stays on its pencil line, and the chevron stays beside the value */
@media (pointer: coarse) { .explorer .ctl select, .explorer .ctl input[type=number], .explorer .row select { padding-top: 15px; padding-bottom: 8px; }
  html .explorer :is(.ctl, .row) select:not([multiple]):not([size]) { background-position: right 0.3em top calc(50% + 3px), left bottom !important; }
  .explorer label.check { min-height: 44px; } }
/* (shapes round 2, 11-09) buttons as the Decision Mesh draws them (mesh/mesh.css): one light pencil line a side
   (js/scribble.js, put on by the short script at the end of templates/explorer.html), nothing filled, no rounded
   corners; the main button is named in the accent; the pencil darkens under the pointer and turns to the accent when
   pressed or focused; a disabled button fades as a whole. The ruled square edge below is only what shows if the
   pencil script did not load: the script makes it transparent */
.explorer { --scr-ink: var(--text); }
.explorer button.primary, .explorer button.secondary { position: relative; font: inherit; font-size: 0.88rem; padding: 7px 14px; border: 1px solid var(--border); border-radius: 0;
  background: none; color: var(--text); cursor: pointer; }
.explorer button.primary { color: var(--accent); font-weight: 600; }
.explorer button:is(.primary, .secondary):hover:not(:disabled) > .scr { opacity: 0.95; }
.explorer button:is(.primary, .secondary):active:not(:disabled) > .scr { color: var(--accent); opacity: 1; }
.explorer button:disabled { opacity: 0.45; cursor: default; }
/* on a touch screen a button is drawn at the same size and takes a tap from a 44px band */
@media (pointer: coarse) { .explorer button:is(.primary, .secondary):not(.copycode)::after { content: ""; position: absolute; inset: -5px -2px; } }
/* the two ticks (refinement check, stability): a pencil square with a pencil tick in the accent, as on the mesh */
.explorer label.check { position: relative; }
.explorer label.check > .scr { --scr-opacity: 0.7; --scr-tick: var(--accent); }
.explorer .error { color: var(--bad); white-space: pre-wrap; }

/* the status bar stays under the site header while the results scroll */
.explorer #statusbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: 4rem; z-index: 5;
  padding: 10px 0; margin-bottom: 1.6rem; }
/* (shapes, 11-09) no box: as on the race's bar (mesh/mesh.css), the bar is a patch of the paper a little wider than
   the page's column, thinning out along its lower edge, so what scrolls under it slides under paper */
.explorer #statusbar::before { content: ""; position: absolute; inset: -10px -9px -6px; z-index: -1;
  background: var(--ground) var(--paper-img) 0 var(--paper-y, 0px) / 768px 768px fixed; background-blend-mode: var(--patch-blend);
  -webkit-mask: linear-gradient(#000 calc(100% - 12px), transparent); mask: linear-gradient(#000 calc(100% - 12px), transparent); }
/* the state is a word on the paper, not a pill: grey when idle or done, the accent while it works, orange for a warning */
.explorer .chip { display: inline-flex; align-items: center; gap: 6px; padding: 0 2px 0 0; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.explorer .rally { width: 40px; height: 14px; flex: none; }
.explorer .rally .bat { stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.explorer .rally .ball { fill: var(--accent); }
.explorer .chip.idle { color: var(--muted); }
.explorer .chip.busy { color: var(--accent); }
.explorer .chip.busy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: explorer-pulse 1s ease-in-out infinite; }
@keyframes explorer-pulse { 50% { opacity: 0.25; } }
.explorer .chip.ok { color: var(--muted); }
.explorer .chip.warn, .explorer .chip.bad { color: var(--warn); }
.explorer #statusfix { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.explorer #statusfix:empty { display: none; }
.explorer #statustext { color: var(--muted); font-size: 0.88rem; flex: 1 1 260px; }
.explorer #statusbar .buttons { display: flex; gap: 8px; margin-left: auto; }

.explorer #results { transition: opacity 0.2s; }
.explorer #results.stale { opacity: 0.55; }
.explorer #results .panel { animation: explorer-in 0.25s ease-out; }
@keyframes explorer-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.explorer .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 28px; }
.explorer .card { padding: 0; }   /* (shapes, 11-09) no tile: a label, a number and a note in a column */
.explorer .card .k { font-size: 0.8rem; color: var(--muted); }
.explorer .card .v { font-size: 1.35rem; font-family: ui-monospace, Menlo, monospace; }
.explorer .card .d { font-size: 0.78rem; color: var(--faint); }
.explorer .delta { font-size: 0.8rem; font-family: inherit; margin-left: 4px; }
.explorer .delta.up { color: var(--bad); } .explorer .delta.down { color: var(--ok); }
.explorer .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.explorer .grid3.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .explorer .grid3, .explorer .grid3.four { grid-template-columns: 1fr; } }
.explorer .plot { width: 100%; height: 300px; }
.explorer .plot.tall { height: 360px; }
.explorer .caption { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; max-width: 820px; }
.explorer table.diag { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.explorer table.diag th, .explorer table.diag td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.explorer table.diag th { color: var(--muted); font-weight: 600; }
.explorer table.diag td.mono { white-space: nowrap; }
/* a table wider than its panel scrolls, and fades out on a side where more of it is hidden (data-more, set in the
   script); a table that fits has no fades, so nothing is drawn over the paper at its edges */
.explorer .tablewrap { overflow-x: auto; }
.explorer .tablewrap[data-more="r"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.explorer .tablewrap[data-more="l"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.explorer .tablewrap[data-more="lr"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.explorer details summary { cursor: pointer; color: var(--muted); }
.explorer details.howto { margin: 0 0 18px; max-width: 800px; }
.explorer details.howto p { font-size: 0.92rem; color: var(--muted); margin: 8px 0 0; }
.explorer .notes { color: var(--muted); font-size: 0.9rem; margin-top: 28px; max-width: 820px; }
.explorer .notes p { margin: 0 0 8px; }
.explorer .versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .explorer .versus { grid-template-columns: 1fr; } }
.explorer .versus .side h3 { font-size: 0.95rem; font-weight: 650; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }

/* on a phone the games scroll sideways in one row instead of stacking seven deep */
@media (max-width: 600px) {
  .explorer .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 14px; padding: 2px 20px 4px;
    scroll-snap-type: x proximity; scroll-padding-inline: 20px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
  .explorer .tabs::-webkit-scrollbar { display: none; }
  .explorer .tab { flex: 0 0 auto; scroll-snap-align: start; }
  .explorer .facts li { font-size: 0.74rem; }
  .explorer #statusbar { top: 3.5rem; }
}

/* keyboard focus: a visible ring on everything you can tab to */
.explorer :is(button, select, input, textarea, a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .explorer *, .explorer *::before { animation: none !important; transition: none !important; }
}
.explorer .plot.stale-plot { opacity: 0.5; transition: opacity 0.2s; }
.explorer #sweeppanel .row select { max-width: 100%; }
.explorer #statusbar .buttons { flex-wrap: wrap; justify-content: flex-end; }
.explorer #statusbar .buttons button { white-space: nowrap; }
@media (max-width: 600px) { .explorer #statusbar .buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-left: 0; } }
/* on a phone the status bar is too tall to keep on screen: it scrolls with the page */
@media (max-width: 600px) { .explorer #statusbar { position: static; padding: 0; } .explorer #statusbar::before { display: none; } .explorer #statustext { flex-basis: 100%; } }
/* the idea block: the loop figure beside five paragraphs */
.explorer .howto.idea .ideagrid { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; margin-top: 10px; }
@media (max-width: 760px) { .explorer .howto.idea .ideagrid { grid-template-columns: 1fr; } }
.explorer .howto.idea figure { margin: 0; color: var(--text); }
.explorer .howto.idea .loopfig { width: 100%; height: auto; display: block; }
.explorer .howto.idea figcaption { font-size: 0.78rem; color: var(--faint); margin-top: 4px; }
.explorer .howto.idea p { margin: 0 0 10px; }

/* equations typeset by KaTeX (explorer.js typesetEquations); the HTML inside is the fallback */
.explorer .eq .tex.typeset { padding: 3px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.explorer .eq .katex { font-size: 1.08em; }

/* the pip line among the facts: press it to copy the command */
.explorer .facts li.pip { display: inline-flex; align-items: center; gap: 6px; }
.explorer .facts li.plain { align-self: center; }   /* the PyPI link beside the command */
.explorer .facts .copy { font: inherit; background: none; border: 0; padding: 0; cursor: copy; color: inherit; }
.explorer .facts .copy code { font-size: 0.95em; }
.explorer .facts .copy.done code::after { content: "  copied"; color: var(--accent); font-family: inherit; }

/* the "Cite it" block under the notes */
.explorer .cite { margin: 1.4rem 0 0; font-size: 0.88rem; color: var(--muted); }
.explorer .cite summary { cursor: pointer; }
.explorer .cite pre { padding: 0.2rem 0 0.6rem; overflow-x: auto; font-size: 0.78rem; margin-top: 0.7rem; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
/* (cut-off, 11-09) the BibTeX wraps, not runs off the right: each line is its own span, a wrapped field hangs under its value, a url breaks at a slash */
.explorer .cite pre .l { display: block; padding-left: 6ch; text-indent: -6ch; }
.explorer .cite pre .u { white-space: pre; }
.explorer .conv { padding: 0 2px; margin-bottom: 2rem; }
.explorer .conv svg { display: block; width: 100%; overflow: visible; font-size: 11px; }
.explorer .conv .grid { stroke: var(--border); stroke-width: 1; }
.explorer .conv .tick { fill: var(--muted); font-variant-numeric: tabular-nums; }
.explorer .conv .axis { fill: var(--muted); font-style: italic; }
.explorer .conv .tol { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
.explorer .conv .run { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.explorer .conv .run.cmp { stroke-dasharray: 7 5; stroke-width: 2; }
.explorer .conv .run.early { stroke: var(--muted); stroke-width: 1.6; opacity: 0.55; }
.explorer .conv .pt { fill: var(--accent); }

/* the key to the sample paths: the three draws told apart by weight and opacity, not colour (explorer.js renderPaths) */

/* on a phone: a typeset equation keeps to one line and scrolls sideways rather than breaking mid-expression, and each
   row of the Diagnostics table stacks, the check and its status on one line, the value and its meaning under them */
@media (max-width: 600px) {
  .explorer .eq .tex.typeset { white-space: nowrap; }
  .explorer table.diag.checks thead { display: none; }
  .explorer table.diag.checks tr { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; border-bottom: 1px solid var(--border); padding: 6px 0; }
  .explorer table.diag.checks td { border: 0; padding: 2px 4px; }
  .explorer table.diag.checks td:nth-child(3), .explorer table.diag.checks td:nth-child(4) { grid-column: 1 / -1; }
  .explorer table.diag.checks td.mono { white-space: normal; }
}
/* "Your model": the example list is as wide as its longest name; on a phone it shrinks to the row instead */
.explorer #editor .row select { max-width: 100%; min-width: 0; }
/* (cut-off, 11-09) a chosen name longer than its field was cut at the chevron ("Kyle–Back from a prior ..." on a
   phone, "16: fine, passes the refinement check" in a 244px column): it takes a second line instead */
.explorer :is(.ctl, .row) select { white-space: normal; }

/* The results, drawn in pencil on the page (pencilplot.js). No grid, no box, no key in a frame: two freehand axis
   lines, a number where a tick is, each curve named where it runs, values read under the finger. */
.explorer .plot.pplot { height: auto; min-height: 0; }
.explorer .pp { display: block; overflow: visible; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; color: var(--text); }
.explorer .pp text { font-family: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
.explorer .pp .pp-title { font-size: 13.5px; fill: var(--text); }
.explorer .pp .pp-num { fill: var(--muted); }
.explorer .pp .pp-axis { fill: var(--faint); font-style: italic; font-size: 11.5px; }
.explorer .pp .pp-ax { fill: none; stroke: var(--muted); stroke-width: 1; stroke-linecap: round; opacity: 0.6; }
.explorer .pp .pp-tick { fill: none; stroke: var(--muted); stroke-width: 0.9; stroke-linecap: round; opacity: 0.7; }
.explorer .pp .pp-zero { fill: none; stroke: var(--muted); stroke-width: 0.8; stroke-linecap: round; opacity: 0.32; }
.explorer .pp .pp-vline { fill: none; stroke: var(--muted); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1 4.5; opacity: 0.8; }
/* a name or a value sits on the paper, with a little of the ground round it so a line under it does not cut it */
.explorer .pp .pp-name, .explorer .pp .pp-val { paint-order: stroke; stroke: var(--ground, var(--bg)); stroke-width: 3px; stroke-opacity: 0.85; stroke-linejoin: round; }
.explorer .pp .pp-keyname { fill: var(--muted); stroke: none; }
.explorer .pp .pp-val { font-size: 11.5px; fill: var(--text); }
.explorer .pp .pp-xval { fill: var(--text); }
.explorer .pp .pp-reading .pp-num { opacity: 0.25; }
.explorer .pp .pp-hair { fill: none; stroke: var(--muted); stroke-width: 0.8; opacity: 0.7; }
.explorer .pp .pp-dot { stroke: var(--ground, var(--bg)); stroke-width: 1; }
.explorer .pp .pp-hatch path { fill: none; stroke: var(--muted); stroke-width: 0.7; stroke-linecap: round; opacity: 0.3; }
/* the sample paths: the band is a light wash of the row's own color, the two draws before the current one fainter */
.explorer .pp .pp-band { fill: currentColor; opacity: 0.045; stroke: none; }
.explorer .pp .pp-edge { fill: none; stroke: currentColor; stroke-width: 0.8; stroke-linecap: round; opacity: 0.3; }
.explorer .pp .pp-mean { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-dasharray: 0.5 4.5; opacity: 0.55; }
.explorer .pp .pp-age1 { opacity: 0.42; }
.explorer .pp .pp-age2 { opacity: 0.2; }
.explorer .pp .pp-play { transition: opacity 0.9s; }
.explorer .pp .pp-now { fill: none; stroke: var(--muted); stroke-width: 0.7; opacity: 0.16; }
.explorer .pp .pp-tip { stroke: none; }
.explorer .pp .pp-rowname { font-size: 12px; }
