/* News listing and story pages. All selectors stay within the News views. */

.news-page,
.news-article {
    padding-block-end: 80px;
    background: var(--site-ivory, #f7f6f2);
    color: var(--site-text, #25384c);
}

.news-page *,
.news-article * {
    box-sizing: border-box;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-block: 24px;
    color: var(--site-muted, #536276);
    font-size: 13px;
    line-height: 1.4;
}

.news-breadcrumb a {
    flex: 0 0 auto;
    color: var(--site-blue, #244a80) !important;
    text-decoration: none !important;
}

.news-breadcrumb a:hover {
    text-decoration: underline !important;
}

.news-breadcrumb [aria-current] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-breadcrumb > [aria-hidden] {
    color: var(--site-line-strong, #b9c5d1);
}

.news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-blue, #244a80);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.news-eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--site-gold, #b58a3b);
}

.news-page__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    padding-block: 36px 40px;
    border-block-end: 1px solid var(--site-line, #dce2e8);
}

.news-page__intro > div:first-child {
    max-width: 690px;
}

.news-page__intro h1,
.news-article__header h1 {
    margin: 12px 0 14px;
    color: var(--site-ink, #12243a);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.news-page__intro p {
    max-width: 650px;
    margin: 0;
    color: var(--site-muted, #536276);
    font-size: 17px;
    line-height: 1.7;
}

.news-page__count {
    display: grid;
    flex: 0 0 auto;
    gap: 3px;
    min-width: 160px;
    padding-inline-start: 24px;
    border-inline-start: 2px solid var(--site-gold, #b58a3b);
}

.news-page__count strong {
    color: var(--site-ink, #12243a);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.news-page__count span {
    color: var(--site-muted, #536276);
    font-size: 14px;
    line-height: 1.4;
}

.news-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: start;
    gap: 40px;
    padding-block-start: 40px;
}

.news-page__stories,
.news-page__sidebar {
    min-width: 0;
}

.news-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 20px;
}

.news-section-heading h2 {
    margin: 0;
    color: var(--site-ink, #12243a);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.3;
}

.news-section-heading > span {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    padding-inline: 8px;
    border-radius: 7px;
    background: var(--site-blue-soft, #edf2f8);
    color: var(--site-blue, #244a80);
    font-size: 13px;
    font-weight: 800;
}

.news-feature,
.news-card,
.news-side-panel {
    border: 1px solid var(--site-line, #dce2e8);
    border-radius: var(--site-radius-lg, 12px);
    background: #fff;
    box-shadow: none;
}

.news-feature,
.news-card {
    overflow: hidden;
    transition: border-color 160ms ease;
}

.news-feature:hover,
.news-card:hover {
    border-color: var(--site-line-strong, #b9c5d1);
}

.news-feature {
    display: grid;
    grid-template-columns: minmax(240px, 43%) minmax(0, 1fr);
    min-height: 300px;
}

.news-feature:not(:has(.news-feature__image)) {
    display: block;
    min-height: 0;
}

.news-feature__image,
.news-card__image {
    display: block;
    overflow: hidden;
    background: #f1f3f5;
}

.news-feature__image {
    min-height: 100%;
    border-inline-end: 1px solid var(--site-line, #dce2e8);
}

.news-feature__image img,
.news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feature__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(24px, 3vw, 36px);
}

.news-category {
    display: inline-flex;
    align-self: start;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #d9e3ee;
    border-radius: 6px;
    background: var(--site-blue-soft, #edf2f8);
    color: var(--site-blue, #244a80) !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none !important;
}

.news-category:hover {
    border-color: var(--site-blue, #244a80);
}

.news-feature h3,
.news-card h3 {
    margin: 18px 0 12px;
    color: var(--site-ink, #12243a);
    font-weight: 800;
    line-height: 1.3;
}

.news-feature h3 {
    font-size: clamp(24px, 2.6vw, 32px);
}

.news-card h3 {
    font-size: 22px;
}

.news-feature h3 a,
.news-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.news-feature h3 a:hover,
.news-card h3 a:hover {
    color: var(--site-blue, #244a80) !important;
}

.news-feature__body > p,
.news-card__body > p {
    margin: 0 0 22px;
    color: var(--site-muted, #536276);
    font-size: 15px;
    line-height: 1.75;
}

.news-feature__foot,
.news-card__foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-block-start: auto;
    padding-block-start: 22px;
    border-block-start: 1px solid var(--site-line, #dce2e8);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
}

.news-meta,
.news-card__foot time {
    color: var(--site-muted, #536276);
    font-size: 13px;
    line-height: 1.5;
}

.news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    color: var(--site-blue, #244a80) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none !important;
}

.news-read-link:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.news-read-link > [aria-hidden] {
    font-size: 19px;
    line-height: 1;
    transition: transform 160ms ease;
}

.news-read-link:hover > [aria-hidden] {
    transform: translateX(-3px);
}

[dir="ltr"] .news-read-link:hover > [aria-hidden] {
    transform: translateX(3px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-block-start: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-card__image {
    aspect-ratio: 16 / 9;
    border-block-end: 1px solid var(--site-line, #dce2e8);
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
}

.news-card h3 {
    margin-block: 14px 12px;
}

.news-card__foot {
    padding-block-start: 16px;
}

.news-page__sidebar {
    display: grid;
    gap: 16px;
}

.news-side-panel {
    padding: 24px;
}

.news-side-panel h2 {
    margin: 0 0 18px;
    color: var(--site-ink, #12243a);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.news-side-list {
    display: grid;
}

.news-side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 9px 0;
    border-block-start: 1px solid var(--site-line, #dce2e8);
    color: var(--site-text, #25384c) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.news-side-list a:hover,
.news-side-list a.is-current {
    color: var(--site-blue, #244a80) !important;
}

.news-side-list a span:last-child {
    color: var(--site-muted, #536276);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--site-line, #dce2e8);
    border-radius: 6px;
    color: var(--site-text, #25384c) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.news-tags a:hover {
    border-color: var(--site-blue, #244a80);
    color: var(--site-blue, #244a80) !important;
}

.news-empty {
    padding: 40px;
    border: 1px solid var(--site-line, #dce2e8);
    border-radius: var(--site-radius-lg, 12px);
    background: #fff;
}

.news-empty h3 {
    margin: 0 0 8px;
    color: var(--site-ink, #12243a);
    font-size: 21px;
}

.news-empty p {
    margin: 0;
    color: var(--site-muted, #536276);
}

.news-pagination {
    margin-block-start: 32px;
}

.news-pagination :is(nav, ul) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.news-pagination :is(a, span) {
    min-width: 40px;
    min-height: 40px;
}

/* Article: compact heading and media, with a comfortable reading measure. */

.news-article {
    padding-block-end: 56px;
}

.news-article .news-breadcrumb {
    padding-block: 18px;
}

.news-article__header {
    max-width: 800px;
    margin-inline: auto;
    padding-block: 12px 24px;
}

.news-article__header .news-category {
    margin-block: 12px 0;
}

.news-article__header h1 {
    margin-block: 12px 18px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.28;
}

.news-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: var(--site-muted, #536276);
    font-size: 14px;
    line-height: 1.5;
}

.news-article__meta strong {
    color: var(--site-ink, #12243a);
    font-weight: 800;
}

.news-article__author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.news-article__author img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.news-article__figure {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 720px);
    aspect-ratio: 16 / 9;
    margin: 0 auto 30px;
    overflow: hidden;
    border: 1px solid var(--site-line, #dce2e8);
    border-radius: var(--site-radius-lg, 12px);
    background: #fff;
}

.news-article__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
    max-width: 960px;
    margin-inline: auto;
}

.news-article__body {
    min-width: 0;
    max-width: 680px;
}

.news-article__content {
    overflow-wrap: anywhere;
    color: var(--site-text, #25384c);
    font-size: 16px;
    line-height: 1.8;
}

.news-article__content > :first-child {
    margin-block-start: 0;
}

.news-article__content
    :is(p, ul, ol, blockquote, table, figure, img, video, iframe) {
    margin-block-end: 18px;
}

.news-article__content :is(h2, h3, h4) {
    margin-block: 28px 12px;
    color: var(--site-ink, #12243a);
    font-weight: 800;
    line-height: 1.35;
}

.news-article__content h2 {
    font-size: 24px;
}

.news-article__content h3 {
    font-size: 20px;
}

.news-article__content :is(ul, ol) {
    padding-inline-start: 1.5em;
}

.news-article__content li {
    margin-block-end: 8px;
}

.news-article__content a {
    color: var(--site-blue, #244a80) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.news-article__content :is(img, video, iframe) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-article__content :is(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.news-article__content blockquote {
    padding: 16px 22px;
    border-inline-start: 3px solid var(--site-gold, #b58a3b);
    background: #fff;
    color: var(--site-ink, #12243a);
}

.news-article__end {
    margin-block-start: 28px;
    padding-block-start: 18px;
    border-block-start: 1px solid var(--site-line, #dce2e8);
}

.news-article__aside {
    position: sticky;
    inset-block-start: 32px;
}

.news-article__aside-label {
    margin-block-end: 8px;
    color: var(--site-muted, #536276);
    font-size: 12px;
    font-weight: 700;
}

.news-article__aside-category,
.news-article__all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    color: var(--site-blue, #244a80) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.news-article__aside-category:hover,
.news-article__all-link:hover {
    text-decoration: underline !important;
}

.news-article__all-link {
    margin-block-start: 16px;
    padding-block-start: 16px;
    border-block-start: 1px solid var(--site-line, #dce2e8);
}

.news-article__related {
    margin-block-start: 44px;
    padding-block: 36px 0;
    border-block-start: 1px solid var(--site-line, #dce2e8);
}

.news-article__related .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block-start: 0;
}

@media (max-width: 1050px) {
    .news-page__layout {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 24px;
    }

    .news-feature {
        grid-template-columns: minmax(200px, 40%) minmax(0, 1fr);
    }

    .news-feature__body {
        padding: 24px;
    }
}

@media (max-width: 800px) {
    .news-page__layout,
    .news-article__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-page__sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-article__aside {
        position: static;
    }

    .news-article__related .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .news-page,
    .news-article {
        padding-block-end: 56px;
    }

    .news-breadcrumb {
        padding-block: 18px;
    }

    .news-page__intro {
        align-items: start;
        flex-direction: column;
        gap: 24px;
        padding-block: 28px 32px;
    }

    .news-page__intro h1,
    .news-article__header h1 {
        font-size: 36px;
    }

    .news-page__intro p {
        font-size: 16px;
    }

    .news-page__count {
        min-width: 0;
    }

    .news-page__count strong {
        font-size: 28px;
    }

    .news-page__layout {
        gap: 32px;
        padding-block-start: 32px;
    }

    .news-feature {
        display: block;
        min-height: 0;
    }

    .news-feature__image {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-inline-end: 0;
        border-block-end: 1px solid var(--site-line, #dce2e8);
    }

    .news-feature__body {
        padding: 22px;
    }

    .news-feature h3 {
        font-size: 25px;
    }

    .news-grid,
    .news-page__sidebar,
    .news-article__related .news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-side-panel {
        padding: 20px;
    }

    .news-article__header {
        padding-block: 8px 20px;
    }

    .news-article__header h1 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .news-article__figure {
        margin-block-end: 24px;
    }

    .news-article__content {
        font-size: 16px;
        line-height: 1.75;
    }

    .news-article__related {
        margin-block-start: 36px;
        padding-block-start: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-feature,
    .news-card,
    .news-read-link > [aria-hidden] {
        transition: none;
    }
}
