/* News & fairs pages (P4): /news, /news/:slug, /trade-fairs.
   Tokens only; layout components come from components.css. Mobile-first. */

/* ── Shared ─────────────────────────────────────────────────────────────── */
.news-grid {
  margin-top: var(--sp-16);
}
.news-grid > li,
.news-photos > li {
  display: flex;
  min-width: 0;
}
.news-grid > li > .card {
  flex: 1;
}

/* Feature: one photo fills the frame; <picture> fills the mosaic cells */
.news-feature__media--single {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 820px) {
  .news-feature__media--single {
    padding-right: var(--sp-8);
  }
}
.news-feature__media picture,
.news-feature__media > .media-fallback {
  display: block;
  min-height: 0;
  height: 100%;
}
.news-feature__media > .media-fallback {
  border-radius: var(--r-2xl);
}
.news-feature__media > div picture {
  min-height: 0;
}
.news-feature__link {
  color: inherit;
  text-decoration: none;
}
.news-feature__link:hover {
  color: var(--text-brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.fair-row__media picture {
  display: block;
  height: 100%;
}
.news-card .card__media > picture,
.fair-card .card__media > picture {
  display: block;
  height: 100%;
}
.fair-card .card__media > .media-fallback,
.news-card .card__media > .media-fallback {
  height: 100%;
}

/* Fair feature: the dates fact spans both columns */
.fair-feature__facts > .fact--highlight:first-child {
  grid-column: 1 / -1;
}
.fair-feature__article {
  align-self: flex-start;
}

/* ── /news hub ──────────────────────────────────────────────────────────── */
.news-hero .breadcrumbs {
  margin-bottom: var(--sp-16);
}
.next-fair-link__meta {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-on-dark-muted);
}
.news-fairs__plan {
  display: flex;
  flex-direction: column;
  gap: var(--sp-14);
}
.news-fairs__plan .btn-group {
  margin-top: auto;
}
.news-filter {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-filter > li {
  flex: none;
}

/* ── Article ────────────────────────────────────────────────────────────── */
.news-article__title {
  margin-top: var(--sp-16);
  max-width: 22ch;
  text-wrap: balance;
}
.news-article__summary {
  margin-top: var(--sp-20);
  max-width: 44rem;
}
.news-article__lead img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}
.news-article__cta {
  margin-top: var(--sp-32);
}
.news-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-12);
}
.news-photos .figure {
  width: 100%;
  margin: 0;
}
.news-photos img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}
@media (min-width: 820px) {
  .news-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-16);
  }
}
.news-facts .kv > div:first-child {
  border-top: 0;
}
.news-article__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: 2.75rem;
}
.news-pager {
  margin-top: var(--sp-48);
}
.news-pager__link {
  min-height: 100%;
}
.news-pager__link:hover {
  border-color: var(--brand-slate-deep);
}

/* ── /trade-fairs ───────────────────────────────────────────────────────── */
.fairs-upcoming__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.fairs-upcoming__info .kv > div:first-child {
  border-top: 0;
}
.fairs-upcoming__plan {
  padding-top: var(--sp-20);
  border-top: 1px solid var(--divider);
}
.fairs-upcoming__plan .h4 {
  margin-bottom: var(--sp-8);
}
.fairs-group__head {
  max-width: 52rem;
}
@media (min-width: 820px) {
  .news-fairs__plan {
    align-self: start;
  }
}
/* Facts box sits in the 18rem aside: one column, label above value */
.news-facts .kv > div {
  grid-template-columns: minmax(0, 1fr);
}
.news-facts .booth {
  flex-wrap: wrap;
}
@media (min-width: 820px) {
  .news-article__lead img {
    aspect-ratio: 21 / 9;
  }
}
/* Phones: the topic chips wrap instead of scrolling sideways */
.news-filter {
  flex-wrap: wrap;
  overflow: visible;
  max-width: 100%;
}
.section-head__aside:has(.news-filter) {
  min-width: 0;
  max-width: 100%;
}
.news-article__cta .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
