.ad-slot[hidden],
.ad-anchor:empty { display: none !important; }

.ad-container {
    position: relative;
    margin: 1.5rem auto;
    max-width: 100%;
}

.ad-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}

.ad-horizontal img,
.ad-rectangle img,
.ad-vertical img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.ad-horizontal img { max-width: 970px; }
.ad-rectangle,
.ad-vertical { width: 100%; max-width: 300px; }

.ad-native {
    text-align: left;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 1rem;
    background: var(--white);
}
.ad-native a {
    display: grid;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
}
.ad-native img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
.ad-native-title { font-family: var(--font-display); }

.adsbygoogle { margin-top: 0.4rem; }

@media (max-width: 767px) {
    .ad-container { margin: 1.1rem auto; }
    .article-aside .ad-slot { display: none !important; }
}
