/* Needles and control (js/needle/**, js/views/control.js). Owner: the needle module agent.
   Loaded after app.css. Every class is prefixed .nd- so modules never collide; the app.css components (.card, .btn, .seg-toggle,
   .chip, .field, .subhead, .m-D/.m-R) and variables (--d --r --d-fill --r-fill --mid --text --muted ...) are reused, not redefined.
   Colours that depend on a margin or probability come from js/core/colors.js (the dial's ring is painted by marginColor). */

.nd-page [hidden],
.nd-gauge [hidden] {
  display: none !important;
}

/* ---- the gauge (js/needle/gauge.js) -------------------------------------------------------------------------- */

.nd-gauge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.nd-gauge[data-size='md'] {
  max-width: 380px;
}
.nd-gauge[data-size='sm'] {
  max-width: 250px;
}
.nd-g-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.nd-g-head:has(.nd-g-title[hidden]):not(:has(.nd-g-tags > *)) {
  display: none;
}
.nd-g-title {
  font-size: 15px;
  font-weight: 700;
}
.nd-g-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
  justify-content: flex-end;
}
.nd-tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: help;
}
.nd-tag-live {
  color: var(--text);
  border-color: var(--control-border);
}
.nd-tag-baseline,
.nd-tag-prior {
  color: var(--warn);
  border-color: var(--warn);
}

.nd-tag-thin {
  color: var(--accent);
  border-color: var(--accent);
}
/* Too early to trust: the dial and the number are drawn in neutral grey, not in a party colour. */
.nd-gauge[data-thin='1'] .nd-needle-body {
  fill: var(--muted);
}
.nd-gauge[data-thin='1'] .nd-band {
  stroke: var(--muted);
  opacity: 0.6;
}
.nd-gauge[data-thin='1'] .nd-cone {
  fill: color-mix(in srgb, var(--muted) 8%, transparent);
}
.nd-gauge[data-thin='1'][data-side] .nd-g-big {
  color: var(--muted);
}
.nd-g-disc {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.nd-g-disc[hidden] {
  display: none;
}

.nd-dial {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.nd-ring path {
  shape-rendering: geometricPrecision;
}
.nd-minor {
  stroke: rgba(13, 17, 23, 0.5);
  stroke-width: 1.4;
}
.nd-centerline {
  stroke: var(--text);
  stroke-width: 2;
}
/* "75%" / "90%" printed on the coloured ring. They sit on a solid chip: the page's text colour behind, the page's background colour for the digits, so the
   pair is the same strong contrast as body text in both themes. (White on the bare ring measured 4.3:1 to 4.4:1 at the red end; a halo is not something
   a contrast measurement credits.) */
.nd-tick-pill {
  fill: var(--text);
}
.nd-tick-label {
  fill: var(--bg);
  font-size: 13px;
  font-weight: 700;
}
.nd-cone {
  fill: color-mix(in srgb, var(--text) 8%, transparent);
}
.nd-band {
  fill: none;
  stroke: var(--text);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.88;
}
.nd-needle-body {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.nd-hub {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 3;
}
.nd-end {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.nd-end-C {
  fill: var(--text);
}
.nd-ref line {
  stroke: var(--text);
  stroke-width: 2.2;
}
.nd-ref text {
  fill: var(--text);
  font-size: 12.5px;
  font-weight: 800;
}
.nd-ref-markets line {
  stroke-dasharray: 3 2;
}

.nd-g-read {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.nd-g-verdict {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
  text-wrap: balance;
}
.nd-g-pct {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 10px;
}
.nd-g-big {
  font-size: clamp(40px, 11vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.nd-gauge[data-side='D'] .nd-g-big {
  color: var(--d);
}
.nd-gauge[data-side='R'] .nd-g-big {
  color: var(--r);
}
.nd-gauge[data-fixed] .nd-g-big:not(:empty) {
  font-size: 30px;
}
.nd-g-unit {
  color: var(--muted);
  font-size: 14px;
}
.nd-g-sub {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.nd-g-note {
  max-width: 34em;
  margin-top: 2px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
}
.nd-g-prog {
  display: grid;
  width: 100%;
  max-width: 340px;
  gap: 4px;
  margin-top: 4px;
}
.nd-g-prog-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.nd-g-prog-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--muted);
}
.nd-g-prog-txt {
  color: var(--muted);
  font-size: 12px;
}
.nd-g-refs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.nd-g-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nd-refdot {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.nd-ref-markets .nd-refdot {
  border-style: dashed;
}
.nd-g-hist {
  width: 100%;
  margin-top: 6px;
  text-align: left;
}
.nd-g-hist-cap {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.nd-g-hist-none {
  font-size: 12.5px;
  text-align: center;
}
.nd-history {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.nd-hline {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.nd-grid {
  stroke: var(--line-soft);
}
.nd-grid-mid {
  stroke: var(--line);
  stroke-dasharray: 3 3;
}
.nd-grid-t {
  fill: var(--faint);
  font-size: 10px;
}
.nd-hdot {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 1.5;
}
.nd-hval {
  fill: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.nd-g-foot {
  color: var(--faint);
  font-size: 11.5px;
}
.nd-g-foot:empty {
  display: none;
}

/* the small embed (race page) hides what does not fit */
.nd-gauge[data-size='sm'] .nd-end,
.nd-gauge[data-size='sm'] .nd-tick-label-g,
.nd-gauge[data-size='sm'] .nd-ref text,
.nd-gauge[data-size='sm'] .nd-g-hist,
.nd-gauge[data-size='sm'] .nd-g-refs {
  display: none !important;
}
.nd-gauge[data-size='sm'] .nd-g-verdict {
  font-size: 14.5px;
}
.nd-gauge[data-size='sm'] .nd-g-big {
  font-size: 38px;
}

/* ---- the mini needle (top bar, tables) ------------------------------------------------------------------------ */

.nd-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.nd-mini-dial {
  display: block;
  width: 52px;
  height: auto;
  flex: none;
}
.nd-mini-needle path {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 0.8;
}
.nd-mini-hub {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 1.6;
}
.nd-mini-txt {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.nd-mini-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.nd-mini-label:empty {
  display: none;
}
.nd-mini-val {
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.nd-mini[data-side='D'] .nd-mini-val {
  color: var(--d);
}
.nd-mini[data-side='R'] .nd-mini-val {
  color: var(--r);
}

/* ---- the Control page ----------------------------------------------------------------------------------------- */

.nd-page {
  display: grid;
  gap: 16px;
}
.nd-page > .page-head {
  margin-bottom: 0;
}
.nd-mode {
  max-width: 62ch;
}
.nd-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: -6px;
}
.nd-tools-note {
  flex: 1 1 320px;
  max-width: 78ch;
  font-size: 12.5px;
}
.nd-wobble[aria-pressed='true'] {
  border-color: var(--control-border);
}

.nd-chambers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.nd-chamber {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nd-chamber .subhead {
  margin-top: 14px;
}
.nd-chamber[data-missing='1'] .nd-slot-gauge {
  opacity: 0.4;
}
.nd-slot-gauge {
  padding-top: 4px;
}

/* the balance-of-power bar */
.nd-tally {
  margin-top: 10px;
}
.nd-tally-bar {
  position: relative;
  display: flex;
  height: 20px;
  margin-top: 18px;
  border-radius: 6px;
  background: var(--surface-3);
}
.nd-tally-bar i {
  display: block;
  min-width: 2px;
  box-shadow: inset 0 0 0 1px var(--muted); /* WCAG 1.4.11, see .bd-tally-bar */
}
.nd-tally-bar i:first-of-type {
  border-radius: 6px 0 0 6px;
}
.nd-tally-bar i:last-of-type {
  border-radius: 0 6px 6px 0;
}
.nd-tally-bar .d-hold {
  background: var(--seg-d-fixed);
}
.nd-tally-bar .d-fixed {
  background: var(--seg-d-likely);
}
.nd-tally-bar .d-called {
  background: var(--seg-d-called);
}
.nd-tally-bar .un {
  background: var(--seg-uncalled);
}
.nd-tally-bar .r-called {
  background: var(--seg-r-called);
}
.nd-tally-bar .r-fixed {
  background: var(--seg-r-likely);
}
.nd-tally-bar .r-hold {
  background: var(--seg-r-fixed);
}
.nd-tally-mark {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  margin-left: -1px;
  background: var(--text);
}
.nd-tally-mark span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 700;
}
.nd-tally-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.nd-tn dt {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nd-tn dd {
  margin: 0;
}
.nd-tn dd:not(.nd-tn-sub) {
  font-size: 26px;
  font-weight: 750;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.nd-tn-D dd:not(.nd-tn-sub) {
  color: var(--d);
}
.nd-tn-R dd:not(.nd-tn-sub) {
  color: var(--r);
}
.nd-tn-R {
  text-align: right;
}
.nd-tn-U {
  text-align: center;
}
.nd-tn-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.nd-tally-decided {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-fill) 8%, transparent);
  font-size: 13px;
}

/* the seat distribution */
.nd-chart {
  position: relative;
  min-height: 60px;
}
.nd-seatchart {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.nd-bar-D {
  fill: var(--d-fill);
}
.nd-bar-R {
  fill: var(--r-fill);
}
.nd-bar-tie {
  fill: var(--mid);
}
.nd-bar-tiewin {
  opacity: 0.6;
}
.nd-majline {
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.nd-side {
  font-size: 11.5px;
  font-weight: 650;
}
.nd-side-D {
  fill: var(--d);
}
.nd-side-R {
  fill: var(--r);
}
.nd-axis {
  stroke: var(--line);
}
.nd-tick {
  stroke: var(--faint);
}
.nd-tick-t {
  fill: var(--muted);
  font-size: 10.5px;
}
line.nd-tick-maj {
  stroke: var(--text);
  stroke-width: 1.6;
}
text.nd-tick-maj {
  fill: var(--text);
  font-weight: 750;
}
.nd-badge circle {
  fill: var(--surface-2);
  stroke: var(--text);
  stroke-width: 1.4;
}
.nd-badge-markets circle {
  stroke-dasharray: 3 2;
}
.nd-badge text {
  fill: var(--text);
  font-size: 10px;
  font-weight: 800;
}
.nd-badge-stem {
  stroke: var(--faint);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
.nd-bracket text {
  fill: var(--muted);
  font-size: 11px;
}
.nd-brline {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
}
.nd-median {
  fill: var(--text);
}
.nd-hit {
  fill: transparent;
}
.nd-hit:hover {
  fill: color-mix(in srgb, var(--text) 8%, transparent);
}
.nd-tip {
  white-space: nowrap;
}

/* the odds-by-source rows */
.nd-odds-cap {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
}
.nd-odds {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nd-odds-row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 46px;
  align-items: center;
  gap: 2px 12px;
}
.nd-odds-label {
  font-size: 13.5px;
  font-weight: 650;
  cursor: help;
}
.nd-odds-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  opacity: 0.9;
}
.nd-odds-track i {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 16px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
}
.nd-odds-val {
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nd-odds-sub {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* races that will decide it */
.nd-decide-note {
  max-width: 80ch;
  font-size: 13px;
}
.nd-decide-foot {
  margin-top: 10px;
  font-size: 12px;
}
.nd-decide-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
}
.nd-dec {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nd-dec-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(104px, 0.8fr) 58px 58px;
  align-items: center;
  gap: 4px 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.nd-dec-rank {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.nd-dec-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nd-dec-name:hover {
  text-decoration: none;
}
.nd-dec-name:hover b {
  text-decoration: underline;
}
.nd-dec-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.nd-dec-share b {
  min-width: 3.1ch;
  text-align: right;
}
.nd-dec-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.nd-dec-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--muted);
}
.nd-dec-fav {
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.nd-dec-fav[data-side='D'] {
  color: var(--d);
}
.nd-dec-fav[data-side='R'] {
  color: var(--r);
}
.nd-dec-m {
  text-align: right;
  white-space: nowrap;
}

/* lower row: a needle for any race, governors, what the needles rest on */
.nd-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.nd-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.nd-picker {
  position: relative;
  max-width: 520px;
}
.nd-suggest {
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  left: 0;
  max-height: 330px;
  margin: 4px 0 0;
  padding: 4px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.nd-suggest li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
}
.nd-suggest li.is-active,
.nd-suggest li:hover {
  background: var(--surface-3);
}
.nd-suggest .nd-none {
  color: var(--muted);
  cursor: default;
}
.nd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.nd-chips:empty {
  display: none;
}
.nd-chip {
  min-height: 30px;
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}
.nd-chip:hover {
  background: var(--surface-3);
}
.nd-chip[aria-pressed='true'] {
  border-color: var(--text);
}
.nd-race-body {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 18px 24px;
  align-items: start;
}
.nd-race-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.nd-race-head h3 {
  font-size: 17px;
}
.nd-race-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex-basis: 100%;
}
.nd-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}
.nd-facts > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 2px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.nd-facts dt {
  color: var(--muted);
  font-size: 12.5px;
}
.nd-facts dd {
  margin: 0;
}
.nd-race-links {
  margin-top: 12px;
  font-size: 13px;
}
.nd-warn {
  padding: 7px 10px;
  border: 1px solid var(--warn);
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  color: var(--text);
  font-size: 13px;
}

.nd-govs-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
}
.nd-govs-mini .nd-mini-dial {
  width: 84px;
}
.nd-govs-mini .nd-mini-val {
  font-size: 22px;
}
.nd-gov-odds {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}
.nd-gov-odds li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.nd-gov-odds b {
  font-variant-numeric: tabular-nums;
}
.nd-gov-odds b[data-side='D'] {
  color: var(--d);
}
.nd-gov-odds b[data-side='R'] {
  color: var(--r);
}
.nd-gov-med {
  margin-top: 4px;
  font-size: 12.5px;
}
.nd-govs .nd-dec-row {
  grid-template-columns: 22px minmax(0, 1fr) 56px 58px 56px;
}
.nd-govs .nd-dec-share .nd-dec-bar {
  display: none;
}
.nd-govs .nd-dec-share {
  grid-template-columns: auto;
  justify-content: end;
}

.nd-env p {
  font-size: 13.5px;
}
.nd-src-bar {
  display: flex;
  height: 14px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-3);
}
.nd-src-bar i {
  display: block;
  min-width: 2px;
}
.nd-src-bar .live,
.nd-src-legend .live {
  background: var(--text);
}
.nd-src-bar .forecast,
.nd-src-legend .forecast {
  background: var(--muted);
}
.nd-src-bar .baseline,
.nd-src-legend .baseline {
  background: var(--warn);
}
.nd-src-bar .fixed,
.nd-src-legend .fixed {
  background: var(--seg-uncalled);
}
.nd-src-legend {
  display: grid;
  gap: 3px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.nd-src-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
}

.nd-method summary {
  cursor: pointer;
  font-weight: 650;
}
.nd-method > div {
  max-width: 90ch;
  margin-top: 10px;
  font-size: 13.5px;
}
.nd-method p {
  margin-bottom: 8px;
}
.nd-method ul {
  margin: 8px 0;
  padding-left: 18px;
}
.nd-method li {
  margin-bottom: 6px;
}

/* ---- narrower windows --------------------------------------------------------------------------------------------- */

@media (max-width: 1099px) {
  .nd-lower {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 899px) {
  .nd-chambers,
  .nd-decide-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .nd-race-body {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .nd-odds-row {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .nd-odds-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .nd-odds-sub {
    grid-row: 3;
  }
  .nd-dec-row {
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    grid-template-areas:
      'rank name name name'
      '. share fav m';
  }
  .nd-dec-rank {
    grid-area: rank;
  }
  .nd-dec-name {
    grid-area: name;
  }
  .nd-dec-share {
    grid-area: share;
  }
  .nd-dec-fav {
    grid-area: fav;
  }
  .nd-dec-m {
    grid-area: m;
  }
  .nd-govs .nd-dec-row {
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    grid-template-areas:
      'rank name name name'
      '. share fav m';
  }
  .nd-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .nd-tn dd:not(.nd-tn-sub) {
    font-size: 22px;
  }
  .nd-tally-nums {
    gap: 6px;
  }
}

.nd-attrib {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
}

@media (max-width: 480px) {
  .nd-govs-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
