/* Copyright 2026 HMZ-MTR / CyberTools. All rights reserved. */
/* ══════════════════════════════════════════════════════════════════
   AD SLOTS: reserved spaces for Google AdSense on the tool pages.
   To go live, replace the .ad-placeholder inside each .ad-slot with
   the AdSense <ins class="adsbygoogle"> code for that slot.
   ══════════════════════════════════════════════════════════════════ */

.ad-layout { position: relative; }

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.ad-label {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: .5rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted, #4e824e);
}

.ad-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--border2, #243a24);
  background: rgba(0, 255, 65, .015);
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-muted, #4e824e);
  text-align: center;
}

/* ── Side rails (160x600), only where there is room beside the tool ── */
.ad-rail {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 1;
}

.ad-rail-left { left: calc(50% - 520px - 160px); }
.ad-rail-right { right: calc(50% - 520px - 160px); }

.ad-rail .ad-slot {
  position: sticky;
  top: 76px; /* below the navbar */
}

.ad-rail .ad-box { width: 160px; height: 600px; }

@media (min-width: 1400px) {
  .ad-rail { display: block; }
}

/* ── Bottom banner (728x90 desktop, 320x100 phones) ── */
.ad-banner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto 1rem;
  padding: 0 3rem;
}

.ad-banner .ad-box { width: 100%; max-width: 728px; height: 90px; }

@media (max-width: 760px) {
  .ad-banner { padding: 0 1rem; }
  .ad-banner .ad-box { max-width: 320px; height: 100px; }
}
