/* News: image-led cards and editorial article pages. */

.news-teaser,
.news-overview,
.news-single {
    width: min(100%, 1200px);
    margin-inline: auto;
    box-sizing: border-box;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eadf;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(42, 58, 34, .075);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: #ccdac0;
    box-shadow: 0 18px 38px rgba(42, 58, 34, .13);
}
.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.news-card__link:hover { color: inherit; }
.news-card__link:focus-visible {
    outline: 3px solid #6c9450;
    outline-offset: -3px;
}
.news-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eaf0e1;
}
.news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__media--empty {
    display: grid;
    place-items: center;
    color: #577443;
    font-weight: 700;
    letter-spacing: .05em;
    background: linear-gradient(135deg, #e9f0df, #f7f9f2);
}
.news-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px 22px;
}
.news-card__meta,
.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #69747b;
    font-size: .8rem;
}
.news-card__category,
.news-article__category {
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf4e7;
    color: #527336;
    font-weight: 700;
}
.news-card__title {
    margin: 0;
    color: #26351f;
    font-size: clamp(1.12rem, 1.5vw, 1.35rem);
    line-height: 1.32;
    font-weight: 700;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.news-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    color: #4d5852;
    font-size: .92rem;
    line-height: 1.55;
}
.news-card__more {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
    color: #557c39;
    font-weight: 700;
    font-size: .88rem;
}
.news-card__more span { transition: transform .2s ease; }
.news-card:hover .news-card__more span { transform: translateX(3px); }

.news-teaser__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #6d8355;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.news-all-link:hover,
.news-all-link:focus-visible {
    background: #536b3d;
    color: #fff;
}
.news-empty { color: #69747b; }

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #e5eadf;
    color: #69747b;
    font-size: .92rem;
}
.news-pagination a {
    color: #557c39;
    text-decoration: none;
    font-weight: 700;
}
.news-pagination a:hover { text-decoration: underline; }

/* Single article: large report photo followed by a comfortable reading column. */
.news-single {
    width: min(1080px, calc(100% - 40px));
    max-width: 1080px;
    margin: 56px auto 88px;
}
.news-article {
    padding: 46px;
    border: 1px solid #e5eadf;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 44px rgba(42, 58, 34, .07);
}
.news-article__header,
.news-article__body,
.news-article__footer {
    max-width: 720px;
    margin-inline: auto;
}
.news-article__back,
.news-article__footer a {
    color: #557c39;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
}
.news-article__back:hover,
.news-article__footer a:hover { text-decoration: underline; }
.news-article__meta { margin-top: 34px; }
.news-article__title {
    margin: 14px 0 0;
    color: #26351f;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.news-article__intro {
    margin: 18px 0 0;
    color: #59665a;
    font-size: 1.18rem;
    line-height: 1.55;
}
.news-article__hero {
    margin: 34px 0 38px;
    overflow: hidden;
    border-radius: 16px;
    background: #eef2e8;
}
.news-article__hero img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 620px;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}
.news-article__hero figcaption {
    padding: 10px 16px;
    color: #68747b;
    background: #f6f8f2;
    font-size: .8rem;
}
.news-article__body {
    color: #303b33;
    font-size: 1.04rem;
    line-height: 1.78;
    overflow-wrap: break-word;
}
.news-article__body > :first-child { margin-top: 0; }
.news-article__body p { margin-bottom: 1.35em; }
.news-article__body h2,
.news-article__body h3 {
    margin: 1.7em 0 .6em;
    color: #26351f;
    line-height: 1.25;
}
.news-article__body a { color: #4d762f; text-underline-offset: 3px; }
.news-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
/* Gutenberg and Classic Editor captions use different markup. Give both
   one quiet image-and-caption treatment inside the article. */
.news-article__body figure.wp-block-image,
.news-article__body figure.wp-caption,
.news-article__body .wp-caption {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e6ebdf;
    border-radius: 14px;
    background: #f7f9f4;
    box-shadow: none;
}
.news-article__body figure.wp-block-image img,
.news-article__body figure.wp-caption img,
.news-article__body .wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}
.news-article__body figure.wp-block-image figcaption,
.news-article__body figure.wp-caption figcaption,
.news-article__body .wp-caption .wp-caption-text {
    display: block;
    margin: 0;
    padding: 11px 15px 13px;
    color: #66716a;
    background: #f7f9f4;
    font-size: .82rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: none;
}
.news-article__body blockquote {
    margin: 1.8em 0;
    padding: .2em 0 .2em 1.2em;
    border-left: 4px solid #9fbd83;
    color: #43543b;
}
.news-article__footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #e5eadf;
}
.news-related { margin-top: 56px; }
.news-related h2 { margin: 0 0 24px; color: #26351f; }
.news-related .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    justify-items: center;
}
.news-related .news-card {
    width: 100%;
    max-width: 420px;
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-grid--teaser .news-card:nth-child(n + 3) { display: none; }
    .news-article { padding: 34px; }
}
@media (max-width: 620px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .news-grid--teaser .news-card:nth-child(n + 2) { display: none; }
    .news-card__media { aspect-ratio: 16 / 10; }
    .news-card__content { padding: 18px; }
    .news-teaser__footer { justify-content: flex-start; }
    .news-single {
        width: calc(100% - 24px);
        margin: 24px auto 48px;
    }
    .news-article { padding: 22px 18px 28px; border-radius: 18px; }
    .news-article__meta { margin-top: 24px; }
    .news-article__hero { margin: 25px 0 28px; border-radius: 12px; }
    .news-article__body { font-size: 1rem; }
    .news-related { margin-top: 38px; }
    .news-pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card__media img,
    .news-card__more span { transition: none; }
    .news-card:hover,
    .news-card:hover .news-card__media img,
    .news-card:hover .news-card__more span { transform: none; }
}
