.route-candidates {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-candidates {
  flex: 1 0 auto;
}

.page-candidates .candidates-panel {
  flex: 1 0 auto;
  border-bottom: 0;
}

.candidates-panel .panel-inner {
  gap: 32px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.candidate-card {
  border: 4px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}

.candidate-card .candidate-photo,
.candidate-detail .candidate-photo {
  border: 3px solid var(--line);
  background: var(--paper);
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.candidate-card img,
.candidate-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-card .candidate-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.candidate-name {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
}

.candidate-position {
  font-weight: 700;
  color: var(--primary);
}

.candidate-location {
  color: var(--muted);
  font-size: 15px;
}

.candidate-blurb {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.candidate-card .btn {
  margin-top: 8px;
  width: fit-content;
}

.candidate-detail {
  background: #fff;
}

.candidate-detail .candidate-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 28px;
  align-items: start;
}

.candidate-detail .candidate-photo.large {
  width: 100%;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.candidate-bio {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
  max-width: 820px;
}
