/* =============================================================
   votes_today.css — single-purpose, news-anchor landing page
   for /votes/today/.
   ============================================================= */

.votes-today-hero {
  padding: var(--sp-16) 0 var(--sp-5);
  background:
    radial-gradient(ellipse at top, var(--live-bg-soft), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(56, 189, 248, 0.04), transparent 70%);
  border-bottom: 1px solid var(--ink-200);
}

.votes-today-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--live-bg-soft);
  border: 1px solid var(--live-border-soft);
  border-radius: 999px;
  color: var(--live-fg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.votes-today-hero h1 {
  margin: var(--sp-3, 1rem) 0 var(--sp-2, 0.5rem);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink-900);
}

.votes-today-sub {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0 0 var(--sp-5, 2rem);
}

.votes-today-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3, 0.85rem);
  max-width: 760px;
}

.votes-today-stat {
  padding: var(--sp-3, 1rem) var(--sp-4, 1.2rem);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--ink-900);
  text-decoration: none;
}

a.votes-today-stat:hover,
a.votes-today-stat:focus-visible {
  background: var(--ink-50);
  border-color: var(--ink-300);
}

.votes-today-stat-value {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
}

.votes-today-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  font-weight: 600;
}


/* No chamber sitting: a plain date chip instead of the pulsing LIVE one. */
.votes-today-eyebrow--idle {
  background: var(--ink-100);
  border-color: var(--ink-200);
  color: var(--ink-700);
}

/* Each chamber's state and next session, when today has no votes. */
.votes-today-next {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-700);
}

/* 'Most recent votes: Thursday, September 24, 2026' */
.votes-today-day-heading {
  margin: var(--sp-2, 0.5rem) 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  color: var(--ink-900);
}

/* Chamber sections */
.votes-today-chamber-heading {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: var(--sp-6, 2.5rem) 0 var(--sp-3, 1rem);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--ink-900);
}

.votes-today-chamber-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-500);
}

.votes-today-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.votes-today-item {
  padding: 0;
}

.votes-today-item-link {
  display: block;
  padding: var(--sp-3, 1rem) var(--sp-4, 1.2rem);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  color: var(--ink-900);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.votes-today-item-link:hover,
.votes-today-item-link:focus-visible {
  background: var(--ink-50);
  border-color: var(--ink-300);
  transform: translateY(-1px);
}

.votes-today-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 0.4rem;
}

.votes-today-item-time {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.votes-today-item-roll {
  font-weight: 600;
}

.votes-today-item-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.votes-today-item-desc {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.votes-today-item-tally {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.tally-result {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Template now drives this off Vote.outcome_class (success / danger / '').
   Keeps Senate-specific outcomes (confirmed, override_passed, sustained)
   rendering the same color family as the base passed / failed.
   Base palette is tuned for light mode (renders on var(--paper) ~ #FFF
   cards); dark-mode override below lifts the foreground to mint/coral
   so it stays legible on the darker card surface. */
.tally-result--success {
  background: rgba(34, 197, 94, 0.14);
  color: var(--success-text);
}

.tally-result--danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--live-fg);   /* flips light→dark via the token */
}

[data-theme="dark"] .tally-result--success { color: #4ADE80; }

.tally-numbers {
  color: var(--ink-600);
}

.votes-today-floor-link {
  margin: var(--sp-5, 2rem) 0 0;
  font-size: 0.95rem;
}

.votes-today-footer {
  margin-top: var(--sp-6, 2.5rem);
  padding-top: var(--sp-4, 1.5rem);
  border-top: 1px solid var(--ink-200);
  text-align: center;
  color: var(--ink-600);
  font-size: 0.93rem;
}
