/* ====================================================
   VOTER CHOICE · Head-to-head candidate duel.
   HeadToHead.tsx was rebuilt onto the whiteboard's blind `.dl-*` markup
   (work order v4, Frame 5) — see BAND C below, which is now the duel's real
   stylesheet. The original `.cmp-*` DIRECTION B markup this file ported
   (design-session/candidates.css) is gone from HeadToHead.tsx except two
   pieces still rendered there today:
     - `.cmp-field` / `.cmp-field-head` — the "Everyone running for this
       seat" whole-field money-scale wrapper (the `.mgap` component inside
       it is styled globally in redesign2.css).
     - `.cmp-foot` — kept ONLY because VoterChoiceApp.tsx's separate legacy
       "Compare" modal (`.cmp-modal.v2`, unrelated to this duel) coincidentally
       renders a `<footer className="cmp-foot">` too; prototype.css defines
       its own `.cmp-foot` for that modal, but this rule (loaded after it)
       currently wins on the cascade — removing it would visibly change that
       still-live surface, which is out of scope here.
   Every other `.cmp-*` selector (token block, `.cmp-lineup`/`.cmp-switch`/
   `.cmp-grid`/`.cmp-ledger`/`.cmp-money`/`.cmp-actions`/etc.) had zero
   remaining references anywhere in src/ (verified by grep) and was removed.
   Loaded via a <link> in src/app/layout.tsx, exactly like redesign2.css. */

/* ---- whole-field scale wrapper — "Everyone running for this seat"
   (relocated from RepCard; the .mgap component itself is styled globally
   in redesign2.css, this just adds the section heading + spacing). ---- */
.cmp-field {
  padding: 18px 34px 0;
}
.cmp-field-head {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 10px;
}

/* kept for the legacy Compare-modal collision — see file header comment */
.cmp-foot {
  margin-top: auto;
  padding: 18px 34px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-2);
}

/* responsive — .cmp-field's own padding + the kept .cmp-foot's padding */
@media (max-width: 620px) {
  .cmp-foot,
  .cmp-field {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* =========================================================
   BAND C · blind duel rebuild (Frame 5, whiteboard `.dl-*`) — HeadToHead.tsx
   now renders this markup for real (Build order item 5 landed); it's the
   duel's real stylesheet, not staging.

   Whiteboard tokens this screen needs that the app doesn't define under
   these exact names (`--navy`/`--navy-2`/`--navy-soft`/`--red`/`--red-soft`/
   `--green`) are aliased locally under `.dl`, verbatim from whiteboard.css's
   own :root — same "map onto the shipped system" approach the retired
   `.cmp` block above used, just under the whiteboard's own token names
   instead of --brand/--keep/--replace, since `.dl-*` declarations were kept
   as literal as possible. Everything else (--ink*/
--paper*/--rule*/
   --tag-bg/--mono/--serif/--sans/--gold/--amber*) is already a global
   token, used directly. ========================================================= */
.dl {
  --navy: oklch(0.4 0.155 262);
  --navy-2: oklch(0.31 0.145 262);
  --navy-soft: oklch(0.955 0.028 262);
  --red: oklch(0.53 0.205 27);
  --red-soft: oklch(0.955 0.03 27);
  --green: oklch(0.44 0.115 159);
  --green-soft: oklch(0.95 0.035 159);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  padding: 24px 30px 28px;
}
.dl * {
  margin: 0;
  box-sizing: border-box;
}
/* The duel reuses DelegationWorkspace's .ws-chat.rep-center shell, but
   .ws-chat's base rule (prototype.css) carries a border-right built for the
   legacy chat+rail layout — a stray hairline down the right edge of the
   duel's single centered column, which has no rail to abut. `.rep-center`
   alone isn't unique to the duel (DelegationWorkspace's deep view renders
   the identical classes), so this is scoped off the ABSENCE of .ws-shell —
   only HeadToHead.tsx's root wraps in bare `.delegation`; DelegationWorkspace
   always wraps in `.ws-shell.delegation[.dg-deep]`. */
.delegation:not(.ws-shell) .ws-chat.rep-center {
  border-right: none;
}
.dl-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.dl h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.dl-ctx {
  font-size: 14.5px;
  color: var(--ink-3);
  margin-top: 5px;
  line-height: 1.45;
}
.dl-lineup {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.dl-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--navy-soft);
  border: 1px solid oklch(0.86 0.045 262);
  color: var(--ink);
}
.dl-pin .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}
.dl-pin .p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.dl-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dl-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  cursor: pointer;
}
.dl-tabs button.on {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--paper);
}
.dl-tabs .p {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
/* party pips — dashed-hidden while blind (Frame 5 item 3); party is
   identity, so this variant renders everywhere a pip appears (lineup pin,
   tabs, column heads) whenever blindMode is on. */
.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.pip.rep {
  background: oklch(0.53 0.18 27);
}
.pip.dem {
  background: oklch(0.48 0.14 262);
}
.pip.ind {
  background: oklch(0.6 0.02 260);
}
.pip.hid {
  background: var(--rule);
  outline: 1.5px dashed var(--ink-3);
  outline-offset: 1px;
}
.dl-blindbar {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  padding: 11px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.dl-blindbar .eye {
  flex: 0 0 auto;
  color: var(--navy);
}
.dl-blindbar b {
  color: var(--ink);
  font-weight: 600;
}
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.dl-col {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px;
}
.dl-colhead {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dl-av {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1.5px dashed oklch(0.72 0.05 262);
  background: var(--navy-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy);
  font-weight: 600;
}
.dl-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.dl-cname {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dl-crole {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.dl-big {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.dl-big b {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.dl-big .lab {
  font-size: 12.5px;
  color: var(--ink-3);
}
.tone-good {
  color: var(--green);
}
.tone-mid {
  color: oklch(0.55 0.12 76);
}
.tone-bad {
  color: var(--red);
}
.tone-na {
  color: var(--ink-3);
}
.dl-prov {
  margin-top: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.prov-b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
}
.prov-b.roll {
  background: var(--navy-soft);
  color: var(--navy);
}
.prov-b.res {
  background: var(--tag-bg);
  color: var(--ink-2);
}
.dl-lock {
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--mono);
}
/* revealed-state evidence links (Frame 5 item 5) — same small meta size as
   the locked .dl-lock line above, but as real clickable links. */
.dl-sources {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.dl-source-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dl-source-link:hover {
  color: var(--navy-2);
}
.dl-reveal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 500;
  margin-left: auto;
}
.dl-reveal:hover {
  background: var(--navy-soft);
}
.dl-ledger {
  margin-top: 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.dl-lrow {
  display: grid;
  grid-template-columns: 1fr 54px 76px 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 15px;
  border-top: 1px solid var(--rule-2);
  font-size: 14.5px;
}
.dl-lrow:first-child {
  border-top: none;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.dl-lrow .l {
  color: var(--ink-2);
  text-align: right;
}
.dl-lrow .r {
  color: var(--ink-2);
}
.dl-v {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}
.dl-mid {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.arrow.up {
  color: var(--green);
}
.arrow.down {
  color: var(--red);
}
.arrow.even {
  color: var(--ink-3);
}
.dl-note {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 10px;
}
.dl-foot {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.dl-foot .btn {
  flex: 1;
}
/* verdict buttons — same .btn/.btn-keep/.btn-replace/.box declarations as
   .rep-card's (redesign2.css), re-scoped under .dl since the duel foot
   isn't nested inside .rep-card; kept identical on purpose so Keep/Replace
   read the same everywhere they appear. */
.dl .btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 16px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  border: 1.5px solid transparent;
  font-family: var(--sans);
}
.dl .btn b {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl .btn small {
  font-size: 12.5px;
  opacity: 0.85;
  font-weight: 400;
}
.dl .btn-keep {
  background: var(--green);
  color: #fff;
}
.dl .btn-keep:hover {
  background: oklch(0.4 0.11 159);
}
.dl .btn-replace {
  background: var(--paper);
  border-color: var(--red);
  color: var(--red);
}
.dl .btn-replace:hover {
  background: var(--red-soft);
}
/* selected/recorded-verdict state — translates the old .cmp-keepbtn.on
   treatment (candidates.css BAND-A, retired) onto the .dl token set. Not
   wired to any conditional class in HeadToHead.tsx today; kept for parity
   should a future verdict-recorded highlight need it. */
.dl .btn.on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
.dl .btn .box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 2px solid currentColor;
  flex: 0 0 auto;
}
/* Frame 6 — empty states (challengers with no roll-call/research/funding
   record yet) */
.dl-empty {
  padding: 15px 16px;
  border: 1px dashed var(--rule);
  border-radius: 11px;
}
.dl-empty + .dl-empty {
  margin-top: 12px;
}
.dl-empty .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 6px;
}
.dl-empty .t {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.dl-empty .s {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 5px;
}
.dl-empty .s a {
  font-weight: 600;
}
/* Frame 7 item 2 — money embed ("Follow the money — and what the votes
   did after it"), both columns render FundingSources narrower underneath. */
.dl-money {
  margin-top: 18px;
  border-top: 1px solid var(--rule-2);
  padding-top: 18px;
}
.dl-money-h {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.dl-money-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.4;
}
.dl-money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}
.dl-money-grid > div {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}
.dl-mhead {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-2);
}
.dl-mhead .mav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px dashed oklch(0.72 0.05 262);
  background: var(--navy-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.dl-mhead b {
  display: block;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
}
.dl-mhead .sub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
