/*
 * News and press releases and the article page (M2-NEWS): the head (text, image with its caption, the segmented switch of
 * the design), the list under the kit's filter bar, the official-document block, and the article's byline, correction notes,
 * body, related resources and actions. Cards, notices, tags and buttons are the kit's (components.css). Values come from
 * tokens.css; this file holds no colour and no font size of its own.
 */

/* The head is one column at every width: its text is the centred head of the section switch (components.css .section-head), the image
   below it. It is not a text column beside the image, so the switch is where it is on the events page. */
.news-head {
  display: grid;
  gap: var(--spacing-24);
  align-items: center;
  padding-block: var(--spacing-24);
}

.news-head h1,
.news-article h1 {
  max-width: 24ch;
  margin-bottom: var(--spacing-16);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.news-head .lead,
.news-article .lead {
  max-width: var(--size-44rem);
}

.news-article .lead {
  margin-bottom: var(--spacing-24);
}

.news-figure {
  position: relative;
  margin: 0;
}

.news-head .news-figure {
  width: 100%;
  max-width: var(--size-40rem);
  margin-inline: auto;
}

.news-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--border-radius-12);
}

/* ---------- The list ---------- */

.news-list {
  padding-block: var(--spacing-32) var(--spacing-48);
}

.news-list__title {
  margin: var(--spacing-24) 0 var(--spacing-16);
}

.news-official {
  margin-top: var(--spacing-48);
  max-width: var(--size-52rem);
  padding: var(--spacing-24);
}

.news-official h2,
.news-explore h2 {
  margin: 0 0 var(--spacing-12);
  font-size: var(--font-size-20);
  line-height: var(--line-height-28);
}

.news-official p:last-child {
  margin-bottom: 0;
}

/* ---------- The article ---------- */

.news-article__head {
  display: grid;
  gap: var(--spacing-24);
  align-items: center;
  margin-bottom: var(--spacing-24);
  padding-bottom: var(--spacing-24);
  border-bottom: var(--border-width-1) solid var(--color-border);
}

@media (min-width: 1024px) {
  .news-article__head {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--spacing-48);
  }
}

.news-byline {
  margin: 0 0 var(--spacing-16);
  color: var(--color-text-secondary);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  overflow-wrap: anywhere;
}

.news-correction {
  margin-bottom: var(--spacing-16);
}

.news-article__layout {
  display: grid;
  gap: var(--spacing-32);
  align-items: start;
  margin-top: var(--spacing-24);
}

@media (min-width: 1024px) {
  .news-article__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--spacing-48);
  }
}

.news-article__body {
  max-width: var(--size-44rem);
  overflow-wrap: anywhere;
}

.news-related {
  margin-top: var(--spacing-32);
}

.news-related h2 {
  margin-bottom: var(--spacing-12);
}

.news-explore {
  padding: var(--spacing-24);
}

.news-explore ul,
.news-related ul {
  margin: 0;
  padding-inline-start: var(--spacing-20);
}

.news-explore li + li,
.news-related li + li {
  margin-top: var(--spacing-8);
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-16);
  margin: var(--spacing-32) 0 var(--spacing-48);
}

.news-actions [hidden] {
  display: none;
}

.news-copied:empty {
  display: none;
}

/* ---------- Print: the article alone, without the header, footer, menus and buttons ---------- */

@media print {
  .skip-link,
  .site-header,
  .site-footer,
  .newsletter,
  .cookie-banner,
  .breadcrumb-row,
  .breadcrumb,
  .record-back,
  .news-actions,
  .news-explore,
  #live-status {
    display: none;
  }

  .news-article__layout {
    display: block;
  }

  .news-article__body {
    max-width: none;
  }

  .news-figure img {
    max-height: var(--size-12rem);
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
