/* "Who said it" (site/bodies/): verdict bars, the tentative balance, pledge chips, the pledge stack, links to the views. */
.who-card { gap: 6px; }
.who-card .bc-count { order: 0; }
.wm { margin: 2px 0 0; }
.wm p { margin: 0; }
.wm-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--paper-line); }
.wm-bar span { min-width: 4px; background: var(--v); }
.wm-key { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 5px !important; font-size: 12.5px; color: var(--paper-muted); }
.wm-key span { display: inline-flex; align-items: center; gap: 4px; }
.wm-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--v); }
.wm-key b { color: var(--paper-ink); }
/* tentative: a dashed scale from Contradicted to Supported with a hollow marker; dots show progress towards a bar */
.wm-scale { position: relative; height: 10px; margin: 6px 6px 0; border-radius: 5px; opacity: .8;
  background: linear-gradient(to right, #8e2f25, #b5483a 25%, #d9772b 50%, #8db36b 75%, #2e7d4f); }
.wm-scale::after { content: ""; position: absolute; inset: -3px; border: 1.5px dashed var(--paper-muted); opacity: .5; border-radius: 8px; }
.wm-mark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper);
  border: 2.5px dashed var(--paper-ink); box-sizing: border-box; }
.wm-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--paper-muted); margin-top: 3px !important; }
.wm-note { font-size: 12.5px; color: var(--paper-muted); }
.wm-dots { display: inline-flex; gap: 3px; vertical-align: -1px; margin-right: 4px; }
.wm-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--paper-muted); box-sizing: border-box; }
.wm-dots i.on { background: var(--paper-link); border-color: var(--paper-link); }
.wm-pledges { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; }
.pl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--pl, #b0b8c1); color: var(--pl-ink, #fff) !important;
  font: 700 11.5px/1.5 var(--sans); text-decoration: none; white-space: nowrap; }
.pl-chip span { font-weight: 400; opacity: .85; }
.pl-chip .glyph, .pl-chip svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.pl-chip:hover { filter: brightness(1.1); text-decoration: underline; }

.who-key ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 18px; list-style: none; margin: 14px 0; padding: 0;
  font-size: 13.5px; color: var(--paper-muted); }
.who-key b { color: var(--paper-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* body page: the summary panel under the title, and links into the views */
.who-panel { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--paper-line); border-radius: 12px; background: var(--paper); max-width: 640px; }
.who-panel .wm-bar { height: 16px; }
.who-panel .wm-key { font-size: 13px; }
.who-tools { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.who-tools a, .who-pin { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--paper-line);
  background: var(--paper); color: var(--paper-link); font: 600 13px var(--sans); text-decoration: none; cursor: pointer; }
.who-tools a:hover, .who-pin:hover { border-color: var(--accent); }
.who-tools .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.who-pin[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #13301f; }
.who-tray .tr-btn { background: var(--deep); border-color: var(--deep); color: #eef3ef; }
.who-tray .tr-pop { left: 0; right: auto; }

/* the pledge stack: a dark panel so the disks read as objects */
.pstack-fig { margin: 12px 0 0; }
.pstack-svg { border-radius: 14px; background: radial-gradient(ellipse at 40% 20%, rgba(127,168,139,.28), transparent 70%), var(--deep); padding: 8px; }   /* a dark figure in both themes */
.pstack { display: block; width: 100%; height: auto; font-family: var(--sans); }
.ps-edge-band { fill: #0a2117; opacity: .9; }
.ps-top { fill: rgba(127,168,139,.22); stroke: rgba(207,226,212,.55); stroke-width: 1.2; }
.ps-inner { fill: none; stroke: rgba(207,226,212,.3); stroke-width: 1; stroke-dasharray: 4 5; }
.ps-year { fill: #eef3ef; font: 700 18px var(--serif); }
.ps-n { fill: #a9c2b1; font-size: 12px; }
.ps-link { stroke-width: 3; stroke-linecap: round; opacity: .9; }
.ps-id { fill: #eef3ef; font: 700 12px var(--sans); paint-order: stroke; stroke: var(--deep); stroke-width: 3px; }
.ps-dot:hover rect, .ps-dot:focus rect { stroke: var(--amber); stroke-width: 2.4; }
.ps-dot:focus { outline: none; }
.pstack-list { list-style: none; margin: 12px 0 0; padding: 0; }
.pstack-list > li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--paper-line); }
.ps-y { font: 700 17px var(--serif); color: var(--paper-link); }
.pstack-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pstack-list .pl-chip { margin-left: 4px; }
@media (max-width: 600px) { .who-panel { padding: 12px; } .pstack-list > li { grid-template-columns: 1fr; } }
.pstack.is-live { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pstack.is-turning { cursor: grabbing; }
.pstack:focus { outline: none; }
.pstack.kb:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.ps-hint { margin: 6px 0 0; color: var(--paper-muted); font-size: 12.5px; }
.ps-hint[hidden] { display: none; }
