/* Utah House 2024 → 2026: the contested-races dumbbell chart.
   Ported from civic-data ut_state/elections_live/share/house_contested.template.html.
   Everything is scoped under .uh so none of it reaches the site's header, footer or other pages.
   Tufte-style: no panels, ink only where there are data, the site's book serif.
   Phones (owner, 2026-11-09): one phone gate for the whole page, a viewport of 560px or less, written as
   @media (max-width: 560px) here and as uhGate.phone in uh-sheet.js, which chart.js, map.js and scatter.js read.
   The phone rules are gathered at the end of this file. */

/* the "under construction" banner under the title: hazard stripes around a pale panel, our own pixel-art worker and
   cone, chunky caps; the jackhammer and its dust animate in two steps, like an old GIF */
.uc { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 0 var(--s-3);
      padding: 10px 14px; background: #fffbe6;
      border: 7px solid transparent; border-image: repeating-linear-gradient(-45deg, #f5c400 0 10px, #222 10px 20px) 7; }
.uc .ucart { flex: none; image-rendering: pixelated; }
.uc .uctext { flex: 1; text-align: center; align-self: center; }
.uc .uchead { display: block; font-family: var(--font-mono, "Courier New", monospace); font-weight: 700; font-size: 22px;
              letter-spacing: .08em; text-transform: uppercase; color: #222; text-shadow: 2px 2px 0 #f5c400; }
.uc .ucsub { display: block; font-size: 13.5px; color: #4a4a4a; margin-top: 2px; }
.uc .jh { animation: uc-jig .18s steps(2) infinite; }
.uc .dust { animation: uc-dust .36s steps(2) infinite; }
@keyframes uc-jig { 0% { transform: translateY(0); } 100% { transform: translateY(-1px); } }
@keyframes uc-dust { 0% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .uc .jh, .uc .dust { animation: none; } }
/* phones (the phone gate): slimmer, about 60px, every word kept (owner, 2026-11-09): the worker smaller, the cone left
   out, the heading on one line */
@media (max-width: 560px) {
  .uc { align-items: center; padding: 5px 10px; gap: 8px; margin-bottom: var(--s-2); border-width: 5px; border-image-width: 5px; }
  .uc .ucart:first-child { width: 36px; height: 34px; }
  .uc .ucart:last-child { display: none; }
  .uc .uchead { font-size: 14px; white-space: nowrap; text-shadow: 1px 1px 0 #f5c400; }
  .uc .ucsub { font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
}

/* the page uses the site's standard frame, the same width as the header; its text uses the shared .measure */

.uh {
  --page: var(--paper, #fff); --surface: var(--paper, #fff); --ink: #111; --ink2: #4a4a4a; --muted: #858585;
  --grid: #ececec; --rule: #f0f0f0; --axis: #b5b5b5; --dem: #2a78d6; --rep: #e34948; --oth: #1baf7a; --wash: rgba(0, 0, 0, .035);
  color: var(--ink);
  font: 16px/1.45 var(--font-body, "Spectral", Georgia, serif);
}
.uh p { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; }
.uh .status { color: var(--muted); font-size: 14px; font-style: italic; margin: 0 0 6px; }
.uh .status .prelim { font-style: normal; color: var(--ink2); }
.uh .intro { margin: var(--s-2) 0 0; }   /* the page's introduction, under the status line */
.uh .story { margin: var(--s-3) auto 0; }   /* a plot's story in words, under the plot and its About */
.uh .story + .story { margin-top: var(--s-2); }
/* districts worth a look, under a plot's story: hanging heads (owner, 2026-11-10), the district's name and its places
   right-aligned in a narrow column, the text beside them; on phones the name and places sit on one line over the text */
.uh .spots { list-style: none; padding: 0; margin: var(--s-2) auto 0; }
.uh .spots li { display: grid; grid-template-columns: 132px 1fr; gap: 18px; margin: 0 0 16px; }
.uh .spots .side { text-align: right; padding-top: 1px; }
.uh .spots a[data-hd] { display: block; font-weight: 600; line-height: 1.25; color: var(--ink); text-decoration-color: var(--axis); text-underline-offset: 2px; }
.uh .spots a[data-hd]:hover { text-decoration-color: var(--ink); }
.uh .spots .side small { display: block; color: var(--muted); font-size: 13px; font-style: italic; margin-top: 3px; }
.uh .spots li > p { margin: 0; }
@media (max-width: 560px) {
  .uh .spots li { grid-template-columns: 1fr; gap: 2px; }
  .uh .spots .side { text-align: left; }
  .uh .spots a[data-hd] { display: inline; }
  .uh .spots .side small { display: inline; margin-left: .4em; }
}
.uh .status button { font: inherit; color: var(--ink2); background: none; border: 0; padding: 0; text-decoration: underline;
                     text-decoration-color: var(--axis); text-underline-offset: 2px; cursor: pointer; }
.uh .status button:hover { color: var(--ink); }
/* "On this page" links; the targets stop clear of the fixed site banner */
/* "On this page": a small heading over a bulleted list of the sections */
.uh .jump { font-size: 15px; color: var(--ink2); margin: 0 0 22px; }
.uh .jump .jump-head { font-size: 14px; font-weight: 600; color: var(--ink); margin: 16px 0 4px; letter-spacing: 0; }
.uh .jump ul { margin: 0; padding-left: 1.2em; }
.uh .jump li { margin: 2px 0; }
.uh .jump li::marker { color: var(--muted); }
.uh .jump a { color: var(--ink2); text-decoration-color: var(--axis); }
.uh .jump a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.uh #chartTitle, .uh #chart, .uh #uhMap, .uh #uhScatter, .uh #uhTurnout { scroll-margin-top: calc(var(--banner-h, 56px) + var(--s-2)); }
html:has(.uh) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.uh) { scroll-behavior: auto; } }
.uh .loading { color: var(--muted); font-style: italic; }
.uh h2.chart-title { margin-top: var(--s-4); margin-bottom: var(--s-2); }   /* the chart's own title, like the map's; width: .measure */
.uh #chart { position: relative; }
/* the view menu above the chart: the same bordered menu as the 2024 race in each row; the count of rows shown at the end */
.uh .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--ink2); margin-bottom: 14px; }   /* width + centering: .measure */
.uh .filters .flab { color: var(--muted); font-style: italic; }
.uh .filters select.fsel { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; cursor: pointer;
    appearance: none; -webkit-appearance: none; field-sizing: content;
    background: #fff no-repeat right 9px center / 10px 6px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23858585'/%3E%3C/svg%3E");
    border: 1px solid #bdbdbd; border-radius: 4px; padding: 3px 28px 3px 9px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.uh .filters select.fsel:hover { border-color: var(--ink2); }
.uh .filters select.fsel:focus-visible { outline: 2px solid var(--dem); outline-offset: 1px; }
.uh .filters .fcount { color: var(--muted); font-style: italic; margin-left: auto; }
/* the row list as a scrolling window (more than 16 rows): a soft, straight shadow along an edge says there's more past it
   (the "local" white layers scroll with the rows and cover the shadow when scrolled to that end) */
.uh #chart .rows.scroll { overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(var(--surface) 40%, rgba(255,255,255,0)) top / 100% 20px no-repeat local,
              linear-gradient(rgba(255,255,255,0), var(--surface) 60%) bottom / 100% 20px no-repeat local,
              linear-gradient(rgba(0,0,0,.10), rgba(0,0,0,0)) top / 100% 8px no-repeat scroll,
              linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.10)) bottom / 100% 8px no-repeat scroll; }
.uh #chart .empty { color: var(--muted); font-style: italic; padding: 12px 0 12px 28px; margin: 0; }   /* width: .measure, the text's width (index.php) */

/* each district is a row; a click expands its details in a panel right below it (any number open at once) */
.uh .rw.open svg .hit { fill: var(--wash); }
/* an open row's margins beside its marks (fill = party), on a halo of the row's wash so the zero line breaks behind them */
.uh svg .mlabs { display: none; }
.uh .rw.open svg .mlabs { display: inline; }
/* the median reference (owner, 2026-11-09): across the chart, a dotted line at the median, its label out in the right
   margin (desktop only; open rows carry no median mark) */
.uh #chart .medline { position: relative; height: 0; z-index: 2; }
.uh #chart .medline::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 1.5px dotted #6a6a6a; }
.uh #chart .medlab { position: absolute; left: 100%; margin-left: 10px; transform: translateY(-50%); white-space: nowrap;
                     color: #6a6a6a; font-size: 12px; font-style: italic; pointer-events: none; z-index: 3; }
.uh #chart .medlab b { font-style: normal; font-weight: 650; color: var(--ink); }
.uh #chart .medline.off, .uh #chart .medlab.off { visibility: hidden; }   /* no room in the margin for the label (phones): neither shows */
.uh #chart .medlab.off { left: auto; right: 0; margin-left: 0; }   /* and the hidden label waits inside, so the page doesn't scroll sideways */
/* the open row is its panel's header: its shift and its two margins in bold; a thin gray box wraps the row and the white
   panel under it as one unit (drawn over both, since the panel's background would cover a border drawn inside the row) */
.uh .rw.open { position: relative; }
.uh .rw.open::after { content: ""; position: absolute; inset: 0; border: 1px solid #cfcfcf; pointer-events: none; z-index: 2; }
.uh .rw.open svg .val, .uh .rw.open svg .mlab { font-weight: 650; }
.uh svg .mlab { font-size: 12px; font-variant-numeric: tabular-nums lining-nums; stroke: #f6f6f6; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.uh .det { position: relative; padding: 14px 18px 20px; background: var(--surface); color: var(--ink2); font-size: 13.5px; line-height: 1.4;
           font-variant-numeric: tabular-nums; }

.uh svg { display: block; width: 100%; max-width: none; overflow: visible; }
.uh svg text { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums lining-nums; }
.uh svg .lab { fill: var(--ink); font-size: 14px; }
.uh svg .lab.ttl { font-size: 18px; font-weight: 650; }   /* an open row's "House District 27": its details' header */
.uh .rw.open svg .val { font-size: 16px; }
.uh .rw.open svg .mlab { font-size: 13.5px; }
.uh svg .val { fill: var(--ink2); font-size: 13.5px; }
.uh svg .colhd { fill: var(--ink2); font-size: 13px; font-style: italic; }
.uh svg .sorthd { cursor: pointer; } .uh svg .sorthd:hover .colhd, .uh svg .sorthd.on .colhd { fill: var(--ink); }
.uh svg .sorthd:focus { outline: none; } .uh svg .sorthd:focus-visible .hit2 { stroke: var(--ink2); stroke-width: 1; }
.uh svg .ind { font-style: normal; font-size: 10px; }
.uh svg .row { outline: none; cursor: pointer; }
/* the expand/collapse button: a circled plus; darker on hover; filled, with a minus, once open */
.uh svg .xbtn circle { fill: var(--surface); stroke: #8f8f8f; stroke-width: 1.25; }
.uh svg .xbtn .chev { fill: none; stroke: var(--ink2); stroke-width: 1.75; stroke-linecap: round; }
.uh svg .row:hover .xbtn circle { stroke: var(--ink); }
.uh svg .row:hover .xbtn .chev { stroke: var(--ink); }
.uh .rw.open svg .xbtn circle { fill: var(--ink2); stroke: var(--ink2); }
.uh .rw.open svg .xbtn .chev { stroke: #fff; }
.uh svg .row:hover .hit, .uh svg .row:focus-visible .hit, .uh svg .row.sel .hit { fill: var(--wash); }   /* keyboard focus only: a clicked row isn't left shaded */
.uh svg .row:focus-visible .hit { stroke: var(--ink2); stroke-width: 1; }

/* the panel: title and place line; map | results, profile; one column on phones */
/* the watermark in a card's bottom-right corner: the dot plot's (the banner's type, faded), smaller; in the bottom padding */
.uh .det .dwm { position: absolute; right: 12px; bottom: 5px; font-family: var(--font-mono); font-weight: 700; font-size: 12px;
                letter-spacing: -0.01em; color: #9a9a9a; opacity: .75; pointer-events: none; user-select: none; }
.uh .det .cty { color: var(--ink2); font-size: 12.5px; }   /* the district's county or counties, under the map */
.uh .det .dgrid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.uh .det .tables { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }   /* always even, whatever columns each has */
.uh .det svg.dmap { width: 100%; height: auto; aspect-ratio: 7 / 5; background: #fff; overflow: hidden; }
/* the details map's layers (drawDetailMap in chart.js), styled as the main map's: districts, roads, county lines, the
   district's outline and number, towns with a white halo */
/* the details map's zoom buttons: the Utah map's, in miniature, stacked in its top-right corner */
.uh .det .dmapw { position: relative; }
.uh .det .dzoom { position: absolute; top: 5px; right: 5px; display: flex; flex-direction: column; gap: 3px; }
.uh .det .dzb { width: 19px; height: 19px; padding: 0; display: flex; align-items: center; justify-content: center;
                font: 14px/1 var(--font-body, Georgia, serif); color: var(--ink2); background: var(--surface); cursor: pointer;
                border: 1px solid var(--axis); border-radius: 3px; }
.uh .det .dzb:hover:not(:disabled) { border-color: var(--ink2); color: var(--ink); }
.uh .det .dzb:disabled { opacity: .4; cursor: default; }
.uh .det .dzb:focus-visible { outline: 2px solid var(--dem); outline-offset: 1px; }
.uh .det svg.dmap .nb { fill: #ececec; stroke: #fff; stroke-width: 1; }
.uh .det svg.dmap .rds path { fill: none; stroke: #2b2b2b; stroke-opacity: .38; stroke-linecap: butt; stroke-linejoin: bevel; }
.uh .det svg.dmap .rd.t1 { stroke-width: 1.3; } .uh .det svg.dmap .rd.t2 { stroke-width: .9; }
.uh .det svg.dmap .rd.t3 { stroke-width: .6; } .uh .det svg.dmap .rd.t4 { stroke-width: .45; stroke-opacity: .35; }
.uh .det svg.dmap .rd.t5 { stroke-width: .35; stroke-opacity: .22; }   /* every street, zoomed in close */
/* the major roads' names, zoomed in (nameRoads in chart.js): small, gray, along the road, haloed like the towns */
.uh .det svg.dmap .rnm text { font-size: 7px; fill: #5a5a5a; paint-order: stroke; stroke: #fff; stroke-width: 2.2px; stroke-linejoin: round; letter-spacing: .02em; }
.uh .det svg.dmap .rnm text.t1, .uh .det svg.dmap .rnm text.t2 { font-weight: 600; fill: #444; }
.uh .det svg.dmap .rnm .rbadge rect { fill: #fff; stroke: #5a5a5a; stroke-width: .5; }   /* a route's badge ("I-15"), as on the Utah map */
.uh .det svg.dmap .rnm .rbadge text { font-size: 6px; font-weight: 700; fill: #222; stroke: none; letter-spacing: .02em; }
/* dragging the map (owner, 2026-11-09): a mouse any time; a finger once zoomed in (.zin), so before that a finger scrolls the page */
.uh .det svg.dmap { cursor: grab; }
.uh .det .dmapw.dragging svg.dmap { cursor: grabbing; }
.uh .det .dmapw.zin svg.dmap { touch-action: none; }
.uh .det svg.dmap .cty { fill: none; stroke: #9a9a9a; stroke-width: 1; }
.uh .det svg.dmap .meo { fill: none; stroke: #111; stroke-width: 1.5; }
.uh .det svg.dmap .num { font-size: 11px; font-weight: 600; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: 2px; }
.uh .det svg.dmap .pls circle { fill: #333; }
.uh .det svg.dmap .pls text { font-size: 8.5px; fill: #333; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; }
.uh .det svg.dmap .pls .in text { font-weight: 600; fill: #111; }
.uh .det svg.dmap .pls text.big { font-weight: 600; font-style: italic; fill: #111; }   /* the place most of the district is, when its point is off the map */
/* voter turnout over the map: the "Voter turnout" heading is a .rh like the race headings, so the three line up; the
   figure and the tag stand the same height; the arrow green up, an orange-leaning red down (neither party's color) */
.uh .det .turnout { box-sizing: border-box; display: flex; flex-direction: column; margin: 0 0 10px; color: var(--ink2); font-variant-numeric: tabular-nums lining-nums; --up: #2b8a3e; --down: #d9480f; }
.uh .det .turnout .tsh > span:first-child { white-space: nowrap; }
/* more breathing room for the turnout (owner, 2026-11-09, with the presidential table's third row): the bars a little
   apart and thicker, level with the table's rows beside them, the change under them; the band is as tall as the race
   tables (alignMap), so what's left sits above the map */
.uh .det .turnout .tbars { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 13px; }
.uh .det .turnout .trow { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; align-items: center; gap: 6px; }
.uh .det .turnout .tyr { color: var(--muted); font-size: 11.5px; font-style: italic; }
.uh .det .turnout .ttrack { height: 12px; background: #efefef; border-radius: 2px; overflow: hidden; }
.uh .det .turnout .ttrack i { display: block; height: 100%; background: #8a8a8a; border-radius: 2px; }
.uh .det .turnout .trow.now .ttrack i { background: #4a4a4a; }   /* 2026 darker: the year the card is about */
.uh .det .turnout .tval { text-align: right; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.uh .det .turnout .tfoot { display: flex; align-items: center; gap: 8px; }
.uh .det .turnout .tchip { background: #ececec; border-radius: 3px; padding: 2px 7px; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.uh .det .turnout .tchip .s { font-size: 11px; font-weight: 400; color: var(--muted); }
.uh .det .turnout .tchip small { font-size: 11px; font-weight: 400; color: var(--ink2); }
.uh .det .turnout .tut { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.uh .det .turnout .ar { font-size: .8em; margin-right: 3px; }
.uh .det .turnout.up .ar { color: var(--up); }
.uh .det .turnout.down .ar { color: var(--down); }
.uh .det .lab { color: var(--muted); font-size: 12px; font-style: italic; margin: 8px 0 4px; }
/* where residents live: name | bar with its share at the end; one 0–100% scale */
.uh .det .pbars { display: grid; grid-template-columns: fit-content(56%) minmax(0, 1fr); gap: 4px 8px; align-items: center; font-size: 12.5px; }
.uh .det .pbars .pn { color: var(--ink2); line-height: 1.2; }
.uh .det .pbars .pn em { color: var(--muted); font-style: normal; font-size: 11.5px; }
.uh .det .pbars .pn.rest { color: var(--muted); font-style: italic; }
.uh .det .pbars .pt { display: flex; align-items: center; gap: 4px; min-width: 0; }
.uh .det .pbars .pt i { display: block; height: 10px; min-width: 2px; background: #9d9d9d; border-radius: 1px; }
.uh .det .pbars .pt i.rest { background: #cfcfcf; }
.uh .det .pbars .pt b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.uh .det .pbars .ph { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; margin: -2px 0 2px; }
.uh .det .rule { border-top: 1px solid var(--grid); margin: 12px 0; }
/* section headings (the races, the profile): 14px, upright, dark; the 2024 one is a menu: the heading itself with a dotted
   underline and a caret */
.uh .det .rh { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; min-height: 28px; margin: 0 0 6px; }
.uh .det select.rsel { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; cursor: pointer;
    appearance: none; -webkit-appearance: none; field-sizing: content;
    background: transparent no-repeat right 1px center / 10px 6px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23858585'/%3E%3C/svg%3E");
    border: 0; border-bottom: 1.5px dotted var(--ink2); border-radius: 0; padding: 0 16px 0 0; }
.uh .det select.rsel:hover { border-bottom-style: solid; }
.uh .det select.rsel:focus-visible { outline: 2px solid var(--dem); outline-offset: 2px; }
/* candidate tables: column heads, a hairline between rows, the party's color down the row's left edge, the party letter
   before the name (long names wrap, hanging under the letter); the winner's row semibold and washed in its color */
.uh .det .race { margin: 0 0 12px; }
.uh .det table.c { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.uh .det table.c th { font-weight: 400; font-style: italic; color: var(--muted); text-align: left; padding: 0 0 3px 8px;
                      border-bottom: 1px solid #d4d4d4; white-space: nowrap; }
.uh .det table.c th:first-child { padding-left: 7px; }
.uh .det table.c th.n, .uh .det table.c td.n { text-align: right; }
.uh .det table.c td { padding: 3px 0 3px 6px; white-space: nowrap; }
.uh .det table.c tr + tr td { border-top: 1px solid var(--grid); }
.uh .det table.c tbody tr:first-child td { border-top: 1px solid #d4d4d4; }   /* a rule under the race heading, where the column heads' rule was */
.uh .det table.c td.pt { border-left: 3px solid; white-space: normal; padding-left: 21px; text-indent: -14px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.uh .det table.c .pl { display: inline-block; width: 14px; color: var(--muted); text-indent: 0; }
.uh .det table.c tr.lead td { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--pc) 11%, transparent); }
.uh .det table.c .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* "(leads)" for screen readers; the tint shows it */
.uh .det table.c tfoot td { border-top: 1px solid #d4d4d4; padding-top: 4px; }
.uh .det table.c tfoot b { font-weight: 650; }
/* the two races' bars, then the shift scale */
.uh .det .tlbox { margin-top: 4px; }
.uh .det .tlr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; align-items: center; margin: 5px 0; }
.uh .det .tll { color: var(--muted); font-size: 12px; font-style: italic; }
.uh .det .bar { display: flex; gap: 1px; height: 12px; }
.uh .det .bar i { display: block; border-radius: 1px; min-width: 2px; }
/* the district profile: a track of all 75 districts (dot = this one, tick = statewide), the district, statewide */
.uh .det table.prof { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.uh .det table.prof th { font-weight: 400; font-style: italic; color: var(--muted); text-align: right; padding: 0 0 3px 10px;
                         border-bottom: 1px solid var(--grid); white-space: nowrap; }
.uh .det table.prof th:first-child { text-align: left; padding-left: 0; }
.uh .det table.prof th.trk { text-align: left; }
.uh .det table.prof td { padding: 3px 0 3px 10px; text-align: right; white-space: nowrap; }
.uh .det table.prof td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.uh .det table.prof td.trk { width: 26%; }
.uh .det table.prof td.v { color: var(--ink); font-weight: 600; }
.uh .det table.prof td.s { color: var(--muted); }
/* the profile's box plots: a hairline whisker over the full range, a gray bar over the middle half, a dark gray median
   line, the district a black dot */
.uh .det .bxp { position: relative; height: 14px; min-width: 80px; }
.uh .det .bxp > span { position: absolute; display: block; }
.uh .det .bxp .wh { left: 0; right: 0; top: 7px; height: 0; border-top: 1px solid #b5b5b5; }
.uh .det .bxp .box { top: 4px; height: 6px; background: #b8b8b8; border-radius: 1px; }
.uh .det .bxp .md { top: 3px; height: 8px; width: 2px; margin-left: -1px; background: var(--ink2); z-index: 2; }
.uh .det .bxp .pt { top: 3.5px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink); z-index: 3; }
.uh .det .bkey { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 3px 14px; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.uh .det .bkey span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.uh .det .bkey i { display: inline-block; flex: none; }
.uh .det .bkey .kb { width: 14px; height: 6px; background: #b8b8b8; border-radius: 1px; }
.uh .det .bkey .km { width: 2px; height: 9px; background: var(--ink2); }
.uh .det .bkey .kd { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
/* the chart's width (set by chart.js) decides the panel's layout: one column under 700px (phones show it in a sheet,
   .uh-dsheet at the end of this file) */
.uh #chart.det1 .det .dgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.uh #chart.det1 .det svg.dmap { max-width: 360px; }

.uh .notes { font-size: 14px; color: var(--ink2); margin-top: 22px; }   /* width: .measure */
.uh .notes p { margin: 0 0 6px; }

/* ---- the map (map.js): the 2026 margin by district */
.uh .uh-map { position: relative; margin-top: var(--s-6); }
.uh .uh-map.uh-map-top { margin-top: var(--s-3); }   /* the map leads the page, right under the status line (owner, 2026-11-10) */
.uh .map-key { display: flex; justify-content: center; margin-top: var(--s-2); }   /* the key sits under the map */
/* the key: one strip (Republican steps, then Democratic), the bins' edges in points under it, then a line for the rest */
.uh .mkey { width: 380px; max-width: 100%; font-size: 12px; color: var(--ink2); }
.uh .mkey .mk-heads { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.uh .mkey .mk-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; height: 12px; }
.uh .mkey .mk-ticks { position: relative; height: 15px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.uh .mkey .mk-ticks span { position: absolute; top: 1px; transform: translateX(-50%); }
.uh .mkey .mk-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 6px; }
.uh .mkey .mk-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.uh .mkey .mk-note { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.35; text-align: center; }
.uh .tkey .mk-heads { justify-content: center; }
.uh .mkey .mk-sw { display: inline-block; width: 18px; height: 12px; }
.uh .mkey .kflip circle, .uh .uh-map .flips circle { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.uh .uh-map .flips circle { pointer-events: none; }
.uh .map-box { position: relative; display: flex; justify-content: center; }
/* dragging the map shouldn't select text: nothing in the map's frame (the map, the zoom buttons, the card's ×) can be
   selected, so a drag can't start a selection there; the card's own text still can be, for copying */
.uh .map-box { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.uh .map-box .map-card { -webkit-user-select: text; user-select: text; }
.uh .map-box .map-card .cx, .uh .map-box .map-zoom { -webkit-user-select: none; user-select: none; }
.uh .rw { scroll-margin-top: calc(var(--banner-h, 56px) + var(--s-2)); }
/* the shift arrows: a colored shaft and head, nothing around them (the owner dropped the white halo, 2026-11-08) */
.uh .uh-map .arrows path { pointer-events: none; }
.uh .uh-map .arrows .shaft, .uh .shift-key .shaft { fill: none; stroke-width: 2; stroke-linecap: round; }
.uh .shift-key { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 6px 18px; font-size: 12px; color: var(--ink2); }
.uh .shift-key .sk { display: inline-flex; align-items: center; gap: 5px; }
.uh .shift-key .skl { white-space: nowrap; }
.uh .shift-key .skn { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 11.5px; }
.uh .map-card .tflip { display: block; color: var(--ink); font-size: 12px; font-weight: 600; margin-top: 2px; }
.uh .map-card .fs { display: block; color: var(--ink2); font-size: 12.5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--grid); }
/* the map's toolbar, one line: the view switch on the left, where you are on the right */
.uh .map-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
               margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.uh .map-bar button.link { font: inherit; color: var(--ink2); background: none; border: 0; padding: 0; cursor: pointer;
                           text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 2px; }
.uh .map-bar button.link:hover { color: var(--ink); text-decoration-color: var(--ink); }
/* the map with a narrow column of controls on its left; on phones the controls sit above the map */
.uh .map-body { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: var(--s-2); align-items: start; }   /* narrow, so the map gets the room */
.uh .map-main { min-width: 0; }
/* the control column: two sets of radio buttons, "View" and "Detail" */
.uh .map-side .modes { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 14px; }
.uh .map-side .modes + .modes { margin-top: var(--s-3); }
.uh .map-side .mh { padding: 0; color: var(--muted); font-size: 13px; font-style: italic; margin-bottom: 4px; }
.uh .map-side .opt { display: flex; align-items: flex-start; gap: 7px; color: var(--ink2); cursor: pointer; line-height: 1.3; }
.uh .map-side .opt input { appearance: none; -webkit-appearance: none; flex: none; width: 13px; height: 13px; margin: 3px 0 0;
                           border: 1.5px solid var(--axis); border-radius: 50%; background: var(--surface); cursor: inherit; display: grid; place-content: center; }
.uh .map-side .opt input::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: scale(0); }
.uh .map-side .opt input:checked { border-color: var(--ink); }
.uh .map-side .opt input:checked::before { transform: scale(1); }
.uh .map-side .opt:hover input:not(:disabled) { border-color: var(--ink2); }
.uh .map-side .opt:has(input:checked) { color: var(--ink); font-weight: 600; cursor: default; }
.uh .map-side .opt input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.uh .map-side .opt.off { color: #bdbdbd; cursor: not-allowed; }
/* the key, a group in the column under Highlight (map.js drawSideKey; owner 2026-11-10, option A of legend-options.html):
   the margin's steps as a Republican and a Democratic swatch with the step's points between them; the turnout's
   steps with their ranges; the arrows' samples stacked; then the grays and the like, one to a line */
.uh .map-side .skey { font-size: 12px; color: var(--ink2); }
.uh .map-side .skey .kg { display: grid; grid-template-columns: 22px 30px 22px; gap: 2px 0; align-items: center; }
.uh .map-side .skey .kg2 { grid-template-columns: 22px auto; gap: 2px 7px; }
.uh .map-side .skey .kh { font-size: 10.5px; color: var(--muted); text-align: center; }
.uh .map-side .skey .ks { height: 13px; }
.uh .map-side .skey .kn { text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.uh .map-side .skey .kg2 .kn { text-align: left; }
.uh .map-side .skey .kg + .kc-i, .uh .map-side .skey .shift-key + .kc-i { margin-top: 8px; }
.uh .map-side .skey .kc-i { display: flex; align-items: center; gap: 6px; line-height: 1.3; margin-top: 4px; }
.uh .map-side .skey .kc-sw { flex: none; width: 12px; height: 10px; }
.uh .map-side .skey .shift-key { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px; }
.uh .map-side .skey .shift-key .sk { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 0 6px; }
.uh .map-side .skey .shift-key .sk svg { justify-self: center; }
.uh .map-side .skey .shift-key .skl { white-space: normal; line-height: 1.25; }
.uh .map-side .skey .shift-key .skn { display: none; }   /* the notes: behind the "i" (KEY_NOTES) */
.uh .map-key:empty { display: none; }
.uh .map-info .map-src .vn { display: block; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--grid, #eee); }
/* the pickups switch: a checkbox, a check mark in a square (owner, 2026-11-10: was a filled square) */
.uh .map-side .opt.chk input { border-radius: 2px; width: 14px; height: 14px; margin-top: 2px; }
.uh .map-side .opt.chk input::before { width: 3.5px; height: 7.5px; border-radius: 0; background: none; margin-top: -2px;
  border: solid var(--ink); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) scale(0); }
.uh .map-side .opt.chk input:checked::before { transform: rotate(45deg) scale(1); }
.uh .map-side .opt.off input { border-color: #dcdcdc; }
/* on phones the column gives way to a row over the map (map.js drawPhoneBar): a View menu and a Pickups switch */
.uh .map-phonebar { display: none; }
@media (max-width: 560px) {
  .uh .map-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .uh .map-side { display: none; }
  .uh .map-phonebar { display: flex; flex-wrap: wrap; margin-bottom: var(--s-1); }   /* wraps since the Detail menu joined it (2026-11-27) */
  .uh .map-phonebar .fpair { display: inline-flex; align-items: center; gap: 0 8px; min-width: 0; }
  .uh .map-phonebar select.fsel { flex: 0 1 auto; min-width: 0; }
  .uh .map-phonebar .pkb { flex: none; margin-left: auto; min-height: 40px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600;
    color: var(--ink); background: #fff; border: 1px solid #bdbdbd; border-radius: 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); cursor: pointer; }
  .uh .map-phonebar .pkb[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
  .uh .map-phonebar .pkb:focus-visible { outline: 2px solid var(--dem); outline-offset: 1px; }
  .uh .map-bar .crumb button.link { padding: 11px 0; margin: -11px 0; }   /* "Utah": a taller target, the line unchanged */
}
/* touch screens wider than a phone keep the column; its choices get finger-sized rows */
@media (pointer: coarse) { .uh .map-side .opt { padding: 5px 0; } .uh .map-side .modes { gap: 0; } }
/* "Use two fingers to move the map" (map.js), over the middle of the map for a moment */
.uh .map-hint { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 6px;
  background: rgba(17, 17, 17, .8); color: #fff; font-size: 15px; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.uh .map-hint.out { opacity: 0; }
/* where you are reads as a heading over the map (owner, 2026-11-08): the place in ink, the levels above it as quieter links */
.uh .map-bar { font-size: 17px; line-height: 1.3; margin-bottom: var(--s-2); }   /* below the map title in size (owner: at 21px it read as big as the title) */
.uh .map-bar .crumb { color: var(--muted); }
.uh .map-bar .crumb .here { color: var(--ink); font-weight: 600; }
.uh .map-bar .crumb button.link { color: var(--ink2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 560px) { .uh .map-bar { font-size: 16px; } }
/* the zoom buttons, stacked in the map's top-right corner: +, −, then the whole state and the Wasatch Front */
.uh .map-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.uh .map-zoom .zb { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0;
                    background: var(--surface); border: 1px solid var(--axis); border-radius: 3px; color: var(--ink2);
                    font: 20px/1 var(--font-body, Georgia, serif); cursor: pointer; }
.uh .map-zoom .zb:hover { color: var(--ink); border-color: var(--ink2); }
.uh .map-zoom .zb:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.uh .map-zoom .zb .ut { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: miter; }
.uh .map-zoom .zb .ut.fill { fill: currentColor; fill-opacity: .28; }
.uh .map-zoom .zb .wf { fill: currentColor; }
.uh .map-zoom .zb.on { color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.uh .map-zoom .zsep { height: 4px; }
.uh .map-readout { margin-top: 10px; font-size: 14px; color: var(--ink2); }
.uh .map-readout:empty { display: none; }   /* nothing to say (the usual case): no gap between the key and the sources */
.uh .map-readout span { display: block; }
.uh .map-readout .hint { color: var(--muted); font-style: italic; text-align: center; }
.uh .map-readout .rt { color: var(--ink); font-weight: 600; }
.uh .map-readout .rp { color: var(--muted); font-size: 13px; }
.uh .map-readout a { color: var(--ink2); text-decoration-color: var(--axis); font-size: 13.5px; }
/* the map's layers */
.uh .uh-map .edges { fill: none; stroke: var(--surface); stroke-width: .35; vector-effect: non-scaling-stroke; pointer-events: none; }
.uh .uh-map .veil { fill: #fff; fill-opacity: .72; fill-rule: evenodd; pointer-events: none; }
.uh .uh-map .counties { fill: none; stroke: #8a8a8a; stroke-width: .7; vector-effect: non-scaling-stroke; pointer-events: none; }
.uh .uh-map .focusline { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; pointer-events: none; }
.uh .uh-map .hoverline { fill: none; stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; pointer-events: none; }   /* the district under the pointer */
.uh .uh-map .pickline { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; pointer-events: none; }   /* the pickups, with the switch on */
.uh .uh-map .selline { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; pointer-events: none; }
/* the precinct level (map.js drawPrecincts, 2026-11-27): thin light lines between precincts; the district lines over
   them go dark so the districts still read; a precinct with no result passes the pointer to its district */
.uh .uh-map .prec .pr { stroke: var(--surface); stroke-width: .3; vector-effect: non-scaling-stroke; }
.uh .uh-map .prec .pr.nd { pointer-events: none; }
.uh .uh-map.lv-precinct .edges { stroke: #5a5a5a; stroke-width: .7; }
.uh .map-side .skey .kn2 { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.uh .map-side .skey .pskey { width: auto; }
.uh .map-side .skey .pskey .mk-heads { font-size: 10.5px; }
.uh .map-side .skey .pskey .mk-rest { flex-direction: column; align-items: flex-start; gap: 4px; }
.uh .map-side .skey .pskey .mk-item { white-space: normal; align-items: flex-start; }
.uh .map-side .skey .pskey .mk-item .mk-sw { flex: none; width: 12px; height: 10px; margin-top: 3px; }
.uh .kc-sw.nd, .uh .mk-sw.nd { box-shadow: inset 0 0 0 1px #d6d6d6; }   /* "No result published": a near-white swatch needs an edge */
.uh .map-side .skey .pskey .mk-note { text-align: left; font-size: 11px; }
/* the reference layers over the colors (owner, 2026-11-09): highways as thin dark-gray, partly see-through lines at a
   constant width, place names in small dark-gray serif with a faint blurred glow, not a hard outline (anchor cities a
   little bolder) */
/* square ends and bevelled corners, not round: WebKit (Safari) scales round caps and joins with the zoom even under
   non-scaling-stroke, which drew a big faint dot at every road end when zoomed all the way in (owner, 2026-11-09) */
.uh .uh-map .ref-roads path { fill: none; stroke: #2b2b2b; stroke-opacity: .45; stroke-linecap: butt; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; pointer-events: none; }
.uh .uh-map .ref-roads .t1 { stroke-width: 1.4; } .uh .uh-map .ref-roads .t2 { stroke-width: 1; } .uh .uh-map .ref-roads .t3 { stroke-width: .7; }
.uh .uh-map .ref-roads .t4 { stroke-width: .5; stroke-opacity: .4; } .uh .uh-map .ref-roads .t5 { stroke-width: .35; stroke-opacity: .3; }
.uh .uh-map .ref-places { pointer-events: none; }
.uh .uh-map .ref-places circle { fill: #444; }
/* the town names (owner, 2026-11-09: easy to read on every color, the dark blues included): a thin white outline round
   the letters, a little see-through, in place of the faint gray glow they had */
.uh .uh-map .ref-places text { font-size: 11px; fill: #333; paint-order: stroke; stroke: #fff; stroke-opacity: .85; stroke-width: 3px; stroke-linejoin: round; }
/* the major roads' names and route badges (drawRoadNames in map.js): the names along their roads, outlined like the
   towns; the routes as small white tags */
.uh .uh-map .ref-roadnames { pointer-events: none; }
.uh .uh-map .ref-roadnames text { font-size: 10px; fill: #555; paint-order: stroke; stroke: #fff; stroke-opacity: .85; stroke-width: 3px; stroke-linejoin: round; letter-spacing: .01em; }
.uh .uh-map .ref-roadnames .rbadge rect { fill: #fff; fill-opacity: .85; stroke: #a5a5a5; stroke-width: .7; }   /* low key (owner, 2026-11-09) */
.uh .uh-map .ref-roadnames .rbadge text { font-size: 8.5px; font-weight: 600; fill: #555; stroke: none; letter-spacing: .02em; }
.uh .uh-map .ref-places .t1 text { font-size: 12px; font-weight: 600; }
/* the map's sources: an "i" (map.js placeInfo puts it under the controls; on phones in the map's bottom-right corner,
   its right set with the zoom buttons'), opening a small note above it; out of the way while a district's card has
   that corner */
.uh .map-info { position: absolute; right: 8px; bottom: 8px; z-index: 3; }
.uh .map-info .ib { width: 22px; height: 22px; padding: 0; border: 1px solid #c4c4c4; border-radius: 50%; background: rgba(255, 255, 255, .9);
  color: var(--ink2); font: italic 600 13px/1 var(--font-body, Georgia, serif); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.uh .map-info .ib:hover, .uh .map-info.open .ib { color: var(--ink); border-color: var(--ink2); }
.uh .map-info .ib:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.uh .map-info .map-src { position: absolute; right: 0; bottom: 28px; width: 250px; max-width: calc(100vw - 48px); margin: 0;
  padding: 8px 10px; background: var(--surface, #fff); border: 1px solid #dcdcdc; box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  color: var(--ink2); font-size: 12px; line-height: 1.4; text-align: left; -webkit-user-select: text; user-select: text; }
.uh .map-info .map-src[hidden] { display: none; }
.uh .map-box:has(> .map-card:not([hidden])) .map-info { display: none; }
/* in the control column, just under the key (map.js placeInfo): in the column's flow, its note opening below it */
.uh .map-side .map-info { position: relative; left: auto; right: auto !important; bottom: auto; margin-top: var(--s-2); z-index: 4; }
.uh .map-side .map-info .map-src { left: 0; right: auto; top: 28px; bottom: auto; }
@media (pointer: coarse) { .uh .map-info .ib { width: 28px; height: 28px; } .uh .map-info .map-src { bottom: 34px; } }
/* the selected district's number: a small dark tag, its number in white (owner, 2026-11-09: no white outline) */
.uh .uh-map .labels { pointer-events: none; }
.uh .uh-map .labels .tag rect { fill: var(--ink); }
.uh .uh-map .labels .tag text { font: 600 11px/1 var(--font-body, "Spectral", Georgia, serif); letter-spacing: 0; text-transform: none; fill: #fff; text-anchor: middle; font-variant-numeric: lining-nums; }   /* the site styles a .labels text as typewriter caps; not here */
.uh .map-card .tz { color: var(--ink); font-style: italic; font-size: 12.5px; margin-top: 6px; }
.uh .map-box svg { width: auto; max-width: 100%; height: auto; cursor: pointer; overflow: hidden; }   /* zoomed in, the map stays inside its frame */
/* the hover label (owner, 2026-11-09: subtler): the district and its places over a hairline, a flip tag in the corner, and
   the view's measure as one row (name left, figure right) over a muted line of context; a soft shadow, a light border */
.uh .map-tip { position: absolute; z-index: 6; pointer-events: none; background: rgba(255, 255, 255, .97); border: 1px solid #dcdcdc;
               border-radius: 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); padding: 8px 11px 9px; width: 236px;
               font-size: 12.5px; line-height: 1.3; color: var(--ink2); font-variant-numeric: tabular-nums lining-nums;
               --up: #2b8a3e; --down: #d9480f; }
.uh .map-tip[hidden] { display: none; }
.uh .map-tip .tt { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 6px;
                   margin-bottom: 6px; border-bottom: 1px solid #ececec; }
.uh .map-tip .tn { min-width: 0; }
.uh .map-tip .hd { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.uh .map-tip .tp { display: block; color: var(--muted); font-size: 11.5px; }
/* the flip tag: small capitals on the color of the party now ahead, in the corner */
.uh .map-tip .tflag { flex: none; margin-top: 1px; padding: 2px 6px 3px; border-radius: 2px; color: #fff; font-size: 10px; font-weight: 600;
                      letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.uh .map-tip .tl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.uh .map-tip .tk { color: var(--ink2); }
.uh .map-tip .tv { color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.uh .map-tip .ts2 { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.uh .map-tip .ar { font-size: .8em; margin-right: 3px; }
.uh .map-tip .up .ar { color: var(--up); } .uh .map-tip .down .ar { color: var(--down); }
/* the selected district's card, over the map's bottom-right corner (owner, 2026-11-08; on phones and touch screens, a
   sheet along the bottom of the screen: see the end of this file) */
.uh .map-card { position: absolute; right: 8px; bottom: 8px; z-index: 5; background: var(--surface); border: 1px solid var(--axis);
               padding: 9px 12px 10px; font-size: 13px; line-height: 1.35; max-width: calc(100% - 16px); text-align: left; }
.uh .map-card[hidden] { display: none; }
.uh .map-card .cx { position: absolute; top: 3px; right: 5px; width: 24px; height: 24px; padding: 0; border: 0; background: none;
                    color: var(--muted); font: 20px/1 var(--font-body, Georgia, serif); cursor: pointer; }
.uh .map-card .cx:hover { color: var(--ink); }
.uh .map-card .tt { padding-right: 22px; }
/* the card's 2024 menu, styled like the chart's (.det select.rsel), sized to the card's section heads */
.uh .map-card select.csel { font: inherit; font-size: 11.5px; font-style: italic; color: var(--ink2); margin: 0; cursor: pointer;
    appearance: none; -webkit-appearance: none; field-sizing: content;
    background: transparent no-repeat right 1px center / 8px 5px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23858585'/%3E%3C/svg%3E");
    border: 0; border-bottom: 1px dotted var(--ink2); border-radius: 0; padding: 0 13px 0 0; }
.uh .map-card select.csel:hover { border-bottom-style: solid; color: var(--ink); }
.uh .map-card select.csel:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.uh .map-card .tochart { display: inline-block; margin-top: 7px; color: var(--ink2); font-size: 13px; text-decoration-color: var(--axis); }
.uh .map-card .tochart:hover { color: var(--ink); text-decoration-color: var(--ink); }
.uh .map-card > span { display: block; }
.uh .map-card { width: 300px; }
/* title: the district and its communities, over a rule a little heavier than the one between the years */
.uh .map-card .tt { color: var(--ink); font-weight: 600; font-size: 14px; padding-bottom: 5px; border-bottom: 2px solid var(--axis); }
.uh .map-card .tt .hl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uh .map-card .tt .hn { display: block; }
.uh .map-card .tflag { flex: none; padding: 2px 6px 3px; border-radius: 2px; color: #fff; font-size: 10px; font-weight: 600;
                       letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.uh .map-card .tp { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 1px; }
.uh .map-card .ts { padding: 6px 0 2px; }
.uh .map-card .ts + .ts { border-top: 1px solid var(--grid); margin-top: 4px; }
.uh .map-card .sh { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; font-style: italic; margin-bottom: 3px; }
.uh .map-card .sh { align-items: baseline; margin-bottom: 4px; }
.uh .map-card .sh .smg { font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink2); }   /* in the color of the party ahead */
/* a thin segmented bar: square-ish ends, a hairline gap between candidates */
/* the card's bars: thick enough to carry each share on its segment */
.uh .map-card .tb { display: flex; gap: 1px; height: 20px; }
.uh .map-card .tb i { display: flex; align-items: center; min-width: 2px; border-radius: 2px; overflow: hidden; font-style: normal; }
.uh .map-card .tb i span { padding: 0 6px; color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
/* the candidate table: swatch, party letter, name; votes and share right-aligned; the leader in ink */
.uh .map-card .tv { border-collapse: collapse; width: 100%; margin-top: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.uh .map-card .tv td { padding: 1px 0 1px 10px; text-align: right; white-space: nowrap; }
.uh .map-card .tv td:first-child { padding-left: 0; text-align: left; white-space: normal; }
.uh .map-card .tv tr.lead td { color: var(--ink); }
.uh .map-card .tv i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; }
.uh .map-card .tv .pl { display: inline-block; width: 13px; color: var(--muted); }

/* ---- the dot plot (scatter.js): the shift beside a Census measure, under the map */
.uh .uh-sc { position: relative; margin-top: var(--s-6); }
.uh .uh-sc h2 { margin: 0 0 var(--s-2); }
.uh .sc-cap { color: var(--ink2); font-size: 15px; margin: 0 0 var(--s-2); }
.uh .sc-stat { font-size: 14px; color: var(--ink2); margin: 0 0 8px; }
.uh .sc-stat b { color: var(--ink); font-weight: 600; }
.uh .sc-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink2); margin: 0 0 6px; }
.uh .sc-key .sk { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.uh .sc-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.uh .sc-key i.dot { background: var(--pc); }
.uh .sc-key i.dot.pick { margin: 0 4px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 22%, transparent); }   /* a pickup: the dot in its halo */
/* the key inside the plot's bottom-left corner, one column, just above the x axis; clicks pass through to the dots */
.uh .sc-key.in-plot { position: absolute; left: calc(var(--pl, 58px) + 2px); top: calc(var(--pb, 380px) - 4px); transform: translateY(-100%); z-index: 1; margin: 0;
                      flex-direction: column; flex-wrap: nowrap; gap: 3px; padding: 4px 6px 4px 0; background: var(--surface); pointer-events: none; }
.uh .sc-plot { position: relative; }
.uh .sc-plot svg { touch-action: manipulation; }
.uh .sc-plot svg .ax { stroke: var(--axis); stroke-width: 1; }
.uh .sc-plot svg .zero { stroke: var(--grid); stroke-width: 1; }
.uh .sc-plot svg .atitle { fill: var(--ink2); font-size: 14px; font-style: italic; }   /* 14px (owner, 2026-11-09) */
.uh .sc-plot svg .utk { stroke: var(--ink2); stroke-width: 1.5; }
.uh .sc-plot svg text.utl { font-size: 11px; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }   /* "Utah: …": a white edge keeps it readable where a dot sits behind it */
/* the watermark, in the banner's type (.site-title in css/style.css), faded; it takes no clicks */
.uh .sc-plot svg .wmark { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; fill: #9a9a9a; opacity: .45; pointer-events: none; }   /* smaller and fainter again (owner, 2026-11-10: was 15px at .5) */
.uh .sc-plot svg .wmark.wlead { font-size: 11.5px; }   /* "Interact at", over the address */
/* the source line under the plot (a note on method, then the sources), small, so a screenshot of the section carries it */
.uh .sc-src { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); font-style: italic; }   /* italic, a little below the x-axis title (owner, 2026-11-09) */
.uh .sc-src p { margin: 0 0 2px; }
.uh .sc-src b { font-weight: 600; color: var(--ink2); }
.uh .sc-plot svg .xzero { stroke: #b9b9b9; stroke-width: 1; stroke-dasharray: 4 4; shape-rendering: crispEdges; }   /* the turnout plot's 0 on the x axis */
.uh .sc-plot svg .rlab { fill: var(--muted); font-size: 12px; font-style: italic; pointer-events: none; }   /* the correlation by the fitted line */
.uh .sc-plot svg .fit { stroke: var(--ink2); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }   /* a little quieter than the dots (owner, 2026-11-08) */
.uh .sc-plot svg .dot { outline: none; }
/* a pickup is solid in the winner's color (--pc), a hold an open circle in it */
.uh .sc-plot svg .dot circle.m { fill: var(--pc); stroke: var(--surface); stroke-width: .75; }   /* a thin white edge (owner: thinner) */
.uh .sc-plot svg .dot circle.halo { fill: var(--pc); fill-opacity: .22; }   /* a pickup's halo */
.uh .sc-plot svg .dot.on circle.m { r: 7; }
.uh .sc-plot svg .dot:focus-visible circle.m { stroke: var(--ink); }
.uh .sc-notes { font-size: 14px; color: var(--ink2); margin-top: var(--s-2); }
/* the dot plots' notes, folded away under "About this plot" until opened */
.uh .sc-more { margin-top: var(--s-2); }
.uh .sc-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-style: italic; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.uh .sc-more > summary::-webkit-details-marker { display: none; }
.uh .sc-more > summary::before { content: "\25B8"; font-style: normal; font-size: 11px; transition: transform .15s; }
.uh .sc-more[open] > summary::before { transform: rotate(90deg); }
.uh .sc-more > summary:hover { color: var(--ink2); }
.uh .sc-more > .sc-notes { margin-top: 6px; }
.uh .sc-notes p { margin: 0 0 6px; }
/* hovering names a dot; a selected dot dims the rest (as the map dims around a selected district) and gets an ink ring */
.uh .sc-plot svg .hlab { fill: var(--ink); font-size: 12.5px; font-weight: 600; pointer-events: none;
                         stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.uh .sc-plot svg.has-sel .dot:not(.sel) { opacity: .28; }
/* the dots named on the plot (cfg.named in scatter.js): "HD 25" over its places, a white edge so they read over the line
   and the grid, a thin gray leader where a label sits off its dot */
.uh .sc-plot svg .nlabs text { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.uh .sc-plot svg .nlabs .nl1 { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
/* ?labels=edit: the labels can be dragged, and a panel under the plot gives their positions to copy */
.uh .sc-plot svg .nlabs.editing text { pointer-events: none; }
.uh .sc-plot svg.labels-editing .dot { pointer-events: none; }
.uh .sc-plot svg .nlabs.editing .nlhit { fill: rgba(42, 120, 214, .07); stroke: rgba(42, 120, 214, .45); stroke-dasharray: 2 2; cursor: grab; pointer-events: all; touch-action: none; }
.uh .sc-plot svg .nlabs.editing text.drag { cursor: grabbing; fill: var(--dem); }
.uh .nl-edit { margin: var(--s-2) 0 0; padding: 10px 12px; border: 1px dashed var(--axis); font-size: 14px; }
.uh .nl-edit p { margin: 0 0 6px; }
.uh .nl-edit pre { margin: 0 0 8px; padding: 6px 8px; background: var(--wash); font-size: 12px; white-space: pre-wrap; word-break: break-all; user-select: all; }
.uh .nl-edit button { font: inherit; font-size: 13px; padding: 3px 10px; cursor: pointer; }
.uh .sc-plot svg .nlead { stroke: #9a9a9a; stroke-width: .8; }
.uh .sc-plot svg.has-sel .nlabs { opacity: .35; }
.uh .sc-plot svg .dot.sel circle.m { r: 7; stroke: var(--ink); stroke-width: 2; }
/* the selected district's card: the map's card (.map-card), over the plot's bottom-right corner, clear of the x axis */
.uh .sc-plot .sc-card { right: 10px; bottom: 58px; width: 320px; }   /* 20px wider than the map's: each figure's column holds its longest label on one line ("Population growth since 2020", "away from the Republican") */
/* the card's two figures, the dot's values side by side, each labeled like its axis */
/* labels on one row (bottom-aligned), values on the next, so the values share a line when one label wraps */
.uh .sc-card .scfigs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; grid-auto-flow: column;
                       column-gap: 12px; padding: 7px 0 7px; border-bottom: 1px solid var(--grid); }
.uh .sc-card .scf { display: contents; }
.uh .sc-card .scf span { display: block; }
.uh .sc-card .scf .scl { align-self: end; }
.uh .sc-card .scf .scs { align-self: start; }
.uh .sc-card .scl { color: var(--muted); font-size: 11.5px; font-style: italic; line-height: 1.25; }
.uh .sc-card .scv { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.uh .sc-card .scs { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
/* the turnout card's last section: a thin bar per year on one 0-100% scale, the year at left and the share at right */
.uh .sc-card .tsec .trow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin: 3px 0; }
.uh .sc-card .tsec .tyr { color: var(--muted); font-size: 11.5px; font-style: italic; }
.uh .sc-card .tsec .ttrack { height: 10px; background: #efefef; border-radius: 2px; overflow: hidden; }
.uh .sc-card .tsec .ttrack i { display: block; height: 100%; background: #8a8a8a; border-radius: 2px; }
.uh .sc-card .tsec .trow + .trow .ttrack i { background: #4a4a4a; }   /* 2026 darker: the year the card is about */
.uh .sc-card .tsec .tval { text-align: right; color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.uh .sc-card .tsec .tnote { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---- phones (owner, 2026-11-09; the critic's mobile audit): the phone gate is a viewport of 560px or less (uhGate.phone
   in uh-sheet.js). Touch targets of at least about 40px, no text under 12px. Desktop is untouched. */
@media (max-width: 560px) {
  /* the menus: 16px type also stops iOS zooming the page when one gets focus */
  .uh .filters select.fsel { min-height: 40px; padding-block: 8px; font-size: 16px; }
  /* the 2024 menu in a district's details: the bordered look of the menus above, 36px tall, so it reads as a control
     rather than a heading with a dotted underline (the map card's, in the sheet below) */
  .uh .det select.rsel { min-height: 36px; padding: 0 26px 0 9px; border: 1px solid #bdbdbd; border-radius: 4px;
    background-color: #fff; background-position: right 9px center; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
  .uh .det select.rsel:hover { border-bottom-style: solid; border-color: var(--ink2); }
  .uh .sc-more > summary { padding: 10px 0; }
  .uh .jump a { display: block; padding: 3px 0; }   /* a taller target; a block, so a two-line link keeps its bullet on its first line */
  /* "On this page" a little tighter (the first chart was below the first screen; owner, 2026-11-09: no words cut) */
  .uh .jump { line-height: 1.3; margin-bottom: var(--s-2); }
  .uh .jump .jump-head { margin-top: var(--s-1); }
  .uh .jump li { margin: 0; }
  .uh h2.chart-title { margin-top: var(--s-3); }
  /* the chart's header stays at the top of the screen as the rows scroll (chart.js draws the scale into it) */
  .uh #chart svg.hdr { position: sticky; top: var(--banner-h, 48px); z-index: 4; background: var(--surface); box-shadow: 0 1px 0 var(--grid); }
  .uh #chart svg.hdr .htk { fill: var(--muted); font-size: 12.5px; }
  .uh .status button { padding: 12px 0; margin: -12px 0; }   /* "Collapse all": a taller target, the line unchanged */
  .uh .det .dzb { width: 32px; height: 32px; font-size: 18px; }
  /* small type, up to 12–12.5px: the turnout band, the box plots' key, the map's key, the cards */
  .uh .det .turnout .tyr, .uh .det .turnout .tchip .s, .uh .det .turnout .tchip small,
  .uh .det .turnout .tut, .uh .det .bkey, .uh .det .pbars .ph, .uh .det .pbars .pn em { font-size: 12.5px; }
  .uh svg .ind { font-size: 12px; }
  .uh .mkey .mk-heads, .uh .mkey .mk-ticks, .uh .mkey .mk-note, .uh .shift-key .skn { font-size: 12.5px; }
  .uh .mkey .mk-ticks { height: 17px; }
  .uh .sc-plot svg text.utl { font-size: 12.5px; }
  .uh .map-card .sh, .uh .map-card .tp, .uh .map-card .tb i span, .uh .sc-card .scl, .uh .sc-card .scs,
  .uh .sc-card .tsec .tyr, .uh .sc-card .tsec .tnote { font-size: 12.5px; }
  .uh .map-card .tflag { font-size: 11px; }
  .uh .det { padding-bottom: 28px; }   /* the watermark clears the Census table */
}
/* the map's zoom buttons, finger-sized on any touch screen */
@media (pointer: coarse) {
  .uh .map-zoom .zb { width: 40px; height: 40px; }
}
/* the cards as a bottom sheet (X.4, owner 2026-11-09): the map's card and both dot plots' cards, on phones and on touch
   screens up to 900px wide (uhGate.sheet in uh-sheet.js; a mouse never gets it). Fixed along the bottom of the screen,
   at most 45% of it, scrolling inside; rounded top corners, a grab bar, a 44px ×; it slides up. uh-sheet.js gives the
   page room at its foot while one is open, closes it when its section scrolls away or on a swipe down. Its content is
   the card's, unchanged, at most 560px wide in the middle of a wider screen. */
@media (max-width: 560px), (pointer: coarse) and (max-width: 900px) {
  .uh .map-card, .uh .sc-plot .sc-card {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; width: auto; max-width: none; margin: 0;
    max-height: min(45vh, 380px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -2px 18px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06);
    padding: 20px max(16px, calc(50vw - 280px)) calc(14px + env(safe-area-inset-bottom));
    font-size: 14px; transition: transform .2s ease-out; animation: uh-sheet-up .22s ease-out; }
  .uh .map-card::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
    border-radius: 2px; background: #cfcfcf; }   /* the grab bar */
  .uh .map-card .cx { top: 2px; right: max(2px, calc(50vw - 300px)); width: 44px; height: 44px; font-size: 26px; }
  .uh .map-card .tt { padding-right: 34px; }
  .uh .map-card .tt .hn { font-size: 16px; }
  /* the map card's 2024 menu: bordered and 36px tall, as the details' menu on phones */
  .uh .map-card select.csel { min-height: 36px; padding: 0 26px 0 9px; border: 1px solid #bdbdbd; border-radius: 4px;
    font-size: 13px; font-style: normal; color: var(--ink);
    background-color: #fff; background-position: right 9px center; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
  .uh .map-card select.csel:hover { border-bottom-style: solid; border-color: var(--ink2); }
}
@keyframes uh-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .uh .map-card, .uh .sc-plot .sc-card { animation: none; transition: none; } }
/* a district's details on phones (owner, 2026-11-09): a full-screen sheet over the page (chart.js openSheet), its head
   kept in view (the district, a pickup's tag, the places; ‹ › and × at 44px), the page under it held still */
html.uh-locked, html.uh-locked body { overflow: hidden; }
.uh .uh-dsheet { position: fixed; inset: 0; z-index: 1100; background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.uh .uh-dsheet[hidden] { display: none; }
.uh .uh-dsheet:focus { outline: none; }
.uh .uh-dsheet .dsh-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 6px 8px 16px; background: var(--surface); border-bottom: 1px solid #d4d4d4; }
.uh .uh-dsheet .dsh-t { flex: 1; min-width: 0; padding-top: 6px; }
.uh .uh-dsheet .hl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.uh .uh-dsheet .hn { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 650; color: var(--ink); letter-spacing: 0; }
.uh .uh-dsheet .tflag { padding: 2px 6px 3px; border-radius: 2px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; }
.uh .uh-dsheet .tp { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.uh .uh-dsheet .dsh-nav { flex: none; display: flex; }
.uh .uh-dsheet .dsh-nav button { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink2); cursor: pointer;
  font: 30px/1 var(--font-body, Georgia, serif); }
.uh .uh-dsheet .dsh-nav button:disabled { color: #d0d0d0; cursor: default; }
.uh .uh-dsheet .dsh-nav button:focus-visible { outline: 2px solid var(--dem); outline-offset: -4px; }
/* the panel, results first: the two races' bars, the 2026 table, the 2024 table (its menu picks the bars' 2024 race
   too), turnout, the map, the counties and where residents live, the Census profile. The desktop's columns are let go
   (display: contents) so their parts can be put in this order */
.uh .uh-dsheet .det { display: flex; flex-direction: column; padding: 12px 16px 32px; }
.uh .uh-dsheet .det .dgrid, .uh .uh-dsheet .det .dgeo, .uh .uh-dsheet .det .dres, .uh .uh-dsheet .det .tables { display: contents; }
.uh .uh-dsheet .det .tlbox { order: 1; margin: 0 0 14px; }
.uh .uh-dsheet .det .race:not(.r24) { order: 2; }
.uh .uh-dsheet .det .race.r24 { order: 3; }
.uh .uh-dsheet .det .turnout { order: 4; margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid var(--grid); }
.uh .uh-dsheet .det .dmapw, .uh .uh-dsheet .det > svg.dmap, .uh .uh-dsheet .det .dgeo > svg.dmap { order: 5; }
.uh .uh-dsheet .det .dgeo > .lab, .uh .uh-dsheet .det .dgeo > .cty, .uh .uh-dsheet .det .dgeo > .pbars { order: 6; }
.uh .uh-dsheet .det .dres > .rule, .uh .uh-dsheet .det .dres > .rh, .uh .uh-dsheet .det .dres > table.prof, .uh .uh-dsheet .det .dres > .bkey { order: 7; }
.uh .uh-dsheet .det .tlr { grid-template-columns: 124px minmax(0, 1fr); }
.uh .uh-dsheet .det .tll { font-size: 13px; }
.uh .uh-dsheet .det .bar { height: 14px; }
.uh .uh-dsheet .det table.c { font-size: 14px; }
.uh .uh-dsheet .det .rh { font-size: 15px; }
.uh .uh-dsheet .det .pbars { font-size: 13.5px; }
.uh .uh-dsheet .det .cty { font-size: 13.5px; }
/* the Census profile with its box plots back (owner, 2026-11-09): the measure, the district and statewide on one line,
   the plot across the full width on a second line under them, and the key under the table */
.uh .uh-dsheet .det table.prof { display: block; font-size: 13.5px; }
.uh .uh-dsheet .det table.prof tbody { display: block; }
.uh .uh-dsheet .det table.prof tr { display: grid; grid-template-columns: minmax(0, 1fr) 5.4em 5.4em; column-gap: 8px; align-items: baseline; }
.uh .uh-dsheet .det table.prof th.sx { display: none; }
.uh .uh-dsheet .det table.prof th { border-bottom: 0; }
.uh .uh-dsheet .det table.prof tr:first-child { border-bottom: 1px solid var(--grid); margin-bottom: 4px; }
.uh .uh-dsheet .det table.prof td.trk { grid-column: 1 / -1; grid-row: 2; width: auto; padding: 1px 0 7px; }
.uh .uh-dsheet .det table.prof td { padding-top: 4px; }
/* the turnout plot's earlier midterms (scatter.js mountHistory): two facets side by side, the 2026 plot's width */
.uh .uh-th { margin-top: var(--s-2); }   /* close under the 2026 plot: one figure (owner, 2026-11-09) */
.uh .chart-more { margin-top: var(--s-2); }   /* the arrow chart's folded notes */
.uh .chart-more > .notes { margin-top: 6px; }
.uh .uh-th h3.th-title { font-size: 18px; margin: 0 0 var(--s-1); }   /* no caption under it (owner, 2026-11-09) */
.uh .uh-th .th-cap { color: var(--ink2); font-size: 15px; margin: 0 0 var(--s-2); }
.uh .uh-th .th-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.uh .uh-th .th-head { font-size: 14px; color: var(--ink2); margin: 0 0 2px; }
.uh .uh-th .th-year { font-weight: 600; color: var(--ink); }
.uh .uh-th .th-vs { color: var(--muted); font-style: italic; }
.uh .uh-th .th-plot { position: relative; min-height: 120px; }
.uh .uh-th .th-wait { color: var(--muted); font-style: italic; font-size: 13.5px; border: 1px dashed var(--axis); padding: 18px 14px; margin: 8px 0 0; }
.uh .uh-th svg .ax { stroke: var(--axis); stroke-width: 1; }
.uh .uh-th svg .zero { stroke: var(--grid); stroke-width: 1; }
.uh .uh-th svg text { font-size: 12px; }
.uh .uh-th svg .atitle { fill: var(--ink2); font-size: 12.5px; font-style: italic; }
.uh .uh-th svg .fit { stroke: var(--ink2); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.uh .uh-th svg .xzero { stroke: #b9b9b9; stroke-width: 1; stroke-dasharray: 4 4; shape-rendering: crispEdges; }
.uh .uh-th svg .utk { stroke: var(--ink2); stroke-width: 1.5; }
.uh .uh-th svg text.utl { font-size: 10.5px; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.uh .uh-th svg .rlab { fill: var(--muted); font-size: 11.5px; font-style: italic; pointer-events: none; }   /* r by the fitted line, as on the 2026 plot */
.uh .uh-th svg circle.hd { fill: var(--pc); stroke: var(--surface); stroke-width: .6; }
.uh .uh-th svg .hlab { fill: var(--ink); font-size: 11.5px; font-weight: 600; pointer-events: none; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.uh .uh-map-top + .measure > .intro { margin-top: var(--s-4); }   /* the introduction under the leading map, a little apart from it */
/* the arrow chart's grid (owner, 2026-11-10): faint dashed lines up from the scale's labeled ticks, red on the
   Republican side, blue on the opponent's (an open row's band had unlabeled ticks too; removed, owner 2026-11-11) */
.uh #chart line.grid { stroke-width: 1; stroke-dasharray: 2 3; shape-rendering: crispEdges; }
.uh #chart line.grid.gr { stroke: var(--rep); stroke-opacity: .28; }
.uh #chart line.grid.gd { stroke: var(--dem); stroke-opacity: .28; }
.uh #chart .rw text.val.unop { font-size: 12px; font-style: italic; fill: var(--muted); }   /* an unopposed seat's shift column */

/* the sticker's display type (self-hosted, OFL: fonts/bowlbyone, fonts/lilitaone; latin only) */
@font-face { font-family: 'Bowlby One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/bowlbyone/taiPGmVuC4y96PFeqp8sqomI_L8zYK8.woff2) format('woff2'); }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/lilitaone/i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2) format('woff2'); }
/* the "psst... I'm interactive!" sticker (chart.js addSticker; owner, 2026-11-11): a zero-height strip just under the
   chart, the sticker hung from it over the chart's bottom-right corner, its centre 22 px in from the chart's right edge
   and 47 px up from its bottom, so it hangs into the right margin; not on phones */
.uh .uh-stk-wrap { position: relative; height: 0; z-index: 3; }
.uh .uh-stk { position: absolute; right: -61px; top: -98px; width: 167px; height: 101px; cursor: pointer; }
.uh .uh-stk svg { display: block; overflow: visible;
  filter: drop-shadow(0 .5px .6px rgba(40, 25, 10, .28)) drop-shadow(0 1px 2px rgba(40, 25, 10, .07)); }   /* flat on the page */
.uh .uh-stk:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 50%; }
.uh .uh-stk .x { position: absolute; left: 157px; top: -10px; width: 22px; height: 22px; padding: 0; border: 0; background: none;
  color: #111; font: 400 22px/22px system-ui, sans-serif; cursor: pointer; }
.uh .uh-stk .x:hover { color: var(--rep); }
@media (max-width: 560px) { .uh .uh-stk-wrap { display: none; } }
