/* ==========================================================================
   News article — the hero band, the body well and the related list.
   The article copy itself is a component (prose.css), because it is the one
   block here that is generated rather than written.
   ========================================================================== */

@layer pages {

  /* --- Hero --------------------------------------------------------------
     Surface and bottom rule come from .section--raised / .section--edge-bottom
     in layout/wrap.css; only the spacing is per-page.
     --------------------------------------------------------------------- */
  .article-hero { padding: 52px 0 64px; }

  .article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    font-size: 12px;
    font-weight: var(--weight-semibold);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    transition: color var(--dur-fast);
  }

  .article-hero__back:hover { color: var(--cx-green); }

  .article-hero__back-arrow {
    display: inline-block;
    transition: transform var(--dur-fast) var(--ease-out);
  }

  .article-hero__back:hover .article-hero__back-arrow { transform: translateX(-4px); }

  /* --- Meta row ----------------------------------------------------------
     Wraps on a phone, where the pill and the date will not sit on one line.
     --------------------------------------------------------------------- */
  .article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
  }

  .article-hero__pill {
    padding: 6px 13px;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cx-green);
    background: var(--cx-green-a06);
    border: 1px solid var(--cx-green-a30);
    border-radius: var(--radius-pill);
  }

  .article-hero__date {
    font-size: 12.5px;
    font-weight: var(--weight-semibold);
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* The dot between date and read time is a pseudo-element so that the two
     disappear together: an article with no body yet has an empty read time,
     and a bare separator floating after the date would look like a defect. */
  .article-hero__read {
    display: inline-flex;
    align-items: center;
    gap: var(--space-5);
    font-size: 12.5px;
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-subtle);
  }

  .article-hero__read::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--text-subtle);
    border-radius: 50%;
  }

  .article-hero__read:empty { display: none; }

  .article-hero__title {
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.14;
    letter-spacing: -.015em;
  }

  /* .lede carries the type; only the gap under the headline is per-page. */
  .article-hero__standfirst { margin-top: 26px; }

  /* --- Body --------------------------------------------------------------- */
  .article-body { padding: 64px 0 90px; }

  /* --- Back out ------------------------------------------------------------
     Sits under the copy, above the rule that opens the related section.
     ------------------------------------------------------------------------- */
  .article-back {
    margin-top: var(--space-10);
    padding-top: var(--space-7);
    border-top: 1px solid var(--line);
  }

  /* Its own arrow class rather than .btn__arrow: that one slides right on
     hover, which is the wrong direction for a link that goes back. */
  .article-back__arrow {
    display: inline-block;
    transition: transform var(--dur-fast) var(--ease-out);
  }

  .article-back__link:hover .article-back__arrow { transform: translateX(-4px); }

  /* --- Related ------------------------------------------------------------ */
  .article-related { padding: 80px 0 96px; }

  .article-related__list {
    margin-top: var(--space-7);
    border-top: 1px solid var(--line);
  }

  .article-related__item {
    display: block;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--line);
  }

  .article-related__date {
    margin-bottom: var(--space-3);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    letter-spacing: .14em;
    color: var(--cx-green);
  }

  .article-related__title {
    font-size: 17.5px;
    font-weight: var(--weight-semibold);
    line-height: 1.42;
    transition: color var(--dur-fast);
  }

  .article-related__excerpt {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-subtle);
    transition: color var(--dur-fast);
  }

  .article-related__item:hover .article-related__title { color: var(--cx-green); }
  .article-related__item:hover .article-related__excerpt { color: var(--text-muted); }

  @media (max-width: 680px) {
    /* The meta row wraps here, which leaves the separator dot sitting at the
       start of a line reading as a bullet. The line break already separates
       the two, so the dot has nothing left to do. */
    .article-hero__read::before { display: none; }

    .article-hero__read { gap: 0; }

    .article-hero { padding: 40px 0 52px; }

    .article-body { padding: 48px 0 72px; }

    .article-related { padding: 60px 0 72px; }
  }
}
