/*
 * The Press and News pages and the Article page (card 32). Figma V12: Press 3596:18769 and
 * 3596:34527, News 3596:19052 and 3596:34164, Article 3596:19243 and 3596:34357. Mobile under
 * 768 px and desktop from 1280 px as drawn; tablet (768 to 1279) composed for this card, each
 * choice noted below. The cards: cards.css. Every value from tokens.css.
 */

/* --- Page header (Press, News): 104 px from the top at 390, 200 at 1512 -------------------- */

.newsroom-header {
  padding: var(--space-24) 0 var(--space-40);
  background: var(--color-white);
}

.newsroom-header__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}

.newsroom-header__title {
  color: var(--color-petrol-900);
}

.newsroom-header__subtitle,
.newsroom-header__enquiries {
  max-width: 720px;
  color: var(--color-slate-500);
}

/* "Press enquiries: info@thermosphr.com": the whole line is the link, 44 px tall under 1280
   (Figma's "tap area 44", 45 px drawn). */
.newsroom-header__enquiries {
  display: inline-block;
  padding-block: 9px;
}

.newsroom-header__email {
  color: var(--color-petrol-900);
  text-decoration: underline;
}

.page--press .newsroom-header {
  padding-bottom: 0;
}

/* --- Press sections ------------------------------------------------------------------------ */

.press-about,
.media-assets,
.coverage,
.news-grid,
.keep-reading {
  background: var(--color-white);
}

.press-about,
.media-assets {
  padding-top: var(--space-64);
}

.coverage {
  padding-block: var(--space-64);
}

.press-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.press-about__text {
  max-width: 792px;
  color: var(--color-slate-500);
}

.downloads {
  display: grid;
  gap: var(--space-16);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}

.download__preview {
  width: 100%;
  aspect-ratio: 384 / 240;
  overflow: hidden;
  border-radius: var(--space-16);
}

.download__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download__preview--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-900);
}

.download__preview--logo .logo {
  width: 220px;
  height: 55.733px;
  color: var(--color-teal-400);
}

.download__title {
  color: var(--color-petrol-900);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-semibold);
}

.download__summary {
  color: var(--color-slate-500);
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
}

.download__link {
  padding-left: 0;
}

.download__action {
  display: flex;
}

/* --- News ---------------------------------------------------------------------------------- */

/* Card 33 (Figma 3596:34213): on a phone the first card follows the header's 40 px. */
.news-grid {
  padding: 0 0 var(--space-64);
}

/* --- Final call to action (News, articles) -------------------------------------------------- */

.final-cta {
  padding-block: var(--space-64);
  background: var(--color-white);
}

.final-cta__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  text-align: center;
}

.final-cta__title {
  color: var(--color-petrol-900);
}

.final-cta__text {
  color: var(--color-slate-500);
}

.final-cta__button {
  align-self: stretch; /* card 33: the full width on a phone, as drawn (3596:34291) */
  margin-top: var(--space-8);
}

/* --- Article ------------------------------------------------------------------------------- */

.article-column {
  width: min(100% - 2 * var(--page-margin), 680px);
  margin-inline: auto;
}

.article-header {
  padding-top: var(--space-24);
  background: var(--color-white);
}

.article-header .article-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
}

.article-header__back {
  padding-left: 0;
  margin-bottom: var(--space-12);
}

.article-header__title {
  color: var(--color-petrol-900);
}

.article-header__author {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-top: var(--space-12);
  font-size: var(--text-body-sm-size);
  line-height: var(--text-body-sm-line);
}

.article-header__author img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  object-fit: cover;
}

.article-header__byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-header__name {
  color: var(--color-petrol-900);
  font-weight: var(--weight-medium);
}

.article-header__date {
  color: var(--color-slate-500);
}

.article-picture {
  padding-top: var(--space-40);
}

.article-picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 520;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--space-40) 0 var(--space-64);
  color: var(--color-petrol-900);
  font-size: var(--text-body-lg-size);
  line-height: var(--text-body-lg-line);
}

.article-body__subtitle {
  margin-top: 20px;
  margin-bottom: -8px; /* 12 px to its paragraph, as drawn */
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-semibold);
}

.article-body__quote {
  margin: 0;
  padding-left: 27px; /* the 3 px bar and 24 px */
  border-left: 3px solid var(--color-teal-400);
  font-size: var(--text-quote-size);
  line-height: var(--text-quote-line);
  font-weight: var(--weight-semibold);
}

.article-body__list {
  padding-left: 25.5px;
  list-style: disc;
}

.keep-reading {
  padding-block: var(--space-64);
}

/*
 * --- Tablet (768 to 1279): chosen for this card ----------------------------------------------
 * Headers: the desktop copy, 144 px from the top. Sections: 80 px apart. Download cards and
 * press cards: two columns at 768, three at 1024 (cards.css), rows aligned. The call to action:
 * centred as on desktop. The article: the 680 px column, the picture across the content width.
 */

@media (min-width: 768px) {
  .newsroom-header {
    padding-top: var(--space-64);
  }

  .press-about,
  .media-assets {
    padding-top: var(--space-80);
  }

  .coverage,
  .final-cta,
  .keep-reading {
    padding-block: var(--space-80);
  }

  .news-grid {
    padding-bottom: var(--space-80);
  }

  .final-cta__button {
    align-self: center;
  }

  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
  }

  .article-header {
    padding-top: var(--space-64);
  }
}

@media (min-width: 1024px) {
  .downloads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Desktop: as drawn at 1512 -------------------------------------------------------------- */

@media (min-width: 1280px) {
  .newsroom-header {
    padding-top: 104px;
  }

  .press-about,
  .media-assets {
    padding-top: 120px;
  }

  .coverage,
  .final-cta,
  .keep-reading {
    padding-block: 120px;
  }

  .press-section__body {
    gap: 56px;
  }

  .downloads {
    grid-template-columns: repeat(3, 384px);
  }

  .news-grid {
    padding: var(--space-16) 0 56px; /* 56 under the header, where a featured article goes */
  }

  .final-cta__body {
    gap: var(--space-16);
  }

  .newsroom-header__enquiries {
    padding-block: 0;
  }

  .page--press .newsroom-header {
    padding-bottom: var(--space-40);
  }

  .download__link {
    min-height: 0;
    padding-block: 2px;
  }

  .article-header {
    padding-top: 80px;
  }

  .article-header .article-column {
    gap: var(--space-12);
  }

  .article-picture {
    padding-top: 48px;
  }

  .article-body {
    padding: 56px 0 96px;
  }
}
