/* ── Poll & Redirect – NewsBrew + Purple Styles ────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

.pr-poll {
  --pr-red:         #E8432D;
  --pr-red-dark:    #c23520;
  --pr-red-light:   #fdf1ef;
  --pr-purple:      #4f46e5;
  --pr-purple-dark: #3730a3;
  --pr-purple-light:#ede9fe;
  --pr-charcoal:    #1a1a1a;
  --pr-muted:       #7a7a7a;
  --pr-border:      #e8e8e8;
  --pr-card:        #ffffff;
  --pr-gold:        #b8760a;
  --pr-gold-bg:     #fdf6e3;
  --pr-gold-border: #edcf7a;

  font-family: 'DM Sans', sans-serif;
  max-width: 560px;
  background: var(--pr-card);
  border: 1.5px solid var(--pr-border);
  border-radius: 16px;
  padding: 0 0 24px;
  box-shadow: 0 4px 28px rgba(79,70,229,.10), 0 1px 4px rgba(0,0,0,.06);
  margin: 28px 0;
  overflow: hidden;
}

/* ── Today's Poll tag ── */
.pr-poll__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pr-gold-bg);
  border-bottom: 2px solid var(--pr-gold-border);
  color: var(--pr-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 22px;
  width: 100%;
  box-sizing: border-box;
}

.pr-poll__tag-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--pr-gold);
  box-shadow: 0 0 0 2px rgba(184,118,10,.25);
  animation: pr-pulse 2s ease-in-out infinite;
}

@keyframes pr-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(184,118,10,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(184,118,10,.07); }
}

/* ── Question ── */
.pr-poll__question {
  font-size: 23px;
  font-weight: 800;
  color: var(--pr-charcoal);
  line-height: 1.35;
  padding: 20px 22px 18px;
  letter-spacing: -.015em;
  border-bottom: 1.5px solid var(--pr-border);
  margin-bottom: 16px;
}

/* ── Answer buttons ── */
.pr-poll__answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px;
}

.pr-poll__answer {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 15px;
  background: #fafafa;
  border: 2px solid var(--pr-border);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  color: var(--pr-charcoal);
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .18s, transform .12s, box-shadow .15s;
  font-family: 'DM Sans', sans-serif;
  gap: 13px;
}

.pr-poll__answer:hover {
  background: var(--pr-purple-light);
  border-color: var(--pr-purple);
  transform: translateX(4px);
  box-shadow: 0 3px 12px rgba(79,70,229,.15);
}

.pr-poll__answer:focus {
  outline: 2px solid var(--pr-purple);
  outline-offset: 2px;
}

.pr-poll__answer:active {
  transform: translateX(2px) scale(.99);
}

/* Letter badge — red-orange from NewsBrew logo */
.pr-poll__answer-letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 7px;
  background: var(--pr-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background .15s;
}

.pr-poll__answer:hover .pr-poll__answer-letter {
  background: var(--pr-purple);
}

/* ── Results ── */
.pr-poll__results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 18px 0;
}

.pr-result { display: flex; flex-direction: column; gap: 5px; }

.pr-result__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pr-result__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pr-charcoal);
  flex: 1;
}

.pr-result__pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--pr-purple);
  min-width: 44px;
  text-align: right;
}

.pr-result__bar {
  height: 9px;
  background: #eeecfc;
  border-radius: 99px;
  overflow: hidden;
}

.pr-result__fill {
  height: 100%;
  background: var(--pr-purple);
  border-radius: 99px;
  transition: width .55s cubic-bezier(.4,0,.2,1);
}

/* Chosen answer uses NewsBrew red as a nod to the brand */
.pr-result--chosen .pr-result__fill { background: var(--pr-red); }
.pr-result--chosen .pr-result__pct  { color: var(--pr-red); }
.pr-result--chosen .pr-result__label::before {
  content: '✓ ';
  color: #2a9d5c;
}

.pr-result__count {
  font-size: 11px;
  color: var(--pr-muted);
  text-align: right;
}

/* ── Redirect bar — red-orange ── */
.pr-poll__redirect {
  margin: 18px 18px 0;
  padding: 12px 16px;
  background: #fff8f7;
  border: 1.5px solid #f5c4bd;
  border-radius: 10px;
}

.pr-poll__redirect-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--pr-red-dark);
  margin-bottom: 8px;
}

.pr-poll__redirect-track {
  height: 5px;
  background: #f5c4bd;
  border-radius: 99px;
  overflow: hidden;
}

.pr-poll__redirect-fill {
  height: 100%;
  background: var(--pr-red);
  border-radius: 99px;
  width: 100%;
  transition: width linear;
}

/* ── Loading ── */
.pr-poll__loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--pr-muted);
  padding: 12px 18px 0;
}

.pr-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--pr-border);
  border-top-color: var(--pr-purple);
  border-radius: 50%;
  animation: pr-spin .7s linear infinite;
}

@keyframes pr-spin { to { transform: rotate(360deg); } }

[hidden] { display: none !important; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .pr-poll__question { font-size: 19px; padding: 16px 16px 14px; }
  .pr-poll__answers  { padding: 0 12px; }
  .pr-poll__results  { padding: 4px 12px 0; }
  .pr-poll__redirect { margin: 14px 12px 0; }
  .pr-poll__loading  { padding: 10px 12px 0; }
}
