/* Normal-flow banners: never cover controls or steal input focus. */
.promo-top,
.promo-bottom,
.banner-layout {
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: 24px;
}
.promo-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 22px 0;
}
.promo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f0e9db;
  min-width: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
  color: #202925;
}
.promo-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 22px #0000000d;
}
.promo-card strong {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.promo-card > span:not(.promo-symbol) {
  font-size: 0.85rem;
  line-height: 1.5;
}
.promo-label {
  display: block;
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #59605b;
}
.promo-symbol {
  font-size: 2.8rem;
  line-height: 1.15;
}
.promo-cta {
  font-weight: 750;
  margin-top: auto;
}
.promo-tools {
  background: #e8eee6;
}
.promo-games {
  background: #f1e7fc;
}
.promo-modutt {
  background: #fff0d4;
}
.promo-print {
  background: #e8f0f6;
}
.promo-top .promo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  padding: 15px 20px;
}
.promo-top .promo-symbol {
  grid-column: 2;
  grid-row: 1/5;
  font-size: 2.3rem;
  align-self: center;
}
.promo-top .promo-cta {
  display: none;
}
.banner-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: start;
}
.banner-main {
  min-width: 0;
}
.banner-main .container,
.banner-main .hero {
  padding-inline: 0;
}
.promo-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 40px;
}
.promo-rail .promo-card {
  min-height: 290px;
}
.promo-rail .promo-symbol {
  font-size: 3.8rem;
  margin-block: 20px;
}
.affiliate-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-block: 24px;
}
.affiliate-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.affiliate-inner strong {
  font-size: 1.2rem;
}
.affiliate-inner p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 65ch;
}
.affiliate-inner a {
  background: #d72b35;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 10px;
  white-space: nowrap;
}
.affiliate-inner > div {
  flex: 1;
}
.affiliate-inner .promo-symbol {
  color: #d72b35;
}
.promo-bottom {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  margin-block: 36px;
}
.promo-bottom .affiliate-banner {
  margin-top: 0;
}
.promo-bottom .promo-card {
  padding: 18px;
}
.promo-bottom .promo-card .promo-symbol {
  display: none;
}
.network-ad {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  min-width: 0;
}
.ad-surface {
  width: 300px;
  min-height: 250px;
  margin: 12px auto 0;
  display: grid;
  place-items: center;
  background: #f7f7f3;
  max-width: 100%;
}
.ad-surface iframe {
  border: 0;
  display: block;
  max-width: 100%;
}
.ad-explanation {
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  line-height: 1.65;
}
.ad-explanation strong {
  font-size: 1.15rem;
}
.ad-explanation button {
  font-size: 0.8rem;
}
.network-ad .quiet {
  font-size: 0.75rem;
  margin-top: 8px;
}
@media (max-width: 1199px) {
  .banner-layout {
    grid-template-columns: 140px minmax(0, 1fr) 140px;
    gap: 14px;
    padding-inline: 16px;
  }
  .promo-rail .promo-card {
    padding: 15px;
  }
  .banner-main .hero {
    grid-template-columns: 1fr;
  }
  .banner-main .hero .intro {
    max-width: none;
  }
  .banner-main .workspace {
    grid-template-columns: 1fr;
  }
  .banner-main .editor {
    border-left: 0;
  }
}
@media (max-width: 899px) {
  .banner-layout {
    display: flex;
    flex-direction: column;
    padding-inline: 20px;
  }
  .banner-main {
    width: 100%;
    order: 0;
  }
  .promo-rail {
    width: 100%;
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 1;
  }
  .promo-rail .promo-card {
    min-height: 170px;
  }
  .promo-rail .promo-symbol {
    font-size: 2rem;
    margin: 0;
  }
  .promo-top {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }
  .promo-top .promo-card {
    grid-template-columns: 1fr auto;
  }
  .promo-top .promo-card > span:not(.promo-label):not(.promo-symbol) {
    display: none;
  }
  .promo-top .promo-symbol {
    grid-row: 1/3;
    font-size: 1.6rem;
  }
  .promo-top .promo-card {
    padding: 10px 16px;
  }
  .promo-bottom {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }
  .network-ad {
    justify-self: center;
    width: 100%;
    max-width: 450px;
  }
  .affiliate-inner {
    flex-wrap: wrap;
  }
  .affiliate-inner > div {
    min-width: 180px;
  }
  .affiliate-inner a {
    white-space: normal;
  }
  .promo-bottom > div {
    min-width: 0;
  }
}
@media print {
  .promo-top,
  .promo-rail,
  .promo-bottom,
  .affiliate-banner {
    display: none !important;
  }
  .banner-layout {
    display: block;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promo-card:hover {
    transform: none;
  }
}

/* Official, unmodified artwork from each service's public promotion kit. */
.official-banner { display:block; min-width:0; text-decoration:none; }
.official-banner .promo-label { margin:0 0 7px; }
.official-banner picture { display:block; }
.official-banner img { display:block; width:100%; height:auto; border-radius:8px; }
.official-banner:hover img { outline:2px solid var(--line); outline-offset:3px; }
.official-banner:focus-visible { outline:3px solid currentColor; outline-offset:5px; }
.promo-top { align-items:center; }
.promo-rail { align-items:center; }
.official-rail { width:160px; max-width:100%; }
.official-bottom-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:center; }
.official-bottom-grid .affiliate-banner { grid-column:1/-1; }
@media(max-width:899px) {
  .promo-top { grid-template-columns:1fr; max-width:480px; gap:16px; }
  .promo-rail { display:block; }
  .official-rail { width:320px; margin-inline:auto; }
  .official-rail img { aspect-ratio:320/100; }
  .official-bottom-grid { grid-template-columns:1fr; max-width:400px; margin-inline:auto; gap:24px; }
}

.tool-shortcut { max-width:1720px; margin:14px auto 0; padding-inline:24px; text-align:right; }
.tool-shortcut a { display:inline-block; min-height:44px; padding:10px 16px; border:1px solid var(--line); border-radius:99px; background:var(--paper, #fff); font-weight:700; text-decoration:none; }
@media print { .tool-shortcut { display:none; } }

/* Keep all official banners reachable without pushing the mobile tool away. */
@media (max-width: 899px) {
  .promo-top {
    width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
    padding-block: 6px 12px;
    align-items: start;
  }
  .promo-top > .official-banner { scroll-snap-align: start; }
  .promo-top:focus-visible { outline: 3px solid var(--accent, #226b58); outline-offset: -3px; }
}

@media (max-width: 899px) { .promo-top:focus-within { scroll-snap-type: none; } }
