/* ===== Base / Reset (consistent everywhere) ===== */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --rule: #e5e5e5;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #777777;
  --nav-bg: #f2f2f2;
}

p{
  font-family: system-ui;
}


body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-width: 100%; }

/* ===== Nav (single source of truth) ===== */


nav { display: flex; justify-content: space-between; background: #f2f2f2; border-bottom: 1px solid var(--rule); }

.linkbar { flex: 1; text-align: center; padding: 10px; }

.linkbar a { display: inline-block; width: 100%; text-decoration: none; color: black; font-weight: 500; }

.linkbar a:hover { text-decoration: underline; color: black; }



/* ===== Headlines / dividers ===== */
h1 { text-align: center; padding: 16px 12px; }

.under-election {
  display: block;
  height: 2px;
  width: 35%;
  margin: 8px auto 0;
  border: 0;
  background: #9aa0a6; /* visible in light/dark modes */
}

.election-day { text-align: center; padding: 8px 12px; }

/* ===== Candidate grid & cards ===== */
.candidate-row {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.candidate-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 20px 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  background: #fff;
}

/* Force identical display size for headshots */
.headshot {
  width: 100%;
  height: 360px;          /* equal height */
  object-fit: cover;      /* crop to fill */
  object-position: center;
  border-radius: 6px;
  margin: 0 auto 16px;
}

/* Typography helpers */
.section-title {
  text-align: center;
  margin: 24px 0 8px;
  font-weight: 700;
  letter-spacing: .02em;
}

.candidate-name {
  font-weight: 800;
  letter-spacing: .02em;
  margin: 6px 0 10px;
  text-transform: uppercase;
}

.caption {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}

.content {
  max-width: 900px;
  margin: 0 auto;      /* centers content horizontally */
  padding: 40px 24px;  /* adds space around text */
  line-height: 1.6;    /* improves readability */
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .candidate-row {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .headshot { height: 320px; }
  nav { flex-wrap: wrap; }
  .linkbar { flex: 1 1 50%; }
}

:root {
        --accent: #777;
        --rule: #e5e5e5;
        --text: #111;
      }
      * { box-sizing: border-box; }
      body { margin: 0; padding: 0; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

      /* Nav consistent with your site */
      nav { display: flex; justify-content: space-between; background: #f2f2f2; border-bottom: 1px solid var(--rule); }
      .linkbar { flex: 1; text-align: center; padding: 10px; }
      .linkbar a { display: inline-block; width: 100%; text-decoration: none; color: black; font-weight: 500; }
      .linkbar a:hover { text-decoration: underline; color: black; }

      /* Page chrome */
      .wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px; }
      h1, h2, h3 { text-align: center; margin: 0.6em 0; }
      .subrule { height: 1px; background: var(--rule); width: 60%; margin: 12px auto 24px; }

      /* Header card */
      .profile {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 24px;
        align-items: center;
        border: 1px solid var(--rule);
        border-radius: 10px;
        padding: 16px;
        background: #fff;
      }
      .headshot {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
      }
      .summary p { margin: 0.4em 0; line-height: 1.45; }

      /* Sections */
      .section { margin-top: 28px; }
      .section h2 { margin-bottom: 6px; }
      .section .fine { text-align: center; color: var(--accent); font-size: 0.95rem; }

      /* Two-column layout for policies vs critiques */
      .cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 12px;
      }
      .card {
        border: 1px solid var(--rule);
        border-radius: 10px;
        background: #fff;
        padding: 16px;
      }
      .card h3 { margin-top: 0; text-align: left; }
      ul { margin: 0.5em 0 0; padding-left: 1.2em; }
      li { margin: 0.35em 0; }

      /* Notes */
      .note { color: var(--accent); font-size: 0.95rem; margin-top: 8px; }

      /* Footer */
      footer {
        margin-top: 32px;
        padding: 16px 0;
        border-top: 1px solid var(--rule);
        color: #555;
        font-size: 0.92rem;
      }

      /* Responsive */
      @media (max-width: 800px) {
        .profile { grid-template-columns: 1fr; }
        .headshot { height: 300px; }
        .cols { grid-template-columns: 1fr; }
        .subrule { width: 80%; }
      }