.news-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fdf6ea;
    color: #344238;
    font-family: 'Nunito Sans', sans-serif;
}

.news-width {
    width: min(70rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.news-header {
    border-bottom: 1px solid #d9e6d8;
    background: radial-gradient(ellipse at 84% 0%, #f9e8d0, transparent 57%),
        linear-gradient(145deg, #f2fcf5, #fff 72%);
}

.news-nav,
.news-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-nav {
    padding-block: 1.125rem;
    border-bottom: 1px solid #d9e6d8;
}

.news-nav__logo {
    color: #195938;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.625rem;
    font-weight: 600;
}

.news-nav__links,
.news-footer nav {
    display: flex;
    align-items: center;
    gap: clamp(.65rem, 3vw, 1.5rem);
    font-size: .9rem;
    font-weight: 700;
}

.news-nav__links [aria-current] {
    color: #164930;
    text-decoration: underline;
    text-underline-offset: .35em;
}

.news-heading {
    padding-block: clamp(2.5rem, 7vw, 5rem);
}

.news-heading--detail {
    padding-block: clamp(1.75rem, 5vw, 3.5rem);
}

.news-heading h1,
.news-card h2,
.home-news h2,
.home-news h3,
.home-notice-dialog h2 {
    color: #164930;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    line-height: 1.13;
    overflow-wrap: anywhere;
}

.news-heading h1 {
    max-width: 24ch;
    font-size: clamp(2.6rem, 8vw, 4.8rem);
}

.news-heading--detail h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
}

.news-heading p {
    max-width: 42ch;
    margin-top: .85rem;
    font-size: clamp(1rem, 2.6vw, 1.22rem);
    line-height: 1.6;
}

.news-date {
    display: inline-block;
    color: #4c6755;
    font-size: .875rem;
    font-weight: 700;
}

.news-heading .news-date {
    margin-top: 1rem;
}

.news-back,
.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #1b7043;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.news-back {
    margin-bottom: 1rem;
}

.news-main {
    flex: 1;
    padding-block: clamp(1.6rem, 5vw, 4rem);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: clamp(1rem, 3vw, 1.75rem);
}

.news-card,
.news-article,
.news-empty {
    background: #fff;
    border: 1px solid #e1e8dd;
    border-radius: 1.65rem;
    box-shadow: 0 12px 35px -26px #16493080;
}

.news-card {
    display: grid;
    align-content: start;
    overflow: hidden;
}

.news-card__image {
    position: relative;
    background: #1b3d2c;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 29%;
}

.news-card__content,
.news-article,
.news-empty {
    padding: clamp(1.25rem, 4.5vw, 3rem);
}

.news-card h2 {
    margin: .6rem 0;
    font-size: clamp(1.55rem, 3.8vw, 2.6rem);
}

.news-card p,
.news-copy {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.news-card__more {
    margin-top: 1rem;
}

.news-article {
    max-width: 48rem;
    margin-inline: auto;
}

.news-article--image {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 64rem;
}

.news-article__image {
    align-self: start;
    margin: 0;
}

.news-article__image img {
    display: block;
    width: 100%;
    max-height: 46rem;
    object-fit: contain;
    object-position: top center;
    border-radius: 1rem;
}

.news-copy p + p {
    margin-top: .85rem;
}

.news-copy + .news-button {
    margin-top: 1.25rem;
}

.news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .55rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: #1b7043;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.news-button:hover {
    background: #164930;
    color: #fff;
}

.news-footer {
    padding-block: 1.5rem;
    background: #164930;
    color: #fff;
    font-size: .9rem;
}

.news-footer nav {
    flex-wrap: wrap;
}

.news-footer a:hover,
.news-footer button:hover,
.news-nav a:hover,
.news-card h2 a:hover,
.home-news h3 a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

#mobile-menu.open {
    max-height: 35rem;
    max-height: min(35rem, calc(100dvh - 5rem));
    overflow-y: auto;
}

.home-news {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background: #fdf6ea;
}

.home-news__heading,
.home-news__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
}

.home-news__heading {
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-news h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.home-news h3 {
    margin-block: .45rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.25rem;
}

.home-news .news-card__content {
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.home-news__actions {
    margin-top: 1rem;
}

.home-news .news-card__more {
    margin-top: 0;
}

.home-news [hidden] {
    display: none;
}

.home-notice {
    background: #f2fcf5;
    border-bottom: 1px solid #d9e6d8;
}

.home-notice__bar,
.home-notice__fallback {
    width: min(70rem, calc(100% - 2.5rem));
    margin-inline: auto;
}

.home-notice__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 1.5rem;
    min-height: 4.75rem;
    padding-block: .8rem;
    color: #164930;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    overflow-wrap: anywhere;
}

.home-notice__fallback {
    padding-bottom: 1.25rem;
}

.home-notice__bar .news-button {
    font-size: .9rem;
}

.home-notice__bar [hidden] {
    display: none;
}

.home-notice-dialog {
    width: min(34rem, calc(100% - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: 0;
    border: 1px solid #def9e6;
    border-radius: 1.6rem;
    background: #fffdf8;
    color: #344238;
    box-shadow: 0 22px 80px #10291a55;
    overscroll-behavior: contain;
}

.home-notice-dialog:has(.home-notice-dialog__panel--image) {
    width: min(52rem, calc(100% - 1.5rem));
}

.home-notice-dialog::backdrop {
    background: #0e2c20b8;
}

html:has(.home-notice-dialog[open]) {
    overflow: hidden;
}

.home-notice-dialog__panel {
    position: relative;
    display: grid;
    gap: 1.35rem;
    padding: 3.65rem clamp(1.25rem, 4vw, 2.2rem) clamp(1.25rem, 4vw, 2.2rem);
}

.home-notice-dialog__dismiss {
    position: absolute;
    inset: .8rem .85rem auto auto;
}

.home-notice-dialog__dismiss button {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #d9e6d8;
    border-radius: 50%;
    background: #f2fcf5;
    color: #164930;
    font-size: 1.6rem;
    line-height: 1;
}

.home-notice-dialog__copy {
    align-self: center;
}

.home-notice-dialog h2 {
    margin-bottom: .85rem;
    font-size: clamp(1.75rem, 5.7vw, 2.75rem);
}

.home-notice-dialog__flyer {
    align-self: center;
}

.home-notice-dialog__flyer img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: .75rem;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.job-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 4vw, 2rem);
    border: 1px solid #1b7043;
    border-radius: 1.5rem;
    background: #19593880;
    overflow-wrap: anywhere;
}

.job-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 40rem);
}

.job-card:hover {
    border-color: #2bad66;
}

.job-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-card h4 {
    margin-bottom: .25rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.job-card__tag,
.job-card__icon {
    display: inline-block;
    background: #1b7043;
    color: #bef2cf;
}

.job-card__tag {
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
}

.job-card__icon {
    padding: .5rem;
    border-radius: .5rem;
}

.job-card__body {
    margin-bottom: 1.5rem;
    color: #d7e4d9;
    font-size: .875rem;
    line-height: 1.65;
}

.job-card__body p + p {
    margin-top: .65rem;
}

.job-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin-top: auto;
    color: #8ce6ad;
    font-weight: 700;
}

.job-card__links .job-card__document {
    color: #bef2cf;
    font-weight: 600;
}

.job-card__links a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.job-card--initiative .job-card__tag,
.job-card--initiative .job-card__icon {
    background: #92400e4d;
    color: #f9e8d0;
}

.job-card--initiative .job-card__links {
    color: #f0dcc5;
}

.job-grid__empty {
    text-align: center;
    color: #d7e4d9;
}

@media (max-width: 47.99rem) {
    .job-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 48rem) {
    .news-grid > .news-card:first-child {
        grid-column: 1 / -1;
    }

    .news-grid > .news-card--image:first-child {
        grid-template-columns: 45% 1fr;
        align-items: stretch;
    }

    .news-grid > .news-card--image:first-child .news-card__image {
        min-height: 20rem;
        aspect-ratio: auto;
    }

    .news-grid > .news-card:first-child .news-card__content {
        align-self: center;
    }

    .home-news__grid > .news-card--image:only-child {
        grid-template-columns: minmax(12rem, 25%) minmax(0, 1fr);
        align-content: stretch;
    }

    .home-news__grid > .news-card--image:only-child .news-card__image {
        aspect-ratio: auto;
    }

    .news-article--image {
        grid-template-columns: minmax(15rem, 37%) minmax(0, 1fr);
        align-items: start;
    }

    .home-notice-dialog__panel--image {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        padding-top: 3.3rem;
    }
}
