.ad-unit {
  position: relative;
  display: none;
  clear: both;
  isolation: isolate;
  z-index: 0;
  width: 100%;
  margin: 30px 0;
  padding: 14px 14px 16px;
  border: 1px solid rgba(212,114,30,.18);
  border-top: 3px solid var(--amber);
  border-radius: 2px;
  background:
    radial-gradient(circle at 16% 0%, rgba(240,168,64,.10), transparent 34%),
    linear-gradient(135deg, rgba(212,114,30,.085), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 48%),
    var(--s1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 18px 45px rgba(0,0,0,.24);
  overflow: hidden;
  contain: layout paint;
  transition: opacity .25s ease, max-height .25s ease, margin .25s ease, padding .25s ease, border-width .25s ease;
}

.ad-unit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 34px);
  opacity: .45;
}

.ad-unit::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,114,30,.75));
  pointer-events: none;
}

.ad-unit--active {
  display: block;
}

.ad-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--ffd);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-label span {
  display: inline-flex;
  align-items: center;
  min-height: 13px;
}

.ad-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212,114,30,.18), rgba(255,255,255,.045), transparent);
}

.ad-slot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 90px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,114,30,.08), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(255,255,255,.018)),
    rgba(8,8,5,.74);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.22),
    inset 0 22px 70px rgba(0,0,0,.22);
}

.ad-unit .adsbygoogle {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 90px;
  border-radius: 2px;
  background: transparent;
}

.ad-unit iframe {
  max-width: 100%;
  border-radius: 2px;
  background: #fff;
}

.ad-unit--pending {
  opacity: .82;
}

.ad-unit--pending .ad-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
  background-size: 180% 100%, auto;
  animation: atsAdSheen 1.8s ease-in-out infinite;
}

.ad-unit--filled {
  opacity: 1;
  border-color: rgba(212,114,30,.26);
}

.ad-unit--filled .ad-slot {
  background: rgba(7,7,5,.46);
}

.ad-unit--collapsed {
  display: none;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.ad-unit--home-leader,
.ad-unit--article-leader {
  max-width: 970px;
  margin-left: auto;
  margin-right: auto;
}

.ad-unit--home-leader .adsbygoogle,
.ad-unit--article-leader .adsbygoogle {
  min-height: 120px;
}

.ad-unit--home-feed,
.ad-unit--listing-feed {
  width: 100%;
  max-width: none;
  margin: 30px 0 40px;
}

.ad-unit--section-break {
  clear: both;
}

.ad-unit--home-feed .ad-slot,
.ad-unit--listing-feed .ad-slot {
  display: grid;
  place-items: center;
  min-height: 106px;
  padding: 8px;
}

.ad-unit--home-feed .adsbygoogle,
.ad-unit--listing-feed .adsbygoogle {
  display: block !important;
  width: 100% !important;
  height: 90px !important;
  min-height: 90px;
  max-width: none;
}

.ad-unit--home-feed iframe,
.ad-unit--listing-feed iframe {
  width: 100% !important;
  max-width: none !important;
}

.ad-unit--sidebar {
  box-sizing: border-box;
  margin: 0 0 36px;
  padding: 12px;
  max-height: none;
  overflow: hidden;
}

.ad-unit--sidebar .ad-slot,
.ad-unit--sidebar .adsbygoogle {
  min-height: 250px;
}

.ad-unit--sidebar .ad-slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 250px;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
}

.ad-unit--sidebar .adsbygoogle {
  width: 250px !important;
  height: 250px !important;
  min-height: 250px;
  max-width: 100%;
  overflow: hidden;
}

.ad-unit--sidebar iframe {
  width: 250px !important;
  height: 250px !important;
  max-width: 250px !important;
  max-height: 250px !important;
}

.ad-unit--article-inline .ad-slot,
.ad-unit--article-inline .adsbygoogle {
  min-height: 130px;
}

.ad-unit--article-after {
  max-width: 100%;
  margin: 42px 0 46px;
  padding: 12px 16px;
}

.ad-unit--article-after .ad-slot {
  display: grid;
  place-items: center;
  min-height: 106px;
  padding: 8px;
}

.ad-unit--article-after .adsbygoogle {
  width: 728px !important;
  height: 90px !important;
  min-height: 90px;
  max-width: 100%;
}

@keyframes atsAdSheen {
  0% { background-position: 120% 0, 0 0; opacity: .35; }
  50% { opacity: .72; }
  100% { background-position: -80% 0, 0 0; opacity: .35; }
}

@media (max-width: 700px) {
  .ad-unit {
    margin: 22px 0;
    padding: 12px;
  }

  .ad-slot,
  .ad-unit .adsbygoogle {
    min-height: 100px;
  }

  .ad-unit--sidebar {
    display: none !important;
  }

  .ad-unit--article-after {
    display: none !important;
  }

  .ad-unit--sidebar .ad-slot,
  .ad-unit--sidebar .adsbygoogle {
    min-height: 180px;
  }
}
