/* Phone Cases For Her × BirdLedger sponsor units */
.pcfh-ad {
  --pcfh-max-width: 970px;
  box-sizing: border-box;
  width: min(var(--pcfh-max-width), calc(100% - 32px));
  margin: 14px auto 24px;
  text-align: center;
}

.pcfh-ad *,
.pcfh-ad *::before,
.pcfh-ad *::after {
  box-sizing: border-box;
}

.pcfh-ad__label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  color: #66716b;
  font: 600 10px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}

.pcfh-ad__link {
  display: block;
  width: 100%;
  margin: 0 auto;
  line-height: 0;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 63, 48, .13);
}

.pcfh-ad__link:focus-visible {
  outline: 3px solid #153f30;
  outline-offset: 4px;
}

.pcfh-ad__media,
.pcfh-ad__media img {
  display: block;
  width: 100%;
}

.pcfh-ad__media {
  aspect-ratio: 97 / 25;
}

.pcfh-ad__media img {
  height: 100%;
  object-fit: cover;
}

/* Medium screens use the standard 728×90 leaderboard. */
@media (min-width: 600px) and (max-width: 1099px) {
  .pcfh-ad--top {
    --pcfh-max-width: 728px;
  }

  .pcfh-ad--top .pcfh-ad__media {
    aspect-ratio: 728 / 90;
  }
}

/* Small screens use the purpose-built 320×100 creative. */
@media (max-width: 599px) {
  .pcfh-ad {
    width: min(320px, calc(100% - 24px));
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .pcfh-ad--top .pcfh-ad__media {
    aspect-ratio: 16 / 5;
  }
}

/* Square unit for articles, reviews, and narrow sidebars. */
.pcfh-ad--square {
  --pcfh-max-width: 300px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.pcfh-ad--square .pcfh-ad__media {
  aspect-ratio: 6 / 5;
}

/* Prevent a hidden legacy duplicate from leaving blank space. */
[data-pcfh-legacy-hidden="true"] {
  display: none !important;
}
