/* Unaffiliated-by-primary-ballot section. Loaded only when the build has it ON. Party colours are the validated
   Propensity pair (light dE 30 normal / 24 protan; dark 29.5 / 20). Cycle is encoded by line style, not colour. */
:root { --u-dem: #2a78d6; --u-rep: #c43c3c; --u-none: #6b6a66; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --u-dem: #3987e5; --u-rep: #e46060; --u-none: #a09f98; } }
:root[data-theme="dark"] { --u-dem: #3987e5; --u-rep: #e46060; --u-none: #a09f98; }

#unaprimary .seg button { min-height: 36px; }
#unaprimary .u-sum { margin: 0 0 14px; font-size: 1.05rem; font-weight: 600; max-width: 78ch; }
table.una th.pgh, table.una td.pgh { text-align: left; font-weight: 650; color: var(--ink); background: var(--hover); }
table.una tr.sep td { border-top: 2px solid var(--line); }
table.una tr.tot td { font-weight: 650; }
table.una td.sw1 .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
table.una td.num, table.una th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.una thead tr.grp th { border-bottom: 1px solid var(--line); padding-bottom: 4px; text-align: center; }
table.una td.vl, table.una th.vl { border-left: 1px solid var(--line); }
@media (max-width: 560px) {
  table.una th, table.una td { padding: 6px 6px; }
  table.una td:first-child, table.una thead th:first-child { white-space: normal; min-width: 120px; max-width: 140px; }
}
@media (forced-colors: active) { table.una td.sw1 .sw { background: CanvasText !important; } }
#unaprimary .attrib { margin: 0 0 8px; font-size: .95rem; font-weight: 600; }
