/*  News (news-) — the shared news card (dashboard widget + /news grid), the /news
    overview grid + pagination and the /news/{id} article page. Built on mds- tokens
    only. Mobile-first: base = phones, widened at 768/1024px. */

/* ---- the news card ------------------------------------------------------------ */
.news-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--mds-surface); border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius-lg); }
.news-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--mds-tint); }
.news-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card__body { display: flex; flex: 1 1 auto; flex-direction: column;
    gap: var(--mds-space-2); padding: var(--mds-space-3); }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--mds-space-1); font-size: var(--mds-text-xs); }
.news-card__meta .mds-chip { margin: 0; }
.news-card__date { margin-left: auto; color: var(--mds-muted); white-space: nowrap; }
.news-card__title { margin: 0; font-size: var(--mds-text-lg); line-height: 1.3; }
.news-card__title a { color: var(--mds-title); text-decoration: none; }
.news-card__title a:hover { color: var(--mds-accent-ink); }
.news-card__excerpt { margin: 0; overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    font-size: var(--mds-text-sm); line-height: 1.5; color: var(--mds-text); }
.news-card__more { margin-top: auto; font-size: var(--mds-text-sm); font-weight: 600; }

/* Loading ghost (dashboard widget + overview). */
.news-card--ghost { padding-bottom: var(--mds-space-3); }
.news-card__skel-media { height: 120px; margin-bottom: var(--mds-space-3); }
.news-card--ghost .mds-skel--head,
.news-card--ghost .mds-skel--row { margin-left: var(--mds-space-3); margin-right: var(--mds-space-3); }

/* ---- /news overview ------------------------------------------------------------ */
.news-grid { display: grid; grid-template-columns: 1fr; gap: var(--mds-space-4);
    margin-top: var(--mds-space-4); }
@media (min-width: 768px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-pager { display: flex; align-items: center; justify-content: center;
    gap: var(--mds-space-4); margin-top: var(--mds-space-5); }
.news-pager__info { font-size: var(--mds-text-sm); color: var(--mds-muted); }
.news-pager a[aria-disabled="true"] { pointer-events: none; opacity: .45; }

/* ---- /news/{id} article --------------------------------------------------------- */
.news-article { max-width: 760px; }
.news-article__back { display: inline-block; margin-bottom: var(--mds-space-4);
    font-size: var(--mds-text-sm); font-weight: 600; }
.news-article__title { margin: 0 0 var(--mds-space-2); font-size: 26px; font-weight: 400;
    line-height: 1.25; color: var(--mds-title); }
.news-article__meta { display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--mds-space-2); margin-bottom: var(--mds-space-4);
    font-size: var(--mds-text-xs); color: var(--mds-muted); }
.news-article__meta .mds-chip { margin: 0; }
.news-article__hero { display: block; width: 100%; max-height: 380px; object-fit: cover;
    border-radius: var(--mds-radius-lg); margin-bottom: var(--mds-space-5); }
