/* Press release page (newsroom/news_detail.html, partials in newsroom/article/).
   Title and lead photo across the page; below, the text on the left and the
   supporting materials (media with download facts, documents, products,
   references, contact) in a right rail. One column below 900px. */

.news-article {
  --article-ink: #111;
  --article-quiet: #555;
  --article-rule: #dddddd;
  --article-rule-strong: rgba(0, 0, 0, .45);
  --article-violet: #7c4b8c;
  --article-backdrop: #f4f4f4;
  --article-gutter: max(1rem, env(safe-area-inset-left));
  --article-text: clamp(1.0625rem, calc(1rem + .3vw), 1.25rem);
  color: var(--article-ink);
  padding-bottom: 4rem;
}

.news-article h1, .news-article h2, .news-article h3 { padding: 0; }

/* ---- shared parts ---------------------------------------------------- */

.article-head { padding-top: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  font-size: .8125rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-meta__kind { color: var(--article-violet); }
.article-meta__date { color: var(--article-quiet); }

.article-langs { display: inline-flex; gap: .25rem; letter-spacing: .05em; }
.article-langs a, .article-langs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2rem;
  border: 1px solid var(--article-rule);
  color: var(--article-quiet);
}
.article-langs .current { border-color: var(--article-violet); color: var(--article-violet); }

.article-notice {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  background: #fff3cd;
  color: #6b5102;
  font-size: .9375rem;
}

.article-title {
  margin: 1.25rem 0 0;
  max-width: 22ch;
  font-size: clamp(2.1rem, calc(1.3rem + 3vw), 4.25rem);
  line-height: 1.12;
}

.article-body {
  font-size: var(--article-text);
  line-height: 1.65;
}
.article-body > * { max-width: 40rem; }
.article-body > p:first-child {        /* the opening paragraph reads as a lead */
  font-size: 1.2em;
  line-height: 1.5;
}
.article-body p { margin: 0 0 1em; }
.article-body h2, .article-body h3 {
  margin: 2em 0 .5em;
  font-size: 1.25em;
  line-height: 1.3;
}
.article-body ul, .article-body ol { padding-left: 1.25em; margin: 0 0 1em; }
.article-body li { margin-bottom: .35em; }
.article-body q { font-style: italic; }

/* a materials block: eyebrow heading on a hairline, like the homepage logo wall */
.article-block { padding-top: 1rem; border-top: 1px solid var(--article-rule-strong); }
.article-block + .article-block { margin-top: 2rem; }
.article-block__title {
  margin: 0 0 1rem;
  font-size: .8125rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--article-quiet);
  font-family: inherit;
}

.article-docs { list-style: none; margin: 0; padding: 0; }
.article-docs li + li { margin-top: .75rem; }
.article-docs a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem .75rem;
  align-items: start;
  color: var(--article-ink);
  font-weight: normal;
}
.article-docs a::before {
  content: "\f1c1";                /* file-pdf */
  grid-row: span 2;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--article-violet);
}
.article-docs__name { font-weight: bold; }
.article-docs__meta { font-size: .875rem; color: var(--article-quiet); }

.article-contact { font-size: .9375rem; line-height: 1.6; }
.article-contact p { margin: 0; }

/* a press photo: image, then title and description beside size, credit, download */
.article-media { margin: 0; }
.article-media__img { display: block; background: var(--article-backdrop); }
.article-media__img img { display: block; width: 100%; height: auto; }
.article-media__caption {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.45;
}
.article-media__text, .article-media__facts { display: flex; flex-direction: column; gap: .15rem; }
.article-media__title { font-size: .9375rem; }
.article-media__desc, .article-media__meta { color: var(--article-quiet); }
.article-media__download { align-self: flex-start; }
.article-media__download::before {
  content: "\f019";               /* download */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: .4em;
}
.article-media-list { display: flex; flex-direction: column; gap: 2rem; }
.article-media--details { padding-top: 1rem; border-top: 1px solid var(--article-rule); }
.article-media__label {
  margin: 0 0 .35rem;
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--article-violet);
}
.article-media--details .article-media__caption { margin-top: 0; }

/* every rail heading in one style, including the ones includes bring along */
.news-article .ref-links__heading { margin: 0 0 1rem; font-family: inherit; font-size: .8125rem; font-weight: bold; letter-spacing: .1em; text-transform: uppercase; color: var(--article-quiet); }

.news-article .cat-related { margin: 0; }
.news-article .cat-cards { margin: 0; }

.article-nav {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--article-rule-strong);
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) { .article-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-nav a { display: flex; flex-direction: column; gap: .25rem; color: var(--article-ink); font-weight: normal; }
.article-nav small {
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--article-violet);
}

/* ---- two columns ------------------------------------------------------- */

.article-grid { display: grid; gap: 3rem; }
.article-hero { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  /* lead photo caption: title and description left, credit right */
  .article-media--hero .article-media__caption { flex-direction: row; justify-content: space-between; gap: 2rem; }
  .article-media--hero .article-media__facts { align-items: flex-end; text-align: right; flex-shrink: 0; }

  .article-grid {
    /* text column sized for ~65 characters at 20px; the rail takes the rest */
    grid-template-columns: minmax(0, 44rem) minmax(16rem, 24rem);
    justify-content: space-between;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .article-body > * { max-width: none; }
}

/* a portrait lead photo at full width would run several screens tall:
   keep it whole within the viewport, centred on the backdrop */
.article-media--portrait .article-media__img img {
  width: auto;
  max-width: 100%;
  max-height: 85svh;
  margin: 0 auto;
}
