.candidates-test-page {
  --test-petrol: #174b48;
  --test-petrol-dark: #103936;
  --test-carmine: #8b2737;
  --test-carmine-dark: #6f1d2b;
  --test-gold: #bd8735;
  --test-ivory: #f7f2e8;
  --test-mist: #e4ece8;
}

.candidates-test-page .candidates-hero {
  border-top: 0.45rem solid var(--test-petrol);
}

.candidates-test-page .candidates-hero__eyebrow,
.candidates-test-page .candidates-hero__title span {
  color: var(--test-carmine);
}

.candidates-test-page .candidates-hero__separator {
  background: var(--test-carmine);
}

.candidates-test-page .candidates-hero__count {
  min-height: clamp(17rem, 19vw, 21rem);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  border: 0;
  background: var(--test-carmine);
  color: var(--test-ivory);
  box-shadow: 0 18px 42px rgba(74, 21, 32, 0.2);
}

.candidates-test-page .candidates-hero__count span {
  color: rgba(247, 242, 232, 0.84);
}

.candidates-test-page .candidates-manifesto {
  background: var(--test-petrol-dark);
  color: var(--test-ivory);
}

.candidates-test-page .candidates-manifesto__kicker {
  color: #e1b568;
}

.candidates-test-page .candidates-manifesto__copy p {
  color: rgba(247, 242, 232, 0.82);
}

.candidates-test-page .candidates-manifesto__closing {
  border-color: #e1b568;
}

.candidates-event {
  background: var(--test-ivory);
}

.candidates-event__figure {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.72fr);
  min-height: clamp(24rem, 34vw, 36rem);
  margin: 0;
}

.candidates-event__figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.candidates-event__figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5.5rem);
  background: var(--test-carmine);
  color: var(--test-ivory);
}

.candidates-event__figure figcaption span {
  color: #f0c77b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.candidates-event__figure figcaption strong {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 400;
  line-height: 1.12;
}

.candidates-event__figure figcaption p {
  margin: 1.4rem 0 0;
  color: rgba(247, 242, 232, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.candidates-test-page .candidates-directory {
  background: var(--test-mist);
}

.candidates-test-page .candidates-directory__header {
  border-color: var(--test-carmine);
}

.candidates-test-page .candidates-directory__header p,
.candidates-test-page .candidates-directory__header > span {
  color: var(--test-carmine);
}

.candidates-test-page .candidates-directory__header h2 {
  color: var(--test-petrol-dark);
}

.candidates-test-page .candidates-tools {
  border-color: rgba(23, 75, 72, 0.52);
  background: #f4f7f3;
  box-shadow: 0 12px 30px rgba(16, 57, 54, 0.08);
}

.candidates-test-page .candidates-tools label > span,
.candidates-test-page .candidates-tools__status {
  color: var(--test-petrol);
}

.candidates-test-page .candidates-tools input,
.candidates-test-page .candidates-tools select {
  border-color: rgba(23, 75, 72, 0.34);
  background: #ffffff;
}

.candidates-test-page .candidates-tools__reset {
  border-color: var(--test-carmine);
  background: var(--test-carmine);
  color: #ffffff;
}

.candidates-test-page .candidates-tools__reset:hover {
  background: var(--test-carmine-dark);
}

.candidates-test-page .candidate-card {
  --candidate-accent: var(--test-petrol);
  border-color: rgba(23, 75, 72, 0.28);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 57, 54, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.candidates-test-page .candidate-card:nth-child(3n + 2) {
  --candidate-accent: var(--test-carmine);
}

.candidates-test-page .candidate-card:nth-child(3n) {
  --candidate-accent: var(--test-gold);
}

.candidates-test-page .candidate-card:hover {
  transform: translateY(-0.4rem);
  border-color: var(--candidate-accent);
  box-shadow: 0 20px 42px rgba(16, 57, 54, 0.18);
}

.candidates-test-page .candidate-card__media > span[aria-hidden="true"] {
  background: var(--candidate-accent);
  color: #ffffff;
}

.candidates-test-page .candidate-card__body {
  border-top: 0.3rem solid var(--candidate-accent);
  background: #ffffff;
}

.candidates-test-page .candidate-card h3 {
  color: var(--test-petrol-dark);
}

.candidates-test-page .candidate-card h3::after {
  background: var(--candidate-accent);
}

.candidates-test-page .candidate-card:has(.candidate-card__laureate) {
  --candidate-accent: var(--test-gold);
  border: 2px solid var(--test-carmine);
}

.candidates-test-page .candidate-card__laureate {
  background: var(--test-gold);
  color: var(--test-petrol-dark);
}

.candidates-test-page .candidate-card__zoom {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(16, 57, 54, 0.9);
}

.candidates-test-page .candidate-card__zoom:hover {
  background: var(--test-carmine);
  color: #ffffff;
}

.candidates-test-page .candidates-signature {
  border-color: var(--test-carmine);
  background: var(--test-ivory);
}

.candidates-test-page .candidates-signature p {
  color: var(--test-petrol);
}

.candidates-test-page .candidates-signature strong {
  color: var(--test-carmine);
}

@media (max-width: 820px) {
  .candidates-test-page .candidates-hero__count {
    padding: 1.5rem;
  }

  .candidates-event__figure {
    grid-template-columns: 1fr;
  }

  .candidates-event__figure img {
    aspect-ratio: 4 / 3;
  }

  .candidates-event__figure figcaption {
    padding: 2.2rem var(--section-padding) 2.5rem;
  }
}

@media (max-width: 560px) {
  .candidates-test-page .main-nav {
    width: 100%;
  }

  .candidates-test-page .nav-list {
    width: min(100%, 22rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.7rem;
    margin-inline: auto;
  }

  .candidates-test-page .nav-link {
    justify-content: center;
    text-align: center;
  }

  .candidates-test-page .candidates-hero__count {
    align-items: center;
  }

  .candidates-test-page .candidates-hero__lead {
    width: min(100%, 18rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .candidates-event__figure figcaption strong {
    font-size: 2rem;
  }

  .candidates-test-page .candidate-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidates-test-page .candidate-card {
    transition: none;
  }
}
