.jw-news-home {
    position: relative;
    margin-block: clamp(24px, 4vw, 52px) 0;
}

.jw-news-home__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 36px;
    padding: clamp(20px, 3.5vw, 44px);
    color: #062c3d;
    background: #e8f4f2;
    border: 1px solid #c0dcda;
    border-radius: 20px;
}

.jw-news-home__card h2 {
    margin: 0 0 8px;
    padding: 0;
    color: inherit;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.15;
}

.jw-news-home__card p {
    margin: 0;
    padding: 0;
}

.jw-news-home .jw-news-home__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    align-self: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 8px;
    background: #062c3d;
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.jw-news-home .jw-news-home__link:hover,
.jw-news-home .jw-news-home__link:focus-visible {
    background: #0d4053;
    color: #fff;
    text-decoration: underline;
}

.jw-news-home a:focus-visible,
.jw-news a:focus-visible {
    outline: 2px solid #065e63;
    outline-offset: 4px;
}

.jw-news {
    background: #fff;
    color: #17313b;
    padding-bottom: clamp(40px, 7vw, 88px);
}

body:has(.jw-news__list) #jw-page-author {
    display: none;
}

.jw-news__shell {
    width: min(840px, calc(100% - 40px));
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.jw-news__header {
    padding-block: clamp(32px, 6vw, 76px);
    background: #e8f4f2;
}

.jw-news__header h1 {
    margin: 0 0 12px;
    padding: 0;
    color: #062c3d;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.jw-news__header p {
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.55;
}

.jw-news__list {
    padding-top: clamp(24px, 5vw, 56px);
}

.jw-news__item {
    padding: 24px 0;
    border-bottom: 1px solid #c0dcda;
}

.jw-news__item:first-child {
    padding-top: 0;
}

.jw-news__item time {
    color: #406067;
    font-size: 0.9rem;
}

.jw-news__item h2 {
    margin: 6px 0;
    padding: 0;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.25;
}

.jw-news a {
    color: #065e63;
    text-decoration: underline;
    text-underline-offset: 0.17em;
}

.jw-news__story {
    --news-title-bg: #1d3441;
    --news-caption-bg: #edf5f3;
    --news-accent: #356b75;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.jw-news__trail {
    padding: 1.65rem 1.25rem .5rem;
    background: #062c3d;
    color: #e1ecee;
    font-size: .88rem;
    line-height: 1.4;
}

.jw-news__trail a {
    color: #e1ecee;
}

.jw-news__trail a:focus-visible {
    outline-color: #e1ecee;
}

.jw-news__hero {
    background: var(--news-title-bg);
}

.jw-news__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 3.25rem);
    background: var(--news-title-bg);
    text-align: center;
}

.jw-news__title h1 {
    margin: 0 0 .85rem;
    padding: 0;
    color: #fff;
    font: 700 clamp(1.8rem, 7.2vw, 2.5rem)/1.12 Georgia, "Times New Roman", serif;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.jw-news__title .jw-news__byline {
    margin: 0;
    padding: 0;
    color: #e1ecee;
    font-size: .9rem;
    line-height: 1.5;
}

.jw-news__photo {
    min-width: 0;
    margin: 0;
}

.jw-news__photo a {
    display: block;
    position: relative;
}

.jw-news__photo a:focus-visible {
    z-index: 1;
    outline-offset: -5px;
}

.jw-news__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 31rem;
    object-fit: cover;
    border-radius: 0;
}

.jw-news__hero-credit {
    margin: 0 0 .85rem;
    color: #375359;
    font-size: .79rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.jw-news__hero-credit p {
    margin: 0;
    padding: 0;
}

.jw-news__body {
    display: flow-root;
    width: min(820px, calc(100% - 40px));
    margin: clamp(1.55rem, 3.2vw, 2.5rem) auto 0;
    font-size: clamp(1.03rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    overflow-wrap: break-word;
}

.jw-news__body > p {
    margin: 0 0 1.2em;
    padding: 0;
}

.jw-news__body > :last-child {
    margin-bottom: 0;
}

.jw-news__body p.has-drop-cap:not(:focus)::first-letter {
    float: left;
    margin: .055em .14em 0 0;
    color: var(--news-accent);
    font: 600 3.27em/.88 Georgia, "Times New Roman", serif;
}

.jw-news__body > h2 {
    margin: clamp(1.55rem, 3.5vw, 2.5rem) 0 .65rem;
    padding: 0;
    color: #173847;
    font: 700 clamp(1.45rem, 2.6vw, 2rem)/1.2 Georgia, "Times New Roman", serif;
}

.jw-news__body > h2::before {
    display: block;
    width: 2.4rem;
    height: 3px;
    margin-bottom: .5em;
    border-radius: 3px;
    background: var(--news-accent);
    content: "";
}

.jw-news__body > figure.wp-block-image:has(> figcaption) {
    overflow: hidden;
    border-radius: .85rem;
}

.jw-news__body > figure.wp-block-image img {
    display: block;
    height: auto;
}

.jw-news__body > figure.wp-block-image > figcaption {
    margin: 0;
    padding: .7rem .9rem;
    background: var(--news-caption-bg);
    color: #244652;
    font-size: .83rem;
    line-height: 1.5;
    text-align: left;
}

@media (min-width: 960px) {
    .jw-news__hero--with-photo {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        grid-template-rows: minmax(clamp(21rem, 33vw, 29rem), auto);
    }

    .jw-news__photo a {
        height: 100%;
    }

    .jw-news__photo img {
        position: absolute;
        inset: 0;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
    }

    .jw-news__title h1 {
        font-size: clamp(1.875rem, 3vw, 2.8rem);
    }
}

.jw-news .pagination {
    margin-top: 26px;
}

@media (max-width: 620px) {
    .jw-news-home__card {
        align-items: flex-start;
        flex-direction: column;
    }

    .jw-news-home .jw-news-home__link {
        align-self: flex-start;
    }
}
