/* Only enqueued for an explicitly enabled layout preview or a consented live request. */
.syj-ad {
  --syj-ad-height: 160px;
  box-sizing: border-box;
  clear: both;
  width: min(100%, 970px);
  margin: clamp(28px, 4vw, 52px) auto;
  text-align: center;
}
.syj-ad-row { grid-column: 1 / -1; min-width: 0; list-style: none; }
.syj-ad-row > .syj-ad { margin-block: 16px; }
.syj-ad__label { margin: 0 0 8px; color: #756956; font: 12px/1.4 system-ui, sans-serif; letter-spacing: .045em; }
.syj-ad__surface, .syj-ad__surface > .adsbygoogle { display: block; width: 100%; min-height: var(--syj-ad-height); }
.syj-ad[data-syj-ad-mode="preview"] .syj-ad__surface {
  box-sizing: border-box;
  border: 1px dashed #ab9370;
  border-radius: 4px;
  background: rgb(197 166 118 / 9%);
}
.syj-ad--article_mid { width: min(100%, 728px); }
.syj-ad--home_mid, .cc-theme-hub > .syj-ad, #content > .syj-ad--page_mid { width: min(calc(100% - 36px), 970px); }
.syj-ad[data-syj-ad-desktop] { display: none; }
@media (min-width: 1024px) {
  .syj-ad[data-syj-ad-desktop] {
    --syj-ad-height: 250px;
    display: block;
    width: min(100%, 300px);
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .syj-ad { --syj-ad-height: 120px; }
}

/* Local review only: make placement visibly identifiable, not a real ad. */
.syj-ad[data-syj-ad-mode="preview"] .syj-ad__surface { border: 2px dashed #aa7939; background: #f2e7d2; }

.syj-ad[hidden], .syj-ad-row[hidden], .syj-ad-preferences[hidden] { display: none; }
.syj-ad-preferences {
  display: block;
  margin: 0 auto 16px;
  border: 0;
  padding: 6px 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
