@charset "UTF-8";
/* Poll card — brand-blue feature card on the homepage (between the top story
   and the card grid) and at the end of articles. Reads as editorial furniture,
   impossible to mistake for a story card. Homepage full-width tweaks live in
   homepage-v2.css (.hp2-poll-slot).

   Structure: head (tag + optional prompt) → carousel of statement slides →
   dots/arrows → summary (replaces the carousel once everything's answered). */
.b2b-poll-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--link_dark, #025585) 0%, #04679e 100%);
  color: #ffffff;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 0 0 16px;
}

/* Faint depth flourish, top-left. */
.b2b-poll-card::before {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.b2b-poll-card > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* The vote/results/summary blocks set their own display, which would beat the
   browser's default for [hidden]. */
.b2b-poll-card [hidden] {
  display: none !important;
}

/* --- Head --- */
.b2b-poll-head {
  margin-bottom: 12px;
}

.b2b-poll-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9fd6f5;
}

.b2b-poll-tag svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.b2b-poll-count {
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: none;
  opacity: 0.85;
}

.b2b-poll-prompt {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #cfe9f8;
}

/* --- Slides ---
   Every slide sits in the same grid cell, so the carousel is as tall as its
   tallest statement and never jumps in height as it moves. */
.b2b-poll-slides {
  display: grid;
}

.b2b-poll-slide {
  grid-area: 1/1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
}

.b2b-poll-slide.is-before {
  transform: translateX(-28px);
}

.b2b-poll-slide.is-current {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .b2b-poll-slide,
  .b2b-poll-slide.is-current {
    transition: none;
    transform: none;
  }
}
.b2b-poll-statement {
  font-family: "Libre Caslon Text", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  color: #ffffff;
  margin: 0 0 14px;
  text-wrap: balance;
}

/* --- Vote state --- */
.b2b-poll-vote {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-poll-option {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 80px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
}

.b2b-poll-option:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--link_dark, #025585);
}

.b2b-poll-option:active {
  transform: translateY(1px);
}

.b2b-poll-option:disabled {
  opacity: 0.6;
  cursor: wait;
}

.b2b-poll-option:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* --- Results state --- */
.b2b-poll-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-poll-result-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.b2b-poll-result-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
  color: #ffffff;
}

.b2b-poll-result-pct {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.b2b-poll-result-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.b2b-poll-result-fill {
  height: 100%;
  min-width: 4px;
  background: #9fd6f5;
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Leading option reads brightest. */
.b2b-poll-result-row.is-win .b2b-poll-result-fill {
  background: #ffffff;
}

/* --- Dots + arrows --- */
.b2b-poll-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.b2b-poll-arrow {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  /* Centre the chevron icon exactly; text glyphs sat off-centre. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.b2b-poll-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

.b2b-poll-arrow:hover {
  background: #ffffff;
  color: var(--link_dark, #025585);
}

.b2b-poll-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.b2b-poll-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.b2b-poll-dots {
  display: flex;
  gap: 8px;
}

.b2b-poll-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

/* Filled = answered. */
.b2b-poll-dot.is-answered {
  background: #9fd6f5;
  border-color: #9fd6f5;
}

.b2b-poll-dot.is-current {
  transform: scale(1.35);
}

/* --- Summary (all answered) --- */
.b2b-poll-summary-title {
  font-family: "Libre Caslon Text", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  margin: 0 0 8px;
}

.b2b-poll-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.b2b-poll-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b2b-poll-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.b2b-poll-summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.b2b-poll-summary-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
}

.b2b-poll-summary-lead {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.b2b-poll-stack {
  grid-column: 1/-1;
  display: flex;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.b2b-poll-stack span {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* One colour per answer option, shared by the legend swatches and bar segments. */
.b2b-poll-seg-0 {
  background: #ffffff;
}

.b2b-poll-seg-1 {
  background: #9fd6f5;
}

.b2b-poll-seg-2 {
  background: rgba(255, 255, 255, 0.5);
}

.b2b-poll-seg-3 {
  background: #3f8fc0;
}

/* --- Desktop: statement beside its options --- */
@media (min-width: 768px) {
  .b2b-poll-card {
    padding: 20px 22px;
  }
  .b2b-poll-slide {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    align-items: center;
  }
  .b2b-poll-statement {
    font-size: 19px;
    line-height: 26px;
    margin: 0;
  }
}
/* --- End of articles --- */
.b2b-poll-slot--single {
  margin: 32px 0 8px;
}

.b2b-poll-slot--single .b2b-poll-card {
  margin: 0;
}

/* --- Completed results toggle --- */
.b2b-poll-results-toggle {
  display: inline-block;
  padding: 9px 18px;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 80px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  cursor: pointer;
}

.b2b-poll-results-toggle:hover {
  background: #ffffff;
  color: var(--link_dark, #025585);
}

.b2b-poll-results-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* --- Completed poll card --- */
.b2b-poll-complete-message {
  margin: 6px 0 0;
  font-family: "Libre Caslon Text", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  color: #ffffff;
}

.b2b-poll-card.is-complete {
  display: grid;
  gap: 14px 24px;
}

.b2b-poll-card.is-complete .b2b-poll-head {
  margin-bottom: 0;
}

.b2b-poll-card.is-complete .b2b-poll-results-toggle {
  width: auto;
  margin: 0;
  justify-self: start;
}

@media (min-width: 768px) {
  .b2b-poll-card.is-complete {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .b2b-poll-card.is-complete .b2b-poll-results-toggle {
    justify-self: end;
  }
  .b2b-poll-card.is-complete .b2b-poll-summary,
  .b2b-poll-card.is-complete .b2b-poll-carousel {
    grid-column: 1/-1;
  }
}
