/* Patriotic theme — blue sidebar, red accents, white text, Helvetica */
:root {
  /* Blue (sidebar/primary), red (accents), white (text on blue) */
  --navy: #002868;
  --navy-light: #1e3a5f;
  --navy-soft: #2c5282;
  --red: #BF0A30;
  --red-dark: #9a0826;
  --red-sidebar-footer: #8c0720;
  --yellow: #fde047;
  --white: #ffffff;
  --off-white: #f8fafc;
  --blue-tint: #e8eef5;
  --color-text: #1e3a5f;
  --color-muted: #4a5568;
  --color-primary: var(--navy);
  --color-primary-light: var(--navy-light);
  --color-accent: var(--red);
  --color-bg: var(--off-white);
  --font-sans: Helvetica, Arial, sans-serif;
  --font-serif: Helvetica, Arial, sans-serif;
  --space: 1rem;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 40, 104, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 40, 104, 0.1);
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Layout — sidebar left, content right on desktop */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Sidebar — vertical nav on left (desktop); header bar on mobile */
.site-sidebar {
  background: var(--red-sidebar-footer);
  color: var(--white);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile: horizontal bar with brand + hamburger */
.site-sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space);
  padding: var(--space);
}

/* Sidebar: photo stacked above brand name, centered */
.sidebar-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 100%;
}

.sidebar-photo-link {
  display: block;
  line-height: 0;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-brand-block .brand {
  text-align: center;
}

.site-sidebar .sidebar-photo-link .sidebar-photo,
img.sidebar-photo {
  display: block !important;
  width: 140px !important;
  height: 140px !important;
  min-width: 140px !important;
  min-height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: var(--radius);
  box-sizing: border-box;
  border: 3px solid rgba(30, 58, 95, 0.25);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--white);
  opacity: 0.92;
}

.nav-toggle {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
}

.nav-toggle::before {
  content: "☰";
}

.nav-toggle[aria-expanded="true"]::before {
  content: "×";
}

.nav {
  width: 100%;
  order: 3;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.nav.is-open ul {
  display: flex;
}

.site-sidebar .nav a,
.nav a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-sidebar .nav a:hover,
.site-sidebar .nav a:focus {
  color: #fde047;
  background: rgba(253, 224, 71, 0.18);
}

/* Desktop: sidebar fixed left, vertical nav */
@media (min-width: 992px) {
  .layout {
    flex-direction: row;
  }

  .site-sidebar {
    width: 220px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    min-height: 100vh;
    background: var(--red-sidebar-footer);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .site-sidebar .brand {
    padding: var(--space) var(--space) 0.5rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    order: unset;
    width: 100%;
    padding: 0.5rem 0 calc(var(--space) * 2);
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    margin: 0;
  }

  .nav a {
    padding: 0.6rem var(--space);
    border-radius: 0;
    border-left: 3px solid transparent;
  }

.site-sidebar .nav a:hover,
.site-sidebar .nav a:focus {
  border-left-color: var(--red);
  background: rgba(191, 10, 48, 0.15);
}

  .site-content {
    min-width: 0;
    flex: 1;
  }
}

/* Main */
.main {
  min-height: 50vh;
  padding: calc(var(--space) * 2) 0;
}

/* Messages */
.messages {
  padding: var(--space);
}

.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.message-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.message-error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--red); }
.message-info { background: #cce5ff; color: #004085; border-left: 4px solid var(--navy); }

/* Footer — same darker red as sidebar */
.site-footer {
  background: var(--red-sidebar-footer);
  color: rgba(255, 255, 255, 0.9);
  padding: calc(var(--space) * 2) 0;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-social {
  margin-bottom: 0.5rem;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.9);
  margin-right: 1rem;
}

.footer-text {
  margin: 0;
}

.footer-links {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
}

.form-narrow {
  max-width: 560px;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  margin-top: 0;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: 1.875rem; margin-bottom: 1rem; font-weight: 700; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.75rem; }
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--navy);
  font-weight: 600;
}

a:hover {
  color: var(--red);
}

/* Cards — white with subtle blue border */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--space);
  border: 1px solid var(--blue-tint);
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body { padding: var(--space); }

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto var(--space);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--blue-tint);
}

.carousel-inner {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}

.carousel-slide img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 40, 104, 0.85));
  color: var(--white);
  font-size: 0.95rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--navy);
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.carousel-nav button:hover {
  background: var(--red);
}

/* Photo gallery grid (below carousel on Photo Gallery page) */
.photo-gallery-grid-section {
  margin-top: 2rem;
}

.photo-gallery-grid-section h2 {
  margin-bottom: 1rem;
}

.photo-gallery-grid {
  display: grid;
  gap: var(--space);
  grid-template-columns: 1fr;
}

@media (min-width: 500px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-gallery-grid-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-gallery-title {
  margin: 0;
  padding: 0.5rem var(--space) 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  order: -1;
}

.photo-gallery-img-wrap {
  display: block;
  width: 150px;
  height: 120px;
  flex-shrink: 0;
  background: var(--off-white);
  overflow: hidden;
}

.photo-gallery-grid-item img {
  width: 150px;
  height: 120px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.photo-gallery-caption {
  margin: 0;
  padding: 0.5rem var(--space) 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

.gallery-expand-hint {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.gallery-expand-img {
  cursor: pointer;
}

/* Photo gallery lightbox (click to expand) */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.gallery-lightbox.gallery-lightbox-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.gallery-lightbox-close:hover {
  background: var(--white);
}

/* FAQ */
.faq-list { margin: 0; padding: 0; list-style: none; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--blue-tint);
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--navy);
}

.faq-a {
  padding: 0 1.25rem 1rem;
  margin: 0;
  color: var(--color-muted);
  border-top: 1px solid var(--blue-tint);
  padding-top: 0.75rem;
  margin-top: 0;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  padding-bottom: 1rem;
}

/* Buttons — primary = red CTA, secondary = navy */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--blue-tint);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.15);
}

.form-errors {
  color: var(--red);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-errors ul { margin: 0; padding-left: 1.25rem; }

/* Blog grid */
.blog-grid {
  display: grid;
  gap: var(--space);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card .card-img { aspect-ratio: 16/10; }

.blog-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

/* Endorsement cards */
.endorsement-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
/* Match image thumbnails: white “card” circle like endorsement-photo */
a.endorsement-pdf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--blue-tint);
  box-shadow: var(--shadow-card);
}
a.endorsement-pdf-badge:hover,
a.endorsement-pdf-badge:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 40, 104, 0.15);
  outline: none;
}

.endorsement-name {
  margin-top: 0;
}

.endorsement-title {
  margin-bottom: 0.5rem;
}

.endorsement-quote {
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid var(--blue-tint);
}

.pagination a:hover {
  background: var(--navy);
  color: var(--white);
}

.pagination .current {
  background: var(--navy);
  color: var(--white);
}

/* Bio section — full-width text (col-12) */
.bio-preview {
  width: 100%;
}

.bio-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
  margin-bottom: 0;
  width: 100%;
}

.bio-photo {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--blue-tint);
}

.bio-content {
  display: block;
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  min-width: 0;
}

.bio-content .bio-text {
  width: 100%;
  max-width: 100%;
}

.bio-content h1 { margin-top: 0; }

/* Race info */
.race-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space);
  margin-bottom: var(--space);
  box-shadow: var(--shadow);
  border: 1px solid var(--blue-tint);
  border-left: 4px solid var(--red);
}

.race-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.race-intro {
  margin-bottom: 1rem;
}

.race-map-heading {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.district-map-wrap {
  margin: 1.25rem auto 1.5rem;
  max-width: 1000px;
}

.district-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

/* Hero section on home */
.hero {
  margin-bottom: 1.5rem;
}

.hero-images {
  margin-bottom: 2rem;
}

.hero-images-grid {
  display: grid;
  gap: calc(var(--space) * 0.5);
  grid-template-columns: 1fr;
}

.hero-image-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .hero-images-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-images-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bio-pdf {
  margin-top: 1.5rem;
}

.bio-pdf .col-12 {
  width: 100%;
}

.bio-pdf-img {
  display: block;
  width: 100%;
  max-width: 75%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.endorsements-preview {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.endorsements-photos-grid {
  display: grid;
  gap: calc(var(--space) * 0.5);
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}
@media (min-width: 576px) {
  .endorsements-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.endorsement-photo-item {
  margin: 0;
}
.endorsement-photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.hero h1 {
  margin-bottom: 0.5rem;
}

/* Voter dashboard */
.voter-logs-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .voter-logs-grid { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.text-muted { color: var(--color-muted); }
.section-title { margin-bottom: 1.5rem; color: var(--navy); }

/* Container width variants (use with .container) */
.container.container-narrow-420 { max-width: 420px; }
.container.container-narrow-520 { max-width: 520px; }
.container.container-narrow-560 { max-width: 560px; }
.container.container-narrow-640 { max-width: 640px; }
.container.container-narrow-720 { max-width: 720px; }

/* Home page staff visits line */
.home-staff-visits { font-size: 0.85rem; margin-top: 0.25rem; }

/* Cards and sections */
.card-spaced { margin-bottom: 1rem; }
.card-spaced-lg { margin-bottom: 1.5rem; }
.card-title-sm { font-size: 1.1rem; margin-top: 0; }
.card-title-md { font-size: 1.25rem; margin-top: 0; }
.card-title-event { font-size: 1.2rem; margin-top: 0; }

/* Buttons */
.btn-block { width: 100%; }
.btn-secondary { background: var(--blue-tint); color: var(--color-text); }
.btn-secondary:hover { background: #cbd5e1; color: var(--color-text); }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-half { margin-bottom: 0.5rem; }
.mb-75 { margin-bottom: 0.75rem; }

/* Endorsements full page — wider container, large cards & photos */
.endorsements-page.container {
  max-width: min(100%, 72rem);
}
.endorsements-grid.blog-grid {
  grid-template-columns: 1fr;
  width: 100%;
  gap: 1.75rem;
}
@media (min-width: 576px) {
  .endorsements-grid.blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .endorsements-grid.blog-grid { grid-template-columns: 1fr; }
}
.endorsements-grid { margin-top: 1rem; }
.endorsements-grid .card {
  box-shadow: 0 6px 28px rgba(0, 40, 104, 0.12);
  border-radius: calc(var(--radius) + 2px);
}
/* Title / subtitle first, then photo, then quote */
.endorsement-card .endorsement-detail-name {
  margin-top: 0;
}
.endorsement-card .endorsement-detail-pdf-block,
.endorsement-card .endorsement-detail-photo-link {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
.endorsements-preview .endorsement-photo,
.endorsements-preview a.endorsement-pdf-badge {
  margin-top: 0.75rem;
}
.endorsements-grid .card-body {
  padding: 1.75rem 2rem 2rem;
}
@media (min-width: 768px) {
  .endorsements-grid .card-body {
    padding: 2rem 2.5rem 2.25rem;
  }
}
.endorsement-detail-body { display: flex; flex-direction: column; }
.endorsements-page .endorsement-detail-name {
  font-size: 1.5rem;
}
.endorsements-page .endorsement-detail-quote {
  font-size: 1.05rem;
  line-height: 1.55;
}
.endorsement-detail-photo-link {
  display: block;
  margin-top: 0;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.endorsement-detail-photo-link:hover,
.endorsement-detail-photo-link:focus-visible {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
  outline: none;
}
.endorsement-detail-photo-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.endorsement-detail-pdf-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Same visual frame as clickable image endorsements */
.endorsement-detail-pdf-frame {
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow-card);
  background: var(--white);
  border: 1px solid var(--blue-tint);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.endorsement-detail-pdf-frame:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.endorsement-detail-pdf {
  display: block;
  width: 100%;
  height: 32rem;
  max-height: min(65vh, 40rem);
  min-height: 0;
  border: 0;
  background: var(--blue-tint);
}
.endorsement-detail-pdf-open {
  align-self: flex-start;
}
.endorsement-detail-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(92vh, 80rem);
  object-fit: contain;
  background: var(--blue-tint);
  border-radius: var(--radius);
}
.endorsement-detail-name { font-size: 1.25rem; margin-top: 0; }
.endorsement-detail-title { margin-bottom: 0.5rem; }
.endorsement-detail-quote { margin: 0 0 0.25rem; }

/* Screen-reader-only helper (endorsement photo link) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Staff list / admin-style tables */
.staff-status-links { margin-bottom: 1rem; }
.staff-status-links a.active { font-weight: bold; }
.table-data {
  width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
}
.table-data th,
.table-data td {
  text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--blue-tint);
}
.table-data td { border-bottom-color: #edf2f7; }
.table-data .btn-sm { margin-right: 0.5rem; }
.table-data form.inline-form { display: inline; }
.table-data .btn-sm + .btn-sm { margin-right: 0.25rem; }
.pagination-wrap { margin-top: 1rem; }

/* Preview / copy textareas */
.pre-wrap-box {
  white-space: pre-wrap; font-family: inherit; margin: 0; background: #f5f5f5; padding: 1rem; border-radius: var(--radius);
}
.textarea-copy {
  width: 100%; padding: 0.75rem; font-family: inherit; font-size: 0.95rem; border: 1px solid var(--blue-tint); border-radius: var(--radius); resize: vertical;
}
.copy-ok { margin-left: 0.5rem; color: green; display: none; }
.email-preview-html {
  border: 1px solid var(--blue-tint); border-radius: var(--radius); padding: 1rem; background: var(--white);
}

/* Lists */
.list-plain { margin: 0; padding-left: 1.25rem; }

/* Form help text */
.form-help { font-size: 0.9rem; margin-bottom: 0.25rem; }

/* Blog detail featured image */
.card-img.mb-1 { margin-bottom: 1rem; }

/* Schedule event card */
.race-card.mb-1 { margin-bottom: 1rem; }
.event-location { margin: 0.25rem 0; }
.event-desc { margin: 0.5rem 0 0; }
.event-links { margin-top: 0.5rem; }

/* Media thumb in text preview */
.media-thumb { max-width: 120px; max-height: 120px; object-fit: cover; margin-top: 0.25rem; border-radius: 4px; }
