.topic-odds-hero {
  min-height: 280px;
  padding: 56px 24px 40px;
  background:
    linear-gradient(120deg, rgba(28, 30, 33, 0.92), rgba(0, 122, 255, 0.55)),
    url("/images/decorative/decor_5.webp");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.topic-odds-hero h1,
.topic-odds-hero p {
  color: #ffffff;
  max-width: 720px;
}

.topic-odds-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.topic-odds-rail {
  background: var(--surface);
  border: 3px solid var(--secondary);
  border-radius: 20px 6px;
  padding: 20px;
  height: fit-content;
  box-shadow: 8px 8px 0 rgba(66, 103, 178, 0.2);
  position: sticky;
  top: 20px;
}

.topic-odds-rail h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.topic-odds-rail ol {
  margin: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.topic-odds-rail li {
  margin-bottom: 8px;
}

.topic-prose h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.topic-prose p {
  margin-bottom: 14px;
}

.topic-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.92rem;
}

.topic-prose th,
.topic-prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  background: var(--surface);
}

.topic-prose th {
  background: rgba(0, 122, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.topic-safety-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  min-height: 320px;
}

.topic-safety-visual {
  background:
    linear-gradient(160deg, rgba(49, 162, 76, 0.35), rgba(28, 30, 33, 0.75)),
    url("/images/decorative/decor_6.jpg");
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.topic-safety-intro {
  background: #1C1E21;
  color: #ffffff;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topic-safety-intro h1 {
  color: #ffffff;
  margin-bottom: 12px;
}

.topic-safety-intro p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
}

.topic-safety-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.topic-safety-body h2 {
  margin: 28px 0 12px;
}

.topic-safety-body p {
  margin-bottom: 14px;
}

.topic-callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: rgba(0, 122, 255, 0.08);
  border-left: 6px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
}

.topic-resp-band {
  padding: 40px 24px;
  background: var(--accent);
  color: #ffffff;
  text-align: center;
}

.topic-resp-band h1 {
  color: #ffffff;
  margin-bottom: 10px;
}

.topic-resp-band p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

.topic-resp-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.topic-resp-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px 4px 16px 4px;
  padding: 22px;
  box-shadow: 5px 5px 0 rgba(49, 162, 76, 0.15);
}

.topic-resp-card h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.topic-resp-card p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.topic-resp-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: rgba(28, 30, 33, 0.04);
  padding: 24px;
  border-radius: 12px;
}

.topic-apps-strip {
  height: 180px;
  background:
    linear-gradient(to right, rgba(240, 242, 245, 0.2), rgba(0, 122, 255, 0.35)),
    url("/images/decorative/decor_8.jpg");
  background-size: cover;
  background-position: center;
}

.topic-apps-wrap {
  max-width: 880px;
  margin: -60px auto 0;
  padding: 0 24px 72px;
  position: relative;
  z-index: 2;
}

.topic-apps-panel {
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: 8px 24px 8px 24px;
  padding: 36px 28px;
  box-shadow: 10px 10px 0 rgba(66, 103, 178, 0.18);
}

.topic-apps-panel h1 {
  margin-bottom: 12px;
}

.topic-apps-panel h2 {
  margin: 26px 0 10px;
  font-size: 1.25rem;
}

.topic-apps-panel p {
  margin-bottom: 14px;
}

.topic-apps-panel ul {
  margin: 0 0 16px 1.2rem;
}

.topic-apps-panel li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .topic-odds-layout,
  .topic-safety-split,
  .topic-resp-grid,
  .topic-resp-full {
    grid-template-columns: 1fr;
  }

  .topic-odds-rail {
    position: static;
  }

  .topic-odds-hero,
  .topic-safety-visual,
  .topic-apps-strip {
    max-width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }

  .topic-apps-wrap {
    margin-top: -40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .topic-resp-full .decor-wrap {
    overflow: hidden;
    max-width: 100%;
  }

  .topic-resp-full .decor-img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 375px) {
  .topic-odds-layout,
  .topic-safety-body,
  .topic-resp-grid,
  .topic-apps-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topic-apps-strip {
    height: 140px;
    max-width: 100%;
    overflow: hidden;
  }

  .topic-safety-visual {
    min-height: 200px;
    max-width: 100%;
    overflow: hidden;
  }
}
