/* Proposal P6, "Verdict strip" (build/decisions_p6.py, p6.js): the site's tokens (static/site.css) plus a few of its
   own for status. WHY these colours (Zach's calm-UI rule, "amber/red only for problems"): a hold is quiet ink with an
   accent tick; red is a fail that reopens the decision; amber a fail it accepted or a status that moved; unknown is
   grey and dashed. Light, dark and the reader's forced theme all follow. */

.p6, .p6-shelf {
  --p6-fail: #b3261e; --p6-fail-bg: #fdeceb; --p6-warn: #8a5a00; --p6-warn-line: #d39b0f; --p6-warn-bg: #fff6dc;
  --p6-unknown: #6b6f76; --p6-unknown-bg: #f3f4f6; --p6-hold-seg: #8fb2c8; --p6-missing-seg: #e3e3e3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p6, :root:not([data-theme="light"]) .p6-shelf {
    --p6-fail: #ff7b72; --p6-fail-bg: #2a1214; --p6-warn: #e3b341; --p6-warn-line: #c99a2e; --p6-warn-bg: #261d0b;
    --p6-unknown: #9ea3ad; --p6-unknown-bg: #15161a; --p6-hold-seg: #4d5596; --p6-missing-seg: #26282d;
  }
}
:root[data-theme="dark"] .p6, :root[data-theme="dark"] .p6-shelf {
  --p6-fail: #ff7b72; --p6-fail-bg: #2a1214; --p6-warn: #e3b341; --p6-warn-line: #c99a2e; --p6-warn-bg: #261d0b;
  --p6-unknown: #9ea3ad; --p6-unknown-bg: #15161a; --p6-hold-seg: #4d5596; --p6-missing-seg: #26282d;
}

.p6-mut { color: var(--ink3); }
/* the site gives every button a 30 px height (static/site.css); these hold more than one line */
.p6-stop, .p6-mkitem, .p6-hstop, .p6-back, .p6-iclose, .p6-kind, .p6-fold { height: auto; }
.p6-w-fail { color: var(--p6-fail); font-weight: 600; }
.p6-w-pass { color: var(--accent); }
.p6-w-unknown { color: var(--p6-unknown); }
.p6-missing { color: var(--ink3); border-bottom: 1px dotted var(--ink3); }

/* a hold / fail / unknown bar */
.p6-bar { display: inline-flex; width: 64px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--p6-missing-seg); flex: none; vertical-align: middle; }
.p6-seg { display: block; min-width: 2px; }
.p6-seg-pass { background: var(--p6-hold-seg); }
.p6-seg-fail { background: var(--p6-fail); }
.p6-seg-unknown { background: repeating-linear-gradient(135deg, var(--p6-unknown) 0 2px, transparent 2px 4px); }
.p6-seg-missing { background: var(--p6-missing-seg); }

.p6-badge { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 0 8px; border-radius: 10px; border: 1px solid var(--rule); color: var(--ink2); }
.p6-badge-moved { border-color: var(--accent); color: var(--accent); }
.p6-badge-changed { border-color: var(--p6-warn-line); color: var(--p6-warn); background: var(--p6-warn-bg); }
.p6-badge-flipped { border-color: var(--p6-fail); color: var(--p6-fail); background: var(--p6-fail-bg); }
.p6-pill { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--accent); color: var(--accent); white-space: nowrap; }
.p6-pill-decided { background: var(--accent); color: var(--on-accent); }

/* ================================================================ the shelf (/analysis/) */
.p6-shelf { margin: 6px 0 24px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); max-width: 100%; }
.p6-shelfbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--rule); }
.p6-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.p6-kind, .p6-fold { font: inherit; font-size: 13px; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); color: var(--ink); cursor: pointer; }
.p6-kind[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.p6-fold { border-radius: 3px; padding: 4px 9px; color: var(--ink2); }
.p6-n { opacity: .75; margin-left: 3px; font-size: 12px; }
.p6-views { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.p6-view { font: inherit; font-size: 13px; padding: 4px 11px; border: 0; background: var(--bg); color: var(--ink2); cursor: pointer; }
.p6-view + .p6-view { border-left: 1px solid var(--rule); }
.p6-view[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.p6-shelf.is-table .p6-fold, .p6-shelf.is-table .p6-kinds, .p6-shelf.is-table .p6-shown { display: none; }
.p6-shelfbody[hidden] { display: none; }
.p6-shown { margin: 0 0 0 auto; font-size: 12.5px; color: var(--ink2); }
.p6-feed { font-size: 12.5px; }
.p6-shelfbody { display: grid; grid-template-columns: var(--p6-rail, 214px) 6px minmax(0, 1fr); }
.p6-shelfbody.is-folded { grid-template-columns: minmax(0, 1fr); }
.p6-shelfbody.is-folded .p6-rail, .p6-shelfbody.is-folded .p6-grip { display: none; }
.p6-rail { padding: 10px 12px; min-width: 0; overflow: hidden; }
.p6-grip { cursor: col-resize; background: linear-gradient(90deg, transparent 2px, var(--rule2) 2px, var(--rule2) 4px, transparent 4px); touch-action: none; }
.p6-grip:hover, .p6-grip:focus-visible, .p6-grip.is-dragging, .p6-igrip:hover, .p6-igrip:focus-visible, .p6-igrip.is-dragging { background: linear-gradient(90deg, transparent 2px, var(--accent) 2px, var(--accent) 4px, transparent 4px); outline: none; }
.p6-facet { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.p6-facet legend { font-weight: 700; font-size: 12.5px; padding: 0; margin-bottom: 3px; }
.p6-facet label { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 1px 0; cursor: pointer; }
.p6-facet label span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p6-facet label .p6-n { margin-left: auto; color: var(--ink2); }
.p6-railnote { font-size: 12px; margin: 4px 0 0; }
.p6-gallery { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; align-content: start; min-width: 0; }
.p6-card { border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.p6-card[hidden] { display: none; }
.p6-card[data-kind="decision-report"] { border-top: 3px solid var(--accent); }
.p6-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 112px; background: var(--bg2); border-bottom: 1px solid var(--rule2); overflow: hidden; text-decoration: none; }
.p6-fam { position: absolute; left: 8px; top: 8px; z-index: 1; background: #222; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p6-fps { display: flex; flex-wrap: wrap; align-content: center; gap: 6px 8px; padding: 30px 12px 10px; width: 100%; }
.p6-fpg { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%; }
.p6-fp { display: block; width: 11px; height: 11px; border-radius: 2px; background: var(--p6-hold-seg); }
.p6-fp-fail { background: var(--p6-fail); }
.p6-fp-unknown { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--p6-unknown); }
.p6-fp-moved { outline: 2px solid var(--p6-warn-line); outline-offset: 1px; }
.p6-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; width: 100%; height: 100%; background: var(--rule2); }
.p6-mosaic[data-n="1"] { grid-template-columns: 1fr; }
.p6-mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #fff; display: block; }
.p6-mosaic[data-n="3"] img:first-child { grid-row: span 2; }
.p6-nophoto { color: var(--ink3); font-size: 12px; }
.p6-cb { padding: 7px 10px 9px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p6-kindword { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink3); }
.p6-ct { font-weight: 700; font-size: 14px; line-height: 1.3; margin: 0 0 2px; }
.p6-cardhealth { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; margin: 2px 0 3px; }
.p6-cardhealth .p6-bar { width: 72px; }
.p6-cardcounts { flex-basis: 100%; font-size: 12px; color: var(--ink2); }
.p6-flipcount { color: var(--p6-fail); }
.p6-kv { margin: 0; display: block; }
.p6-kv div { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.55; min-width: 0; }
.p6-kv dt { color: var(--ink2); white-space: nowrap; }
.p6-kv dd { margin: 0 0 0 auto; text-align: right; min-width: 0; flex: 1 1 auto; }
.p6-ell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p6-sincecell { display: flex; flex-direction: column; align-items: flex-end; }
.p6-sub { font-size: 11.5px; color: var(--ink2); }

/* ================================================================ the report (/analysis/<slug>/) */
.p6 { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 100%; min-width: 0; }
.p6.has-inspector { grid-template-columns: minmax(0, 1fr) 10px var(--p6-inspector, 360px); }
.p6-main { min-width: 0; container: p6main / inline-size; }
.p6-head { padding: 0 0 2px; }
.p6-meta { margin: 0; font-size: 12.5px; color: var(--ink3); }
.p6-local { font-style: italic; color: var(--ink2); }
.p6-head h1 { margin: 2px 0 0; font-size: 24px; line-height: 1.2; }
.p6-q { margin: 1px 0 0; font-size: 14.5px; color: var(--ink2); max-width: 70rem; }

/* the timeline */
.p6-timeline { margin: 6px 0 6px; min-width: 0; }
.p6-tl { display: flex; align-items: flex-start; min-width: 0; }
.p6-stop { flex: 0 1 auto; min-width: 0; overflow: hidden; font: inherit; text-align: left; cursor: pointer; color: var(--ink); background: none; border: 1px solid transparent; border-radius: 4px; padding: 3px 8px 4px; display: grid; grid-template-columns: 12px minmax(0, auto); column-gap: 6px; }
.p6-stop:hover { background: var(--hover); }
.p6-stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.p6-stop.is-current { border-color: var(--accent); background: var(--accent-bg); }
.p6-dot { grid-row: 1 / span 3; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--ink3); background: var(--bg); box-sizing: border-box; }
.p6-stop.is-written .p6-dot { border-color: var(--accent); }
.p6-stop.is-live .p6-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.p6-stop.is-current .p6-dot { background: var(--accent); border-color: var(--accent); }
.p6-stopdate { font-weight: 700; font-size: 13.5px; line-height: 1.35; white-space: nowrap; }
.p6-stoplabel { grid-column: 2; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p6-stophealth { grid-column: 2; display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.p6-stophealth .p6-bar { width: 40px; height: 5px; }
.p6-seg-line { flex: 1 1 56px; min-width: 28px; position: relative; display: flex; justify-content: center; align-items: center; height: 22px; margin-top: 3px; }
.p6-seg-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--rule); }
.p6-seg-line.has-change::before { border-top-color: var(--accent); }
.p6-seg-line.has-changed::before { border-top-color: var(--p6-warn-line); }
.p6-seg-line.has-flip::before { border-top-color: var(--p6-fail); }
.p6-nochange { position: relative; font-size: 11px; color: var(--ink3); background: var(--bg); padding: 0 5px; white-space: nowrap; }
.p6-mark { position: relative; }
.p6-mark > summary { list-style: none; cursor: pointer; display: flex; gap: 3px; background: var(--bg); padding: 0 3px; }
.p6-mark > summary::-webkit-details-marker { display: none; }
.p6-mark > summary:focus-visible { outline: 2px solid var(--accent); }
.p6-mk { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 9px; border: 1px solid var(--rule); white-space: nowrap; color: var(--ink2); background: var(--bg); }
.p6-mk-flip { color: #fff; background: var(--p6-fail); border-color: var(--p6-fail); }
.p6-mk-changed { color: var(--p6-warn); background: var(--p6-warn-bg); border-color: var(--p6-warn-line); }
.p6-mk-moved { color: var(--accent); border-color: var(--accent); }
.p6-markpop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(440px, 86vw); background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); padding: 6px 8px; font-size: 12.5px; }
.p6-markhead { margin: 0 0 3px; font-weight: 700; font-size: 12px; color: var(--ink2); }
.p6-markpop ul { list-style: none; margin: 0; padding: 0; }
.p6-mkitem { font: inherit; text-align: left; background: none; border: 0; padding: 2px 4px; color: var(--ink); cursor: pointer; border-radius: 3px; width: 100%; overflow-wrap: anywhere; }
.p6-mkitem:hover { background: var(--hover); }
.p6-mkval { color: var(--ink2); }

/* the verdict strip */
.p6-strip { border: 1px solid var(--rule); border-radius: 4px; padding: 8px 12px 6px; background: var(--bg); min-height: 120px; min-width: 0; }
.p6-strip.is-snap { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.p6-loading { color: var(--ink3); margin: 0; }
.p6-verdict p { margin: 0; }
.p6-asof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 12.5px; color: var(--ink2); }
.p6-livetag, .p6-snaptag { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; }
.p6-livetag { color: var(--accent); border: 1px solid var(--accent); }
.p6-snaptag { color: var(--on-accent); background: var(--accent); }
.p6-back { margin-left: auto; font: inherit; font-size: 12.5px; font-weight: 700; padding: 2px 12px; border-radius: 3px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; }
.p6-forkline { font-size: 13.5px; margin-top: 2px !important; }
.p6-decision { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 3px 0 3px !important; max-width: 80rem; }
.p6-dlabel { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); margin-right: 2px; }
.p6-picks, .p6-since { font-size: 13px; color: var(--ink2); margin-bottom: 2px !important; }
.p6-sincek { font-weight: 700; color: var(--ink); }
.p6-health { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; }
.p6-health .p6-bar { width: 150px; height: 8px; border-radius: 4px; margin-right: 4px; }
.p6-htext { font-size: 16px; }

.p6-block { margin-top: 8px; min-width: 0; }
.p6-blockhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 2px; font-size: 13px; }
.p6-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink3); }
.p6-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.p6-key-fail { background: var(--p6-fail); }
.p6-key-warn { background: var(--p6-warn-line); }
.p6-key-unknown { box-shadow: inset 0 0 0 1.5px var(--p6-unknown); }
.p6-allhold { margin: 8px 0 0; font-size: 13.5px; color: var(--ink2); }

/* one criterion: glyph, id, plain words, threshold, as written -> now, status */
.p6-rows { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; min-width: 0; }
.p6-rows.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p6-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p6-ghead-in { margin-top: 3px; }
/* two columns of rows: the plain words keep the room, the value and status columns give it */
.p6-rows.is-two .p6-colhead, .p6-rows.is-two .p6-row { grid-template-columns: 14px 2.6rem minmax(0, 1fr) minmax(0, 6rem) minmax(0, 7.4rem) 4.4rem; column-gap: 6px; }
.p6-colhead, .p6-row { display: grid; grid-template-columns: 14px 2.9rem minmax(0, 1fr) minmax(0, 8rem) minmax(0, 11rem) 8.6rem; column-gap: 8px; align-items: baseline; }
.p6-colhead { padding: 0 6px 1px 9px; font-size: 10.5px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.p6-colhead > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p6-row { position: relative; padding: 3px 6px 3px 6px; border-left: 3px solid transparent; border-radius: 2px; font-size: 13px; line-height: 1.4; cursor: pointer; min-width: 0; }
.p6-row > span, .p6-row > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p6-row:hover { background: var(--hover); }
.p6-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.p6-row.is-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.p6-g { font-weight: 800; text-align: center; color: var(--accent); }
.p6-id { font: 700 12px var(--mono); color: var(--ink); text-decoration: none; }
.p6-says { color: var(--ink); }
.p6-ltag { display: inline-block; max-width: 11rem; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; padding: 0 6px; margin-right: 5px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink2); }
.p6-thr { color: var(--ink2); font-variant-numeric: tabular-nums; }
.p6-val { font-variant-numeric: tabular-nums; }
.p6-then { color: var(--ink3); }
.p6-arrow { color: var(--accent); font-weight: 700; }
.p6-later { color: var(--ink2); }
.p6-now { font-weight: 600; }
.p6-stc { display: flex; gap: 4px; align-items: baseline; }
.p6-st { font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--ink2); }
.p6-st-pass { color: var(--accent); }
.p6-st-fail { color: var(--p6-fail); }
.p6-st-unknown { color: var(--p6-unknown); }
.p6-was { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 8px; white-space: nowrap; color: var(--p6-warn); background: var(--p6-warn-bg); border: 1px solid var(--p6-warn-line); }
.p6-was.is-flip { color: #fff; background: var(--p6-fail); border-color: var(--p6-fail); }

.p6-row.is-fail.sev-reopen { border-left-color: var(--p6-fail); background: var(--p6-fail-bg); }
.p6-row.is-fail.sev-reopen .p6-g { color: var(--p6-fail); }
.p6-row.is-fail.sev-warn { border-left-color: var(--p6-warn-line); background: var(--p6-warn-bg); }
.p6-row.is-fail.sev-warn .p6-g, .p6-row.is-fail.sev-warn .p6-st-fail { color: var(--p6-warn); }
.p6-row.is-unknown { border-left: 3px dashed var(--p6-unknown); background: var(--p6-unknown-bg); }
.p6-row.is-unknown .p6-g { color: var(--p6-unknown); }
.p6-row.is-changed { box-shadow: inset 0 0 0 1px var(--p6-warn-line); }
.p6-row.is-flipped { box-shadow: inset 0 0 0 2px var(--p6-fail); }
.p6-row.is-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.p6-row:hover { filter: brightness(.985); }

/* holds: compact, grouped by line; an open fork's branches side by side */
/* WHY two columns: three left the plain words a dozen characters; a branch of the fork stays whole in its column */
.p6-holds { columns: 2 26rem; column-gap: 22px; }
.p6-holds.is-fork .p6-group { break-inside: avoid; }
.p6-group { margin: 0 0 4px; min-width: 0; }
.p6-ghead { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 1px; padding: 0 0 1px 9px; border-bottom: 1px solid var(--rule2); font-size: 12px; break-after: avoid; min-width: 0; }
.p6-glabel { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.p6-gpick { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
.p6-ghealth { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--ink2); margin-left: auto; }
.p6-ghealth .p6-bar { width: 36px; height: 5px; }
.p6-holds .p6-row { grid-template-columns: 12px 2.7rem minmax(0, 1fr) minmax(0, 7.4rem) minmax(0, 9.6rem); column-gap: 6px; padding: 1px 4px 1px 6px; font-size: 12.5px; line-height: 1.38; break-inside: avoid; }
.p6-holds .p6-g { font-size: 11px; }

.p6-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.p6-chip { font-size: 12px; padding: 1px 8px; border: 1px dashed var(--rule); border-radius: 10px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.p6-chip b { font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.p6-stripfoot { margin: 6px 0 0; padding-top: 4px; border-top: 1px solid var(--rule2); font-size: 12px; color: var(--ink3); }

/* the lines, the words, the watch list */
.p6-sec h2 { margin: 22px 0 8px; font-size: 19px; }
.p6-h2note { font-size: 12.5px; font-weight: 400; color: var(--ink3); margin-left: 6px; }
.p6-fork { margin: 0 0 8px; }
.p6-forkq { font-weight: 700; }
.p6-lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 10px; }
.p6-line { border: 1px solid var(--rule2); border-radius: 4px; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.p6-line p { margin: 2px 0; font-size: 13px; }
.p6-linehead { font-size: 14px !important; }
.p6-linelabel { font-weight: 700; margin-right: 4px; }
.p6-cond { color: var(--ink2); }
.p6-rests { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink2); }
.p6-ref { display: inline-block; font: 700 11.5px/1.35 var(--mono); padding: 0 4px; margin: 1px 0; border-radius: 3px; border: 1px solid var(--rule); color: var(--accent); background: var(--bg); text-decoration: none; white-space: nowrap; }
.p6-ref:hover { background: var(--hover); }
.p6-ref[data-ref-status="fail"] { color: var(--p6-fail); border-color: var(--p6-fail); background: var(--p6-fail-bg); }
.p6-ref[data-ref-status="fail"][data-ref-sev="warn"] { color: var(--p6-warn); border-color: var(--p6-warn-line); background: var(--p6-warn-bg); }
.p6-ref[data-ref-status="unknown"] { color: var(--p6-unknown); border-style: dashed; }
.p6-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* inside the report's words a criterion reads as a word, not a button */
#analysis-p6 .p6-ref { padding: 0 3px; margin: 0; font-size: 11px; vertical-align: 1px; }
#analysis-p6.is-pinned { box-shadow: -14px 0 0 -10px var(--accent); }
.p6-why { position: relative; }
.p6-figstate { margin: 22px 0 8px; padding: 6px 10px; border-radius: 3px; font-size: 13px; background: var(--bg2); border-left: 3px solid var(--rule); }
.p6-figstate.is-pinned { background: var(--accent-bg); border-left-color: var(--accent); }
.p6:not([data-mode="live"]) .p6-figstate { position: sticky; top: var(--top-h, 69px); z-index: 6; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.p6-figstate.is-numbers { background: var(--bg2); }
.p6-back-sm { float: right; margin: -1px 0 0 10px; padding: 1px 10px; font-size: 12px; }
.p6-figstate.is-numbers { border-left-color: var(--ink2); }
.p6-waiting { margin-top: 0; }

/* the tabs under the lines: Words and figures | Criteria ledger | Watch (the last two grafted from P8, 2026-11-25) */
.p6-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.p6-tab { height: auto; font: inherit; font-size: 13.5px; padding: 5px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); color: var(--ink); cursor: pointer; }
.p6-tab:hover { background: var(--hover); }
.p6-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.p6-n-feed { color: inherit; font-weight: 700; opacity: 1; }
.p6-tablewrap { overflow-x: auto; max-width: 100%; }
.p6-ledgertools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 8px; font-size: 12.5px; }
.p6-lfilters { display: flex; flex-wrap: wrap; gap: 4px; }
.p6-lfilters button { height: auto; font: inherit; font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; }
.p6-lfilters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
.p6-ledgertable, .p6-wtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.p6-ledgertable th, .p6-wtable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--rule); padding: 4px 6px; white-space: nowrap; }
.p6-ledgertable th button { height: auto; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.p6-ledgertable th[aria-sort="ascending"] button::after { content: " ▲"; }
.p6-ledgertable th[aria-sort="descending"] button::after { content: " ▼"; }
.p6-ledgertable td, .p6-wtable td { padding: 5px 6px; border-bottom: 1px solid var(--rule2); vertical-align: top; }
.p6-lrow { cursor: pointer; }
.p6-lrow:hover { background: var(--hover); }
.p6-lrow.is-selected { background: var(--accent-bg); }
.p6-l-says { min-width: 16rem; }
.p6-l-line { display: block; color: var(--ink3); font-size: 11.5px; }
.p6-l-thr, .p6-l-then, .p6-l-snap, .p6-l-now { font-variant-numeric: tabular-nums; }
.p6-l-now small { display: block; color: var(--ink3); font-size: 11px; }
.p6-l-st, .p6-l-since, .p6-nowrap { white-space: nowrap; }
.p6-ltagw { font-size: 10.5px; padding: 0 5px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink2); }
.p6-lbadge { font-size: 11.5px; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; color: var(--ink3); }
.p6-lb-moved { color: var(--ink2); border-color: var(--rule); }
.p6-lb-changed { color: var(--p6-warn); background: var(--p6-warn-bg); border-color: var(--p6-warn-line); }
.p6-lb-flipped { color: var(--p6-fail); background: var(--p6-fail-bg); border-color: var(--p6-fail); }
.p6-st.is-warn.p6-st-fail { color: var(--p6-warn); }
.p6-watchgroup h3 { margin: 18px 0 4px; font-size: 15px; }
.p6-watchgroup > p { margin: 2px 0 6px; font-size: 13px; }
.p6-feedlist { margin: 0; padding-left: 18px; font-size: 13.5px; }
.p6-feedlist li { margin: 4px 0; }
.p6-copy { height: auto; font: inherit; font-size: 12px; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink2); cursor: pointer; white-space: nowrap; }

/* a figure's header: the criteria it draws, with their status, and what data it is drawn over (grafted from P7) */
.p6-fighead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin: 0 0 4px; font-size: 12px; }
.p6-fbadges { display: flex; flex-wrap: wrap; gap: 4px; }
#analysis-p6 .p6-fbadge { font-size: 11.5px; padding: 1px 6px; font-weight: 400; vertical-align: 0; }
#analysis-p6 .p6-fbadge b { font-weight: 700; }
.p6-figlive { color: var(--ink3); white-space: nowrap; }
.p6-figlive::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: 1px; }
.p6-figlive.is-pinned { color: var(--accent); font-weight: 600; }
.p6-sources { padding-left: 18px; font-size: 13.5px; }

/* the inspector: one criterion in full, its edge draggable, the panel foldable (×, Esc) */
.p6-igrip { cursor: col-resize; touch-action: none; background: linear-gradient(90deg, transparent 4px, var(--rule2) 4px, var(--rule2) 6px, transparent 6px); }
/* WHY --top-h: the site's header is sticky (static/site.css), so the panel holds below it */
.p6-inspector { position: sticky; top: calc(var(--top-h, 69px) + 8px); align-self: start; max-height: calc(100vh - var(--top-h, 69px) - 16px); overflow: auto; min-width: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); padding: 8px 12px 10px; font-size: 13px; }
.p6-inspector[hidden], .p6-igrip[hidden] { display: none; }
.p6-ihead { display: flex; align-items: center; gap: 8px; }
.p6-iid { margin: 0; font: 700 15px var(--mono); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.p6-iid .p6-mut { font-family: var(--sans); font-weight: 400; font-size: 13px; }
.p6-iid .p6-g.is-fail { color: var(--p6-fail); }
.p6-iid .p6-g.is-unknown { color: var(--p6-unknown); }
.p6-iclose { font: inherit; font-size: 18px; line-height: 1; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 3px; background: var(--bg); color: var(--ink2); cursor: pointer; }
.p6-isays { font-size: 14.5px; font-weight: 600; margin: 6px 0; }
.p6-idl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; margin: 0; }
.p6-idl dt { color: var(--ink3); font-size: 12px; }
.p6-idl dd { margin: 0; overflow-wrap: anywhere; }
.p6-ih { margin: 10px 0 2px; font-weight: 700; font-size: 12px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }
.p6-ihist { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.p6-ihist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; padding: 2px 0 2px 8px; position: relative; }
.p6-ihist li.is-current { background: var(--accent-bg); }
.p6-ihist li.is-turn::before { content: ""; position: absolute; left: -6px; top: 7px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--p6-warn-line); }
.p6-hstop { font: inherit; font-size: 12px; text-align: left; border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p6-hval { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.p6-ilinks { margin: 10px 0 0; font-size: 12.5px; }
.p6-feedid { font-size: 10.5px; color: var(--ink3); overflow-wrap: anywhere; }

/* narrower screens */
@media (max-width: 1180px) {
  .p6-rows.is-two { grid-template-columns: minmax(0, 1fr); }
  .p6-rows.is-two > .p6-col + .p6-col > .p6-colhead { display: none; }
}
@media (max-width: 760px) {
  .p6-shelfbody { grid-template-columns: minmax(0, 1fr); }
  .p6-grip { display: none; }
  .p6-rail { border-bottom: 1px solid var(--rule2); }
  .p6-shown { margin-left: 0; }
  .p6-gallery { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .p6-head h1 { font-size: 21px; }
  .p6-strip { padding: 8px 8px 6px; }
  .p6-health .p6-bar { width: 100%; }
  .p6-colhead { display: none; }
  .p6-row, .p6-holds .p6-row { grid-template-columns: 12px 2.6rem minmax(0, 1fr) auto; grid-template-areas: "g id says stc" "g . thr val"; row-gap: 0; }
  .p6-holds .p6-row { grid-template-areas: "g id says says" "g . thr val"; }
  .p6-row > .p6-g { grid-area: g; } .p6-row > .p6-id { grid-area: id; } .p6-row > .p6-says { grid-area: says; }
  .p6-row > .p6-thr { grid-area: thr; } .p6-row > .p6-val { grid-area: val; text-align: right; } .p6-row > .p6-stc { grid-area: stc; }
  .p6-holds { columns: auto; }
  .p6.has-inspector { grid-template-columns: minmax(0, 1fr); }
  .p6-igrip { display: none !important; }
  .p6-inspector { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; max-height: 62vh; z-index: 55; box-shadow: 0 -6px 24px rgba(0, 0, 0, .2); }
  .p6-back { margin-left: 0; }
}

/* the timeline follows the width it gets (the criterion panel takes some): compact, then one stop per line */
@container p6main (max-width: 1100px) {
  .p6-stophealth .p6-mut, .p6-mk-moved { display: none; }
  .p6-seg-line { flex-basis: 32px; }
}
@container p6main (max-width: 900px) {
  .p6-stoplabel { display: none; }
}
@container p6main (max-width: 640px) {
  .p6-tl { flex-direction: column; align-items: stretch; }
  .p6-stop { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 2px 6px; }
  .p6-dot { margin-top: 0; }
  .p6-stoplabel { display: block; flex: 0 1 auto; }
  .p6-stophealth { margin-left: auto; }
  .p6-mk-moved { display: inline; }
  .p6-seg-line { flex: none; height: auto; min-height: 16px; margin: 0 0 0 11px; justify-content: flex-start; padding: 1px 0 1px 14px; }
  .p6-seg-line::before { left: 0; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--rule); }
  .p6-seg-line.has-change::before { border-left-color: var(--accent); }
  .p6-seg-line.has-changed::before { border-left-color: var(--p6-warn-line); }
  .p6-seg-line.has-flip::before { border-left-color: var(--p6-fail); }
  .p6-nochange { padding: 0; }
  .p6-markpop { left: 0; transform: none; max-width: calc(100vw - 48px); }
}
