.ad-slot {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 970px;
    margin: var(--home-space-8) auto;
    color: var(--home-text-muted);
    container-type: inline-size;
}
.ad-slot__container { width: 100%; height: 250px; min-width: 0; }
.ad-slot--content .ad-slot__container { width: 100%; max-width: 320px; margin-inline: auto; }
.ad-slot--strip .ad-slot__container { height: 100px; }
.ad-slot--header { margin: var(--home-space-6) 0 0; }
.ad-slot--header .ad-slot__container { height: 100px; }
[data-advertising="preview"] .ad-slot__container { outline: 1px dashed var(--color-line); background: var(--color-surface); }
[data-advertising="off"] .ad-slot,
.ad-slot[data-ad-state="disabled"] { display: none; }
/* Keep the reserved geometry when an auction is empty so the reader's text does not jump. */
.ad-slot[data-ad-state="empty"] { visibility: hidden; }
.reading-result__heading { min-width: 0; }
@container (min-width: 728px) {
    .ad-slot--content .ad-slot__container { max-width: none; }
    .ad-slot--content .ad-slot__container { height: 100px; }
}
@media (min-width: 1024px) {
    [data-advertising]:not([data-advertising="off"]) .reading-result__header:has(> .ad-slot--header:not([data-ad-state="disabled"])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--home-space-8); align-items: center; }
    .ad-slot--header { margin: 0; }
    .ad-slot--header .ad-slot__container { height: 120px; }
}
@media (max-width: 767px) {
    .ad-slot:not(.ad-slot--header) { margin-block: var(--home-space-6); }
}
