.nc-civic-btn{
  display:inline-flex;align-items:center;gap:8px;margin:12px 0 4px;
  border:0;background:#1877F2;color:#fff;font:800 13px/1 Inter,Arial,sans-serif;
  padding:10px 14px;cursor:pointer;text-decoration:none;
}
.nc-civic-btn:hover{background:#0A5FDB;color:#fff}
.nc-civic-drawer{
  position:fixed;inset:0;z-index:80;display:none;align-items:stretch;justify-content:flex-end;
  background:rgba(12,18,32,.45);
}
.nc-civic-drawer.is-open{display:flex}
.nc-civic-panel{
  width:min(520px,100%);background:#fff;color:#0c0c0c;display:flex;flex-direction:column;
  box-shadow:-8px 0 32px rgba(0,0,0,.18);overflow:hidden;
}
.nc-civic-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:14px 16px;border-bottom:1px solid #e5e5e5;
}
.nc-civic-head h2{margin:0;font:800 16px/1.25 Inter,Arial,sans-serif;color:#0A5FDB}
.nc-civic-head p{margin:4px 0 0;font:600 12px/1.35 Inter,Arial,sans-serif;color:#5c5c5c}
.nc-civic-close{
  border:0;background:#f2f4f8;color:#0c0c0c;font:800 16px/1 Inter,Arial,sans-serif;
  width:36px;height:36px;cursor:pointer;
}
.nc-civic-map-wrap{position:relative;background:#e8eef8;border-bottom:1px solid #e5e5e5}
.nc-civic-map,.nc-civic-gmap{height:320px;width:100%;background:#e8eef8}
.nc-civic-gmap iframe{border:0;width:100%;height:100%;display:block}
.nc-civic-basemap{
  display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-bottom:1px solid #eee;background:#f7f9fc;
}
.nc-civic-basemap button{
  border:1px solid #d7dde8;background:#fff;color:#0c0c0c;font:700 12px/1 Inter,Arial,sans-serif;
  padding:7px 10px;cursor:pointer;
}
.nc-civic-basemap button.is-on{border-color:#1877F2;background:#1877F2;color:#fff}
.nc-civic-map-actions{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid #eee;
  font:12px/1.35 Inter,Arial,sans-serif;
}
.nc-civic-map-actions a{color:#1877F2;font-weight:700}
.nc-civic-map-note{color:#5c5c5c}
.nc-civic-legend{
  display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:6px 12px;
  border-bottom:1px solid #eee;background:#fff;font:700 11px/1 Inter,Arial,sans-serif;color:#334155;
}
.nc-civic-legend-title{margin-right:4px;color:#0A5FDB;text-transform:uppercase;letter-spacing:.04em}
.nc-civic-legend-item{
  display:inline-flex;align-items:center;gap:5px;border:1px solid #d7dde8;background:#fff;
  padding:5px 8px;cursor:pointer;font:700 11px/1 Inter,Arial,sans-serif;color:#334155;
}
.nc-civic-legend-item i{
  display:inline-block;width:12px;height:12px;border-radius:2px;border:1px solid rgba(0,0,0,.25);
}
.nc-civic-legend-item.is-static{cursor:default;border-color:transparent;background:transparent;padding-left:0}
.nc-civic-legend-item.is-on,.nc-civic-legend-item:hover{
  border-color:#0A5FDB;background:#eff6ff;box-shadow:0 0 0 2px rgba(24,119,242,.25);
}
.nc-civic-legend-item i.is-city{width:14px;height:0;border:0;border-top:3px solid #0A5FDB;border-radius:0}
.nc-civic-demo{padding:12px 16px;border-bottom:1px solid #eee;background:#f8fafc;overflow:auto;max-height:42vh}
.nc-civic-panel-tabs{background:#eff6ff;border-bottom:2px solid #1877F2}
.nc-civic-empty{color:#5c5c5c;font:600 13px/1.4 Inter,Arial,sans-serif;margin:8px 0}
.nc-civic-note{color:#5c5c5c;font:600 12px/1.4 Inter,Arial,sans-serif;margin:0 0 8px}
.nc-civic-note a{color:#1877F2;font-weight:800}
.nc-civic-race-title{margin:14px 0 6px;font:800 13px/1.3 Inter,Arial,sans-serif;color:#0c0c0c}
.nc-civic-body{padding:12px 16px 28px;overflow:auto;flex:1;min-height:180px}
.nc-civic-stats{padding:10px 12px;border-bottom:1px solid #eee;background:#f8fafc}
.nc-civic-stat-list{margin:6px 0 0;padding:0 0 0 16px;font:13px/1.45 Inter,Arial,sans-serif}
.nc-civic-gmap-hint{
  margin:0;padding:8px 10px;background:#fff7ed;color:#9a3412;font:700 12px/1.35 Inter,Arial,sans-serif;
}
.nc-civic-map,.nc-civic-gmap{height:360px;width:100%;background:#e8eef8}
.nc-civic-tabs{
  display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px;border-bottom:1px solid #eee;
}
.nc-civic-tabs button{
  border:1px solid #d7dde8;background:#fff;color:#0c0c0c;font:700 12px/1 Inter,Arial,sans-serif;
  padding:7px 10px;cursor:pointer;
}
.nc-civic-tabs button.is-on{border-color:#1877F2;background:#1877F2;color:#fff}
.nc-civic-districts{
  display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px;border-bottom:1px solid #eee;
}
.nc-civic-districts button{
  border:1px solid #d7dde8;background:#f7f9fc;color:#0c0c0c;font:700 12px/1 Inter,Arial,sans-serif;
  padding:7px 10px;cursor:pointer;
}
.nc-civic-districts button.is-on{border-color:#0A5FDB;background:#0A5FDB;color:#fff}
.nc-civic-body{padding:12px 16px 24px;overflow:auto;flex:1}
.nc-civic-body h3{margin:0 0 8px;font:800 14px/1.3 Inter,Arial,sans-serif}
.nc-civic-body .nc-civic-note{font:12px/1.4 Inter,Arial,sans-serif;color:#5c5c5c;margin:0 0 12px}
.nc-civic-cand{
  display:grid;grid-template-columns:72px 1fr;gap:8px 12px;align-items:start;
  border:1px solid #e5e5e5;padding:10px 12px;margin:0 0 8px;
}
.nc-civic-cand-avatar{
  display:block;width:72px;height:72px;border-radius:50%;overflow:hidden;
  background:#e8eef6;grid-row:1 / span 4;
  box-shadow:0 0 0 2px #fff,0 0 0 3px #1877F2;
  transition:transform .2s ease,box-shadow .2s ease;
}
a.nc-civic-cand-avatar:hover{
  transform:scale(1.04);
  box-shadow:0 0 0 2px #fff,0 0 0 4px #0d5ec7;
}
.nc-civic-cand-avatar img{
  width:100%;height:100%;object-fit:cover;object-position:center top;display:block;
}
.nc-civic-cand strong{display:block;font:800 14px/1.3 Inter,Arial,sans-serif;grid-column:2}
.nc-civic-cand em{display:block;font:600 12px/1.3 Inter,Arial,sans-serif;color:#5c5c5c;font-style:normal;margin:2px 0 6px;grid-column:2}
.nc-civic-cand p{grid-column:2;margin:0 0 6px}
.nc-civic-cand > a{color:#1877F2;font:700 12px Inter,Arial,sans-serif;grid-column:2}
.nc-civic-cand:not(:has(.nc-civic-cand-avatar)){grid-template-columns:1fr}
.nc-civic-cand:not(:has(.nc-civic-cand-avatar)) strong,
.nc-civic-cand:not(:has(.nc-civic-cand-avatar)) em,
.nc-civic-cand:not(:has(.nc-civic-cand-avatar)) p,
.nc-civic-cand:not(:has(.nc-civic-cand-avatar)) > a{grid-column:1}
.nc-civic-empty{color:#666;font:13px/1.4 Inter,Arial,sans-serif}
@media(max-width:640px){
  .nc-civic-panel{width:100%}
  .nc-civic-map{height:220px}
}
