/* Chagua 6.13 – Registered voters. Builds on the Budget tracker look (budget.css). */
.chv-wrap .chb-bar { gap: 10px 14px; }
.chv-wrap .chv-metric button { min-height: 36px; font-size: 13.5px !important; }
.chv-tools { margin: 14px 0 18px; }
.chb-wrap a.chv-btn, .chv-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px !important; border-radius: 12px !important; font-weight: 800; font-size: 14px; text-decoration: none !important; }
.chb-wrap a.chv-btn.is-gold, .chv-btn.is-gold { background: var(--b-gold) !important; color: #1c1600 !important; box-shadow: 0 4px 12px rgba(217,158,0,.3); }
.chv-embedbox { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--b-soft); border: 1px solid var(--b-line); }
.chv-embedbox p { margin: 0 0 8px !important; font-size: 14px; }
.chv-embedbox textarea { width: 100%; font: 12.5px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1px solid #cfdcd4; border-radius: 10px; background: #fff; resize: vertical; }
.chv-embedbox button { margin: 6px 0 10px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--b-g); color: #fff; font-weight: 800; cursor: pointer; }
.chv-embedbox summary { cursor: pointer; font-weight: 700; color: var(--b-d); margin: 4px 0 8px; }
.chv-picked { list-style: none !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px !important; padding: 0 !important; }
.chv-picked li { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 6px 6px 6px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--pc); font-weight: 800; font-size: 14px; }
.chv-picked li b { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); }
.chv-picked small { font-weight: 600; color: var(--b-mut); font-size: 12px; }
.chv-picked button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #eef4f0; color: var(--b-ink); font-size: 17px; line-height: 1; cursor: pointer; padding: 0; }
.chv-picked button:hover { background: var(--b-red); color: #fff; }
.chv-add { max-width: 520px; }
.chv-add input[type=search] { box-shadow: none !important; border: 2px solid #d6e2db !important; height: 46px; }
.chv-diff { margin: 0 0 12px !important; padding: 10px 14px; border-radius: 12px; background: #f1f8f4; font-weight: 700; font-size: 15px; }
.chv-seo-list { columns: 3 220px; font-size: 14px; }
.chv-seo[hidden] { display: none !important; }
/* Embed */
.chv-embed-body { margin: 0; padding: 12px; background: #f6f9f7; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.chv-embed .chb-h { margin: 0 0 10px !important; font-size: 19px; }
.chv-embed .chb-card { box-shadow: 0 1px 2px rgba(4,54,31,.06); margin-bottom: 10px; }
.chv-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin: 4px 2px 0 !important; font-size: 12.5px; color: var(--b-mut); }
.chv-foot a { color: var(--b-d) !important; text-decoration: none !important; }
.chv-foot b { color: var(--b-g); }
@media (max-width: 640px) { .chv-picked li { font-size: 13px; } }
/* 6.13.2: picture and share bar under every chart */
.chv-picbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--b-soft); border: 1px dashed #cfdcd4; }
.chv-picbar.is-place { margin: 14px 0 0; background: #fffbea; border-color: #f3dd8a; }
.chv-picbar-t { font-size: 13px; font-weight: 800; color: var(--b-mut); margin-right: 4px; }
.chv-picbar button, .chv-sm a, .chv-sm button { min-height: 36px; padding: 0 12px !important; border: 1px solid #d6e2db !important; border-radius: 10px !important; background: #fff !important; color: var(--b-d) !important; font: inherit; font-size: 13.5px !important; font-weight: 800 !important; cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; box-shadow: none !important; text-transform: none !important; }
.chv-picbar button.is-gold { background: var(--b-gold) !important; border-color: var(--b-gold) !important; color: #1c1600 !important; }
.chv-sm { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.chv-sm[hidden] { display: none !important; }
.chv-sm a:hover, .chv-picbar button:hover { border-color: var(--b-g) !important; }
@media (max-width: 640px) { .chv-picbar-t { flex-basis: 100%; } }
/* 6.13.4: polling centres on ward pages */
.chv-pc { list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.chv-pc li { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 12px !important; border-radius: 14px; background: var(--b-soft); border: 1px solid var(--b-line); }
.chv-pc-n { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; }
.chv-pc-n a { color: var(--b-ink) !important; text-decoration: none !important; border-bottom: 1px dashed #b8cbbf; }
.chv-pc-n a:hover { color: var(--b-g) !important; }
.chv-pc-n small { display: block; margin: 2px 0 6px; font-weight: 600; font-size: 12.5px; color: var(--b-mut); }
.chv-pc-n .chb-track { height: 8px; }
.chb-wrap a.chv-pc-dir { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px !important; border-radius: 999px !important; background: var(--b-g) !important; color: #fff !important; font-weight: 800; font-size: 13.5px; text-decoration: none !important; white-space: nowrap; }
.chb-wrap a.chv-pc-dir:hover { background: var(--b-d) !important; }
.chv-pc-acts { margin: 4px 0 10px; }
.chv-pc-acts button { min-height: 40px; }
.chb-wrap a.chv-btn:not(.is-gold) { border: 1px solid #d6e2db; background: #fff !important; color: var(--b-d) !important; }
.chv-pc-map { margin: 0 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--b-line); }
.chv-pc-map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 560px) { .chv-pc li { flex-wrap: wrap; } .chb-wrap a.chv-pc-dir { width: 100%; justify-content: center; } }
