/* News page: exactly one screen, no page scroll — header row + featured story + grid that shares the
   remaining height (builds on about.css). Phones / short screens: the cards become a horizontal swipe strip. */
html:has(body.nw-page), body.nw-page { height: 100%; overflow: hidden; overscroll-behavior: none; }
.nw-page .ab-foot { display: none; }
.nw-page .ab-veil { background: transparent; }
/* lighter glass on News so the 3D broadsheet reads through the cards */
.nw-page .nw-card.ab-glass:not(.nw-feature) { background: rgba(255,255,255,.66); backdrop-filter: blur(5px) saturate(1.1); -webkit-backdrop-filter: blur(5px) saturate(1.1); }
.nw-scene { height: 100vh; height: 100svh; padding: 84px 0 22px; box-sizing: border-box; }
.nw-scene .ab-wrap { height: 100%; display: flex; flex-direction: column; }
.nw-head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 40px; flex-wrap: wrap; margin-bottom: clamp(10px, 2vh, 18px); }
.nw-head .ab-kicker { margin-bottom: 8px; }
.nw-title { margin: 0; font-size: clamp(2rem, min(4.6vw, 7vh), 3.9rem); line-height: .95; font-weight: 900; letter-spacing: -.045em; }
.nw-sub { margin: 0; max-width: 46ch; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.nw-sub span { color: var(--ink); }

.nw-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vh, 12px); }
.nw-card { position: relative; display: flex; flex-direction: column; gap: clamp(3px, .7vh, 6px); min-width: 0; min-height: 0; overflow: hidden; padding: clamp(10px, 1.6vh, 14px) 16px; border-radius: 16px;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .25s, box-shadow .25s;
  transition-delay: calc(var(--i, 0) * 45ms); }
.nw-grid.is-in .nw-card { opacity: 1; transform: none; }
.nw-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); transform: scaleY(.3); transition: transform .35s var(--ease); }
.nw-card:hover::before { transform: none; }
.nw-card:hover { border-color: rgba(227,30,36,.45); box-shadow: 0 14px 34px rgba(22,25,28,.09); transform: translateY(-2px); }
.nw-feature { grid-row: span 3; padding: 0 0 16px; overflow: hidden; background: var(--ink); border-color: var(--ink); box-shadow: 0 30px 60px rgba(22,25,28,.25); }
.nw-feature::before { display: none; }
.nw-feature > :not(.nw-img) { margin-left: 18px; margin-right: 18px; }
.nw-img { display: block; width: 100%; flex: 1 1 0; min-height: 0; object-fit: cover; margin-bottom: 8px; background: #2a2f33; }
.nw-feature h3 { font-size: clamp(1.05rem, 2.6vh, 1.35rem); }
.nw-card.nw-feature h3 { -webkit-line-clamp: 3; }
.nw-card.nw-feature h3 a { color: #fff; }
.nw-card.nw-feature:hover h3 a { color: #ff6b70; }
.nw-feature .nw-body { -webkit-line-clamp: 4; color: #c9ced2; }
.nw-feature .nw-meta { color: #9aa3a9; }

.nw-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; font-size: .74rem; color: var(--muted); }
.nw-src { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--red); font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-src img { flex: none; border-radius: 3px; }
.nw-meta time { flex: none; font-variant-numeric: tabular-nums; }
.nw-card h3 { margin: 0; flex: none; font-size: clamp(.88rem, 1.9vh, 1rem); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }
.nw-card h3 a { color: var(--ink); text-decoration: none; }
.nw-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is the link */
.nw-card:hover h3 a { color: var(--red); }
.nw-body { margin: 0; color: var(--body); font-size: clamp(.78rem, 1.65vh, .86rem); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nw-empty { grid-column: 1 / -1; color: var(--muted); }
.nw-skel { min-height: 0; border-radius: 16px; background: linear-gradient(90deg, rgba(22,25,28,.04), rgba(22,25,28,.08), rgba(22,25,28,.04));
  background-size: 200% 100%; animation: nw-shimmer 1.4s linear infinite; }
.nw-skel.nw-feature { border: 0; }
@keyframes nw-shimmer { to { background-position: -200% 0; } }

@media (min-width: 1100px) { .nw-scene .ab-wrap { max-width: 1320px; } }
.nw-feature .nw-body { flex: none; }
/* short desktop screens: two summary lines so nothing is cut mid-line */
@media (max-height: 760px) and (min-width: 761px) { .nw-body, .nw-feature .nw-body { -webkit-line-clamp: 2; } .nw-meta { font-size: .7rem; } }

/* Phones and short landscape screens: header on top, cards in a horizontal swipe strip (two rows). */
@media (max-width: 760px), (max-height: 560px) {
  .nw-scene { padding: 74px 0 14px; }
  .nw-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nw-sub { font-size: .82rem; }
  .nw-grid { grid-template-columns: none; grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: min(80vw, 340px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(16px, 5vw, 72px)); padding: 0 clamp(16px, 5vw, 72px) 4px; scroll-padding: 0 clamp(16px, 5vw, 72px); }
  .nw-grid::-webkit-scrollbar { display: none; }
  .nw-card { scroll-snap-align: start; }
  .nw-feature { grid-row: span 3; }
  .nw-card h3 { font-size: .95rem; }
  .nw-body { font-size: .82rem; }
}
@media (pointer: coarse) { .nw-card h3 a::after { inset: -2px; } }
