/* Council: two versions, four seats, one step chart. */
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.co-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); gap: 28px; justify-content: center; }
.co-page figcaption { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.co-page b { font: 400 1.25rem/1 var(--serif); }
.co-thumb { aspect-ratio: 100 / 120; }
.co-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.co-thumb .x { stroke: var(--pencil); stroke-width: 2px; fill: none; stroke-linecap: round; }
.co-thumb.empty { background: transparent; }
.co-thumb.empty::before { border-style: dashed; border-color: var(--pencil); filter: none; }
.co-page[data-slot="b"] .co-thumb { z-index: 2; }

.co-seats { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.co-seats li { display: grid; justify-items: center; gap: 2px; }
.co-seats svg { width: 30px; height: 30px; overflow: visible; }
.vote {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px;
  font: 400 1rem/1 var(--serif); box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color 200ms ease;
}
.vote.b { background: var(--ink); color: var(--sheet); box-shadow: none; }
.vote.a { box-shadow: inset 0 0 0 1.5px var(--ink); }
.vote.pop { animation: vote 220ms var(--ease) backwards; }
@keyframes vote { from { opacity: 0; transform: translateY(5px) scale(0.9); } }
.co-blind { margin-top: 12px; text-align: center; }

.co-right { padding: 16px 20px 18px; }
.co-chart { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.co-segs path { stroke-width: 2.4px; }
.co-segs path.new { stroke-dasharray: 1; animation: seg 560ms var(--ease) backwards; }
@keyframes seg { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.co-nums text { font: 600 11px var(--sans); fill: var(--soft); text-anchor: middle; }
.co-head { transition: transform 520ms var(--ease-in-out); }
.co-head circle { fill: var(--red); }
.co-verdict { margin-top: 8px; min-height: 1.3em; }
.co-right .btn-ink { margin-top: 12px; min-width: 9em; }

@media (max-width: 640px) {
  .co { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .co-pages { grid-template-columns: repeat(2, minmax(0, 104px)); gap: 22px; }
  .co-seats { margin-top: 12px; }
  .co-blind { font-size: 1rem; margin-top: 8px; }
  .co-right { padding: 12px 14px 14px; }
  .co-verdict { font-size: 1rem; }
}
