/* Ad slot layout — test placeholders + live AdSense frames */

.ad-slot{
  display:block;
  background:transparent;
  border:0;
  margin:0 auto;
  text-align:center;
  overflow:hidden;
}

/* Grey test boxes (only when ads-test-mode / placeholder) */
.ad-slot--placeholder,
.ads-test-mode .ad-slot:not([data-ad-slot-id]){
  background:
    repeating-linear-gradient(
      -45deg,
      #1a1f27,
      #1a1f27 8px,
      #1e242e 8px,
      #1e242e 16px
    );
  border:1px dashed #3d4e63;
  border-radius:8px;
  color:var(--muted,#8b98a9);
  font:600 11px/1.4 ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.4px;
  text-transform:uppercase;
  min-height:90px;
}

.ad-slot__ph{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  min-height:inherit;
  padding:12px;
  opacity:.85;
}

/* Desktop right gutter — fixed rail (anvil / rocks / FAQ only; home & alloy use other slots) */
#ad-rail{
  display:none;
}
@media (min-width:1400px){
  #ad-rail{
    display:block;
    position:fixed;
    top:96px;
    right:16px;
    width:300px;
    z-index:15;
    max-height:calc(100vh - 120px);
    overflow:auto;
  }
  #ad-rail .ad-slot{
    width:300px;
    min-height:250px;
    margin-bottom:14px;
  }
  #ad-rail .ad-slot--skyscraper,
  #ad-rail .ad-slot[data-ad-height="600"]{
    min-height:600px;
  }
  /* No fixed right rail on home (banner under cards) or alloy (side ad beside content) */
  body.view-home #ad-rail,
  body.view-alloy #ad-rail{
    display:none !important;
  }
}

/* When live AdSense renders, let it size itself */
.ads-live-mode .ad-slot ins.adsbygoogle{
  min-height:90px;
}

/* Hide test chrome from print */
@media print{
  #ad-rail,#ad-home,.ad-side{display:none !important}
}
