/* Proof map (proofmap.js) and its page (proof.html). Dark, like the hero, wherever it is mounted. */
.pm { --pm-line: rgba(255,255,255,.11); --pm-ink: #eef3f8; --pm-muted: #a2b0c9; --pm-quiet: #8291ad; color: var(--pm-ink); background: #0d1b36; border: 1px solid var(--pm-line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(4,10,24,.35); }
.pm button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-bar { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; min-height: 54px; padding: 10px 18px; border-bottom: 1px solid var(--pm-line); }
.pm-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font: 600 14.5px var(--display); }
.pm-crumbs button { max-width: 28ch; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; border-radius: 6px; color: var(--pm-muted); font: inherit; cursor: pointer; }
.pm-crumbs button:hover { color: #fff; background: rgba(255,255,255,.07); }
.pm-crumbs button[aria-current] { color: #fff; background: none; cursor: default; }
.pm-sep { color: var(--pm-quiet); }
.pm-note { margin-left: auto; color: var(--pm-muted); font-size: 13px; white-space: nowrap; }
.pm-find { width: 170px; min-width: 0; padding: 7px 10px; background: rgba(255,255,255,.05); border: 1px solid var(--pm-line); border-radius: 8px; color: #fff; font: 13.5px var(--sans); }
.pm-find::placeholder { color: var(--pm-quiet); }
.pm-find:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,107,58,.2); }
.pm-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.pm-visual { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--pm-line); }
.pm-stage { position: relative; height: 620px; overflow: hidden; outline: none; cursor: grab; touch-action: pan-y; background: radial-gradient(ellipse at 50% 55%, rgba(54,91,153,.36), transparent 62%), linear-gradient(rgba(168,230,219,.04) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(168,230,219,.04) 1px, transparent 1px) 0 0 / 28px 28px; }
.pm-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.pm-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pm-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pm-label { position: absolute; left: 0; top: 0; max-width: 22ch; transition: opacity .15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dfe7f5; font: 500 11.5px var(--sans); text-shadow: 0 1px 3px #0b1831, 0 0 8px #0b1831; will-change: transform; }
.pm-label.on { color: #fff; font-weight: 700; }
.pm-tip { position: absolute; z-index: 3; max-width: 90%; padding: 5px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; background: #0b1831; border: 1px solid rgba(168,230,219,.4); border-radius: 7px; color: #fff; font: 600 12px var(--sans); }
.pm-controls { position: absolute; right: 14px; bottom: 14px; display: flex; overflow: hidden; background: rgba(11,24,49,.85); border: 1px solid var(--pm-line); border-radius: 9px; }
.pm-controls button { display: grid; place-items: center; width: 38px; height: 36px; background: none; border: 0; border-left: 1px solid var(--pm-line); color: #dfe7f5; cursor: pointer; }
.pm-controls button:first-child { border-left: 0; }
.pm-controls button:hover { color: #fff; background: rgba(255,255,255,.08); }
.pm-controls svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-hint { position: absolute; left: 16px; bottom: 22px; color: var(--pm-quiet); font-size: 12px; pointer-events: none; }
.pm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--pm-line); color: var(--pm-muted); font-size: 12.5px; }
.pm-legend > div { display: flex; align-items: center; gap: 7px; }
.pm-flow { margin-left: auto; }
.pm-mark { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.pm-mark.diamond { border-radius: 1px; transform: rotate(45deg); }
.pm-inspector { min-width: 0; max-height: 676px; padding: 22px 20px 26px; overflow-y: auto; background: rgba(255,255,255,.025); }
.pm-eyebrow { color: var(--pm-quiet); font: 600 11px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.pm-title { margin: 8px 0 10px; overflow-wrap: anywhere; color: #fff; font: 700 24px/1.15 var(--display); letter-spacing: -.4px; }
.pm-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 11px; border: 1px solid var(--pm-line); border-radius: 999px; font: 600 12.5px var(--sans); }
.pm-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pm-status[data-status="pass"] { color: #6fe0b0; }
.pm-status[data-status="fail"] { color: #ff8a80; }
.pm-status[data-status="unmet"] { color: #f3c17f; }
.pm-status[data-status="not_checked"] { color: var(--pm-muted); }
.pm-about { margin: 0 0 12px; color: #d5deee; font-size: 14.5px; line-height: 1.5; }
.pm-reason { margin: 0 0 12px; padding: 10px 12px; overflow-wrap: anywhere; background: rgba(255,107,94,.09); border-left: 3px solid #ff6b5e; border-radius: 0 8px 8px 0; color: #ffd9d5; font-size: 13.5px; line-height: 1.5; }
.pm-fine { margin: 0 0 12px; color: var(--pm-muted); font-size: 13px; line-height: 1.5; }
.pm-code { display: block; margin: 0 0 12px; padding: 0; overflow-wrap: anywhere; background: none; border: 0; color: #a8e6db; font: 12.5px/1.5 var(--mono); }
.pm-link { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border: 1px solid var(--pm-line); border-radius: 8px; color: #dfe7f5; font: 600 13px var(--sans); }
.pm-link:hover { color: #fff; border-color: rgba(255,255,255,.4); text-decoration: none; }
.pm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.pm-stats div { padding: 9px 12px; border: 1px solid var(--pm-line); border-radius: 9px; }
.pm-stats dt { color: var(--pm-muted); font-size: 12px; }
.pm-stats dd { margin: 2px 0 0; font: 600 19px var(--display); font-variant-numeric: tabular-nums; }
.pm-list-title { display: flex; justify-content: space-between; margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--pm-line); color: #fff; font: 600 13px var(--sans); }
.pm-list-title span { color: var(--pm-quiet); font-weight: 500; }
.pm-list { margin: 0; padding: 0; list-style: none; }
.pm-list button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; background: none; border: 0; border-radius: 7px; color: #dfe7f5; font: 14px var(--sans); text-align: left; cursor: pointer; }
.pm-list button:hover { color: #fff; background: rgba(255,255,255,.07); }
.pm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-count { color: var(--pm-quiet); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-why { margin: 0 0 6px 26px; color: var(--pm-muted); font-size: 12.5px; line-height: 1.45; }

/* the page */
.pm-page { background: radial-gradient(ellipse at 30% -220px, rgba(54,91,153,.5), transparent 60%), #09162f; color: #fff; }
.pm-main { padding: 44px 0 72px; }
.pm-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.pm-intro h1 { margin: 0 0 10px; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.4px; }
.pm-intro p { max-width: 46rem; margin: 0; color: #c7cfe6; font-size: 16.5px; }
.pm-metrics { display: flex; margin: 0; }
.pm-metrics div { padding: 0 22px; border-left: 1px solid rgba(255,255,255,.14); }
.pm-metrics div:last-child { padding-right: 0; }
.pm-metrics dt { order: 2; color: #a2b0c9; font-size: 12.5px; }
.pm-metrics dd { margin: 0; font: 600 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.pm-metrics div { display: flex; flex-direction: column; }
.pm-source { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; color: #c7cfe6; font-size: 14.5px; }
.pm-source select { max-width: 100%; padding: 8px 10px; background: #13264a; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; font: 14.5px var(--sans); }
.pm-source select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-source a, .pm-foot a { color: var(--aqua); }
.pm-msg { color: #ffb4ab; }
.pm-views { display: inline-flex; margin-left: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; }
.pm-views button { padding: 8px 14px; background: none; border: 0; color: #c7cfe6; font: 600 14px var(--sans); cursor: pointer; }
.pm-views button + button { border-left: 1px solid rgba(255,255,255,.2); }
.pm-views button:hover { color: #fff; }
.pm-views button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; }
.pm-views button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pm-foot { margin: 16px 0 0; color: #a2b0c9; font-size: 14px; }
.pm-foot code { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #dfe7f5; }
.pm-empty { padding: 60px 24px; border: 1px dashed rgba(255,255,255,.2); border-radius: 14px; color: #a2b0c9; text-align: center; }

/* the squid plot (proofsquid.js). color-scheme tells the plot's library to draw light on dark. */
.ps { overflow: hidden; background: #0d1b36; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; box-shadow: 0 24px 60px rgba(4,10,24,.35); color: #eef3f8; color-scheme: dark; }
.ps-plot { position: relative; height: 600px; min-width: 0; }
.ps-plot-tall { height: 680px; }
.pm-views-first { margin-left: 0; }
.ps-note { margin: 0; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.11); color: #ffd9d5; font-size: 14px; }
.ps-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.11); list-style: none; }
.ps-read li { min-width: 0; padding: 16px 18px; border-left: 1px solid rgba(255,255,255,.11); color: #c7cfe6; font-size: 14px; line-height: 1.55; }
.ps-read li:first-child { border-left: 0; }
.ps-read b { display: block; margin-bottom: 4px; color: #fff; font: 600 14.5px var(--display); }
.ps-swatch { display: inline-block; width: 20px; height: 3px; margin-right: 8px; border-radius: 2px; vertical-align: middle; }

@media (max-width: 900px) {
  .ps-plot, .ps-plot-tall { height: 480px; }
  .ps-read { grid-template-columns: minmax(0, 1fr); }
  .ps-read li { border-left: 0; border-top: 1px solid rgba(255,255,255,.11); }
  .ps-read li:first-child { border-top: 0; }
  .pm-body { grid-template-columns: minmax(0, 1fr); }
  .pm-visual { border-right: 0; border-bottom: 1px solid var(--pm-line); }
  .pm-stage { height: 440px; }
  .pm-inspector { max-height: none; }
  .pm-flow { width: 100%; margin-left: 0; }
  .pm-metrics div:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .pm-stage { height: 380px; }
  .pm-hint { display: none; }
  .pm-note { margin-left: 0; }
  .pm-find { flex: 1; }
  .pm-metrics { flex-wrap: wrap; row-gap: 10px; }
  .pm-metrics div { padding: 0 12px; }
  .pm-metrics dd { font-size: 21px; }
}
