.topic-hero {
  background: var(--bg);
  border-bottom: 4px solid var(--bauhaus-black);
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}

.topic-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  text-transform: lowercase;
  font-size: clamp(26px, 4vw, 40px);
}

.topic-hero::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bauhaus-red);
  border: 4px solid var(--bauhaus-black);
  top: -20px;
  right: 10%;
  opacity: 0.35;
}

.topic-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.topic-wrap h2 {
  text-transform: lowercase;
  color: var(--primary);
  margin: 28px 0 12px;
  font-size: 22px;
}

.topic-wrap h3 {
  text-transform: lowercase;
  margin: 18px 0 8px;
  font-size: 17px;
}

.topic-wrap p {
  margin-bottom: 14px;
}

.topic-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.topic-rail {
  position: sticky;
  top: 70px;
  background: var(--surface);
  border: 4px solid var(--bauhaus-black);
  padding: 16px;
}

.topic-rail strong {
  display: block;
  text-transform: lowercase;
  margin-bottom: 10px;
  color: var(--primary);
}

.topic-rail ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.topic-band {
  margin: 28px 0;
  padding: 24px;
  background: var(--surface);
  border: 4px solid var(--bauhaus-black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.topic-band--img {
  background-image: linear-gradient(rgba(46, 16, 101, 0.72), rgba(76, 29, 149, 0.78)), var(--topic-bg);
  background-size: cover;
  background-position: center;
  color: var(--text);
  min-height: 180px;
}

.topic-quote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 8px solid var(--bauhaus-yellow);
  background: rgba(244, 114, 182, 0.08);
  font-size: 18px;
  text-transform: lowercase;
}

.topic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.topic-table th,
.topic-table td {
  border: 2px solid var(--bauhaus-black);
  padding: 10px 12px;
  text-align: left;
}

.topic-table th {
  background: var(--bauhaus-blue);
  text-transform: lowercase;
}

.topic-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.topic-cols > div {
  border: 3px solid var(--bauhaus-black);
  padding: 16px;
  background: rgba(91, 33, 182, 0.3);
}

.topic-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 800px) {
  .topic-split,
  .topic-band,
  .topic-cols,
  .topic-mosaic {
    grid-template-columns: 1fr;
  }

  .topic-rail {
    position: static;
  }

  .topic-wrap .decor-wrap {
    overflow: hidden;
    max-width: 100%;
  }

  .topic-wrap .decor-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 220px;
  }
}

@media (max-width: 375px) {
  .topic-hero,
  .topic-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topic-wrap .decor-img {
    max-width: 100%;
    max-height: 180px;
  }
}
