/* Стилі сторінок новин. */
/* News: the public list and a post. One centred column (.shell--narrow), like reading text. */

.news__list { display: grid; gap: var(--s-5); }
.news .pager { margin-top: var(--s-6); }

.news-byline { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.news-byline__name { overflow-wrap: anywhere; }

.news-card {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.news-card > p { margin: 0; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); font-size: var(--fs--1); }
.news-card__pin { color: var(--muted); }
.news-card__title { font-size: var(--fs-2); line-height: 1.2; overflow-wrap: anywhere; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; }
.news-card__excerpt { color: var(--muted); max-width: 60ch; overflow-wrap: anywhere; }
.news-card.is-pinned { border-color: var(--line-strong); }

.news-post { display: grid; gap: var(--s-5); }
.news-post__head { display: grid; gap: var(--s-3); }
.news-post__head h1 { font-size: var(--fs-4); overflow-wrap: anywhere; }
.news-post__head .news-card__meta { margin: 0; }
.news-post__body { max-width: 68ch; overflow-wrap: anywhere; }
