/* Match the 1200 × 480 editorial cover at every display width. */
.aied-news-hero,
:is(.aied-hm-news-image, .aied-rc-news-cover),
:is(body.archive, body.blog, body.search) .ast-blog-featured-section .post-thumb-img-content > a,
.ast-related-post-featured-section .post-thumb-img-content > a {
    aspect-ratio: 5 / 2 !important;
    background: var(--aied-night-surface, var(--news-paper, #f5f8fc));
    overflow: hidden;
}

.aied-news-hero {
    width: 100%;
    max-width: 880px;
    margin: 0 auto clamp(1.25rem, 2.8vw, 2rem);
}

.ast-related-post-featured-section .post-thumb-img-content > a {
    display: block;
}

.single-post .entry-content .aied-news-hero > img,
:is(.aied-hm-news-image, .aied-rc-news-cover) img,
:is(body.archive, body.blog, body.search) .ast-blog-featured-section .post-thumb-img-content > a > img,
.ast-related-post-featured-section .post-thumb-img-content > a > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
}

.single-post .entry-content .aied-news-hero > img {
    border-radius: 0;
}

/* Dates already appear next to article titles. Keep the compact cover clear. */
@media (max-width: 1280px) {
    :is(body.archive, body.blog, body.search) .ast-blog-featured-section > .post-thumb-img-content + a:has(.ast-date-meta) {
        display: none !important;
    }
}

.single-post .entry-content #aied-citlab-original {
    margin-block: 1.2em 1.75em;
    text-align: start;
    scroll-margin-top: 8rem;
}

.single-post .entry-content #aied-citlab-original p {
    margin-block: 0 .95em !important;
}

.single-post .entry-content #aied-citlab-original .aied-citlab-title {
    margin-block-end: .55em !important;
    font-size: 1.15em !important;
    font-weight: 700;
    line-height: 1.55 !important;
}

.single-post .entry-content #aied-citlab-original :is(.aied-citlab-author, .aied-citlab-affiliation) {
    margin-block-end: .25em !important;
    font-size: .9em !important;
    color: var(--news-muted, #52677c);
}

.single-post .entry-content #aied-citlab-original .aied-citlab-author {
    font-weight: 600;
}

.single-post .entry-content #aied-citlab-original .aied-citlab-affiliation + :not(.aied-citlab-affiliation) {
    margin-block-start: 1.25em !important;
}

.single-post .entry-content #aied-citlab-original .aied-citlab-abstract {
    padding: .85em 1em;
    background: var(--aied-night-surface, var(--news-paper, #f5f8fc));
    border: 1px solid var(--aied-night-line, var(--news-line, #dbe5ef));
    border-radius: .35rem;
}

.single-post .entry-content #aied-citlab-original .aied-citlab-keywords {
    font-size: .92em !important;
    color: var(--news-muted, #52677c);
}

.single-post .entry-content #aied-citlab-original h2 {
    margin: 1.75em 0 .65em;
    padding: 0;
    border: 0;
    font-size: 1.27em;
    line-height: 1.55;
}

.single-post .entry-content #aied-citlab-original h3 {
    margin: 1.3em 0 .45em;
    font-size: 1.09em;
    line-height: 1.6;
}

#aied-citlab-original .aied-citlab-section-number {
    margin-inline-end: .4em;
    font-variant-numeric: tabular-nums;
}

.single-post .entry-content #aied-citlab-original img {
    margin-block: 1.35em;
}

@media print {
    .aied-news-hero {
        display: none;
    }
}

/* Compact, semantic CITLAB tables; wide source tables scroll within the article. */
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll {
    max-inline-size: 100%;
    margin-block: .6em 1.25em;
    overscroll-behavior-inline: contain;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll:focus-visible {
    outline: 2px solid var(--news-accent, #215795);
    outline-offset: 3px;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll > table {
    display: table !important;
    table-layout: fixed;
    inline-size: 100% !important;
    min-inline-size: 14em;
    margin-block: 0 !important;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll > table:has(thead th:nth-child(5)) {
    min-inline-size: 36em;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll :is(th, td) {
    padding: .5em .45em;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: start;
    vertical-align: top;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll caption {
    padding-block: .35em .55em;
    text-align: start;
    font-weight: 600;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll
    > table:has(> caption.aied-citlab-table-caption) thead th:first-child {
    inline-size: 32%;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll
    > table:has(> caption.aied-citlab-table-caption) thead th:last-child {
    inline-size: 17%;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-scroll
    > table:has(> caption.aied-citlab-table-caption) :is(th, td) {
    padding-inline: .45em !important;
}
.single-post .entry-content #aied-citlab-original .aied-citlab-table-transcript > summary {
    cursor: pointer;
    min-block-size: 2.75rem;
    padding-block: .45em;
}
