/* News extends the congress design system.
   Craft informed by unslop, Damir Sokolovsky (@heydamir), CC BY 4.0. */
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-underline-offset: 4px;
}
.news-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.news-link:hover, .news-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-preview__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.news-preview__heading .section__title { margin-bottom: 0; }
.news-preview__heading > a { flex-shrink: 0; }
.news-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  padding: 32px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
}
.news-card + .news-card { margin-top: 24px; }
.news-card__meta { color: var(--text-muted); font-size: 15px; }
.news-card__meta time { display: block; font-variant-numeric: tabular-nums; }
.news-card__meta p { margin-top: 12px; }
.news-card__title { color: var(--primary); font-size: clamp(22px, 2.1vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; text-wrap: pretty; }
.news-card__excerpt { max-width: 76ch; margin-top: 16px; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.news-card__copy > .news-link { margin-top: 20px; }
.news-page { min-height: calc(100vh - 80px); padding: calc(var(--header-h) + 40px) 0 64px; }
.news-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 24px; color: var(--text-muted); font-size: 14px; }
.news-breadcrumbs a { color: var(--primary); text-underline-offset: 4px; }
.news-breadcrumbs a:hover { text-decoration: underline; }
.news-page__title { margin-bottom: 40px; font-size: clamp(32px, 3.2vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.news-article__container { max-width: calc(75ch + 80px); }
.news-article__header { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.news-article__label { margin-bottom: 12px; color: var(--primary); font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.news-article__title { color: var(--ink); font-size: clamp(28px, 3vw, 34px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.news-article__date { display: block; margin-top: 24px; color: var(--text-muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.news-article__body { font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.news-article__body > * + * { margin-top: 20px; }
.news-article__body h2, .news-article__body h3 { margin: 40px 0 16px; color: var(--ink); font-size: clamp(22px, 2vw, 26px); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.news-article__body h3 { font-size: 22px; }
.news-article__body ul { padding-left: 24px; list-style: disc; }
.news-article__body ol { padding-left: 24px; }
.news-article__body li + li { margin-top: 16px; }
.news-article__body li::marker { color: var(--primary); }
.news-article__body blockquote { margin: 32px 0; padding: 24px 28px; color: var(--ink); background: var(--bg-muted); border-radius: var(--radius-md); font-size: 17px; }
.news-article__body blockquote p + p { margin-top: 16px; }
.news-article__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.news-article__body a:hover { text-decoration-thickness: 2px; }
.news-article__body figure { margin: 32px 0; }
.news-article__body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.news-article__body figcaption { margin-top: 12px; color: var(--text-muted); font-size: 14px; }
.news-article__footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.news-preview ::selection, .news-page ::selection { color: var(--white); background: var(--primary); }
.page-news .nav__link[href="news.php"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 1100px) {
  .news-card { grid-template-columns: 156px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .news-preview__heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .news-card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; }
  .news-card__meta p { display: none; }
  .news-card__title { font-size: 23px; }
  .news-page { padding: calc(var(--header-h) + 24px) 0 40px; }
  .news-page__title { margin-bottom: 24px; }
  .news-article__header { padding-bottom: 24px; margin-bottom: 24px; }
  .news-article__title { font-size: 28px; }
  .news-article__date { margin-top: 20px; font-size: 14px; }
  .news-article__body { font-size: 17px; line-height: 1.75; }
  .news-article__body blockquote { padding: 20px; font-size: 16px; }
  .news-article__body h2 { margin-top: 32px; font-size: 23px; }
}
@media print {
  .news-page { padding: 0; }
  .news-breadcrumbs, .news-article__footer { display: none; }
  .news-article__container { max-width: none; }
  .news-article__body blockquote { break-inside: avoid; }
}
