/* House page additions on top of /senate/styles.css */
#hexmap { width: 100%; height: auto; display: block; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#hexmap .hex { stroke: var(--surface); stroke-width: calc(1px / var(--zk, 1)); cursor: pointer; transition: fill .3s; }
/* geographic map: strokes stay the same on screen at any zoom */
#hexmap .hex.geo { stroke-width: .6; vector-effect: non-scaling-stroke; }
#hexmap .geo-states { stroke-width: 1.4; opacity: .8; vector-effect: non-scaling-stroke; }
#hexmap .flip.geo-flip { vector-effect: non-scaling-stroke; }
#hexmap .ring { fill: none; stroke: var(--ink); stroke-width: calc(2.5px / var(--zk, 1)); pointer-events: none; stroke-linejoin: round; }
#hexmap .ring.focus { stroke: var(--focus); stroke-width: calc(3px / var(--zk, 1)); }
#hexmap .geo-rings .ring { vector-effect: non-scaling-stroke; stroke-width: 2; }
#hexmap .border { fill: none; stroke: var(--ink); stroke-width: calc(2.4px / var(--zk, 1)); stroke-linecap: round; pointer-events: none; }
#hexmap .flip { fill: var(--surface); stroke: var(--ink); stroke-width: calc(.8px / var(--zk, 1)); pointer-events: none; }
#hexmap .st-label { pointer-events: none; font-size: calc(12px / var(--zk, 1)); font-weight: 700; text-anchor: middle; dominant-baseline: central;
  fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); margin-right: 5px; vertical-align: -1px; }

.seats-stat .hero-num { color: var(--ink); }
.table-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
input[type="search"] { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); width: 230px; max-width: 100%; }
.experts-cell { white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }
.race-table .who { color: var(--muted); font-size: 12px; display: block; font-weight: 400; }

@media (max-width: 720px) {
  #hexmap .st-label { font-size: calc(18px / var(--zk, 1)); }
  input[type="search"] { width: 100%; }
  .table-tools { width: 100%; }
}

.legend a { color: inherit; }
/* keyboard focus on a district: outline the shape itself (a CSS outline is a box that scales with zoom) */
#hexmap .hex:focus { outline: none; }

/* the archive's Overview tab: the same districts on four small maps */
.ov-map .hex { stroke: var(--surface); stroke-width: .7px; transition: fill .3s; }
.ov-map .hex.geo { stroke-width: .35; vector-effect: non-scaling-stroke; }
.ov-map .geo-states { fill: none; stroke: var(--ink); stroke-width: .9; opacity: .8; vector-effect: non-scaling-stroke; pointer-events: none; }
.ov-map .border { fill: none; stroke: var(--ink); stroke-width: 1.8px; stroke-linecap: round; pointer-events: none; }
.ov-map .flip { fill: var(--surface); stroke: var(--ink); stroke-width: .7px; pointer-events: none; }
.ov-map .flip.geo-flip { vector-effect: non-scaling-stroke; }
.ov-map .geo-rings .ring { vector-effect: non-scaling-stroke; stroke-width: 2; }
.ov-map .ring.hl { stroke: var(--ink); }
.ov-map .st-label { pointer-events: none; font-size: 17px; font-weight: 700; text-anchor: middle; dominant-baseline: central;
  fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
@media (max-width: 560px) { .ov-map .st-label { display: none; } }
