.page-hero-strip {
  background: var(--primary);
  padding: 48px 24px;
  border-bottom: 2px solid var(--accent);
}

.page-hero-strip h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.topic-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.topic-rail {
  position: sticky;
  top: 80px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--border);
}

.topic-rail h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.topic-rail ul {
  list-style: none;
}

.topic-rail li {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.topic-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
}

.topic-content h2:first-child {
  margin-top: 0;
}

.topic-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.topic-content ul {
  margin: 12px 0 16px 20px;
  color: var(--muted);
  font-size: 15px;
}

.topic-img-inline {
  margin: 24px 0;
  max-width: 100%;
  overflow: hidden;
}

.topic-img-inline img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .topic-layout {
    grid-template-columns: 1fr;
  }

  .topic-rail {
    position: static;
  }
}

@media (max-width: 500px) {
  .topic-img-inline img {
    max-height: 220px;
  }
}
