/* Additions for the embodied-AI site: verdict chips and the result charts.
   Everything else comes from style.css, shared with the earlier sites. */

:root {
  --refuted: #a3341f;
  --refuted-bg: #f8e3de;
  --mark: #2f6fd1;
  --mark-soft: rgba(47, 111, 209, 0.16);
  --bar: #2f6fd1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --refuted: #f19a85;
    --refuted-bg: #3a1d17;
    --mark: #6ea6f5;
    --mark-soft: rgba(110, 166, 245, 0.2);
    --bar: #5b98ef;
  }
}
:root[data-theme="dark"] {
  --refuted: #f19a85;
  --refuted-bg: #3a1d17;
  --mark: #6ea6f5;
  --mark-soft: rgba(110, 166, 245, 0.2);
  --bar: #5b98ef;
}

.chip.refuted { color: var(--refuted); background: var(--refuted-bg); }

.viz { position: relative; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz text { font-family: var(--sans); fill: var(--ink-2); font-size: 12px; }
.viz .lbl { fill: var(--ink); font-size: 12.5px; }
.viz .tick { fill: var(--ink-3); font-size: 11px; font-family: var(--mono); }
.viz .grid { stroke: var(--grid); stroke-width: 1; }
.viz .axis { stroke: var(--axis); stroke-width: 1; }
.viz .bar-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.viz .bar-text { fill: var(--ink); font-size: 11.5px; font-family: var(--mono); }
.viz .ci { stroke: var(--mark); stroke-width: 2; stroke-linecap: round; }
.viz .pt { fill: var(--mark); stroke: var(--surface); stroke-width: 2; }
.viz .pt.hollow { fill: var(--surface); stroke: var(--mark); stroke-width: 2; }
.viz .hit { fill: transparent; cursor: default; }
.viz .row-bg { fill: transparent; }
.viz .row:hover .row-bg, .viz .row:focus .row-bg { fill: var(--mark-soft); }
.viz .row:focus { outline: none; }
.viz .barfill { fill: var(--bar); }
.viz .barfill.priv { fill: url(#hatch); stroke: var(--bar); stroke-width: 1.5; }
.viz .val { fill: var(--ink); font-family: var(--mono); font-size: 11.5px; }
.viz .group { fill: var(--ink-3); font-size: 11px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

.viz .tooltip-box {
  position: absolute; pointer-events: none; z-index: 5; max-width: 300px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 8px; padding: 8px 10px; font-size: 0.84rem; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); display: none;
}
.viz .tooltip-box b { font-family: var(--mono); font-weight: 500; }

details.data-table { margin-top: 10px; font-size: 0.88rem; }
details.data-table summary { cursor: pointer; color: var(--link); font-family: var(--sans); }
details.data-table table { margin-top: 8px; }

.verdict-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.verdict-grid .card h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.verdict-grid .card p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.kicker { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hash { font-family: var(--mono); font-size: 0.82em; color: var(--ink-3); }
pre.cmd { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; }
