* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  background: #401268;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  z-index: 10;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
}

.nav-hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

.hero {
  background: url('photos/hero.jpg') center 25% / cover no-repeat;
  position: relative;
  min-height: clamp(350px, 50vw, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(64, 18, 104, 0.75);
}

.hero-content {
  position: relative;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
}

.messaging {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

h2 {
  color: #401268;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.candidates-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.candidate-radio {
  display: none;
}

.candidate-card {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 0;
  overflow: hidden;
}

.candidate-card:hover {
  border-color: #401268;
}

.candidate-photo {
  width: min(130px, 100%);
  height: auto;
  aspect-ratio: 1;
  max-width: 130px;
  border-radius: 50%;
  object-fit: cover;
  background: #e0d4eb;
  margin-bottom: 0.75rem;
}

.candidate-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.candidate-position {
  color: #401268;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

#c1:checked ~ label[for="c1"],
#c2:checked ~ label[for="c2"],
#c3:checked ~ label[for="c3"],
#c4:checked ~ label[for="c4"] {
  border-color: #401268;
  background: #f5f0f9;
}

.candidate-detail {
  order: 2;
  grid-column: 1 / -1;
  display: none;
  scroll-margin-top: 3.5rem;
}

#c1:checked ~ #detail-1,
#c2:checked ~ #detail-2,
#c3:checked ~ #detail-3,
#c4:checked ~ #detail-4 {
  display: block;
}

.detail-inner {
  background: #401268;
  color: #fff;
  padding: 2rem;
}

.detail-photo {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  object-position: left center;
  border-radius: 4px;
  background: #5a2d82;
  margin-bottom: 1.5rem;
}

#detail-2 .detail-photo {
  object-position: right center;
}

.detail-text h3 {
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.detail-position {
  font-weight: 400;
  opacity: 0.85;
  font-size: 1rem;
  white-space: nowrap;
}

.experience {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.experience dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.experience dd {
  margin-left: 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

.detail-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.next-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

.next-link:hover {
  border-bottom-color: #fff;
}

.platform-pillar {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  position: relative;
}

.platform-pillar summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1rem;
}

.platform-pillar summary::-webkit-details-marker {
  display: none;
}

.platform-pillar summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 700;
  color: #401268;
}

.platform-pillar[open] summary::after {
  content: none;
}

.platform-pillar[open]::after {
  content: '\2212';
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #401268;
  cursor: pointer;
}

.platform-pillar summary h3 {
  color: #401268;
  font-size: 1.8rem;
  margin: 0;
  display: inline;
}

.pillar-summary {
  color: #555;
  font-size: 0.95rem;
  flex-basis: 100%;
  margin-top: 0.25rem;
}

.pillar-content {
  padding: 0 1.5rem 1.5rem;
}

.pillar-content p {
  margin-bottom: 1rem;
}

.detail-text ul {
  margin: 0.75rem 0 1rem 1.25rem;
  line-height: 1.6;
}

.detail-text .quote {
  font-style: italic;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  padding-left: 1rem;
  margin-top: 1rem;
}

.other-candidates-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.position-heading {
  color: #401268;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h3.position-heading {
  text-decoration: underline
}

.other-candidates-list {
  list-style: none;
  margin-left: 0;
}

.other-candidates-list li {
  padding: 0.3rem 0;
}

#learn-more {
  text-align: center;
}

#learn-more p {
  margin-bottom: 1.5rem;
}

.form-wrapper {
  display: flex;
  justify-content: center;
}

.form-wrapper iframe {
  max-width: 100%;
  border: none;
}

@media (max-width: 700px) {
  .nav-hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #401268;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav-toggle:checked ~ nav {
    display: flex;
  }

  .candidates-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-photo {
    max-height: 250px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .detail-text h3 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
}

@media (max-width: 380px) {
  .candidates-container {
    grid-template-columns: 1fr;
  }
}
