.pcbrAdSpaces {
  --pcbr-ad-background: #0b192b;
  --pcbr-ad-border: #34526d;
  --pcbr-ad-text: #9cb4ca;
  width: 100%;
  grid-column: 1 / -1;
  margin-block: 32px 12px;
}

.pcbrAdSpaces--pair,
.pcbrAdSpaces--home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 20px;
  max-width: 620px;
  margin-inline: auto;
}

.pcbrTitleAds {
  display: grid;
  grid-template-columns: clamp(64px, 18%, 180px) minmax(0, 1fr) clamp(64px, 18%, 180px);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  margin: 16px auto 24px;
}

.pcbrTitleAds__center {
  min-width: 0;
}

.pcbrTitleAds__center > .siteHeroBanner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
}

.pcbrTitleAds__center > h1 {
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 3vw, 38px);
}

.pcbrTitleAds > .pcbrAdSpaces--top {
  grid-column: auto;
  width: 100%;
  max-width: 180px;
  margin: 0;
}

.pcbrAdSpaces--top .pcbrAdSlot {
  padding: 8px;
  border-radius: 12px;
  font-size: clamp(12px, 1.5vw, 18px);
}

.pcbrAdSpaces--between {
  margin-block: 24px;
}

.pcbrAdSlot {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px dashed var(--pcbr-ad-border);
  border-radius: 16px;
  background: var(--pcbr-ad-background);
  color: var(--pcbr-ad-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.pcbrAdSlot--square {
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1;
  justify-self: center;
}

.pcbrAdSlot--banner {
  height: clamp(96px, 12vw, 140px);
}

:root[data-theme="light"] .pcbrAdSpaces {
  --pcbr-ad-background: #f0f6fb;
  --pcbr-ad-border: #a3b9cb;
  --pcbr-ad-text: #48647c;
}

@media (max-width: 640px) {
  .pcbrTitleAds {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 10px;
    margin-block: 16px;
  }

  .pcbrAdSpaces--home {
    grid-template-columns: minmax(0, 1fr);
    max-width: 300px;
  }
}
