.topic-hero {
  padding: 4rem 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.topic-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: center;
}

.topic-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.topic-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.topic-hero__img img {
  max-width: 500px;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--property-radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.topic-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 20px 4rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
}

.topic-rail {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.topic-rail__nav a {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--secondary);
}

.topic-rail__nav a:hover {
  color: var(--accent);
}

.topic-prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
}

.topic-prose h2:first-child {
  margin-top: 0;
}

.topic-prose p {
  margin-bottom: 1.15rem;
  color: rgba(250, 250, 250, 0.88);
}

.topic-callout {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(34, 197, 94, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
}

@media (max-width: 900px) {
  .topic-hero__inner,
  .topic-body {
    grid-template-columns: 1fr;
  }

  .topic-rail {
    position: static;
  }
}

@media (max-width: 375px) {
  .topic-hero__img {
    max-width: 100%;
    overflow: hidden;
  }

  .topic-hero__img img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }
}
