/* Independent of the legacy Stylus bundle. Preserve the artwork's own ratio. */
.live-tse-ad {
    width: calc(100% - 32px);
    max-width: 1170px;
    margin: 16px auto;
    clear: both;
}
.live-tse-ad a, .live-tse-ad picture, .live-tse-ad img {
    display: block;
    width: 100%;
}
.live-tse-ad img { height: auto; }
.live-tse-ad a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.live-tse-ad--mobile-only { display: none; }
.live-tse-ad + .section_1 { margin-top: 0; }
/* The legacy video offset must not pull the hero over the preceding banner. */
.live-tse-ad + .section_1 #background-video { margin-top: 0; }
.live-tse-ad--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 15 / 1;
    background: oklch(55% 0.17 145);
    color: oklch(100% 0 0);
    font: bold 18px / 1.4 sans-serif;
}
@media (max-width: 767px) {
    .live-tse-ad { max-width: 360px; margin: 12px auto; }
    .live-tse-ad--desktop-only { display: none; }
    .live-tse-ad--mobile-only { display: block; }
    .live-tse-ad--placeholder { aspect-ratio: 3 / 4; }
}

/* Keep blog ads in the same columns and gutters as the featured content. */
.blog-navigation--listing {
    position: sticky;
    top: 100px;
    margin-top: 0;
    padding-top: 10px;
}
.section_blog_1.wrapper,
.live-tse-blog-ads {
    display: grid;
    grid-template-columns: 60% 39%;
    justify-content: space-between;
    direction: rtl;
    width: calc(100% - 40px);
    max-width: 1250px;
    margin: 16px auto 0;
    padding: 0;
    clear: both;
}
.section_blog_1.wrapper::before,
.section_blog_1.wrapper::after { display: none; }
.section_blog_1.wrapper > .right,
.section_blog_1.wrapper > .left {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    float: none;
}
.section_blog_1.wrapper figure { display: block; }
.section_blog_1.wrapper .left figure + figure { margin-top: 10px; }
.section_blog_1.wrapper .live-tse-ad,
.live-tse-blog-ads .live-tse-ad {
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
}
.live-tse-ad[data-ad-slot="den_4"] {
    width: calc(100% - 40px);
    max-width: 1250px;
    margin-top: 32px;
}
.live-tse-ad--placeholder[data-ad-slot="den_4"],
.live-tse-ad--placeholder[data-ad-slot="den_5"],
.live-tse-ad--placeholder[data-ad-slot="den_6"] {
    background: oklch(82% 0.17 85);
    color: oklch(20% 0 0);
}
@media (min-width: 768px) {
    .live-tse-ad[data-ad-slot="den_5"],
    .live-tse-ad[data-ad-slot="den_6"] {
        height: 90px;
        aspect-ratio: auto;
    }
    .section_blog_1.wrapper .live-tse-ad { margin-top: auto; border-top: 16px solid transparent; box-sizing: content-box; }
    .section_blog_1.wrapper .live-tse-ad a,
    .section_blog_1.wrapper .live-tse-ad picture,
    .live-tse-blog-ads .live-tse-ad a,
    .live-tse-blog-ads .live-tse-ad picture { height: 100%; }
    .live-tse-ad[data-ad-slot="den_5"] img,
    .live-tse-ad[data-ad-slot="den_6"] img { height: 100%; object-fit: fill; }
}
@media (max-width: 767px) {
    .section_blog_1.wrapper,
    .live-tse-blog-ads { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .section_blog_1.wrapper .right figure,
    .section_blog_1.wrapper .left figure { height: auto; }
    .section_blog_1.wrapper figure img { display: block; width: 100%; height: auto; }
}

.live-tse-post-layout.main.wrapper { width: calc(100% - 40px); max-width: 1250px; margin-top: 24px; padding: 0; }
.live-tse-post-layout .live-tse-ad { float: none; width: 100%; max-width: none; margin: 0 0 20px; }
.live-tse-post-layout .live-tse-ad--placeholder { background: oklch(72% 0.14 225); color: oklch(20% 0 0); }
@media (min-width: 768px) {
    .live-tse-post-layout .live-tse-ad--placeholder { height: 100px; aspect-ratio: auto; }
}
@media (max-width: 1170px) {
    .live-tse-post-layout.main.wrapper { display: flex; flex-direction: column; }
    .live-tse-post-layout.main.wrapper > .content,
    .live-tse-post-layout.main.wrapper > aside { width: 100%; float: none; padding: 0; margin-right: 0; }
}

/* Placeholder dimensions share the upload guidance's per-slot aspect ratio. */
.live-tse-ad.live-tse-ad--placeholder[data-ad-slot] {
    height: auto;
    aspect-ratio: var(--placeholder-ratio);
}
@media (max-width: 767px) {
    .live-tse-ad.live-tse-ad--placeholder[data-ad-slot] { aspect-ratio: 3 / 4; }
}
