/* Fixed-size advertising stays separate from the site's content and controls. */
site-advertisement { display: block; }
site-advertisement[hidden] { display: none !important; }
.site-advertisement {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 960px);
  margin: 0 auto 56px;
  padding: 18px 16px 22px;
  background: var(--surface-base, #111b1e);
  border: 1px solid var(--border-subtle, #2a3539);
  border-radius: 16px;
  text-align: center;
}
.site-advertisement__label {
  display: block;
  margin: 0 0 12px;
  color: var(--text-muted, #879698);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-advertisement__frame {
  display: block;
  flex: none;
  width: 728px;
  height: 90px;
  margin: 0 auto;
  border: 0;
  background: transparent;
}
/* Append inside the existing scrollable inspector; never change its grid size. */
#mwPanel-event > #mwAdMax {
  box-sizing: border-box;
  margin: 40px 0 16px;
  padding: 20px 0 0;
  border-top: 1px solid var(--mw-border, #33404d);
  text-align: center;
}
#mwAdMax[hidden] { display: none !important; }
#mwAdMax .site-advertisement__frame { width: 300px; height: 250px; }
@media (max-width: 839px) { .site-advertisement { display: none !important; } }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  site-advertisement, #mwAdMax { display: none !important; }
}
