/* Advertising has its own space after navigation, outside every interactive tool.
   Keep the unit in normal document flow so it scrolls away with the header. */
.ph-ad-rail {
    display: block;
    position: static;
    width: 100%;
    margin: 18px 0 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line, #2b3339);
    background: none;
    text-align: center;
}
.ph-ad-rail[hidden] { display: none !important; }
.ph-ad-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted, #9aa7ad);
    font: 500 9px/1.4 'IBM Plex Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ph-ad-slots { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px; }
.ph-ad-slot { width: 100%; max-width: 970px; min-width: 0; }
/* Unit dimensions are injected inline by ad-manager.js, as required by AdSense. */
.ph-ad-slot[data-size] { flex: 0 1 300px; }
.ph-ad-slot[data-size='300x250'] { min-height: 250px; }
.ph-ad-slot[data-size='300x100'] { min-height: 100px; }
.ph-ad-slot > [data-banner-id] { width: 300px; max-width: 100%; }
@media (max-width: 640px) {
    .ph-ad-rail { margin-top: 14px; padding-bottom: 14px; }
}
