.a24-sb-slot {
    width: min(100%, 380px);
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.a24-sb-label {
    display: table;
    margin: 0 auto 5px;
    border-radius: 3px;
    padding: 2px 6px;
    background: #f1f5f8;
    color: #34495d;
    font: 11px/1.4 system-ui, sans-serif;
}

.a24-sb-slot a,
.a24-sb-slot picture {
    display: block;
}

.a24-sb-slot img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    margin-inline: auto;
    object-fit: contain;
}

.a24-sb-slot a:focus-visible {
    outline: 2px solid #1665a8;
    outline-offset: 3px;
}

.a24-sb-slot.a24-sb-inline {
    position: static;
    box-sizing: border-box;
    width: min(100%, 970px);
    padding: 12px;
    margin: 0 auto;
}
.a24-sb-slot.a24-sb-inline img {
    max-height: 250px;
}

body.a24-sb-active {
    --a24-sb-width: clamp(112px, 10vw, 260px);
    --a24-sb-gap: 12px;
    --a24-sb-top: 0px;
    box-sizing: border-box;
    min-height: 100vh;
    padding-inline: calc(var(--a24-sb-width) + var(--a24-sb-gap));
}

@media (min-width: 783px) {
    body.a24-sb-active.admin-bar { --a24-sb-top: 32px; }
}

.a24-sb-placements .a24-sb-slot {
    position: fixed;
    z-index: 8;
    top: var(--a24-sb-top);
    bottom: 0;
    width: var(--a24-sb-width);
    background: #0a1d2c;
}

.a24-sb-slot--left { left: 0; }
.a24-sb-slot--right { right: 0; }

.a24-sb-placements .a24-sb-label {
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    top: 4px;
    width: fit-content;
    max-width: 100%;
    font-size: 9px;
    pointer-events: none;
}

.a24-sb-placements :is(.a24-sb-current, noscript, a, picture, img) {
    display: block;
    width: 100%;
    height: 100%;
}

.a24-sb-placements .a24-sb-current:empty { display: none; }

.a24-sb-placements .a24-sb-slot img {
    max-height: none;
    object-fit: fill;
}

.a24-sb-placements a:focus-visible { outline-offset: -3px; }

@media (width < 1280px) {
    body.a24-sb-active {
        --a24-sb-width: clamp(0px, (100vw - 210px) / 2, min(17.5vw, 112px));
        --a24-sb-gap: 0px;
    }
}

@media (width < 768px) {
    body.a24-sb-active :is(.header-inner, .main-nav, main.wrap) {
        width: calc(100% - 12px);
    }

    body.a24-sb-active .site-header .header-inner {
        height: auto;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.a24-sb-active .site-header .brand {
        flex: 0 0 100%;
        width: 100%;
    }

    body.a24-sb-active .site-header .header-news-tip {
        flex: 1 1 75px;
        min-width: 0;
    }

    body.a24-sb-active .site-header .header-actions {
        flex: 0 1 auto;
        max-width: 100%;
    }

    body.a24-sb-active .hero .post-meta {
        white-space: normal;
        flex-wrap: wrap;
        gap: 5px;
    }
}
