/* News section: /news, /news/<slug>, /news/emails/<date-slug>.
   Loaded only by those pages. Uses the site's colour tokens, so both themes
   follow site.css. No coloured left-edge stripes on cards, rows or notes. */

.news-page { padding: 64px 0 88px; }
.news-col { max-width: 720px; margin: 0 auto; }
.news-col h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.news-lede { margin: 10px 0 0; color: var(--text-dim); font-size: 17px; line-height: 1.55; }

/* Header link: the News page is the current section. */
#primary-nav a.nav-news[aria-current="page"] { color: var(--text-primary); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 10px; }

/* ---------- Index ---------- */
.news-tabs { display: flex; align-items: flex-end; gap: 26px; margin-top: 30px; border-bottom: 1px solid var(--hairline); }
.news-tabs a.news-tab { position: relative; padding: 0 0 11px; font-size: 15px; font-weight: 500; color: var(--text-dim); text-decoration: none; }
.news-tabs a.news-tab:hover { color: var(--text-primary); }
.news-tabs a.news-tab[aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.news-tabs a.news-tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.news-feed { margin-left: auto; padding-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-mute); text-decoration: none; }
.news-feed svg { width: 12px; height: 12px; }
.news-feed:hover { color: var(--text-primary); }
.news-filter { margin: 18px 0 -6px; font-size: 14px; color: var(--text-mute); }
.news-filter b { color: var(--text-primary); font-weight: 600; }
.news-empty { padding: 40px 0 8px; margin: 0; color: var(--text-mute); font-size: 15.5px; line-height: 1.6; }
.news-list { list-style: none; margin: 8px 0 0; padding: 0; }
.news-year { padding: 28px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--text-mute); }
.news-item { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; grid-template-areas: "meta main cov";
  column-gap: 28px; align-items: start; padding: 30px 0 32px; border-top: 1px solid var(--hairline); }
.news-list > .news-item:first-child, .news-year + .news-item { border-top: 0; }
.news-meta { grid-area: meta; display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.news-meta time { font-size: 13.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); }
.news-kind svg { width: 13px; height: 13px; flex: none; }
.news-main { grid-area: main; min-width: 0; }
.news-t { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.008em; text-wrap: pretty; }
.news-t a { color: var(--text-primary); text-decoration: none; }
.news-t a:hover { color: var(--brand); }
.news-s { margin: 8px 0 0; color: var(--text-dim); font-size: 15.5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-tags { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--text-faint); }
.news-tags a { color: var(--text-mute); text-decoration: none; }
.news-tags a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: .2em; }
.news-cov { grid-area: cov; display: block; flex: none; width: 168px; height: 105px; margin-top: 4px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--well); }
.news-cov img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* The newest entry: a little larger, same date column as the rows. */
.news-item.lead { padding-top: 22px; padding-bottom: 40px; }
.news-item.lead .news-t { font-size: 27px; line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }
.news-item.lead .news-s { -webkit-line-clamp: 3; font-size: 16.5px; margin-top: 12px; }
.news-item.lead .news-cov { width: 240px; height: 150px; }
.news-pager { margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; font-weight: 600; }
.news-pager a { color: var(--brand); text-decoration: none; }
.news-pager a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Shared article pieces ---------- */
.news-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-mute); margin-bottom: 18px; }
.news-crumbs a { color: var(--text-mute); text-decoration: none; }
.news-crumbs a:hover { color: var(--text-primary); }
.news-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.news-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--text-dim); background: var(--card-hi); text-decoration: none; }
a.news-chip:hover { color: var(--text-primary); }
.news-head h1 { margin-top: 14px; text-wrap: balance; }
.news-postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 14px; color: var(--text-mute); }
.news-postmeta .sep { opacity: .5; }
.news-langline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.news-langline a, .news-langline .on { font-size: 14px; font-weight: 600; padding: 2px 6px; border-radius: 5px; border: 1px solid transparent; text-decoration: none; color: var(--brand); }
.news-langline .on { color: var(--text-primary); border-color: var(--border); background: var(--card); }
.news-langmore { position: relative; display: inline-block; }
.news-langmore > summary { list-style: none; cursor: pointer; color: var(--text-faint); padding: 2px 4px; }
.news-langmore > summary::-webkit-details-marker { display: none; }
.news-langmore[open] > summary { color: var(--text-primary); }
.news-langmore ul { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-langmore li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text-primary); text-decoration: none; font-size: 14px; }
.news-langmore li a:hover { background: var(--hover-wash); }
.news-note { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-mute); }
.news-note a { color: var(--brand); }

.news-prose { margin-top: 30px; font-size: 17px; line-height: 1.7; color: var(--text-primary); }
.news-prose > p, .news-prose > ul, .news-prose > ol, .news-prose > blockquote, .news-prose > pre, .news-prose > table { margin: 0 0 20px; }
.news-prose > p, .news-prose li { color: color-mix(in srgb, var(--text-primary) 88%, var(--bg)); }
.news-prose ul, .news-prose ol { padding-left: 24px; }
.news-prose li { margin-bottom: 6px; }
.news-prose h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 38px 0 12px; }
.news-prose h3, .news-prose h4 { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 30px 0 10px; }
.news-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .22em; }
.news-prose code { font-family: var(--font-mono); font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--card-hi); }
.news-prose pre { padding: 14px 16px; border-radius: var(--radius); background: var(--well); border: 1px solid var(--border); overflow-x: auto; }
.news-prose pre code { padding: 0; background: none; }
.news-prose blockquote { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-2); color: var(--text-dim); }
.news-prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.news-prose th, .news-prose td { border-bottom: 1px solid var(--hairline); padding: 8px 10px; text-align: left; }
.news-prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }

.news-fig { margin: 28px 0 30px; }
.news-fig-im { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--well); }
.news-fig-im img { display: block; width: 100%; height: auto; }
.news-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-mute); }
.news-clip { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--well); }
.news-clip video { display: block; width: 100%; height: auto; }
.news-vid { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--well); min-height: 120px; }
.news-vid img { display: block; width: 100%; height: auto; filter: brightness(.82); }
.news-vid-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: rgba(10, 22, 40, .82); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.news-vid-play svg { width: 28px; height: 28px; margin-left: 4px; }
.news-vid-ext { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 6px; background: rgba(10, 22, 40, .82); color: #fff; font-size: 13px; font-weight: 600; }
.news-vid:hover .news-vid-play { background: var(--brand-fill); }
.news-vid-note { margin: 8px 0 0; font-size: 13px; color: var(--text-mute); }

.news-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.news-foot .news-chips { flex: 1; }
.news-pn { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-pn a, .news-pn .none { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--text-primary); text-decoration: none; }
.news-pn a:hover { border-color: var(--brand-soft); }
.news-pn small { display: block; font-size: 12.5px; color: var(--text-mute); margin-bottom: 4px; }
.news-pn span { font-weight: 600; font-size: 15px; line-height: 1.4; }
.news-pn .r { text-align: right; }
.news-pn .none { border-style: dashed; background: none; color: var(--text-faint); font-size: 14px; line-height: 1.4; }

/* ---------- Email on the web ---------- */
.news-emeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--text-mute); margin-bottom: 14px; }
.news-ekind { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--card-hi); color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.news-ekind svg { width: 14px; height: 14px; }
.news-etitle { font-size: 30px !important; line-height: 1.25 !important; letter-spacing: -0.015em; text-wrap: balance; }
.news-letter { margin-top: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px 34px; }
.news-letter p, .news-letter li { font-size: 16.5px; line-height: 1.7; color: color-mix(in srgb, var(--text-primary) 88%, var(--bg)); }
.news-letter p { margin: 0 0 18px; }
.news-letter ul { margin: 0 0 18px; padding-left: 22px; }
.news-letter p.sh { margin: 26px 0 6px; color: var(--text-primary); font-weight: 600; }
.news-letter > :last-child { margin-bottom: 0; }
.news-letter a { color: var(--brand); }
.news-letter .news-fig { margin: 22px 0 24px; }
.news-sent { margin: 18px 0 0; font-size: 14px; color: var(--text-mute); line-height: 1.55; }
.news-rel { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--text-dim); }
.news-rel a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text-primary); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.news-rel a:hover { border-color: var(--brand-soft); }
.news-all { margin: 14px 0 0; text-align: center; font-size: 15px; font-weight: 600; }
.news-all a { color: var(--brand); text-decoration: none; }
.news-sub { margin-top: 30px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--section-bg); border: 1px solid var(--border); }
.news-sub h2 { margin: 0; font-size: 20px; font-weight: 700; }
.news-sub > p { margin: 6px 0 0; color: var(--text-dim); font-size: 15px; line-height: 1.55; max-width: 560px; }
.news-sub .subscribe { margin: 16px 0 0; max-width: none; }
.news-sub .news-fine { margin: 10px 0 0; font-size: 13px; color: var(--text-mute); }

/* ---------- Gone and not found ---------- */
.news-gone { padding: 96px 0 120px; }
.news-gone h1 { font-size: 32px; }
.news-gone p { margin: 12px 0 0; color: var(--text-dim); font-size: 16.5px; line-height: 1.6; }
.news-gone .btn { margin-top: 24px; }

@media (max-width: 700px) {
  .news-page { padding: 32px 0 56px; }
  .news-col h1 { font-size: 30px; }
  .news-lede { font-size: 16px; }
  .news-tabs { gap: 20px; }
  .news-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta meta" "main cov"; column-gap: 14px; padding: 22px 0 24px; }
  .news-meta { flex-direction: row; align-items: center; gap: 12px; padding: 0 0 8px; }
  .news-t { font-size: 17.5px; }
  .news-cov { width: 84px; height: 64px; }
  .news-item.lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "cov" "main"; }
  .news-item.lead .news-t { font-size: 22px; }
  .news-item.lead .news-cov { width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 4px 0 14px; }
  .news-prose { font-size: 16.5px; }
  .news-prose h2 { font-size: 21px; }
  .news-pn { grid-template-columns: 1fr; }
  .news-pn .r { text-align: left; }
  .news-vid-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .news-etitle { font-size: 24px !important; }
  .news-letter { padding: 22px 18px; margin-left: -4px; margin-right: -4px; }
  .news-letter p, .news-letter li { font-size: 16px; }
  .news-sub { padding: 20px 18px; }
  .news-gone { padding: 56px 0 80px; }
}
