/* ═══════════════════════════════════════════════
   RIGGED RED CARD — home.css
   Styles specific to index.html
═══════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  background: var(--ink);
  border-bottom: 4px solid var(--red);
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #666;
  margin-bottom: 0.75rem;
}
.hero-headline {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero-red { color: var(--stamp); font-style: italic; }
.hero-body {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: #aaa;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 0.75rem;
}
.hero-body strong { color: #ddd; font-weight: 600; }
.hero-bold { color: #ccc !important; font-weight: 600 !important; font-style: italic; }
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.btn-primary, .btn-secondary {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.4rem;
  border-radius: 3px;
  transition: all 0.15s;
  display: inline-block;
}
.btn-primary  { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-d); }
.btn-secondary { border: 1px solid #444; color: #aaa; }
.btn-secondary:hover { border-color: #777; color: #ddd; }

/* Hero card */
.hero-card-area { flex-shrink: 0; }
.hero-main-card { transform: rotate(-4deg); }
.hero-card-img {
  width: clamp(160px, 20vw, 260px);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 24px 60px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── STAT BAR ── */
.stat-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.stat-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0.25rem 1rem;
}
.stat-n {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-l {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--rule);
  flex-shrink: 0;
}

/* ── MAIN CONTENT ── */
.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
}

/* ── CYCLE SECTION ── */
.cycle-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}
.cycle-section:last-child { border-bottom: none; }

.cycle-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.cycle-header-left { flex: 1; }
.cycle-title {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.cycle-badge {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  background: var(--cream-mid);
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  display: inline-block;
}

/* Cycle ballot card thumbnail */
.cycle-card-thumb { flex-shrink: 0; }
.cycle-thumb-img {
  width: 120px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── CANDIDATE CARDS ── */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
}
.cand-card {
  background: var(--white);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: background 0.15s;
  cursor: pointer;
}
.cand-card:hover { background: var(--cream); }
.cand-card-name {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.cand-card-race {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  color: var(--ink-light);
  line-height: 1.35;
}
.cand-card-result {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.result-won  { color: #1a6b2a; }
.result-lost { color: var(--red); }
.cand-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.cand-card-sources {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  color: var(--ink-light);
  font-style: italic;
}
.cand-card-cta {
  margin-top: auto;
  padding-top: 0.65rem;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  border-top: 1px solid var(--rule);
}

/* ── MISSING NOTE ── */
.missing-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  color: var(--ink-mid);
}
.missing-note a { color: var(--red); font-weight: 600; }
.missing-note a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-area { display: none; }
  .stat-bar-inner { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 40%; }
  .cycle-header-row { flex-direction: column; gap: 1rem; }
  .cycle-card-thumb { display: none; }
}
@media (max-width: 480px) {
  .candidate-grid { grid-template-columns: 1fr; }
}

/* Against emphasis */
.hero-against {
  color: var(--stamp);
  font-weight: 900;
  font-style: italic;
}
