/* Candidate Landing — modern Protect Life theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

.cl {
  --navy: #0f2744;
  --navy-soft: #1a3658;
  --red: #c8102e;
  --red-hover: #a50d25;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e8edf4;
  --bg: #f8fafc;
  --card: #ffffff;
  --protect: #0b3d5c;
  --max: 960px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: Fraunces, Georgia, serif;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }

.cl-wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
}

/* Hero */
.cl-hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.cl-hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 800px) {
  .cl-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
  .cl-hero-grid--multi {
    grid-template-columns: 1fr 1.05fr;
  }
  .cl-hero-copy { text-align: left; }
  .cl-opponents { justify-content: end; }
}

.cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--navy-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cl-eyebrow::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--red);
}

.cl-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.cl-headline {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.cl-opponents,
.cl-allies-grid {
  display: grid;
  gap: 1rem;
  justify-content: center;
}

.cl-opponents[data-count="1"],
.cl-allies-grid[data-count="1"] { grid-template-columns: minmax(160px, 240px); }
.cl-opponents[data-count="2"],
.cl-allies-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(130px, 200px)); }
.cl-opponents[data-count="3"],
.cl-allies-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(110px, 170px)); }

.cl-opponent,
.cl-ally {
  margin: 0;
  text-align: center;
}

/* Square portrait frame — padding-bottom locks 1:1; shadow on the frame */
.cl-photo-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #dbe3ef;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, .08),
    0 14px 32px rgba(15, 39, 68, .28),
    0 28px 56px rgba(15, 39, 68, .14);
}

.cl-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cl-photo--bw { filter: grayscale(1) contrast(1.04); }

/* Shared under-photo caption: name + office only */
.cl-opponent figcaption,
.cl-ally figcaption {
  margin-top: .75rem;
  text-align: center;
}

.cl-name {
  display: block;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--navy);
  line-height: 1.3;
}

.cl-office {
  display: block;
  margin-top: .3rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  line-height: 1.35;
}

/* Attack */
.cl-attack { background: var(--bg); }

.cl-prose p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: #334155;
  max-width: 42rem;
}

.cl-warning {
  margin: 0 0 1rem;
  padding: 0 0 0 .9rem;
  border: 0;
  border-left: 3px solid var(--red);
  background: transparent;
  border-radius: 0;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 42rem;
}

.cl-charges {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: .75rem;
}

.cl-charges--x li,
.cl-charges--record li,
.cl-charges--yes li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  font-weight: 600;
  color: var(--navy);
}

.cl-charges--x li::before {
  content: "✕";
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fde8ec;
  color: var(--red);
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cl-charges--yes {
  grid-template-columns: 1fr;
}
.cl-charges--yes li {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.cl-charges--yes .cl-a {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--red);
  background: #fde8ec;
  padding: .35rem .65rem;
  border-radius: 999px;
}

.cl-charges--record li::before {
  content: "";
  width: .35rem;
  align-self: stretch;
  border-radius: 999px;
  background: var(--navy);
}

.cl-closer {
  margin: 1.5rem 0 .75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Allies */
.cl-allies {
  background: linear-gradient(180deg, #eef6fb 0%, #e7f1f8 100%);
  border-top: 1px solid #d7e6f1;
  border-bottom: 1px solid #d7e6f1;
}

.cl-allies-label {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--red);
  text-wrap: balance;
}

.cl-allies-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 800px) {
  /* Single ally: photo beside copy */
  .cl-allies-inner[data-allies="1"] {
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 2.5rem;
  }
  .cl-allies-inner[data-allies="1"] .cl-allies-grid { justify-content: start; }
  .cl-allies-inner[data-allies="1"] .cl-ally-copy { text-align: left; }

  /* 2+ allies: photos in a centered row, copy underneath */
  .cl-allies-inner[data-allies="2"],
  .cl-allies-inner[data-allies="3"] {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: center;
  }
  .cl-allies-inner[data-allies="2"] .cl-allies-grid,
  .cl-allies-inner[data-allies="3"] .cl-allies-grid {
    justify-content: center;
    width: 100%;
    max-width: 28rem;
  }
  .cl-allies-inner[data-allies="2"] .cl-ally-copy,
  .cl-allies-inner[data-allies="3"] .cl-ally-copy {
    text-align: center;
    max-width: 40rem;
  }
}

.cl-ally-copy {
  text-align: center;
  font-size: 1.125rem;
  color: var(--protect);
  max-width: 34rem;
}
.cl-ally-copy p { margin: 0 0 .75rem; }

/* CTA */
.cl-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cl-cta-headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Vote */
.cl-vote {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.cl-vote-copy { max-width: 40rem; margin: 0 auto 1.75rem; text-align: center; }

.cl-early {
  margin: 0 0 .65rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.cl-early strong { font-weight: 800; }

.cl-absentee {
  margin: 0;
  color: var(--muted);
}

.cl-vote-actions {
  display: grid;
  gap: .85rem;
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .cl-vote-actions { grid-template-columns: 1fr 1fr; }
}

.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.cl-btn:hover { transform: translateY(-1px); }

.cl-btn--primary {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(200, 16, 46, .22);
}
.cl-btn--primary:hover { background: var(--red-hover); }

.cl-btn--secondary {
  background: #fff;
  color: var(--navy) !important;
  border: 1.5px solid #cbd5e1;
}
.cl-btn--secondary:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(15, 39, 68, .08);
}


/* Videos (optional; after vote) */
.cl-videos {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.cl-videos-wrap {
  max-width: 800px;
  text-align: center;
}

.cl-videos-heading {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.cl-videos-list {
  display: grid;
  gap: 1.75rem;
}

.cl-video {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  text-align: left;
}

.cl-video-title {
  margin: 0 0 .75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.cl-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.cl-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* hide legacy QR if present in old markup */
.cl-qr { display: none !important; }
.cl-vote-links { display: none !important; }




/* Mock / missing portrait placeholder */
.cl-photo-frame--ph {
  background: linear-gradient(145deg, #c5d0de 0%, #9aabbe 100%);
}
.cl-photo-frame--ph::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f2744;
  opacity: .55;
}
.cl-photo-frame--ph.cl-photo-frame--bw {
  background: linear-gradient(145deg, #9aa3ad 0%, #6b7380 100%);
}
.cl-photo-frame--ph.cl-photo-frame--bw::after { color: #1a1f26; }
