/* The map of the stack (scripts/site/map.py). The page has the look of the proof graphs, whose style sheet
   it loads first: a white page, one text face, 1px rules, no gradients and no shadows. The colours of the
   canvas are custom properties here, so that the script draws in the theme of the page: it reads them
   again when the theme changes. Blue is BlowupZoo, lighter to darker by the level of the ladder; green,
   orange and violet are the three libraries below it; a kind is never told by its colour alone: the
   legend and the panel say it in words. */
.bzm-page { display: flex;
  --bzm-fold: rgba(17, 17, 17, .035); --bzm-ring: rgba(17, 17, 17, .22); --bzm-label: #111111; --bzm-halo: rgba(255, 255, 255, .86);
  --bzm-none: #d9d8d2; --bzm-dim: #ecebe6;
  --bzm-pde: #1baf7a; --bzm-sym: #eb6834; --bzm-float: #7b61c9; --bzm-shared: #6f7f92; --bzm-ext: #b4b3ab;
  --bzm-r0: #e4eefb; --bzm-r1: #cde2fb; --bzm-r2: #b3d2f7; --bzm-r3: #9ec5f4; --bzm-r4: #79aeee; --bzm-r5: #5598e7;
  --bzm-r6: #3b80d6; --bzm-r7: #256abf; --bzm-r8: #0d366b;
  --bzm-a: #2a78d6; --bzm-b: #eb6834; --bzm-c: #1baf7a; --bzm-d: #7b61c9; --bzm-e: #c2a000; --bzm-f: #d0508c;
  --bzm-two: #8a6fb0; --bzm-all: #2b2b2b;
  --bzm-seed: #111111; --bzm-stmt: #c22f2f; --bzm-proof: #f0a36b; --bzm-answer: #0a7d0a;
  --bzm-broken: #c22f2f; --bzm-obstruction: #b97f00; --bzm-full: #a54113; --bzm-high: #d96a2e; --bzm-half: #eda06e;
  --bzm-low: #f6d2b6; --bzm-unknown: #8f8e88; --bzm-unaffected: #d9d8d2; }
:root[data-theme="dark"] .bzm-page {
  --bzm-fold: rgba(240, 239, 236, .045); --bzm-ring: rgba(240, 239, 236, .22); --bzm-label: #f0efec; --bzm-halo: rgba(18, 18, 17, .84);
  --bzm-none: #3a3a36; --bzm-dim: #232321;
  --bzm-pde: #199e70; --bzm-sym: #d95926; --bzm-float: #9085e9; --bzm-shared: #8b97a6; --bzm-ext: #55554e;
  --bzm-r0: #0f2748; --bzm-r1: #0d366b; --bzm-r2: #144580; --bzm-r3: #184f95; --bzm-r4: #1f5caa; --bzm-r5: #256abf;
  --bzm-r6: #3987e5; --bzm-r7: #5f9fec; --bzm-r8: #a9cbf5;
  --bzm-a: #3987e5; --bzm-b: #d95926; --bzm-c: #199e70; --bzm-d: #9085e9; --bzm-e: #c98500; --bzm-f: #d55181;
  --bzm-two: #a892cf; --bzm-all: #f0efec;
  --bzm-seed: #f0efec; --bzm-stmt: #e66767; --bzm-proof: #b5683a; --bzm-answer: #3fbf3f;
  --bzm-broken: #e66767; --bzm-obstruction: #fab219; --bzm-full: #f09a73; --bzm-high: #d95926; --bzm-half: #a54f24;
  --bzm-low: #5a3018; --bzm-unknown: #77766f; --bzm-unaffected: #3a3a36; }

/* without the script the page is a text that scrolls: the drawing, the tables, the lists of what can be switched on */
.bzm-page:not(.js) { display: block; overflow: auto; height: auto; }
.bzm-page:not(.js) .needs-js { display: none; }
.bzm-page:not(.js) main { display: block; }
.bzm-page:not(.js) .bzm-stage { height: auto; cursor: default; overflow: visible; }
.bzm-page:not(.js) .bzm-drawing { position: static; display: block; width: 100%; height: auto; max-height: 74vh; }
.bzm-page.js .bzm-static, .bzm-page.js .bzm-drawing { display: none; }
.bzm-embedded .site-head { display: none; }

.bzm-title { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; }
.bzm-pick { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-style: italic; }
.bzm-pick select { font-style: normal; color: var(--ink); }
.bzm-page .search { flex: 0 1 330px; }
.bzm-page .results { min-width: 380px; right: 0; left: auto; width: min(560px, 92vw); }
.bzm-page .results .r1 b { font-weight: 600; }
.bzm-page .results .tag { float: right; color: var(--muted); font-size: 12px; font-variant-caps: all-small-caps; letter-spacing: .06em; margin-left: 10px; }
.bzm-page .chips .lab { font-style: normal; display: inline-flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.bzm-page .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bzm-sw { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--ink2); font-size: 13.5px; }
.bzm-sw i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line2); }
.bzm-sw i.dash { border: 1.5px dashed var(--warn); background: none; }
.bzm-sw i.ring { border: 2px solid var(--bzm-answer); background: none; }
.bzm-ramp { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink2); font-size: 13.5px; }
.bzm-ramp span { display: inline-flex; }
.bzm-ramp i { display: inline-block; width: 13px; height: 11px; }

.bzm-stage { background: var(--bg); }
.bzm-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bzm-drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.bzm-drawing circle { fill: var(--bzm-r5); fill-opacity: .13; stroke: var(--bzm-ring); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bzm-drawing circle.g1 { fill: var(--bzm-pde); } .bzm-drawing circle.g2 { fill: var(--bzm-sym); } .bzm-drawing circle.g3 { fill: var(--bzm-float); }
.bzm-drawing circle.ext { fill: var(--bzm-ext); }
.bzm-drawing text { fill: var(--ink2); text-anchor: middle; font-family: var(--text); }
.bzm-drawing text.t1 { fill: var(--ink); font-weight: 600; }
.bzm-pill { position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--line2); border-radius: 2px;
  padding: 3px 9px; font-size: 13px; color: var(--ink2); max-width: calc(100% - 24px); }
.bzm-crumbs { left: 12px; top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bzm-crumbs a { color: inherit; cursor: pointer; }
.bzm-crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.bzm-crumbs b { color: var(--ink); font-weight: 600; }
.bzm-status { left: 12px; bottom: 10px; color: var(--muted); font-size: 12.5px; }
#bzm-tip { position: fixed; z-index: 40; pointer-events: none; background: var(--surface); border: 1px solid var(--ink);
  padding: 4px 9px; font-size: 13px; line-height: 1.35; max-width: 420px; color: var(--ink); }
#bzm-tip small { display: block; color: var(--muted); font-size: 12px; }

/* the panel: what is chosen, or the choice of a change */
.bzm-panel { width: 440px; }
.bzm-panel h2.name { margin: 1px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.26; letter-spacing: 0; font-variant-caps: normal;
  color: var(--ink); border: 0; padding: 0; overflow-wrap: anywhere; }
.bzm-panel h2.name.mono { font: 600 14.5px/1.4 var(--mono); }
.bzm-panel .tabs { display: flex; gap: 6px; margin: 0 54px 10px 0; }
.bzm-panel .tabs button { border: 1px solid var(--line2); background: transparent; border-radius: 2px; padding: 1px 9px; font-size: 13.5px; }
.bzm-panel .tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bzm-panel dl { grid-template-columns: max-content 1fr; }
.bzm-panel .go { border: 1px solid var(--line2); background: transparent; border-radius: 2px; padding: 2px 10px; font-size: 13.5px; margin: 0 6px 6px 0; }
.bzm-panel .go:hover { border-color: var(--ink); }
.bzm-panel .go.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bzm-panel ul.pick { margin: 0 0 9px; }
.bzm-panel ul.pick li { padding: 1px 0; font-size: 14px; }
.bzm-panel ul.pick a, .bzm-panel a.at { cursor: pointer; }
.bzm-panel ul.pick .mono, .bzm-panel .mono { font: 12.5px/1.45 var(--mono); overflow-wrap: anywhere; }
.bzm-panel ul.pick small { margin-left: 6px; }
.bzm-panel li small, .bzm-panel summary small { font: 12.5px/1.4 var(--text); color: var(--muted); }
.bzm-panel .more { border: 0; background: none; padding: 0; color: var(--accent-ink); font-size: 13.5px; }
.bzm-panel .more:hover { text-decoration: underline; }
.bzm-panel pre.src { max-height: 46vh; overflow: auto; white-space: pre; overflow-wrap: normal; tab-size: 2; }
.bzm-panel pre .hk { color: var(--accent-ink); font-weight: 600; }
.bzm-panel pre .hc { color: var(--muted); font-style: italic; }
.bzm-panel pre .hs { color: var(--other-ink); }
.bzm-panel pre.stmt { white-space: pre-wrap; border-left: 3px solid var(--accent); }
.bzm-panel .doc p { font-size: 14.5px; line-height: 1.5; }
.bzm-panel .doc h3 { margin: 10px 0 3px; font-size: 14.5px; font-weight: 600; }
.bzm-panel .doc ul { list-style: disc; padding-left: 20px; }
.bzm-panel .doc li { font-size: 14px; }
.bzm-panel .doc ol { list-style: decimal; padding-left: 22px; }
.bzm-panel .doc p.display { margin-left: 18px; }
.bzm-panel .doc pre { white-space: pre; overflow-x: auto; }
.bzm-panel .doc table.bzm-lv th, .bzm-panel .doc table.bzm-lv td { vertical-align: top; border-top: 1px solid var(--line); }
.bzm-panel details { margin: 0 0 6px; }
.bzm-panel details > summary { cursor: pointer; font-size: 14.5px; padding: 2px 0; }
.bzm-panel details > summary small { color: var(--muted); margin-left: 6px; }
.bzm-panel details details { margin-left: 14px; }
.bzm-panel table.bzm-lv { border-collapse: collapse; width: 100%; margin: 0 0 9px; font-size: 13.5px; font-variant-numeric: lining-nums tabular-nums; }
.bzm-panel table.bzm-lv th { text-align: left; font-weight: 400; color: var(--muted); padding: 1px 8px 1px 0; }
.bzm-panel table.bzm-lv td { padding: 1px 8px 1px 0; }
.bzm-panel table.bzm-lv td.n { text-align: right; }
.bzm-panel table.bzm-lv tr.hit td:first-child { font-weight: 600; }
.bzm-panel table.bzm-lv a { cursor: pointer; }
.bzm-panel .state { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.bzm-panel .on-note { border: 1px solid var(--ink); padding: 8px 10px; margin: 0 0 12px; }
.bzm-panel .on-note p { font-size: 14.5px; margin: 0 0 5px; }
.bzm-panel select { max-width: 100%; background: var(--surface); border: 1px solid var(--line2); border-radius: 2px; padding: 3px 6px; margin: 0 0 6px; }

.bzm-static { max-width: 60rem; margin: 0 auto; padding: 18px var(--gutter, 24px) 48px; font-size: 16px; line-height: 1.55; }
.bzm-static h2 { font-size: 20px; margin: 26px 0 8px; }
.bzm-table { border-collapse: collapse; margin: 14px 0 22px; font-variant-numeric: lining-nums tabular-nums; }
.bzm-table caption { text-align: left; color: var(--ink2); padding-bottom: 6px; caption-side: top; }
.bzm-table th, .bzm-table td { border-top: 1px solid var(--line); padding: 4px 14px 4px 0; text-align: left; vertical-align: top; font-weight: 400; }
.bzm-table thead th { color: var(--muted); border-top: 0; }
.bzm-table td:not(:first-child) { text-align: right; }
.bzm-table small { display: block; color: var(--muted); font-size: .86em; }
.bzm-static details { margin: 4px 0; }
.bzm-static details ul { columns: 2; column-gap: 28px; font-size: 14.5px; padding-left: 18px; }

/* on a wide page the legend wraps under the buttons, so that all of it shows; on a narrow one the bar scrolls */
@media (min-width: 761px) {
  .bzm-page .chips { flex-wrap: wrap; row-gap: 4px; overflow-x: visible; }
  .bzm-page .chips .lab { flex: 1 1 300px; min-width: 0; flex-wrap: wrap; row-gap: 3px; }
}
@media (max-width: 760px) {
  .bzm-panel { width: auto; }
  .bzm-pick span { display: none; }
  .bzm-page .results { left: 0; right: 0; width: auto; min-width: 0; }
  .bzm-static details ul { columns: 1; }
  .bzm-status { display: none; }
}
