/* Manual AdSense slots: compact while empty, hidden when unfilled. */
.ad-unit {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
  padding: 0;
  word-break: keep-all;
}
/* First slot: below the input card on mobile (>=24px from 계산 버튼).
   On desktop, sits under the two-column grid, >=24px from 공유하기. */
.ad-unit-after {
  margin-top: 28px;
  margin-bottom: 28px;
}
/* /toejik/: between company dashboard and the calculator, keep clear of tabs/buttons. */
#company-dashboard + .ad-unit-after {
  margin-top: 32px;
  margin-bottom: 32px;
}
@media (min-width: 880px) {
  .grid > .card:not(.score) { grid-column: 1; grid-row: 1; }
  .grid > .card.score { grid-column: 2; grid-row: 1; }
  .grid > .ad-unit-after {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 32px;
    margin-bottom: 8px;
  }
}
/* Second slot: top of explanatory article, after the first section. */
.ad-unit-article { margin: 28px 0 32px; }
/* Hub: between the first calculator card and the next. */
.ad-unit-hub {
  margin: 28px 0;
  max-width: 100%;
}
@media (min-width: 800px) {
  .cards .calc-card.toejik { grid-column: 1; grid-row: 1; }
  .cards .calc-card.silsu { grid-column: 2; grid-row: 1; }
  .cards .ad-unit-hub {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 28px 0 8px;
  }
  .cards .calc-card.ija { grid-column: 1; grid-row: 3; }
  .cards .calc-card.bunyu { grid-column: 2; grid-row: 3; }
}
.ad-unit-label {
  display: block;
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
}
.ad-unit-frame {
  display: block;
  min-height: 0;
  overflow: hidden;
}
.ad-unit.is-pending .ad-unit-frame {
  min-height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--chip, #eee) 55%, transparent);
}
.ad-unit .adsbygoogle {
  display: block;
  min-height: 1px;
}
.ad-unit.is-unfilled,
.ad-unit[hidden],
.ad-unit:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}
