/* The news page, /news/: its top and its list. Design pass of 12 November 2026, passed by the owner.
 * Loaded by the news route on the list page only.
 *
 * The top   the title, the page's own description as its lead, and the RSS and press links, moved up
 *           from under the list.
 * The list  one item to a row, newest first, on hairlines. Every row has the same two columns at every
 *           width: the picture frame takes a third of the row and the words two thirds, so rows align
 *           whatever an item's length, and picture and words keep one ratio. The frame is 3:2 everywhere;
 *           an item without a picture shows its kind's icon in the same frame. From 1024px the summary
 *           and link sit in the words column beside the picture; below 1024px the frame sits beside the
 *           date line and headline, and the summary and link run under both. The summary is shown in full,
 *           never clamped. Sample and Draft follow the date line, so they never break a headline. The
 *           whole row is the link: to the item's page, or, for an item set to go straight to its story,
 *           to the story (see news.css). */

/* ---------------------------------------------------------------- the page top
   The title, the page's own description as its lead, and the RSS and press links, which move up from
   under the list: on the right from 1024px, under the lead below that. */
.news-top__inner { gap: 16px; }
.news-top__text { display: flex; flex-direction: column; gap: 16px; }
.news-top__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.news-top__rss { display: inline-flex; align-items: center; }
.news-top__icon { display: inline-flex; margin-right: 8px; }
@media (min-width: 1024px) {
  .news-top__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--kit-space-block); }
  .news-top__text { gap: var(--kit-space-block); }
  .news-top__links { flex-direction: column; flex-wrap: nowrap; flex-shrink: 0; align-items: flex-start; gap: 10px; margin: 0 0 6px; }
}
/* At 1440 the description has a little more room than the site's 720px lead: today's sits on one line, and a
   longer one still takes two even lines. */
@media (min-width: 1440px) { .news-top .page-top__lead { max-width: 800px; } }

/* ---------------------------------------------------------------- the list */
.section--news { padding-top: var(--kit-space-block); }
.news-rows { margin: 0; padding: 0; list-style: none; }
.news-rows > li + li { border-top: 1px solid var(--kit-line); }

.news-row {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto 1fr auto auto; column-gap: 16px;
  grid-template-areas: "media meta" "media title" "summary summary" "link link";
  padding-block: 24px; color: var(--kit-text); text-decoration: none;
}
.news-row::before {
  content: ""; position: absolute; z-index: -1; inset: 8px -12px; border-radius: var(--kit-radius-card);
  background: var(--kit-bg-wash-violet); opacity: 0; transition: opacity var(--kit-dur-short) var(--kit-ease);
}
.news-row:hover { color: var(--kit-text); text-decoration: none; }
.news-row:hover::before, .news-row.is-hover::before { opacity: 1; }
.news-row:hover .arrow, .news-row.is-hover .arrow { transform: translateX(4px); }
.news-row:focus-visible { outline: none; }
.news-row:focus-visible::before, .news-row.is-focus::before { opacity: 1; outline: 2px solid var(--kit-focus); outline-offset: 0; }

.news-row__media { grid-area: media; align-self: start; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--kit-radius-row); background: var(--kit-bg-sunken); }
.news-row__media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-row__media--icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #EEEBFF 0%, var(--kit-tint-plum) 100%); }
.news-row__media--icon .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--kit-bg-surface); color: var(--kit-violet); box-shadow: 0 6px 16px -6px rgba(91,63,209,0.35); }
.news-row__media--icon .tile svg { width: 20px; height: 20px; }

/* The date line: NewsMeta's words. The date never breaks inside itself; a wrapped line never opens on a
   dot (NewsMeta holds each dot to the words before it). */
.news-row__meta { grid-area: meta; margin: 0; font-size: var(--kit-type-ui-size); line-height: var(--kit-type-ui-line); font-weight: var(--kit-weight-semibold); color: var(--kit-text-subtle); }
.news-row__meta > time { white-space: nowrap; }
.news-row__flags { display: inline-flex; gap: 6px; margin-left: 4px; vertical-align: 1px; }
.news-row__flags .chip { vertical-align: 0; }
.news-row__title { grid-area: title; margin-top: 6px; font-size: 17px; line-height: 24px; letter-spacing: var(--kit-type-subhead-track); }
.news-row__summary { grid-area: summary; max-width: 640px; margin-top: 14px; font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); color: var(--kit-text-muted); }
.news-row__link { grid-area: link; justify-self: start; margin-top: 10px; font-size: var(--kit-type-small-size); line-height: var(--kit-type-small-line); }

@media (min-width: 768px) {
  .news-row { column-gap: var(--kit-space-block); padding-block: 32px; }
  .news-row::before { inset: 10px -20px; }
  .news-row__media--icon .tile { width: 64px; height: 64px; border-radius: var(--kit-radius-card); box-shadow: 0 8px 20px -8px rgba(91,63,209,0.35); }
  .news-row__media--icon .tile svg { width: 30px; height: 30px; }
  .news-row__title { margin-top: 8px; font-size: var(--kit-type-heading-size); line-height: var(--kit-type-heading-line); letter-spacing: var(--kit-type-heading-track); }
  .news-row__summary { margin-top: 20px; font-size: var(--kit-type-body-size); line-height: var(--kit-type-body-line); }
  .news-row__link { margin-top: 12px; }
}
@media (min-width: 1024px) {
  .section--news { padding-top: 56px; }
  .news-row { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; grid-template-areas: none; padding-block: 40px; }
  .news-row::before { inset: 16px -24px; }
  .news-row__media { grid-column: 1 / span 4; grid-row: 1 / span 4; }
  .news-row__meta, .news-row__title, .news-row__summary, .news-row__link { grid-column: 5 / -1; }
  .news-row__meta { grid-row: 1; font-size: var(--kit-type-caption-size); line-height: var(--kit-type-caption-line); }
  .news-row__title { grid-row: 2; max-width: 720px; }
  .news-row__summary { grid-row: 3; margin-top: 12px; }
  .news-row__link { grid-row: 4; align-self: start; margin-top: 16px; }
}

/* An item that goes straight to its story: its icon moves up and right on hover, where the arrow moves right. */
.news-row:hover .arrow--out, .news-row.is-hover .arrow--out { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .news-row::before { transition: none; }
  .news-row:hover .arrow--out { transform: none; }
}
