/* Source: assets/scss/election-polling.scss. Keep the compiled output in sync. */
.b2b-election-polling {
  --b2b-polling-ink: #111827;
  --b2b-polling-ink-mid: #4b5563;
  --b2b-polling-ink-light: #6b7280;
  --b2b-polling-line: #d8dee8;
  --b2b-polling-paper: #ffffff;
  --b2b-polling-wash: #f4f8fb;
  --b2b-polling-navy: #025585;
  --b2b-polling-blue: #347e9e;
  --b2b-polling-red: #b42318;
  --b2b-polling-red-soft: #fee4e2;
  --b2b-polling-gold: #9a6700;
  --b2b-polling-gold-soft: #fff7d6;
  box-sizing: border-box;
  width: 100%;
  margin: 32px 0;
  padding: 28px;
  overflow: hidden;
  color: var(--b2b-polling-ink);
  background: var(--b2b-polling-paper);
  border: 1px solid var(--b2b-polling-line);
  border-top: 5px solid var(--b2b-polling-navy);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
.b2b-election-polling *, .b2b-election-polling *::before, .b2b-election-polling *::after {
  box-sizing: inherit;
}
.b2b-election-polling a {
  color: var(--b2b-polling-navy);
  font-weight: 700;
  text-underline-offset: 0.15em;
}
.b2b-election-polling a:hover {
  color: var(--b2b-polling-blue);
}
.b2b-election-polling__header {
  max-width: 700px;
  margin-bottom: 28px;
}
.b2b-election-polling__header h2, .article-content .b2b-election-polling__header h2 {
  margin: 4px 0 10px;
  color: var(--b2b-polling-ink);
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
}
.b2b-election-polling__header > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--b2b-polling-ink-mid);
  font-size: 0.96rem;
}
.b2b-election-polling__kicker, .article-content .b2b-election-polling__kicker {
  margin: 0;
  color: var(--b2b-polling-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.b2b-election-polling__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(225px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.b2b-election-polling__visual {
  min-width: 0;
}
.b2b-election-polling__average {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 24px;
}
.b2b-election-polling__average strong {
  flex: 0 0 auto;
  color: var(--b2b-polling-navy);
  font-size: clamp(3.3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.b2b-election-polling__average span {
  max-width: 230px;
  color: var(--b2b-polling-ink-mid);
  font-size: 0.86rem;
}
.b2b-election-polling__chart {
  display: grid;
  gap: 8px;
}
.b2b-election-polling__axis-row, .b2b-election-polling__poll-row, .b2b-election-polling__threshold-row {
  display: grid;
  grid-template-columns: minmax(116px, 142px) minmax(0, 1fr) 46px;
  gap: 9px;
  align-items: center;
}
.b2b-election-polling__axis {
  display: flex;
  justify-content: space-between;
  color: var(--b2b-polling-ink-light);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.b2b-election-polling__plot {
  position: relative;
  display: grid;
  padding-top: 32px;
}
.b2b-election-polling__threshold-row {
  position: absolute;
  inset: 0;
  align-items: stretch;
  pointer-events: none;
}
.b2b-election-polling__threshold-track {
  position: relative;
  min-width: 0;
}
.b2b-election-polling__threshold {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--b2b-position);
  border-left: 1px solid var(--b2b-polling-red);
}
.b2b-election-polling__threshold span {
  position: absolute;
  top: -2px;
  left: 6px;
  color: var(--b2b-polling-red);
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}
.b2b-election-polling__poll-row {
  min-height: 40px;
  max-height: 64px;
  margin-bottom: 7px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 220ms ease, min-height 220ms ease, opacity 150ms ease, transform 220ms ease, margin 220ms ease;
}
.b2b-election-polling__poll-row.is-average {
  min-height: 48px;
}
.b2b-election-polling__poll-row.is-model {
  min-height: 48px;
  margin-bottom: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--b2b-polling-line);
}
.b2b-election-polling__poll-row.is-excluded {
  min-height: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
}
.b2b-election-polling__poll-label {
  color: var(--b2b-polling-ink);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
}
.b2b-election-polling__poll-label small {
  display: block;
  margin-top: 4px;
  color: var(--b2b-polling-ink-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.b2b-election-polling__dot-track {
  position: relative;
  height: 34px;
  background: linear-gradient(to right, rgba(52, 126, 158, 0.08) 0, rgba(52, 126, 158, 0.08) 60%, rgba(180, 35, 24, 0.07) 60%, rgba(180, 35, 24, 0.07) 100%);
  border-radius: 999px;
}
.b2b-election-polling__dot-track::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #cbd5e1;
  transform: translateY(-50%);
}
.b2b-election-polling__marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--b2b-position);
  width: 16px;
  height: 16px;
  background: var(--b2b-polling-blue);
  border: 3px solid var(--b2b-polling-paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--b2b-polling-blue);
  transform: translate(-50%, -50%);
  transition: left 220ms ease;
}
.b2b-election-polling__poll-row.is-average .b2b-election-polling__poll-label, .b2b-election-polling__poll-row.is-average .b2b-election-polling__row-value {
  color: var(--b2b-polling-navy);
}
.b2b-election-polling__poll-row.is-average .b2b-election-polling__marker {
  width: 22px;
  height: 22px;
  background: var(--b2b-polling-navy);
  box-shadow: 0 0 0 3px var(--b2b-polling-navy);
}
.b2b-election-polling__poll-row.is-model .b2b-election-polling__poll-label, .b2b-election-polling__poll-row.is-model .b2b-election-polling__row-value, .b2b-election-polling__poll-row.is-at-or-above .b2b-election-polling__row-value {
  color: var(--b2b-polling-red);
}
.b2b-election-polling__poll-row.is-model .b2b-election-polling__marker, .b2b-election-polling__poll-row.is-at-or-above .b2b-election-polling__marker {
  width: 17px;
  height: 17px;
  background: var(--b2b-polling-red);
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--b2b-polling-red);
  transform: translate(-50%, -50%) rotate(45deg);
}
.b2b-election-polling__row-value {
  color: var(--b2b-polling-ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.b2b-election-polling__key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--b2b-polling-ink-light);
  font-size: 0.72rem;
}
.b2b-election-polling__key span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.b2b-election-polling__key-mark {
  width: 10px;
  height: 10px;
  background: var(--b2b-polling-blue);
  border-radius: 50%;
}
.b2b-election-polling__key-mark.is-average {
  width: 13px;
  height: 13px;
  background: var(--b2b-polling-navy);
}
.b2b-election-polling__key-mark.is-at-or-above {
  background: var(--b2b-polling-red);
  border-radius: 2px;
  transform: rotate(45deg);
}
.b2b-election-polling__method {
  padding: 20px;
  background: var(--b2b-polling-wash);
  border: 1px solid var(--b2b-polling-line);
  border-radius: 12px;
}
.b2b-election-polling__method h3, .article-content .b2b-election-polling__method h3 {
  margin: 0;
  color: var(--b2b-polling-ink);
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
}
.b2b-election-polling__switch {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px;
  background: var(--b2b-polling-paper);
  border: 1px solid var(--b2b-polling-line);
  border-radius: 10px;
  cursor: pointer;
}
.b2b-election-polling__switch-copy {
  min-width: 0;
}
.b2b-election-polling__switch-copy strong, .b2b-election-polling__switch-copy small {
  display: block;
}
.b2b-election-polling__switch-copy strong {
  color: var(--b2b-polling-ink);
  font-size: 0.84rem;
  line-height: 1.25;
}
.b2b-election-polling__switch-copy small {
  margin-top: 3px;
  color: var(--b2b-polling-ink-light);
  font-size: 0.7rem;
}
.b2b-election-polling__switch-control {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}
.b2b-election-polling__switch-control input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.b2b-election-polling__switch-track {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 180ms ease;
}
.b2b-election-polling__switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--b2b-polling-paper);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.28);
  transition: transform 180ms ease;
}
.b2b-election-polling__switch-control input:checked + .b2b-election-polling__switch-track {
  background: var(--b2b-polling-navy);
}
.b2b-election-polling__switch-control input:checked + .b2b-election-polling__switch-track::after {
  transform: translateX(20px);
}
.b2b-election-polling__switch-control input:focus-visible + .b2b-election-polling__switch-track {
  outline: 3px solid rgba(52, 126, 158, 0.35);
  outline-offset: 3px;
}
.b2b-election-polling__method ul {
  margin: 0;
  padding-left: 18px;
  color: var(--b2b-polling-ink-mid);
  font-size: 0.78rem;
}
.b2b-election-polling__method li + li {
  margin-top: 6px;
}
.b2b-election-polling__model-note, .article-content .b2b-election-polling__model-note {
  margin: 17px 0 0;
  padding-top: 16px;
  color: var(--b2b-polling-ink-mid);
  border-top: 1px solid var(--b2b-polling-line);
  font-size: 0.76rem;
}
.b2b-election-polling__model-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--b2b-polling-ink);
}
.b2b-election-polling__checked, .article-content .b2b-election-polling__checked {
  margin: 15px 0 0;
  color: var(--b2b-polling-ink-light);
  font-size: 0.72rem;
}
.b2b-election-polling__benchmark {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) repeat(2, minmax(110px, 0.4fr)) minmax(220px, 1.25fr);
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--b2b-polling-red-soft);
  border-left: 4px solid var(--b2b-polling-red);
}
.b2b-election-polling__benchmark h3, .article-content .b2b-election-polling__benchmark h3 {
  margin: 0;
  color: var(--b2b-polling-ink);
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}
.b2b-election-polling__benchmark-stat span {
  display: block;
  color: var(--b2b-polling-ink-mid);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}
.b2b-election-polling__benchmark-stat strong {
  display: block;
  color: var(--b2b-polling-red);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.b2b-election-polling__benchmark > p, .article-content .b2b-election-polling__benchmark > p {
  margin: 0;
  color: var(--b2b-polling-ink-mid);
  font-size: 0.76rem;
}
.b2b-election-polling__sources {
  margin-top: 24px;
  border-top: 1px solid var(--b2b-polling-line);
}
.b2b-election-polling__sources summary {
  padding: 16px 2px 4px;
  color: var(--b2b-polling-navy);
  font-weight: 800;
  cursor: pointer;
}
.b2b-election-polling__sources summary:focus-visible {
  outline: 3px solid rgba(52, 126, 158, 0.35);
  outline-offset: 3px;
}
.b2b-election-polling__table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}
.b2b-election-polling table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--b2b-polling-ink);
  font-size: 0.78rem;
}
.b2b-election-polling th, .b2b-election-polling td {
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--b2b-polling-line);
}
.b2b-election-polling th {
  color: var(--b2b-polling-ink-mid);
  background: var(--b2b-polling-wash);
  font-size: 0.64rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.b2b-election-polling .is-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.b2b-election-polling td.is-at-or-above {
  color: var(--b2b-polling-red);
  font-weight: 800;
}
.b2b-election-polling tr.is-excluded {
  opacity: 0.45;
}
.b2b-election-polling__source-status {
  display: none;
  margin-left: 4px;
  color: var(--b2b-polling-red);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}
.b2b-election-polling tr.is-excluded .b2b-election-polling__source-status {
  display: inline;
}
.b2b-election-polling__caveat, .article-content .b2b-election-polling__caveat {
  margin: 16px 0 0;
  padding: 13px 15px;
  color: var(--b2b-polling-ink-mid);
  background: var(--b2b-polling-gold-soft);
  border-left: 4px solid var(--b2b-polling-gold);
  font-size: 0.76rem;
}
.b2b-election-polling__footer {
  margin-top: 20px;
  padding-top: 14px;
  color: var(--b2b-polling-ink-light);
  border-top: 1px solid var(--b2b-polling-line);
  font-size: 0.7rem;
}
.b2b-election-polling__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .b2b-election-polling__layout {
    grid-template-columns: 1fr;
  }
  .b2b-election-polling__method {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .b2b-election-polling__method h3, .b2b-election-polling__switch, .b2b-election-polling__checked {
    grid-column: 1 / -1;
  }
  .b2b-election-polling__benchmark {
    grid-template-columns: 1fr 1fr;
  }
  .b2b-election-polling__benchmark h3, .b2b-election-polling__benchmark > p {
    grid-column: 1 / -1;
  }
}
@media (max-width: 500px) {
  .b2b-election-polling {
    margin: 24px 0;
    padding: 20px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
  }
  .b2b-election-polling__header {
    margin-bottom: 24px;
  }
  .b2b-election-polling__header h2, .article-content .b2b-election-polling__header h2 {
    font-size: 1.5rem;
  }
  .b2b-election-polling__average {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .b2b-election-polling__average strong {
    font-size: 3.65rem;
  }
  .b2b-election-polling__average span {
    max-width: none;
  }
  .b2b-election-polling__axis-row, .b2b-election-polling__threshold-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .b2b-election-polling__axis-row > span, .b2b-election-polling__threshold-row > span {
    display: none;
  }
  .b2b-election-polling__axis {
    grid-column: 1;
    padding-inline: 1px;
  }
  .b2b-election-polling__plot {
    padding-top: 30px;
  }
  .b2b-election-polling__poll-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 32px;
    gap: 5px 10px;
    min-height: 60px;
    max-height: 84px;
    margin-bottom: 11px;
  }
  .b2b-election-polling__poll-row.is-average {
    min-height: 66px;
  }
  .b2b-election-polling__poll-row.is-model {
    min-height: 76px;
    margin-bottom: 13px;
    padding-bottom: 12px;
  }
  .b2b-election-polling__poll-row.is-excluded {
    min-height: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .b2b-election-polling__poll-label {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }
  .b2b-election-polling__dot-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 30px;
  }
  .b2b-election-polling__row-value {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  .b2b-election-polling__threshold span {
    right: auto;
    left: 6px;
  }
  .b2b-election-polling__poll-label {
    font-size: 0.78rem;
  }
  .b2b-election-polling__poll-label small {
    margin-top: 2px;
    font-size: 0.57rem;
  }
  .b2b-election-polling__row-value {
    font-size: 0.82rem;
  }
  .b2b-election-polling__key {
    gap: 8px 12px;
    font-size: 0.66rem;
  }
  .b2b-election-polling__method {
    display: block;
    padding: 16px;
  }
  .b2b-election-polling__benchmark {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }
  .b2b-election-polling__sources summary {
    padding-top: 14px;
    line-height: 1.35;
  }
  .b2b-election-polling__table-wrap {
    overflow: visible;
  }
  .b2b-election-polling table, .b2b-election-polling tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .b2b-election-polling thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .b2b-election-polling tbody {
    display: grid;
    gap: 12px;
  }
  .b2b-election-polling tbody tr {
    display: block;
    padding: 6px 0;
    background: var(--b2b-polling-paper);
    border: 1px solid var(--b2b-polling-line);
    border-radius: 8px;
  }
  .b2b-election-polling tbody td {
    display: grid;
    grid-template-columns: minmax(94px, 0.8fr) minmax(0, 1.35fr);
    gap: 10px;
    align-items: start;
    padding: 6px 10px;
    text-align: left;
    white-space: normal;
    border: 0;
    overflow-wrap: anywhere;
  }
  .b2b-election-polling tbody td::before {
    color: var(--b2b-polling-ink-light);
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }
  .b2b-election-polling__source-links {
    min-width: 0;
  }
  .b2b-election-polling__caveat, .article-content .b2b-election-polling__caveat {
    padding: 12px;
  }
}
@media (max-width: 360px) {
  .b2b-election-polling {
    padding-inline: 11px;
  }
  .b2b-election-polling__average strong {
    font-size: 3.35rem;
  }
  .b2b-election-polling__benchmark {
    grid-template-columns: 1fr;
  }
  .b2b-election-polling__benchmark h3, .b2b-election-polling__benchmark > p {
    grid-column: auto;
  }
  .b2b-election-polling tbody td {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .b2b-election-polling__poll-row, .b2b-election-polling__marker, .b2b-election-polling__switch-track, .b2b-election-polling__switch-track::after {
    transition: none;
  }
}
