/* assets/byelection.css — byelection.html 전용 */


/* .foot chrome → common.css */

/* === 반응형 (모바일·태블릿) === */

/* 매우 좁은 화면 (≤480px) */

/* === 재·보궐선거 (byelection.html) === */
.byelection-viz { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.byelection-viz #boe-map { width: 100%; height: 600px; border: 1px solid var(--line, rgba(27,34,55,0.18)); border-radius: 2px; background: #eef1f6; }





@media (max-width: 860px) {
  .byelection-viz { grid-template-columns: 1fr; }
  .byelection-viz #boe-map { height: 380px; }
  /* components.css의 600px 캡 + 내부 스크롤 override — 모바일에선 자연 흐름 */
  .byelection-viz .detail-pane { max-height: none; overflow-y: visible; }
}
.boe-chip { font-size: 0.82rem; }
.boe-chip.is-pollless {
  opacity: 0.7;
  border-style: dashed;
}
.boe-chip.is-pollless.is-active { opacity: 1; }
/* 재보궐 지도 상시 라벨 */
.boe-label { background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 2px;
  font-size: 11px; font-weight: 700; color: var(--ink); padding: 1px 5px; box-shadow: 0 1px 2px var(--shadow, rgba(0,0,0,0.12));
  font-family: Pretendard, system-ui, sans-serif; }
.boe-label::before { display: none; }

/* 실제 결과 (NEC) — 폴 카드 위 강조 */
.boe-result {
  background: var(--bg2);
  border-left: 3px solid var(--ink);
  padding: 10px 14px 12px;
  margin: 10px 0 14px;
}
.boe-result-hdr {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.boe-result-tag {
  font-size: 11px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.02em;
}
.boe-result-meta {
  font-size: 11px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.boe-result-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 56px;
  gap: 8px;
  font-size: 13px;
  padding: 2px 0;
  align-items: baseline;
}
.boe-rank { font-size: 10px; color: var(--ink-mute); }
.boe-name { font-weight: 600; }
.boe-party { font-size: 11px; font-weight: 600; }
.boe-pct { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.boe-result-margin {
  font-size: 11px; color: var(--ink-soft);
  margin-top: 6px;
}
