/* attune-report.css — the Attune (light, clinical, IBM Plex) skin for the
 * SHARED report renderer (lib/ptrender.js). One stylesheet, three surfaces:
 * /app, /t and /r all load it, so a report always looks the same wherever
 * it is read — the same one-module discipline as the renderer itself.
 *
 * The renderer emits class names and CSS variables (--brand, --green, --blue,
 * --gold, --red, --surface*, --text*). This file maps those variables onto the
 * Attune palette instead of ptrack's dark/orange one. Band KEYS keep their
 * renderer names (best/good/spark/work); only the colours and words change.
 */
:root {
  --bg:#f6f7f6; --surface:#ffffff; --surface2:#f1f4f2; --surface3:#e3e8e5;
  --border:#dde2df; --border2:#b9c6c1;
  --brand:#1f4a3e; --orange:#1f4a3e;
  --green:#2e6e51;   /* best  · Attuned */
  --blue:#4e7d96;    /* good  · Aligned */
  --gold:#a3742c;    /* spark · Translating */
  --red:#a05252;     /* work  · Needs attention */
  --pink:#8a5a74;
  --text:#16232a; --text2:#3c4a48; --muted:#6b7a76; --muted2:#9aa8a3;
  --sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --serif:'IBM Plex Serif',Georgia,serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
}
.tcode { font-family:var(--mono); font-weight:600; color:var(--brand); }
.tiny { color:var(--muted); font-size:.82rem; line-height:1.55; }
.muted { color:var(--text2); font-size:.95rem; line-height:1.65; }
.pill { display:inline-block; font-size:.74rem; font-weight:600; padding:3px 10px;
        border-radius:4px; border:1px solid var(--border2); color:var(--muted);
        font-family:var(--mono); letter-spacing:.02em; }
.pill.ok { color:#1f4a3e; border-color:#c4d8cf; background:#e2efe9; }
.pill.warn { color:#7a4a1f; border-color:#ecd9c2; background:#faf3ea; }

/* bite-size strip */
.dash { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin:0 0 16px; }
@media (max-width:560px){ .dash { grid-template-columns:repeat(2,1fr); } }
.dcard { background:var(--surface); border:1px solid var(--border); border-radius:8px;
         padding:13px 11px; text-align:center; }
.dcard .i { font-size:1.35rem; line-height:1.2; display:block; }
.dcard .l { font-size:.72rem; color:var(--muted); text-transform:uppercase;
            letter-spacing:.06em; display:block; margin-top:4px; font-weight:700; }
.dcard .v { font-size:1.02rem; font-weight:700; display:block; margin-top:3px; }
.dcard .n { font-size:.78rem; color:var(--text2); display:block; }

/* person mini-cards inside pair reports */
.mini { border:1px solid var(--border); border-radius:8px; padding:16px; margin:12px 0;
        background:var(--surface); }
.mini.a { border-left:3px solid var(--brand); }
.mini.b { border-left:3px solid var(--blue); }
.mini .hd { display:flex; align-items:center; gap:11px; margin-bottom:10px; }
.mini .hd .em { font-size:1.7rem; line-height:1; }
.mini .hd b { font-size:1.05rem; margin-right:7px; }

/* insights */
.insight { border-left:3px solid var(--brand); background:var(--surface); border:1px solid var(--border);
           border-radius:0 8px 8px 0; padding:16px 18px; margin:14px 0; }
.insight.blue { border-left-color:var(--blue); }
.insight.green { border-left-color:var(--green); }
.insight.red { border-left-color:var(--red); }
.insight .tag { font-size:.72rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
                color:var(--brand); margin-bottom:6px; }
.insight .big { font-size:1.02rem; line-height:1.55; }

/* steps */
.steps { display:grid; gap:10px; margin-top:12px; }
.step { display:flex; gap:12px; align-items:flex-start; background:var(--surface2);
        border:1px solid var(--border); border-radius:8px; padding:13px 15px; }
.step .ic { font-size:1.1rem; line-height:1.4; }
.step .tg { font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.step .tx { font-size:.93rem; color:var(--text2); line-height:1.55; }

/* axis bars */
.ax { margin:14px 0; }
.ax .lbls { display:flex; justify-content:space-between; font-size:.85rem; color:var(--muted); margin-bottom:5px; }
.ax .lbls .win { color:var(--text); font-weight:600; }
.ax .track { position:relative; height:12px; background:var(--surface3); border-radius:6px; overflow:hidden; }
.ax .fill { position:absolute; top:0; bottom:0; background:var(--brand); border-radius:6px; }
.ax .fill.left { right:50%; } .ax .fill.right { left:50%; }
.ax .mid { position:absolute; left:50%; top:-2px; bottom:-2px; width:2px; background:var(--muted2); }
.ax .pct { font-size:.8rem; color:var(--text2); margin-top:4px; font-family:var(--mono); }

/* side-by-side pair bars */
.pb { display:flex; align-items:center; gap:9px; margin:5px 0; }
.pb .who { flex:0 0 25%; font-size:.85rem; font-weight:600; overflow:hidden;
           text-overflow:ellipsis; white-space:nowrap; }
.pb .who.da { color:var(--brand); } .pb .who.db { color:var(--blue); }
.pb .ptrack { position:relative; flex:1; height:18px; background:var(--surface3); border-radius:4px; }
.pb .mid { position:absolute; left:50%; top:-2px; bottom:-2px; width:2px; background:var(--muted2); }
.pb .pfill { position:absolute; top:0; bottom:0; border-radius:4px; background:var(--brand); }
.pb .pfill.da { background:var(--brand); } .pb .pfill.db { background:var(--blue); }
.pb .pfill.est { opacity:.5; background-image:repeating-linear-gradient(
   45deg, rgba(255,255,255,.5) 0 4px, transparent 4px 8px); }
.pb .pv { flex:0 0 30%; text-align:right; font-size:.82rem; color:var(--text2); }
.pb .pv.estv { color:var(--muted); font-style:italic; }
.cmp { margin:20px 0; }
.cmp .hd { display:flex; justify-content:space-between; align-items:center; gap:8px;
           font-size:.88rem; color:var(--muted); margin-bottom:8px; }
.cmp .same { font-size:.8rem; color:var(--green); font-weight:600; }

/* gauge */
.gauge { width:150px; height:150px; border-radius:50%; margin:0 auto 10px; display:flex;
         align-items:center; justify-content:center; }
.gauge .inner { width:112px; height:112px; border-radius:50%; background:var(--surface);
                display:flex; flex-direction:column; align-items:center; justify-content:center;
                border:1px solid var(--border); }
.gauge .n { font-size:2rem; font-weight:600; font-family:var(--mono); line-height:1; }
.gauge .b { font-size:.78rem; color:var(--text2); margin-top:3px; }

/* rankings, splits, chips */
.rank { display:grid; gap:3px; margin-top:8px; }
.rrow { display:flex; align-items:center; gap:7px; font-size:.8rem; padding:2px 0; border-radius:4px; }
.rrow.me { background:#e2efe9; }
.rrow .n { width:20px; text-align:right; color:var(--muted); font-size:.74rem; }
.rrow .t { width:44px; font-family:var(--mono); font-weight:600; color:var(--text2); font-size:.74rem; }
.rrow.me .t { color:var(--brand); }
.rrow .tr { flex:1; height:9px; background:var(--surface3); border-radius:5px; overflow:hidden; }
.rrow .f { display:block; height:100%; background:var(--muted2); border-radius:5px; }
.rrow.me .f { background:var(--brand); }
.rrow .v { width:52px; text-align:right; color:var(--muted); font-size:.74rem; }
.split { display:flex; height:16px; border-radius:4px; overflow:hidden; background:var(--surface3); margin:5px 0; }
.split .sa { background:var(--brand); } .split .sb { background:var(--blue); }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { font-family:var(--mono); font-size:.82rem; font-weight:600; padding:6px 12px;
        border-radius:4px; border:1px solid var(--border2); cursor:default; background:var(--surface); }
.chip.g { color:var(--green); border-color:#c4d8cf; }
.chip.o { color:var(--gold); border-color:#e4d2b0; }
.chip.r { color:var(--red); border-color:#dfc4c4; }

/* accordions */
details { background:var(--surface); border:1px solid var(--border); border-radius:8px;
          padding:0; margin:10px 0; }
details summary { cursor:pointer; font-weight:600; padding:14px 16px; font-size:.95rem; list-style:none; }
details summary::-webkit-details-marker { display:none; }
details summary::before { content:'▸ '; color:var(--brand); }
details[open] summary::before { content:'▾ '; }
details .bd { padding:0 16px 14px; }
details .bd ul { margin:0 0 0 18px; }
details .bd li { color:var(--text2); font-size:.92rem; margin:7px 0; line-height:1.55; }

/* evidence tiers — a checked citation and an unverified claim must differ */
.src { font-size:.8rem; margin-top:12px; padding:9px 12px; border-radius:6px; line-height:1.5; }
.src.ok  { color:var(--green); background:#eaf3ee; border:1px solid #c4d8cf; }
.src.rep { color:var(--gold);  background:#f8f2e6; border:1px dashed #e4d2b0; }
.src a { color:inherit; text-decoration:underline; text-underline-offset:3px; }

/* band labels + matrix cells (band keys stay best/good/spark/work) */
.lab { font-size:.8rem; font-weight:600; padding:5px 10px; border-radius:4px; white-space:nowrap; }
.lab.best { color:#123c30; background:#dcebe3; }
.lab.good { color:#274c5f; background:#dfeaf1; }
.lab.spark{ color:#6b4c1a; background:#f3e8d2; }
.lab.work { color:#6e3535; background:#f0dede; }
.cell { display:inline-block; min-width:34px; padding:6px 4px; border-radius:4px;
        font-family:var(--mono); font-weight:600; font-size:.8rem; }
.cell.best { color:#fff; background:#1f4a3e; }
.cell.good { color:#fff; background:#5d8a78; }
.cell.spark{ color:#3c3120; background:#e8d9ba; }
.cell.work { color:#fff; background:#a05252; }

.repfoot { color:var(--muted); font-size:.78rem; margin:20px 0 6px; }
