/* ═══════════════════════════════════════════════
   RIGGED RED CARD — Shared Stylesheet
   riggedredcard.com
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── TOKENS ── */
:root {
  --ink:       #1a1a1a;
  --ink-mid:   #444;
  --ink-light: #777;
  --rule:      #d4c9b8;
  --cream:     #f5f1eb;
  --cream-mid: #ede8df;
  --red:       #c0201a;
  --red-d:     #8c1510;
  --stamp:     #f5c800;
  --stamp-d:   #b89200;
  --white:     #ffffff;

  --ff-stamp:  'Bebas Neue', Impact, sans-serif;
  --ff-ui:     'DM Sans', system-ui, sans-serif;
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'Source Serif 4', Georgia, serif;

  --max-w: 1100px;
  --pad-x: clamp(1rem, 4vw, 2.5rem);
}

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── MASTHEAD ── */
.masthead {
  background: var(--ink);
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-brand { display: flex; flex-direction: column; gap: 0.15rem; }
.site-name {
  font-family: var(--ff-stamp);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}
.site-name .dot { color: var(--red); }
.site-name .stamp-word {
  color: var(--stamp);
  display: inline-block;
  border: 2px solid var(--stamp);
  padding: 0 0.3rem;
  border-radius: 2px;
  margin-left: 0.2rem;
  transform: rotate(-2deg);
  display: inline-block;
  font-size: 0.85em;
}
.site-tagline {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
}
.site-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  list-style: none;
}
.site-nav a {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  padding: 0.4rem 0.65rem;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.site-nav a.nav-cta {
  background: var(--red);
  color: #fff;
}
.site-nav a.nav-cta:hover { background: var(--red-d); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  border-top: 2px solid var(--red);
  padding-top: 0.4rem;
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ── STAMP ELEMENT ── */
.stamp {
  font-family: var(--ff-stamp);
  letter-spacing: 0.06em;
  color: var(--stamp);
  border: 3px solid var(--stamp);
  padding: 0.05rem 0.45rem 0;
  border-radius: 3px;
  display: inline-block;
  line-height: 1.2;
  opacity: 0.92;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
}

/* ── TAGS ── */
.tag {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  display: inline-block;
}
.tag-red  { background: #fde8e6; color: #8c1510; }
.tag-gold { background: #fdf3d0; color: #7a5f1e; }
.tag-gray { background: var(--cream-mid); color: #666; }

/* ── NEWS LIST (shared by all candidate pages) ── */
.news-list { list-style: none; }
.news-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child  { border-bottom: none; }

.news-item-link {
  font-family: var(--ff-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: bottom left;
  transition: background-size 0.25s ease, color 0.2s;
}
.news-item-link:hover {
  background-size: 100% 1px;
  color: var(--red);
}
.news-item-source {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0.3rem 0 0.5rem;
}
.news-item-desc {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.6;
  font-style: italic;
}

/* Primary sources */
.primary-sources {
  list-style: none;
  margin-top: 0.85rem;
  padding-left: 1rem;
  border-left: 3px solid var(--stamp-d);
}
.ps-item {
  padding: 0.55rem 0 0.55rem 0.7rem;
  border-bottom: 1px dotted #e0d5c0;
}
.ps-item:last-child { border-bottom: none; }
.ps-label {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stamp-d);
  margin-bottom: 0.12rem;
}
.ps-link {
  font-family: var(--ff-body);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.15s;
}
.ps-link:hover { color: var(--stamp-d); }
.ps-desc {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
  line-height: 1.45;
}

/* ── SIDEBAR ── */
.sidebar-card {
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--white);
}
.sidebar-card-head {
  background: var(--ink);
  padding: 0.6rem 1rem;
}
.sidebar-card-title {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888;
}
.sidebar-card-body { padding: 0.7rem 1rem; }
.sidebar-fact {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.35;
}
.sidebar-fact:last-child { border-bottom: none; }
.sidebar-fact strong {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 0.1rem;
}
.sidebar-count {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--cream);
}
.sidebar-count-n {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  display: block;
}
.sidebar-count-l {
  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.3rem;
  display: block;
}
.sidebar-links { list-style: none; }
.sidebar-link-item { border-bottom: 1px solid var(--rule); }
.sidebar-link-item:last-child { border-bottom: none; }
.sidebar-link-item a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: background 0.12s, color 0.12s;
}
.sidebar-link-item a:hover { background: var(--cream); color: var(--red); }

/* ── RIGGED CARD (the ballot card replica with stamp) ── */
.rigged-card-wrap {
  position: relative;
  display: inline-block;
}
.rigged-card-img {
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.rigged-card-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: var(--ff-stamp);
  color: var(--stamp);
  border: 4px solid var(--stamp);
  padding: 0.1rem 0.6rem 0;
  border-radius: 3px;
  opacity: 0.9;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.08);
}
/* Size variants */
.rigged-card-stamp-lg { font-size: 3.5rem; border-width: 5px; }
.rigged-card-stamp-md { font-size: 2.2rem; border-width: 3px; }
.rigged-card-stamp-sm { font-size: 1.4rem; border-width: 2px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  border-top: 4px solid var(--red);
  padding: 2.5rem var(--pad-x);
  margin-top: 5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--ff-stamp);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: #666;
}
.footer-brand .dot { color: var(--red); }
.footer-note {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  color: #444;
  max-width: 400px;
  line-height: 1.55;
}
.footer-links { display: flex; gap: 0.5rem; }
.footer-links a {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  color: #555;
  padding: 0.3rem 0.5rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: #999; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
