/* Candidate-page styles; the shared site stylesheet remains unchanged. */
.site-header .nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  height: auto;
  min-height: 92px;
  padding-block: 16px;
  gap: 28px;
}
.site-header .brand {
  min-width: 0;
}
.candidate-tii-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  flex-shrink: 0;
}
.candidate-tii-mark {
  width: 56px;
  height: 56px;
}
.candidate-tii-wordmark {
  width: 131px;
  height: auto;
}
.candidate-tii-logo:focus-visible {
  outline: 2px solid #6400ff;
  outline-offset: 6px;
}
.candidate-footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}
@media (max-width: 900px) {
  .site-header .nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
@media (max-width: 620px) {
  .site-header .nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .site-header .candidate-tii-mark {
    width: 44px;
    height: 44px;
  }
  .site-header .candidate-tii-wordmark {
    width: 103px;
  }
  .candidate-footer-side {
    align-items: flex-start;
  }
}

.candidate-header {
  padding: 52px 0 48px;
}
.candidate-header-grid {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.candidate-heading {
  min-width: 0;
}
.candidate-heading .section-kicker {
  margin-bottom: 16px;
}
.candidate-heading h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.candidate-given-name,
.candidate-family-name {
  display: block;
}
.candidate-family-name {
  white-space: nowrap;
}
.candidate-subtitle {
  max-width: none;
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.4;
  margin: 18px 0 8px;
}
@media (max-width: 900px) {
  .candidate-header-grid {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 28px;
  }
  .candidate-portrait img {
    width: 160px;
    height: 198px;
  }
}
@media (max-width: 700px) {
  .candidate-header {
    padding: 32px 0 36px;
  }
  .candidate-header-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .candidate-portrait img {
    width: 150px;
    height: 186px;
  }
  .candidate-heading h1 {
    font-size: clamp(1.75rem, 7.5vw, 3rem);
    line-height: 1.12;
  }
  .candidate-family-name {
    /* Allow natural wrapping if text enlargement or a very narrow view needs it. */
    white-space: normal;
    overflow-wrap: break-word;
  }
  .candidate-subtitle {
    margin-top: 16px;
  }
}
