/* News & fairs (P3) — hub, article, fair page. Tokens and components only;
   mobile-first; layout classes (cs-/ce-/mh-/m-1) come from components.css. */

/* Filters do nothing without JavaScript: hide them until site.js runs */
html:not(.js) .news-filters { display: none; }

/* Hub grid. While a filter is active the fixed bento placements would leave
   holes: let the remaining tiles flow in halves instead. */
@media (min-width: 1100px) {
  .news-grid:has(> .is-hidden) > :not(.is-hidden) { grid-column: span 6; grid-row: auto; }
  .news-grid:has(> .is-hidden) > .news-fair:not(.is-hidden) { grid-column: span 6; }
}

/* Next-fair feature and fair page */
.news-fair { min-height: 0; }
.news-fair .fair__name a { color: inherit; text-decoration: none; }
.news-fair .fair__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (min-width: 1100px) {
  .news-grid > .news-fair { min-height: 440px; }
  .news-fair-page > .news-fair { min-height: 520px; }
}
.news-fairs li b a { text-decoration: none; }
.news-fairs li b a:hover { color: var(--teal); }

/* Text cards (Spring Festival note, items without a photo) */
.news-card--text { min-height: 280px; }
.news-card__title { font-size: clamp(22px, 1.8vw, 28px); }
.news-card__title a { text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card__title a:hover { color: var(--teal); }

/* Empty state */
.news-empty { display: grid; gap: 18px; justify-items: start; margin-top: var(--gap); }
.news-empty h2 { font-size: clamp(28px, 2.6vw, 40px); }

/* Article */
.news-preview { margin-top: 16px; }
.news-ph { margin-top: 0; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.news-body { margin-top: var(--gap); }
.news-hero { margin: 0; }
@media (min-width: 1100px) {
  .news-hero { aspect-ratio: 21 / 9; }
}
.news-text { padding: var(--pad); }
.news-text .prose { font-size: 17px; line-height: 1.7; }
.news-text .prose > :first-child { margin-top: 0; }
.news-text .prose blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--teal); color: var(--muted); }
.news-aside { gap: 14px; align-self: start; }
.news-aside__title { font-size: clamp(24px, 2vw, 30px); }
.news-aside .btn-row { padding-top: 8px; }
@media (min-width: 1100px) {
  .news-aside { position: sticky; top: 96px; }
}
.news-back { margin: 28px 0 0; }
.news-back .link, .news-more .link { min-height: 24px; }
.news-fair-page { margin-top: 0; }
