/* app/javascript/elekt/us_results.css */
:root {
  --ek-us-waiting: #c3c9d6;
  --ek-us-off: #e6e9f0;
  --ek-us-edge: #ffffff;
  --ek-us-paper: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ek-us-waiting: #4a5268;
    --ek-us-off: #262c3d;
    --ek-us-edge: #0f1426;
    --ek-us-paper: #0f1426;
  }
}
.ek-k-dem {
  --ek-k: var(--ek-dem);
}
.ek-k-rep {
  --ek-k: var(--ek-rep);
}
.ek-k-oth {
  --ek-k: var(--ek-other-party);
}
.ek-ustally {
  margin: 0 0 1rem;
}
.ek-ustally-score {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}
.ek-ustally-side {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.ek-ustally-side--rep {
  justify-content: flex-end;
  text-align: right;
}
.ek-ustally-num {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 850;
  font-stretch: var(--ek-condensed);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ek-ustally-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.ek-ustally-side--dem .ek-ustally-name,
.ek-ustally-side--dem .ek-ustally-num,
.ek-ustally-side--dem .ek-ustally-lead {
  color: var(--ek-dem);
}
.ek-ustally-side--rep .ek-ustally-name,
.ek-ustally-side--rep .ek-ustally-num,
.ek-ustally-side--rep .ek-ustally-lead {
  color: var(--ek-rep);
}
.ek-ustally-lead {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px dashed currentColor;
  white-space: nowrap;
}
.ek-ustally-lead[hidden],
.ek-ustally-flips[hidden] {
  display: none;
}
.ek-ustally-title {
  align-self: flex-end;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ek-ink);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.15rem;
}
.ek-ustally-title:hover {
  text-decoration: underline;
}
.ek-ustally-bar {
  position: relative;
  height: 1.15rem;
  margin-top: 0.5rem;
  background: var(--ek-us-off);
  border-radius: 3px;
  overflow: hidden;
}
.ek-ustally-left,
.ek-ustally-right {
  position: absolute;
  inset: 0;
  display: flex;
}
.ek-ustally-right {
  flex-direction: row-reverse;
}
.ek-ustally-seg {
  display: block;
  height: 100%;
  transition: width 0.4s ease;
}
.ek-ustally-seg.is-won {
  background: var(--ek-k);
}
.ek-ustally-seg.is-held {
  background: color-mix(in srgb, var(--ek-k) 55%, var(--ek-us-paper));
}
.ek-ustally-seg.is-lead {
  background:
    repeating-linear-gradient(
      135deg,
      var(--ek-k) 0 3px,
      color-mix(in srgb, var(--ek-k) 25%, var(--ek-us-paper)) 3px 6px);
}
.ek-ustally-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px solid var(--ek-ink);
}
.ek-ustally-under {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.3rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--ek-muted);
}
.ek-ustally-under-dem,
.ek-ustally-under-rep {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ek-ustally-under-rep {
  justify-content: flex-end;
  text-align: right;
}
.ek-ustally-flips {
  color: var(--ek-ink);
  font-weight: 600;
}
.ek-ustally-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ek-ink);
}
.ek-ustally-status {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--ek-muted);
}
.ek-ustally-status > span:first-child {
  color: var(--ek-ink);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .ek-ustally-seg {
    transition: none;
  }
}
@media (max-width: 640px) {
  .ek-ustally-mark span {
    display: none;
  }
  .ek-ustally-under {
    padding-top: 1.1rem;
  }
  .ek-ustally-mark {
    top: 0;
  }
}
.ek-uschambers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .ek-uschambers {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.ek-ustally--compact {
  margin: 0;
}
.ek-ustally--compact .ek-ustally-num {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}
.ek-ustally--compact .ek-ustally-name {
  font-size: 0.95rem;
}
.ek-uschamber-more {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.ek-usboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "map" "rail";
  gap: 1rem;
  margin-top: 1rem;
}
.ek-usboard-rail {
  grid-area: rail;
}
.ek-usboard-map {
  grid-area: map;
}
@media (min-width: 900px) {
  .ek-usboard {
    grid-template-columns: 11rem minmax(0, 1fr);
    grid-template-areas: "rail map";
    gap: 2rem;
    align-items: start;
  }
}
.ek-usswitch--stack {
  display: inline-flex;
}
@media (min-width: 900px) {
  .ek-usswitch.ek-usswitch--stack {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    width: 100%;
  }
  .ek-usswitch--stack .ek-usswitch-btn {
    text-align: left;
    border-radius: 0;
  }
}
.ek-uslegend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--ek-line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.ek-uslegend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ek-uslegend li[hidden] {
  display: none;
}
.ek-usswatch-pair {
  display: inline-flex;
  gap: 2px;
  flex: none;
  width: 1.9rem;
}
.ek-usswatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
}
.ek-usswatch.is-won {
  background: var(--ek-k);
}
.ek-usswatch.is-held {
  background: color-mix(in srgb, var(--ek-k) 55%, var(--ek-us-paper));
}
.ek-usswatch.is-flip {
  background:
    repeating-linear-gradient(
      45deg,
      var(--ek-k) 0 3px,
      var(--ek-us-paper) 3px 4.5px);
}
.ek-usswatch.is-lead {
  background:
    repeating-linear-gradient(
      45deg,
      var(--ek-k) 0 2.5px,
      var(--ek-us-paper) 2.5px 5px);
}
.ek-usswatch.is-waiting {
  background: var(--ek-us-waiting);
}
.ek-usswatch.is-off {
  background: var(--ek-us-off);
  border: 1px solid var(--ek-line);
}
.ek-ustools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}
.ek-usswitch {
  display: inline-flex;
  border: 1px solid var(--ek-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--ek-surface);
}
.ek-usswitch[hidden] {
  display: none;
}
.ek-usswitch-btn {
  border: 0;
  background: transparent;
  color: var(--ek-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  cursor: pointer;
  text-decoration: none;
}
.ek-usswitch-btn[aria-current=page],
.ek-usswitch-btn[aria-pressed=true] {
  background: var(--ek-ink);
  color: var(--ek-surface);
}
.ek-usswitch-btn:focus-visible {
  outline: 3px solid var(--ek-focus);
  outline-offset: -3px;
}
.ek-usmap {
  position: relative;
  width: min(100%, calc(78vh * 975 / 610));
}
.ek-uscard-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ek-muted);
}
.ek-usmap .ek-map-fallback {
  padding: 2rem 0;
}
.ek-ussvg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.ek-ussvg.is-zoomed {
  touch-action: none;
  cursor: grab;
}
.ek-us-shape {
  fill: var(--ek-us-off);
  stroke: var(--ek-us-edge);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.ek-usmap--house .ek-us-shape {
  stroke-width: 0.4;
}
.ek-us-shape.is-waiting {
  fill: var(--ek-us-waiting);
}
.ek-us-shape.is-won {
  fill: var(--ek-k);
}
.ek-us-shape.is-flip.ek-k-dem {
  fill: url(#ek-pat-flip-dem);
}
.ek-us-shape.is-flip.ek-k-rep {
  fill: url(#ek-pat-flip-rep);
}
.ek-us-shape.is-flip.ek-k-oth {
  fill: url(#ek-pat-flip-oth);
}
.ek-us-shape.is-lead.ek-k-dem {
  fill: url(#ek-pat-lead-dem);
}
.ek-us-shape.is-lead.ek-k-rep {
  fill: url(#ek-pat-lead-rep);
}
.ek-us-shape.is-lead.ek-k-oth {
  fill: url(#ek-pat-lead-oth);
}
.ek-us-shape:focus {
  outline: none;
}
.ek-us-shape:focus-visible {
  stroke: var(--ek-focus);
  stroke-width: 3;
}
.ek-us-lines {
  fill: none;
  stroke: var(--ek-ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  opacity: 0.75;
}
.ek-us-hover {
  fill: none;
  stroke: var(--ek-ink);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.ek-pat-solid {
  fill: var(--ek-k);
}
.ek-pat-hatch {
  fill: var(--ek-us-paper);
  opacity: 0.85;
}
.ek-pat-paper {
  fill: color-mix(in srgb, var(--ek-us-paper) 80%, var(--ek-us-waiting));
}
.ek-uszoom {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ek-uszoom-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--ek-line);
  border-radius: 8px;
  background: var(--ek-surface);
  color: var(--ek-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}
.ek-uszoom-btn:hover {
  background: var(--ek-accent-soft);
}
.ek-uszoom-btn:focus-visible {
  outline: 3px solid var(--ek-focus);
  outline-offset: 1px;
}
.ek-ustip {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(21rem, calc(100vw - 2.5rem));
  background: var(--ek-surface);
  color: var(--ek-ink);
  border: 1px solid var(--ek-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(10, 20, 50, 0.22);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.35;
  pointer-events: none;
}
.ek-ustip:has(a) {
  pointer-events: auto;
}
.ek-uscard-place {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}
.ek-uscard-race + .ek-uscard-race {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ek-line);
}
.ek-uscard-kind {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ek-muted);
}
.ek-uscard-status {
  margin: 0.15rem 0 0.35rem;
  color: var(--ek-muted);
}
.ek-uscard-status.is-won {
  color: var(--ek-ink);
  font-weight: 700;
}
.ek-uscard-table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.ek-uscard-table th,
.ek-uscard-table td {
  padding: 0.18rem 0.3rem 0.18rem 0;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  border-top: 1px solid color-mix(in srgb, var(--ek-line) 60%, transparent);
}
.ek-uscard-table th {
  white-space: normal;
}
.ek-uscard-table tr.is-won th,
.ek-uscard-table tr.is-won td {
  font-weight: 800;
}
.ek-uscard-check {
  display: inline-block;
  width: 1em;
  color: var(--ek-ok-ink);
  font-weight: 900;
}
.ek-uscard-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ek-k);
  margin-right: 0.35em;
  vertical-align: 0.05em;
}
.ek-uscard-inc {
  font-size: 0.72rem;
  color: var(--ek-muted);
  font-weight: 600;
}
.ek-uscard-party {
  color: var(--ek-muted);
}
.ek-uscard-num {
  text-align: right !important;
}
.ek-uscard-pct {
  font-weight: 700 !important;
}
.ek-uscard-foot {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ek-muted);
}
.ek-uscard-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--ek-accent);
  font-weight: 700;
}
.ek-uslist {
  margin-top: 1rem;
}
.ek-uslist summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.4rem 0;
}
@media (max-width: 640px) {
  .ek-ustip {
    font-size: 0.8rem;
  }
}
.ek-usmini {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ek-usmini-row {
  display: grid;
  grid-template-columns: 3.4rem 2.2rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.ek-usmini-name {
  font-weight: 700;
}
.ek-usmini-num {
  font-weight: 850;
  font-stretch: var(--ek-condensed);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.ek-usmini-num--dem {
  color: var(--ek-dem);
  text-align: right;
}
.ek-usmini-num--rep {
  color: var(--ek-rep);
}
.ek-usmini-bar {
  height: 0.7rem;
  margin: 0;
}
.ek-usmini-note {
  font-size: 0.75rem;
  color: var(--ek-muted);
}
.ek-usmini-link {
  display: block;
  max-width: 34rem;
  margin: 0 0 1rem;
  color: inherit;
  text-decoration: none;
}
.ek-usmini-link:hover .ek-usmini-name {
  text-decoration: underline;
}
@media (max-width: 899px) {
  .ek-uslegend {
    grid-template-columns: 1fr 1fr;
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }
}
@media (min-width: 1800px) {
  .ek-usboard {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 3rem;
  }
  .ek-ustally-num {
    font-size: 4.8rem;
  }
  .ek-ustally--compact .ek-ustally-num {
    font-size: 3.6rem;
  }
  .ek-ustally-name,
  .ek-ustally-title {
    font-size: 1.25rem;
  }
  .ek-ustally-bar {
    height: 1.5rem;
  }
  .ek-ustally-under,
  .ek-ustally-status,
  .ek-uslegend,
  .ek-usboard-rail .ek-fine {
    font-size: 1rem;
  }
  .ek-usswitch-btn {
    font-size: 1.05rem;
    padding: 0.5rem 1.2rem;
  }
  .ek-ustip {
    font-size: 1rem;
    max-width: 26rem;
  }
}
.ek-archive {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.ek-archive-year {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid var(--ek-line);
}
.ek-archive-label {
  font-weight: 850;
  font-stretch: var(--ek-condensed);
  font-size: 1.25rem;
}
.ek-archive-chamber {
  display: grid;
  grid-template-columns: 3.6rem 2.6rem minmax(0, 1fr) 2.6rem;
  gap: 0.5rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}
.ek-archive-chamber:hover .ek-archive-name {
  text-decoration: underline;
}
.ek-archive-name {
  font-weight: 700;
}
@media (max-width: 760px) {
  .ek-archive-year {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
  .ek-archive-chamber {
    grid-column: 2;
  }
}
.ek-uschamber {
  position: relative;
  padding: 0.75rem 0.9rem;
  margin: -0.75rem -0.9rem;
  border-radius: var(--ek-radius);
  transition: background-color 0.15s ease;
}
.ek-uschamber:hover {
  background: color-mix(in srgb, var(--ek-accent-soft) 55%, transparent);
}
.ek-uschamber:hover .ek-ustally-title,
.ek-uschamber:hover .ek-uschamber-more {
  text-decoration: underline;
}
.ek-uschamber:has(.ek-uschamber-more:focus-visible) {
  outline: 3px solid var(--ek-focus);
  outline-offset: 2px;
}
.ek-uschamber-more::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ek-uschamber-more:focus-visible {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .ek-uschamber {
    transition: none;
  }
}
/*# sourceMappingURL=/assets/elekt_us_results-e2258c72.css.map */
