.news-archive,
.news-story,
.news-related {
    --news-space: clamp(44px, 7vw, 100px);
    --news-line: rgb(235 242 250 / .2);
    --news-corner: clamp(22px, 4vw, 56px);
}

.news-archive {
    padding-block: clamp(40px, 5vw, 72px) var(--news-space);
    background: linear-gradient(148deg, var(--surface), var(--bg) 58%);
}

.news-archive__heading { margin-bottom: clamp(24px, 4vw, 46px); }
.news-archive__heading .short-rule,
.news-story__heading .short-rule {
    display: block;
    margin: 20px 0 0;
}

.news-index { margin-top: clamp(42px, 7vw, 95px); }
.news-index > h2,
.news-related h2 {
    padding-bottom: .6em;
    border-bottom: 1px solid var(--news-line);
    margin-bottom: 32px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 48px) clamp(22px, 3vw, 42px);
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--news-line);
}

.news-card__image {
    overflow: hidden;
    border-radius: var(--news-corner) var(--news-corner) 0 0;
    background: var(--surface);
}

.news-card__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:focus-within .news-card__image img { transform: scale(1.035); }
@media (hover: hover) {
    .news-card:hover .news-card__image img { transform: scale(1.035); }
}

.news-card__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-block: 20px 22px;
}

.news-card time,
.news-story time {
    display: block;
    color: var(--yellow);
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.news-card__title { font-size: var(--h4); }
.news-card__title a::after { content: ''; position: absolute; inset: 0; }
.news-card__copy p { color: var(--muted); max-width: 55ch; }

.news-card__more,
.news-back {
    display: inline-flex;
    align-items: center;
    gap: .65em;
    color: var(--yellow);
    font-size: .9rem;
    font-weight: 700;
}

.news-card__more { margin-top: auto; padding-top: .4rem; }
.news-card__more svg { width: 1em; height: 1em; }
.news-back svg { width: 1.1em; height: 1.1em; transform: rotate(180deg); }
.news-back:hover { color: var(--ink); }

.news-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: var(--news-corner);
    background: linear-gradient(125deg, var(--surface), var(--bg));
}

.news-card--featured .news-card__image { border-radius: 0; }
.news-card--featured:not(:has(.news-card__image)) { grid-template-columns: minmax(0, 1fr); }
.news-card--featured .news-card__image img { height: 100%; aspect-ratio: 16 / 10; }
.news-card--featured .news-card__copy {
    justify-content: center;
    gap: 16px;
    padding: clamp(24px, 4vw, 60px);
}
.news-card--featured .news-card__title { font-size: var(--h2); }
.news-card--featured .news-card__more { margin-top: .4rem; }
.news-card--featured a:focus-visible { outline-offset: 3px; }

.news-archive .pagination { display: block; margin-top: 2.5rem; }
.news-archive .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.news-archive .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    padding: .5em .8em;
    border: 1px solid var(--news-line);
    border-radius: 999px;
}
.news-archive .page-numbers.current { border-color: var(--yellow); color: var(--yellow); }

.news-story {
    padding-block: clamp(34px, 5vw, 66px) var(--news-space);
    background: radial-gradient(ellipse at top left, var(--surface), var(--bg) 58%);
}

.news-back { margin-bottom: clamp(22px, 3.5vw, 42px); }
.news-story__layout { display: grid; row-gap: clamp(26px, 5vw, 65px); }
.news-story--with-cover .news-story__layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-areas: "title cover" "body body";
    align-items: start;
    column-gap: clamp(25px, 5vw, 76px);
}

.news-story--compact.news-story--with-cover .news-story__layout {
    grid-template-areas: "title cover" "body cover";
    grid-template-rows: auto 1fr;
    row-gap: clamp(18px, 3vw, 36px);
}

.news-story--with-cover .news-story__heading { grid-area: title; align-self: center; }
.news-story--compact .news-story__heading { align-self: start; }
.news-story__heading h1 { margin: 14px 0 0; text-wrap: balance; }

.news-story__cover {
    grid-area: cover;
    overflow: hidden;
    border-radius: var(--news-corner);
}
.news-story__cover img {
    width: auto;
    height: auto;
    max-height: 500px;
    margin-inline-start: auto;
    border-radius: inherit;
}

.news-story--with-cover .news-story__body { grid-area: body; }
.news-story__body { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); line-height: 1.7; min-width: 0; }
.news-story__body > * + * { margin-block-start: 1.35em; }
.news-story__body > :is(p, ul, ol, h2, h3, h4, blockquote, .wp-block-buttons) {
    width: 100%;
    max-width: 67ch;
    margin-inline: auto;
}
.news-story__body > .wp-block-image { width: fit-content; max-width: min(100%, 67ch); margin-inline: auto; }
.news-story__body :is(.wp-block-image, .wp-block-gallery) img { border-radius: clamp(12px, 2vw, 28px); }
.news-story__body figcaption { color: var(--muted); font-size: .875rem; }
.news-story__body a { color: var(--ink); }
.news-story__body a:hover { color: var(--yellow); }
.news-story__body .wp-block-button__link {
    background: var(--yellow);
    color: var(--bg);
    padding: .65em 1.3em;
    font-weight: 700;
    text-decoration: none;
}
.news-story__body .wp-block-button__link:hover { background: var(--ink); color: var(--bg); }
.news-story__body a[data-gallery] { display: block; cursor: zoom-in; }
.news-story__body a[data-gallery] img { transition: filter .2s ease; }
.news-story__body a[data-gallery]:is(:hover, :focus-visible) img { filter: brightness(.86); }

.news-story__body .wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 27px);
    margin-block-start: clamp(24px, 5vw, 68px);
}
.news-story__body .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    width: auto;
    margin: 0;
}
.news-story__body .wp-block-gallery.has-nested-images img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.news-related {
    padding-block: clamp(32px, 5vw, 64px) var(--news-space);
    border-top: 1px solid var(--news-line);
    background: var(--surface);
}

.home-news {
    position: relative;
    padding-block: 160px 180px;
    background: linear-gradient(316deg, var(--bg) 0%, var(--surface) 69%);
}

.home-news__outlines {
    position: absolute;
    inset: 0;
    overflow-x: clip;
    pointer-events: none;
}

.home-news__outlines .outline:nth-of-type(2) { width: 284px; }

.home-news__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "cards intro";
    gap: 80px;
}

.home-news__grid {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 40px;
}

.home-news__intro { grid-area: intro; align-self: center; margin-block-start: 52px; }
.home-news__intro h2 { font-size: 36px; line-height: 1.1; }
.home-news__intro .short-rule { width: 80px; height: 4px; margin-block: 30px 28px; }
.home-news__intro p { font-size: 18px; line-height: 1.5; color: rgb(235 242 250 / .71); }

.home-news__archive { margin-top: 30px; }

.news-card--home { border-bottom: 0; }

.news-card--home .news-card__image {
    flex: none;
    margin-bottom: 25px;
    padding: 14px;
    border: 1px solid rgb(255 255 255 / .25);
    border-radius: 40px;
    background: transparent;
}

.news-card--home .news-card__image img {
    height: 210px;
    aspect-ratio: auto;
    border-radius: 30px;
}

.news-card--home .news-card__copy {
    display: grid;
    grid-template: "title title" auto "excerpt excerpt" 1fr "action date" auto / minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 12px;
    padding: 4px 0 0;
}

.news-card--home .news-card__title {
    grid-area: title;
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}
.news-card--home .news-card__title a::after { content: none; }
.news-card--home .news-card__title a:hover { color: var(--blue); }

.news-card--home .news-card__copy p {
    grid-area: excerpt;
    margin-bottom: 30px;
    max-width: none;
    font-size: 17px;
    line-height: 1.55;
}

.news-card--home time {
    grid-area: date;
    color: var(--blue);
    font-size: 15px;
    line-height: 1.33;
    font-variant-numeric: tabular-nums lining-nums;
}

.news-card--home .news-card__more {
    grid-area: action;
    justify-self: start;
    margin: 0;
    min-height: 39px;
    padding: 10px 30px;
    border-radius: 30px;
    background: var(--yellow);
    color: var(--bg);
    font-size: 14px;
    line-height: 1.33;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color .25s ease;
}
.news-card--home .news-card__more:hover { background: var(--ink); }

@media (min-width: 1100px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .home-news__intro { align-self: start; margin-block-start: 115%; }
}

@media (max-width: 1366px) {
    .home-news { padding-block: 90px; }
}

@media (max-width: 1024px) {
    .home-news__layout { width: min(1290px, calc(100% - 60px)); }
    .home-news__intro { align-self: start; margin-block-start: 105%; }
    .home-news__intro h2 { font-size: 27px; }
}

@media (max-width: 880px) {
    .home-news { padding-block: 70px; }
    .home-news__layout { gap: 30px; }
    .home-news__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .home-news__layout { grid-template: "intro" "cards" / minmax(0, 1fr); }
    .home-news__intro { margin-block-start: 0; }
    .home-news__outlines .outline:first-of-type { display: none; }
    .home-news__outlines .outline:nth-of-type(2) { left: 63%; }
    .home-news__archive { margin-top: 26px; }
}

@media (max-width: 950px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .news-card--featured { grid-template-columns: minmax(0, 1fr); }
    .news-story--with-cover .news-story__layout,
    .news-story--compact.news-story--with-cover .news-story__layout {
        grid-template: "title" "cover" "body" / minmax(0, 1fr);
        row-gap: 25px;
    }
    .news-story__body .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (prefers-reduced-motion: reduce) {
    .news-card__image img { transform: none !important; transition: none; }
}
