.health-page {
  padding-bottom: 3rem;
}

.health-tool-header,
.health-intro {
  margin-bottom: 1.5rem;
}

.health-intro,
.health-tool-intro {
  max-width: 40rem;
}

.health-intro p,
.health-tool-intro p {
  margin: 0 0 0.75rem;
}

.health-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.health-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
}

.health-card-link {
  display: block;
  padding: 1.35rem 1.25rem 1.2rem;
  text-decoration: none;
  color: inherit;
}

.health-card-link:hover,
.health-card-link:focus {
  background: #f6f6f6;
}

.health-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #666;
}

.health-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.health-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0.55rem;
  color: #666;
  font-size: 0.95rem;
}

.health-card-copy {
  margin: 0 0 0.85rem;
  color: #555;
  line-height: 1.45;
}

.health-card-cta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}

.health-panel {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 1.4rem 1.25rem 1.25rem;
  margin: 0 0 1rem;
}

.health-units {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
}

.health-unit,
.health-secondary {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.health-unit.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.health-fields {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.health-fields[hidden] {
  display: none;
}

.health-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.health-field-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: #666;
}

.health-field-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 400;
  color: #111;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.health-field-row--split input {
  flex: 1;
}

.health-form-error {
  margin: 0 0 0.85rem;
  color: #7a1f1f;
  font-size: 0.92rem;
}

.health-submit {
  appearance: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.health-submit:hover,
.health-submit:focus {
  background: #333;
  border-color: #333;
}

.health-result {
  margin-top: 0;
}

.health-bmi-value {
  margin: 0.15rem 0 0.35rem;
  font-family: athelas, georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1;
}

.health-score-max {
  font-size: 0.42em;
  letter-spacing: 0;
  color: #666;
}

.health-bmi-label {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.health-bmi-bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #6a7a8a 0%,
    #6a7a8a 14%,
    #3d5c3a 14%,
    #3d5c3a 40%,
    #8a6b2a 40%,
    #8a6b2a 60%,
    #6b3a1f 60%,
    #6b3a1f 80%,
    #4a2020 80%,
    #4a2020 100%
  );
  margin: 0 0 0.4rem;
}

.health-bmi-marker {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #111;
  transform: translateY(-50%);
}

.health-bmi-scale {
  position: relative;
  height: 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.health-bmi-scale span {
  position: absolute;
  transform: translateX(-50%);
}

.health-bmi-copy {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

.health-note {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.health-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.health-questions {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.health-question-text {
  margin: 0 0 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.health-options {
  display: grid;
  gap: 0.4rem;
}

.health-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  font-weight: 400;
  cursor: pointer;
}

.health-option:hover,
.health-option:focus-within {
  background: #f6f6f6;
}

.health-option:has(input:checked) {
  border-color: #111;
  background: #f4f4f4;
}

.health-option input {
  margin: 0;
}

@media (min-width: 40em) {
  .health-fields {
    grid-template-columns: 1fr 1fr;
  }

  .health-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .health-option {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 50em) {
  .health-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .health-tool,
  .health-panel {
    max-width: none;
    border: none;
    padding: 0;
    margin: 0 0 1rem;
  }

  .health-option {
    break-inside: avoid;
  }
}
