@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/MaterialIcons-Regular.ttf') format('truetype');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

@font-face {
  font-family: 'CooperBT';
  src: url('/fonts/Cooper_BT_Font_Family/CooperBlkBT-Regular.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'CooperBT';
  src: url('/fonts/Cooper_BT_Font_Family/CooperBlkBT-Italic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: 'CooperBT';
  src: url('/fonts/Cooper_BT_Font_Family/CooperMdBT-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'CooperBT';
  src: url('/fonts/Cooper_BT_Font_Family/CooperLtBT-Regular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/Lato/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/Lato/Lato-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/Lato/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/Lato/Lato-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
  background: #f0f4f9;
  font-family: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.site-banner {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center center;
}

.site-banner--content-width {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.site-intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0.5rem;
}

.site-intro h1 {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 900;
  font-size: 3rem;
  color: #1a4a8a;
  margin: 0 0 0.75rem;
}

.site-intro h2 {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 500;
  font-size: 1.725rem;
  color: #1a4a8a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.5rem;
}

.site-intro p {
  font-size: 1.46rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 0.75rem;
}

.site-intro a {
  color: #1a4a8a;
}

.how-we-help-callout {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #d0d7e3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin: 1rem 0;
  transition: box-shadow 0.15s;
}

.how-we-help-callout:hover {
  box-shadow: 0 4px 16px rgba(26, 74, 138, 0.15);
}

.how-we-help-callout__body {
  flex: 1;
  padding: 1rem 1.25rem;
  min-width: 0;
}

.how-we-help-callout__title {
  font-weight: 700;
  font-size: 1.425rem;
  color: #111;
  margin-bottom: 0.4rem;
}

.how-we-help-callout__text {
  font-size: 1.3rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.how-we-help-callout__img-wrap {
  flex: 0 0 200px;
  background: #e8edf4;
}

.how-we-help-callout__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidates-table-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.candidates-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.candidates-table thead tr {
  background: #1a4a8a;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}

.candidates-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  border: none;
}

.candidates-table th:first-child {
  width: 115px;
  text-align: center;
}

/* Each candidate is wrapped in its own <tbody> */
.candidates-table tbody.candidate-group tr.bio-row td {
  border-bottom: 1px solid #e8edf4;
}

.candidates-table tbody.candidate-group:last-child tr.bio-row td {
  border-bottom: none;
}

.candidates-table tbody.candidate-group:nth-child(even) tr {
  background: #f4f7fb;
}

.candidates-table tbody.candidate-group:hover tr {
  background: #dde8f7;
}

.candidates-table td {
  padding: 14px 20px;
  vertical-align: middle;
  color: #222;
  font-size: 1.425rem;
  border: none;
}

.candidates-table td:first-child {
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
}

.candidates-table tr.bio-row td {
  padding-top: 0;
  padding-bottom: 14px;
  vertical-align: top;
}

.candidate-photo-cell {
  position: relative;
  width: 100px;
  height: 100px;
  display: inline-block;
}

.candidate-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1a4a8a;
  display: block;
}

.candidate-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a4a8a, #3a7bd5);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.race-badge {
  display: inline-block;
  background: #e8edf4;
  color: #1a4a8a;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 1.23rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.race-badge.senate {
  background: #ddeeff;
  color: #0a3060;
}

.state-name {
  font-weight: 500;
  color: #444;
}

.candidate-name {
  font-weight: 600;
  color: #111;
}

.candidate-name a {
  color: inherit;
  text-decoration: underline;
}

.candidate-name a:hover {
  text-decoration: underline;
}

.candidate-bio {
  margin: 0;
  font-size: 1.31rem;
  color: #555;
  line-height: 1.6;
}

/* ── Candidate detail page ─────────────────────────────────────────── */

.candidate-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.candidate-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-bottom: 4px solid #1a4a8a;
}

.candidate-page-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid #dde4ef;
  margin-bottom: 1.5rem;
}

.candidate-page-header h1 {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 900;
  font-size: 3.3rem;
  color: #1a4a8a;
  margin: 0 0 0.4rem;
}

.candidate-page-header .race-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  color: #555;
}

.donate-block {
  background: #eef4ff;
  border-left: 4px solid #1a4a8a;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.donate-block p {
  margin: 0 0 0.75rem;
  font-size: 1.425rem;
  color: #333;
  line-height: 1.5;
}

.donate-btn {
  display: inline-block;
  background: #1a4a8a;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.425rem;
  text-decoration: none;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}

.donate-btn:hover {
  background: #0f316e;
  color: #fff;
}

.candidate-page article p {
  font-size: 1.46rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 1.1rem;
}

.candidate-page article a:not(.donate-btn) {
  color: #1a4a8a;
}

.candidate-page article a:not(.donate-btn):hover {
  text-decoration: none;
}

.content-figure {
  margin: 1.5rem 0 1.75rem;
}

.content-figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.content-figure figcaption {
  margin-top: 0.5rem;
  font-size: 1.23rem;
  color: #777;
  font-style: italic;
  text-align: center;
}

.polling-img {
  width: 100%;
  border-radius: 8px;
  margin: 1.25rem 0 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.info-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dde4ef;
}

.info-section h2 {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  color: #1a4a8a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.info-section ul {
  margin: 0;
  padding-left: 1.3rem;
}

.info-section li {
  font-size: 1.425rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 0.3rem;
}

.info-section li a {
  color: #1a4a8a;
}

.lte-block {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  font-size: 1.35rem;
  line-height: 1.7;
  color: #444;
  font-style: italic;
}

.lte-block cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 1.23rem;
  color: #777;
}

/* ── Material Design Lite nav bar ─────────────────────────────────────── */

.mdl-layout__header,
.mdl-layout__drawer-button {
  background-color: #1a4a8a;
}

.mdl-layout__header .mdl-layout-title {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav-back {
  color: rgba(255, 255, 255, 0.87);
  margin-right: 0.25rem;
}

/* ── Clubs landing page ───────────────────────────────────────────────── */

.clubs-landing {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.clubs-heading {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 900;
  font-size: 3rem;
  color: #1a4a8a;
  margin: 0 0 0.5rem;
}

.clubs-subheading {
  font-size: 1.5rem;
  color: #555;
  margin: 0 0 2rem;
}

.clubs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.club-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s, transform 0.15s;
  min-width: 220px;
  max-width: 300px;
}

.club-card:hover {
  box-shadow: 0 8px 32px rgba(26, 74, 138, 0.2);
  transform: translateY(-2px);
}

.club-card__logo {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
}

.club-card__name {
  font-family: 'CooperBT', Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #1a4a8a;
  text-align: center;
}

/* ── Responsive: narrow / mobile ──────────────────────────────────────── */

@media (max-width: 600px) {
  /* Let the table fill the viewport edge-to-edge */
  .candidates-table-wrapper {
    border-radius: 0;
    margin: 1rem 0;
  }

  .site-intro {
    padding: 1.25rem 1rem 0.5rem;
  }

  .site-intro h1 {
    font-size: 2.25rem;
  }

  /* Hide the State column — its info is redundant with the race badge
     and removing it gives the remaining columns room to breathe.
     The bio row's colspan=3 still spans the full remaining width. */
  .candidates-table th:nth-child(3),
  .candidates-table .candidate-row td:nth-child(3) {
    display: none;
  }

  .candidates-table th,
  .candidates-table td {
    padding: 10px 12px;
    font-size: 1.32rem;
  }

  .candidates-table th:first-child,
  .candidates-table td:first-child {
    padding: 8px 8px;
    width: 72px;
  }

  .candidate-photo-cell {
    width: 60px;
    height: 60px;
  }

  .candidate-photo,
  .candidate-initials {
    width: 60px;
    height: 60px;
  }

  .candidate-initials {
    font-size: 1.65rem;
  }

  .candidate-bio {
    font-size: 1.23rem;
  }

  .race-badge {
    font-size: 1.17rem;
    padding: 3px 8px;
  }
}
