.topic-hero {
  position: relative;
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 180px;
  max-width: 100%;
}

.topic-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topic-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 10px;
  font-stretch: expanded;
}

.topic-hero p {
  max-width: 52ch;
  color: var(--muted);
}

.odds-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.odds-main h2 {
  margin: 22px 0 10px;
}

.odds-main p {
  margin-bottom: 12px;
}

.odds-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--surface);
  align-self: start;
  max-width: 100%;
  overflow: hidden;
}

.odds-rail .rail-img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  filter: none;
  box-shadow: 10px 10px 0 #000;
}

.odds-callout {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 16px 0;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.odds-table th,
.odds-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.odds-table th {
  background: rgba(249, 115, 22, 0.12);
  font-family: var(--font-serif);
}

.pay-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 20px;
  overflow: hidden;
}

.pay-mosaic {
  min-height: 180px;
  border: 1px solid var(--border);
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.78)),
    url("/images/decorative/decor_5.jpg");
  background-size: cover;
  background-position: center;
  margin-bottom: 28px;
  box-shadow: 12px 12px 0 #000;
  max-width: 100%;
  overflow: hidden;
}

.pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.pay-split h2 {
  margin: 18px 0 10px;
}

.pay-split p {
  margin-bottom: 12px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stat-band span {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 12px;
  text-align: center;
  font-family: var(--font-serif);
  font-stretch: expanded;
}

.license-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.license-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--primary);
  font-stretch: expanded;
  max-width: 22ch;
  margin: 8px 0 28px;
  border-left: 6px solid var(--accent);
  padding-left: 16px;
}

.license-img-wrap {
  float: right;
  width: min(320px, 42%);
  margin: 0 0 16px 20px;
  max-width: 100%;
  overflow: hidden;
}

.license-img-wrap img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  filter: none;
  box-shadow: 12px 12px 0 #000;
}

.license-wrap p {
  margin-bottom: 12px;
}

.license-wrap h2 {
  margin: 22px 0 10px;
  clear: both;
}

.types-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.types-rail {
  border: 1px solid var(--border);
  padding: 10px;
  background: var(--surface);
  align-self: start;
  max-width: 100%;
  overflow: hidden;
}

.types-rail img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  filter: none;
  box-shadow: 10px 10px 0 #000;
}

.types-copy h2 {
  margin: 22px 0 10px;
}

.types-copy p {
  margin-bottom: 12px;
}

.types-copy ul {
  padding-left: 1.2rem;
  margin: 10px 0 16px;
}

@media (max-width: 800px) {
  .odds-layout,
  .pay-split,
  .types-shell {
    grid-template-columns: 1fr;
    overflow: hidden;
    max-width: 100%;
  }

  .license-img-wrap {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .odds-rail .rail-img,
  .types-rail img,
  .license-img-wrap img,
  .pay-mosaic {
    max-width: 100%;
    max-height: 220px;
    box-shadow: none;
  }

  .topic-hero,
  .odds-layout,
  .pay-band,
  .license-wrap,
  .types-shell {
    overflow-x: hidden;
  }
}

@media (max-width: 375px) {
  .odds-rail .rail-img,
  .types-rail img,
  .license-img-wrap img,
  .pay-mosaic {
    max-width: 100%;
    width: 100%;
    max-height: 180px;
    box-shadow: none;
  }

  .pay-mosaic,
  .odds-rail,
  .types-rail,
  .license-img-wrap,
  .topic-hero,
  .pay-band {
    overflow: hidden;
    max-width: 100%;
  }
}
