:root {
    --aid-news-navy: #08101f;
    --aid-news-blue: #235ff5;
    --aid-news-text: #18243a;
    --aid-news-muted: #667085;
    --aid-news-line: #d9e0ea;
    --aid-news-panel: #f4f7fb;
}

.aid-single-news .site-content {
    background: #fff;
}

.aid-single-news .site-content > .ast-container {
    display: block;
    width: min(100% - 48px, 1400px);
    max-width: 1400px;
    margin-inline: auto;
    padding: 34px 0 72px;
}

.aid-news-single,
.aid-news-article {
    width: 100%;
    margin: 0;
}

.aid-news-article {
    padding: 28px 0 54px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none !important;
}

.aid-news-header {
    max-width: 1180px;
    margin: 0 auto 30px;
}

.aid-news-rail-label {
    font: 700 9px/1.4 "JetBrains Mono", monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--aid-news-blue);
}

.aid-news-header h1 {
    max-width: 1120px;
    margin: 0;
    color: var(--aid-news-navy);
    font: 600 clamp(36px, 2.75vw, 43px)/1.14 "Playfair Display", Georgia, serif;
    letter-spacing: 0;
    text-wrap: balance;
}

.aid-news-standfirst {
    max-width: 760px;
    margin: 20px 0 0;
    color: #3e4b61;
    font: 400 18px/1.6 Inter, Arial, sans-serif;
}

.aid-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--aid-news-muted);
    font: 500 11px/1.4 Inter, Arial, sans-serif;
}

.aid-news-meta > span[aria-hidden] {
    width: 3px;
    height: 3px;
    background: #a7b0bf;
}

.aid-news-cover {
    width: min(100%, 1180px);
    aspect-ratio: 3 / 2;
    margin: 0 auto 42px;
    overflow: hidden;
    border-radius: 6px;
    background: #08101f;
}

.aid-news-cover img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
}

.aid-news-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(220px, 260px);
    justify-content: center;
    gap: clamp(32px, 3.5vw, 52px);
    align-items: start;
}

.aid-news-body {
    min-width: 0;
    padding: 0 !important;
    color: var(--aid-news-text);
    font: 400 17px/1.75 Inter, Arial, sans-serif;
}

.aid-news-body > :first-child {
    margin-top: 0 !important;
}

.aid-news-body p {
    margin: 0 0 1.45em;
}

.aid-news-body h2,
.aid-news-body h3,
.aid-news-body h4 {
    position: relative;
    color: var(--aid-news-navy);
    letter-spacing: 0;
    text-wrap: balance;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.aid-news-body h2 {
    scroll-margin-top: 28px;
    margin: 2.25em 0 .7em;
    padding: 0 !important;
    font: 600 29px/1.25 "Playfair Display", Georgia, serif;
}

.aid-news-body h2::before {
    display: none !important;
    content: none !important;
}

.aid-news-body h3 {
    margin: 1.8em 0 .65em;
    font: 600 22px/1.35 "Playfair Display", Georgia, serif;
}

.aid-news-body h4 {
    margin: 1.6em 0 .6em;
    font: 700 16px/1.45 Inter, Arial, sans-serif;
}

.aid-news-body a {
    color: #164ed1;
    text-decoration-color: rgba(35, 95, 245, .35);
    text-underline-offset: 3px;
}

.aid-news-body blockquote {
    margin: 32px 0;
    padding: 4px 0 4px 22px;
    border-left: 2px solid var(--aid-news-blue);
    color: #334158;
    font-size: 19px;
    line-height: 1.65;
}

.aid-news-body img,
.aid-news-body figure {
    max-width: 100%;
}

.aid-news-body > p:last-child:has(> a:first-child) {
    color: var(--aid-news-muted);
    font-size: 13px;
}

.aid-news-end-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding: 18px 0;
    border-top: 1px solid var(--aid-news-line);
    border-bottom: 1px solid var(--aid-news-line);
    color: #46546b;
    font: 600 13px/1.4 Inter, Arial, sans-serif;
}

.aid-news-end-actions .aid-engagement__button {
    min-height: 38px;
    padding-inline: 12px;
    border-color: var(--aid-news-line);
    background: #fff;
}

.aid-news-rail {
    position: sticky;
    top: 24px;
    padding: 22px 20px 0;
    border: 1px solid var(--aid-news-line);
    background: #fff;
}

.aid-news-outline ol {
    margin: 15px -20px 0;
    padding: 0;
    list-style: none;
}

.aid-news-outline li {
    margin: 0;
    border-top: 1px solid var(--aid-news-line);
}

.aid-news-outline a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 13px 20px;
    color: #334158;
    font: 500 12px/1.45 Inter, Arial, sans-serif;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.aid-news-outline a > span {
    padding-top: 1px;
    color: #98a2b3;
    font: 600 9px/1.45 "JetBrains Mono", monospace;
}

.aid-news-outline a:hover,
.aid-news-outline a:focus-visible {
    background: var(--aid-news-panel);
    color: var(--aid-news-blue);
    outline: none;
}

.aid-news-outline a:hover > span,
.aid-news-outline a:focus-visible > span {
    color: var(--aid-news-blue);
}

.aid-news-source {
    margin: 0 -20px;
    padding: 18px 20px 20px;
    border-top: 1px solid var(--aid-news-line);
    background: var(--aid-news-panel);
}

.aid-news-source a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: var(--aid-news-navy);
    text-decoration: none;
}

.aid-news-source strong {
    font: 600 13px/1.4 Inter, Arial, sans-serif;
}

.aid-news-source a > span {
    color: var(--aid-news-blue);
    font: 500 16px/1 Inter, Arial, sans-serif;
}

.aid-news-source a:hover strong,
.aid-news-source a:focus-visible strong {
    color: var(--aid-news-blue);
}

.aid-news-followup {
    max-width: 1180px;
    margin: 54px auto 0;
}

.aid-news-followup .aid-related-content {
    margin-top: 0;
    padding: 30px;
    border: 0;
    border-radius: 7px;
    background: var(--aid-news-panel);
}

.aid-news-followup .aid-related-content__grid {
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.aid-news-followup .aid-related-content__item {
    border: 1px solid var(--aid-news-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 960px) {
    .aid-single-news .site-content > .ast-container {
        width: min(100% - 32px, 820px);
        padding-block: 30px 60px;
    }

    .aid-news-article {
        padding: 38px 42px 46px;
    }

    .aid-news-content-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .aid-news-rail {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
        padding-top: 18px;
        border: 1px solid var(--aid-news-line);
    }

    .aid-news-outline ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aid-news-outline li:nth-child(even) {
        border-left: 1px solid var(--aid-news-line);
    }

    .aid-news-source {
        margin: -18px -20px 0 20px;
        border-top: 0;
        border-left: 1px solid var(--aid-news-line);
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    .aid-single-news .site-content {
        padding: 0 !important;
    }

    .aid-single-news .site-content > .ast-container {
        width: 100%;
        padding: 0 0 44px !important;
    }

    #primary.aid-news-single {
        padding: 0 !important;
    }

    .aid-single-news .aid-news-article {
        padding: 0 20px 42px !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .aid-news-header {
        margin: 0 -20px;
        padding: 20px 20px 18px;
        border-bottom: 1px solid #e4e9f1;
        background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    }

    .aid-news-header h1 {
        max-width: none;
        font-size: clamp(28px, 7.35vw, 31px);
        line-height: 1.14;
        text-wrap: pretty;
    }

    .aid-news-standfirst {
        margin-top: 15px;
        font-size: 16px;
        line-height: 1.55;
    }

    .aid-news-meta {
        margin-top: 16px;
        font-size: 10px;
    }

    .aid-news-cover {
        width: auto;
        margin: 0 -20px 24px;
        border-radius: 0;
    }

    .aid-single-news .aid-news-cover img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .aid-news-body {
        font-size: 16px;
        line-height: 1.72;
    }

    .aid-news-body > p:first-child {
        margin-bottom: 1.8em;
        color: #3e4b61;
        font-size: 18px;
        line-height: 1.62;
    }

    .aid-news-body h2 {
        margin-top: 1.75em;
        margin-bottom: .62em;
        font-size: 24px;
        line-height: 1.28;
    }

    .aid-news-body h3 {
        font-size: 21px;
    }

    .aid-news-rail {
        display: block;
        padding: 0;
        border: 0;
    }

    .aid-news-outline {
        display: none;
    }

    .aid-news-source {
        margin: 0;
        padding: 16px 0;
        border-top: 1px solid var(--aid-news-line);
        border-bottom: 1px solid var(--aid-news-line);
        border-left: 0;
        background: transparent;
    }

    .aid-news-source a {
        margin-top: 7px;
    }

    .aid-news-followup {
        margin: 34px -20px 0;
    }

    .aid-news-followup .aid-related-content {
        margin: 0;
        padding: 26px 20px 28px;
        border-radius: 0;
    }

    .aid-news-followup .aid-related-content__head {
        margin-bottom: 18px;
    }

    .aid-news-followup .aid-related-content__head h2 {
        font-size: 24px;
    }

    .aid-news-followup .aid-related-content__grid {
        display: grid;
        gap: 10px;
    }

    .aid-news-followup .aid-related-content__item {
        border-radius: 6px;
    }

    .aid-news-followup .aid-related-content__item:first-child > a {
        display: block;
    }

    .aid-news-followup .aid-related-content__item:first-child .aid-related-content__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .aid-news-followup .aid-related-content__item:first-child .aid-related-content__body {
        padding: 17px 18px 16px;
    }

    .aid-news-followup .aid-related-content__item:first-child h3 {
        font-size: 17px;
    }

    .aid-news-end-actions {
        margin-top: 34px;
        padding-block: 15px;
    }

    .aid-news-end-actions > span {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .aid-news-header h1 {
        font-size: 28px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .aid-news-single *,
    .aid-news-single *::before,
    .aid-news-single *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
