/* WordPress-specific + AdSense slot styling
   Kept separate from the main design system so it's easy to find/tweak. */

/* --- Ad slots ---------------------------------------------------- */
/* Clear visual separation from surrounding content and any tool
   buttons/forms, per AdSense placement policy: spacing, a label,
   and a subtle border so an ad can never be mistaken for part of
   a tool's UI or its next step. */
.ad-slot {
  margin: 32px auto;
  max-width: 728px;
  padding: 16px;
  border: 1px solid #E3ECE7;
  border-radius: 8px;
  background: #FAFCFB;
  text-align: center;
  overflow: hidden;
}
.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8AA79B;
  margin-bottom: 10px;
}
.ad-slot--header { margin-top: 0; }
.ad-slot--in_content { margin: 48px auto; }
.ad-slot--sidebar { max-width: 100%; margin: 0 0 24px; }
.ad-slot--footer { margin-bottom: 0; }

/* Never let an ad slot sit flush against a tool's action buttons or
   form controls — enforce extra breathing room whenever an ad slot
   directly follows one. */
.tool-actions + .ad-slot,
.form-actions + .ad-slot {
  margin-top: 40px;
}

/* --- Layout: tool page with sidebar -------------------------------- */
.tool-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.tool-with-sidebar .tool-sidebar {
  position: sticky;
  top: 96px;
}
@media (max-width: 900px) {
  .tool-with-sidebar {
    grid-template-columns: 1fr;
  }
  .tool-with-sidebar .tool-sidebar {
    position: static;
  }
}

/* --- Widgets -------------------------------------------------------- */
.widget { margin-bottom: 24px; }
.widget h4 { margin-top: 0; color: var(--green-primary, #1B5E42); }

/* --- Misc WP polish --------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
img { height: auto; }
