/* ==========================================================================
   Tool page ads - reserved slots for Google AdSense units.
   Used by tools/*.html alongside cluster.css and site-config.js.
   Follows the shared cluster chrome: matte black, gunmetal, red accents.
   ========================================================================== */

.tool-ads {
  display: block;
  margin: clamp(18px, 3vw, 26px) clamp(14px, 4vw, 42px) 0;
}

.tool-ads[hidden] {
  display: none;
}

/* The wrapper that replaces the empty container once a slot is filled. */
.tool-ad {
  display: block;
  max-width: 100%;
  padding: clamp(10px, 1.6vw, 14px);
  border: 1px solid var(--steel);
  border-radius: 6px;
  background: linear-gradient(180deg, #14171b, #0d0f12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tool-ad__label {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Keep a stable footprint while the provider script loads. */
.tool-ad .adsbygoogle {
  min-height: 90px;
}

.tool-ad .adsbygoogle[data-ad-status="unfilled"] {
  display: none;
}

/* ---------- Test mode placeholder ---------- */
.tool-ad--placeholder .tool-ad__box {
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 150px;
  padding: 18px;
  border: 1px dashed #3a4048;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 10px, transparent 10px 20px);
  text-align: center;
}

.tool-ad__box-title {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.tool-ad__box-note {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .tool-ad--placeholder .tool-ad__box {
    min-height: 120px;
  }
}
