/*
 * <landing-ad placement="header|footer"> — fixed publisher banners (docs/advertising/spec.md).
 * Linked from <head> (render-blocking) rather than injected by landingAds.js: the module script is
 * deferred, so styles it injected would arrive after first paint and the page would jump. Tag
 * selectors also style the element before it is upgraded.
 *
 * Sizes: 50px below 640px; 50px header + 60px footer from 640px through 767px; 90px from 768px.
 * The body padding reserves that space; each page keeps its own sticky-header offset (90px/50px).
 */
landing-ad {
  position: fixed;
  left: 50%;
  z-index: 100;
  display: block;
  width: 100vw;
  height: 90px;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(11, 14, 17, 0.72);
  backdrop-filter: blur(12px);
}
landing-ad[placement='header'] {
  top: 0;
}
landing-ad[placement='footer'] {
  bottom: 0;
}
.landing-ad__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(728px, 100vw);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}
body {
  padding: 90px 0;
}
@media (max-width: 767px) {
  body {
    padding: 50px 0;
  }
  landing-ad {
    height: 50px;
  }
}
@media (max-width: 639px) {
  body {
    padding-bottom: 50px;
  }
}
@media (min-width: 640px) and (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }
  landing-ad[placement='footer'] {
    height: 60px;
  }
}
