/* =========================================================
   STORM — NEWSROOM
   -----------------------------------------------------------
   Loads ON TOP of base-web-style.css.

   The page is base almost end to end:
     intro      .spi-section-padded / .spi-container /
                .spi-section-header.is-center / .spi-h1 /
                .spi-body.spi-body-width / .btn.default
     highlight  .spi-split.is-vcenter
     cards      .spi-card-article + .spi-card-article-img +
                .spi-card-article-body + .spi-meta
     grid       .spi-grid.spi-grid-4

   No tokens are redefined and no colours are invented — the
   highlight panel paints itself with --spi-black and writes on
   it with --spi-white, which is what those tokens mean.

   What is left below is structure base has no equivalent for:
   a split panel with its own surface, and the shape of it.
   ========================================================= */

/* ---------------------------------------------------------
   1. HIGHLIGHT PANEL (.news-highlight)
   The newest story, as a dark panel with the copy beside the
   artwork. .spi-split supplies the two-column layout and the
   stack below 768px; base has no "split on its own surface"
   component, so the surface, the shape and the column ratio
   are here.
--------------------------------------------------------- */
.news-highlight {
  background: var(--spi-black);
  color: var(--spi-white);
  /* the long sweep on the trailing edge is the page's signature */
  border-radius: var(--spi-radius-md) 52px 52px var(--spi-radius-md);
  overflow: hidden;
  min-height: 300px;
}

/* .spi-split is an even 50/50. The copy here is a headline and a
   byline; the artwork is the point. Base has no ratio modifier,
   so the basis is set on the two halves directly — the mobile
   stack below 768px is base's and is left alone. */
.news-highlight > .news-highlight-body {
  flex: 0 1 36%;
  padding: 32px;
}

.news-highlight > .news-highlight-img {
  flex: 1 1 64%;
  align-self: stretch;
  /* the panel sets the height; the photo fills it without distorting.
     Load-bearing: without it the img falls back to its 540px height
     attribute and the panel grows to match. */
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

/* The byline sits on the dark panel, where base's --spi-text-muted
   (a dark muted, for light grounds) would be unreadable. */
.news-highlight-meta {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.7);
}

/* Stacked, the artwork leads and the fixed min-height would leave a
   tall empty panel, so it goes back to its natural ratio. */
@media (max-width: 768px) {
  .news-highlight {
    min-height: 0;
    border-radius: var(--spi-radius-md);
  }

  .news-highlight > .news-highlight-img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .news-highlight > .news-highlight-body {
    padding: 24px;
  }
}

/* ---------------------------------------------------------
   2. STORY CARD
   Base's .spi-card-article, unchanged except for two things a
   news headline needs that a short label does not.
--------------------------------------------------------- */

/* The card is a link, so the whole tile is the target. (Its colour
   is already inherited — base resets every <a> to color: inherit.) */
.news-card {
  display: block;
  transition: var(--spi-ease);
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--spi-gray-400);
}

.news-card:focus-visible {
  outline: 2px solid var(--spi-accent);
  outline-offset: 2px;
}

/* Base styles an article card's heading (an h4) as a short uppercase
   label. These are full headlines — "Inside the 900 Global Portal: A
   Different Approach to Strong Solid Performance" — set as h3s so the
   page's heading order holds, and they need sentence case and a size
   that suits a paragraph of title. `text-transform: none` is
   load-bearing on the live site: the store theme uppercases every h3. */
.news-card .spi-card-article-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

/* The sentinel is a scroll trigger, not content. */
#news-sentinel {
  height: 1px;
}

#news-status {
  margin-top: 32px;
}
