/* Feed card geometry with the shared site typography tokens. */
@font-face {
  font-family: 'Koroche Material Symbols';
  src: url('../assets/fonts/MaterialSymbolsRounded-Variable.woff2') format('woff2');
  font-weight: 100 700;
  font-display: block;
}
.news-section { padding-block: 84px; scroll-margin-top: 130px; }
.beta-club + .news-section { padding-top: 126px; }
.news-section__heading { width: min(414px, 100%); margin: 0 auto 64px; }
.news-section__heading img { display: block; width: 100%; height: auto; }
.news-grid {
  position: relative;
  left: 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  width: min(598px, 100%);
}
.news-card { min-width: 0; overflow: hidden; background: #fff; color: #000; font: var(--type-body-weight) var(--type-body-size)/var(--type-body-leading) var(--font-text); }
.news-card a { text-decoration: none; color: inherit; }
.news-card a:focus-visible, .news-card button:focus-visible { outline: 2px solid var(--koroche-ink); outline-offset: -2px; }
.news-card__media { display: block; margin: 16px 16px 0; overflow: hidden; border-radius: 16px; background: #f7f9f9; }
.news-card__media img { display: block; width: 100%; height: 292px; object-fit: cover; }
.news-card__body { padding: 18px 23px 0; }
.news-card__meta { display: flex; align-items: center; gap: 8px; min-width: 0; color: #536471; font: 400 15px/20px var(--font-ui); }
.news-card__source { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.news-card__source > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; }
.news-card__source > span[data-overflowing="true"] { mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%); }
.news-card__meta time, .news-card__meta > span { flex: none; white-space: nowrap; }
/* WebKit needs an explicit width when sizing the enclosing source link:
   flex-basis alone makes it subtract avatar space from the source name. */
.news-card__avatar { display: grid; place-items: center; flex: 0 0 24px; width: 24px; min-width: 24px; height: 24px; border-radius: 50%; background: #f7f9f9; font-size: 13px; }
.news-card__content { display: block; }
.news-card__title { margin: 12px 0 0; font: var(--type-title-weight) var(--type-title-size)/var(--type-title-leading) var(--font-text); color: var(--koroche-text); text-wrap: pretty; }
.news-card__summary { margin: 12px 0 0; font: var(--type-body-weight) 17px/24px var(--font-text); color: var(--koroche-text-muted); white-space: pre-line; }
.news-card__title, .news-card__summary { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.news-card__title { -webkit-line-clamp: 4; }
.news-card__summary { -webkit-line-clamp: 5; }
.news-card__suggestions { display: flex; gap: 12px; overflow-x: auto; padding: 6px 23px; margin: 14px -6px 0; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; }
.news-card__suggestions a { flex: none; padding: 8px 12px; border-radius: 12px; background: #f2f4f4; font: var(--type-body-weight) 17px/24px var(--font-text); white-space: nowrap; }
.news-card__suggestions a:hover { background: #e9ecec; }
.news-card__actions { display: flex; gap: 8px; padding: 0 23px 12px; margin: 14px 0 0 -12px; color: #536471; }
.news-card__actions a, .news-card__actions button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.news-card__actions a:hover, .news-card__actions button:hover { background: #f2f4f4; }
.news-symbol { font: 400 20px/1 'Koroche Material Symbols'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
@media (max-width: 899px) {
  .news-grid { width: min(598px, 100%); }
  .news-section { padding-block: 48px; scroll-margin-top: 100px; }
  .beta-club + .news-section { padding-top: 144px; }
  .news-section__heading { margin-bottom: 36px; }
  .news-card__media img { height: auto; aspect-ratio: 566 / 292; }
  .news-card__source { min-height: 44px; }
  /* The source's touch area already leaves 12px below its 20px label. */
  .news-card__title { margin-top: 0; }
  .news-card__suggestions a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 599px) {
  .news-section { padding-block: 40px 0; scroll-margin-top: 88px; }
  .beta-club + .news-section { padding-top: 120px; }
  .news-section__heading { width: min(320px, 100%); margin-bottom: 32px; }
  .news-grid { width: calc(100% + 2 * var(--mobile-gutter)); }
  .news-create-feed { width: 100%; }
  .news-card__media { margin: 16px var(--mobile-gutter) 0; border-radius: 12px; }
  .news-card__body { padding: 16px var(--mobile-gutter) 0; }
  .news-card__title { -webkit-line-clamp: unset; }
  .news-card__meta { font-size: 13px; gap: 6px; }
  .news-card__suggestions { gap: 8px; padding: 4px var(--mobile-gutter); margin: 16px 0 0; }
  .news-card__actions { padding: 0 var(--mobile-gutter) 16px; margin: 16px 0 0 -10px; }
}
