/* Yksittäisen laboratorioanalyysin sivumalli. */
.test-intro {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.test-intro-inner {
  max-width: 52rem;
}

.test-intro .crumbs {
  margin-bottom: 2rem;
}

.analysis-test-page .test-intro h1 {
  max-width: 22ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.test-lead p {
  max-width: 42rem;
  font-size: 1.25rem;
  margin-block: 0 1.5rem;
}

.test-report-note p {
  max-width: 42rem;
  margin-block: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.analysis-test-page .page-canvas > .test-content {
  display: block;
  width: min(42rem, calc(100% - 2rem));
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.test-content p {
  max-width: none;
}

.test-access {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.test-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.test-preparation {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.test-preparation h2,
.test-access h2 {
  scroll-margin-top: 8rem;
}

.test-preparation li + li {
  margin-top: 1rem;
}

.test-back {
  margin-top: 2rem;
}

@media (max-width: 40rem) {
  .test-lead p {
    font-size: 1.125rem;
  }

  .test-intro .crumbs {
    font-size: 0.8125rem;
  }
}
