/* 09.1: native symptom navigation, no JavaScript required. */
.problem-index {
  padding-top: 36px;
}
.problem-index h1 {
  font-size: clamp(36px, 5vw, 60px);
}
.problem-index > .lead {
  margin: 20px 0 28px;
  font-size: 22px;
}
.symptom-navigator {
  border-top: 2px solid var(--forest);
  margin-bottom: 30px;
}
.symptom-item {
  border-bottom: 1px solid var(--line);
  background: white;
  scroll-margin-top: 100px;
}
.symptom-item summary {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.symptom-item[open] summary {
  background: var(--forest);
  color: white;
}
.symptom-body {
  padding: 20px 24px 26px;
  max-width: 880px;
}
.symptom-body p {
  margin: 0 0 14px;
}
.symptom-next {
  display: inline-block;
  color: var(--forest);
  font-weight: 700;
  text-underline-offset: 4px;
}
.problem-section-title {
  font:
    700 36px/1.2 Georgia,
    serif;
  margin: 50px 0 26px;
}
.diagnostic-stop {
  border-left: 4px solid var(--accent);
  padding: 22px 24px;
  background: #ebe7dc;
  margin: 28px 0;
}
.diagnostic-stop p {
  margin: 8px 0 0;
}
.diagnostic-route {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.diagnostic-route > div {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
}
.diagnostic-route h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.diagnostic-route p:last-child {
  margin: 0;
}
.diagnostic-figure {
  margin: 26px 0;
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
}
.diagnostic-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.diagnostic-figure figcaption {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
}
.diagnostic-photo img {
  max-height: 480px;
  object-fit: contain;
}
.evidence-note {
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
  margin: 28px 0;
}
.evidence-note h3 {
  margin-top: 0;
}
@media (max-width: 600px) {
  .symptom-item summary {
    padding: 18px;
  }
  .symptom-body {
    padding: 18px;
  }
  .diagnostic-figure {
    padding: 12px;
  }
  .diagnostic-stop {
    padding: 18px;
  }
}
@media print {
  .symptom-item {
    break-inside: avoid;
  }
  .symptom-item > .symptom-body {
    display: block;
  }
}

/* 09.26: scoped navigation aids; article layouts remain unchanged. */
.problem-index #unclear { scroll-margin-top: 100px; }
.problem-index .evidence-note h2 { margin-top: 0; font-size: 1.5rem; line-height: 1.3; }
.problem-index .evidence-note li { margin: .6rem 0; }
.problem-index .evidence-note a,
.problem-index .symptom-body a { text-decoration: underline; text-underline-offset: 3px; }
.problem-index a:focus-visible,
.problem-index summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
