/* Keep an empty placement measurable for the consent and viewport gates. */
.new-tool-page .new-tool-ad {
  margin: 0;
}
.new-tool-page .new-tool-ad .ad-slot {
  display: grid;
  place-content: center;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.new-tool-page .new-ad-label {
  display: none;
}
.new-tool-page .ad-slot[hidden],
.new-tool-ad .ad-slot:has(> ins[data-ad-status="unfilled"]) {
  display: none;
}
.new-tool-ad:has(.ad-slot:not([hidden]) > ins:is([data-ad-status="filled"], [data-ad-status="unfill-optimized"])) .new-ad-label {
  display: block;
}
.new-tool-page .new-tool-ad:not(.new-tool-banner):has(.ad-slot:not([hidden]) > ins:not([data-ad-status="unfilled"])) {
  margin-block: 16px;
}
/* A zero-height measuring slot shares the heading row while empty. */
.new-tool-intro:not(:has(.ad-slot:not([hidden]) > ins:not([data-ad-status="unfilled"]))) > div {
  grid-area: 1 / 1 / 2 / -1;
}
.new-tool-intro:not(:has(.ad-slot:not([hidden]) > ins:not([data-ad-status="unfilled"]))) > .new-tool-banner {
  grid-area: 1 / -2 / 2 / -1;
  align-self: end;
}
