/* landing-press.css: the press (#news, "Latest in longevity · in the press") as one row of four clickable cards on
 * today's page (the World off: no WebGL, a weak device, ?world=off, reduced motion, the editorial skin), and their
 * entrance: all cards ease out from a stack together, without a stagger or bounce. landing-press.js only
 * measures and flags; the motion is here. With the World on, the press is the World's own 3D arc (landing-world-finale.js
 * and .css) and nothing here applies: every rule is keyed on html:not([data-world="on"]), so the two never meet.
 *
 * Layout. Desktop (1100 px and up): the section head, then the four cards in a row across the shell. Narrower, the
 * cards turn horizontal (the picture a thumbnail on the left): two by two between 900 and 1099 px, one column under 900
 * px (phones and tablets upright). Each card is a link to its article in a new tab (index.html: target="_blank"
 * rel="noopener", and a visually hidden "(opens in a new tab)").
 *
 * Specificity. Every rule is keyed on html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] (1,4,1), so it
 * outranks the older press rules (landing-2026.css, landing-premium.css, landing-editorial.css: at most (0,3,1))
 * without !important.
 *
 * Colour. The landing's glass (site-world-ui.css values: rgba(16,24,27,.86) opaque, .72 with blur where it is cheap,
 * the #cfe3dc2e hairline and the inset highlight); mint (#a5e4dc) is the only UI accent. Peach is light inside the
 * globe only and never appears here. Text on the glass: ink #f4f6f5, gloss #b4bec1, source #bac6c9 (all over 8:1). */

/* ---- the row ---- */
html:not([data-world="on"]) #news.lp2-section { overflow-x: clip; }   /* the entrance never widens the page */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch;
  margin: 0; padding: 0;
}

/* ---- a card: picture on top, the source line, the title, the gloss, then "Read the article ↗" at its foot ---- */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0; padding: 0 0 18px;
  border: 1px solid #cfe3dc2e; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: rgba(16, 24, 27, .86); box-shadow: inset 0 1px #ffffff14, 0 30px 60px -38px #000;
  color: #f4f6f5; text-decoration: none; transform: none; translate: none; outline: 0;
  transition: translate .35s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, background-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item::before { content: none; display: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 900px) {
    html:not([data-depth-tier="lite"]):not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item {
      background: rgba(16, 24, 27, .72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    }
  }
}
/* the picture: the publisher's own, whole (contain) on a dark ground; the journal header on its paper ground */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic {
  position: relative; display: block; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid #cfe3dc1f; border-radius: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #1a262a, #0b1114 72%);
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic img {
  display: block; box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0; object-fit: contain; object-position: 50% 50%;
  transform: none; transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
/* the two photographs fill their frame (a sliver of their edges at most); the magazine cover and the journal header,
   whose whole page is the point, are never cropped */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic:not(.lp2-news__pic--cover, .lp2-news__pic--paper) img { object-fit: cover; object-position: 50% 35%; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic--cover img { padding: 10px 0; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic--paper { background: #f6f3ee; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic--paper img { padding: 10px 14px; }
/* the words */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-meta {
  margin: 16px 18px 8px; font: 500 10.5px/1.5 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em;
  text-transform: none; color: #bac6c9;
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-h3 {
  margin: 0 18px 10px; max-width: none; font: 500 19px/1.26 var(--lp2-body, "Instrument Sans", system-ui, sans-serif); letter-spacing: -.02em;
  color: #f4f6f5; text-wrap: pretty; text-decoration: none;
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-body {
  margin: 0 18px 16px; max-width: none; font-size: 13.5px; line-height: 1.55; color: #b4bec1;
}
/* the affordance: always visible, at the card's foot; its arrow nudges up and right on hover and focus */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__read {
  position: relative; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: auto 18px 0;
  font: 500 13px/1.3 var(--lp2-body, "Instrument Sans", system-ui, sans-serif); letter-spacing: 0; color: #a5e4dc;
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__arrow { display: inline-block; font-size: 14px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }

/* ---- hover and focus: a lift of a few pixels, a mint edge, the arrow nudges; a clear ring for the keyboard ---- */
@media (hover: hover) {
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:hover { translate: 0 -4px; border-color: #a5e4dc8c; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:hover .lp2-news__arrow { transform: translate(2px, -2px); }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:hover .lp2-news__pic img { transform: scale(1.025); }
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:focus-visible { translate: 0 -4px; border-color: #a5e4dc; outline: 2px solid #a5e4dc; outline-offset: 4px; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:focus-visible .lp2-news__arrow { transform: translate(2px, -2px); }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:active { translate: 0 -1px; }
/* the card the Next arrow (landing-next.js) is on, in every mode: a quiet mint ring (not landing-next.css's peach) */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item[data-next-current] { border-color: #a5e4dcb3; outline: 1px solid #a5e4dc80; outline-offset: 5px; }

/* ---- under 1100 px: horizontal cards, the picture a thumbnail on the left; two columns on mid widths (900 to 1099 px),
   one under 900 px (phones, tablets upright) ---- */
@media (max-width: 1099px) {
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 16px;
    align-items: start; padding: 14px 16px 14px 14px; border-radius: 18px;
  }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic {
    grid-column: 1; grid-row: 1 / -1; align-self: stretch; width: auto; height: auto; min-height: 120px; aspect-ratio: auto;
    border: 0; border-radius: 12px;
  }
  /* the picture takes the card's height, never sets it (the tall cover would otherwise stretch its card) */
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic img { position: absolute; inset: 0; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic--cover img { padding: 6px 0; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic--paper img { padding: 6px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-meta { grid-column: 2; margin: 2px 0 6px; font-size: 10px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-h3 { grid-column: 2; margin: 0 0 8px; font-size: 17px; line-height: 1.28; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-body { grid-column: 2; margin: 0 0 10px; font-size: 13px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__read { grid-column: 2; align-self: end; margin: 0; font-size: 12.5px; }
}
@media (max-width: 899px) {
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* phones: a smaller thumbnail, and the gloss gives way so all four fit in about a screen (the title and the source carry
   the card) */
@media (max-width: 599px) {
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 14px; padding: 12px 14px 12px 12px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__pic { min-height: 104px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-h3 { font-size: 16px; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item .lp2-body { display: none; }
}

/* ---- the entrance: one gentle fan-out for the complete collection ----
   landing-press.js writes each card's offset to the stack (--press-dx, --press-dy: to the row's centre on a row or a
   grid, to the first card on the phone column) and moves the row through data-press="armed" (stacked, waiting to be
   seen) → "fan" (the motion, once) → "done". Opacity is never touched: every word stays readable at every frame. */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(1) { --press-r: -8deg; --press-i: 0; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(2) { --press-r: -3deg; --press-i: 1; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(3) { --press-r: 3deg; --press-i: 2; }
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(4) { --press-r: 8deg; --press-i: 3; }
@media (max-width: 1099px) {   /* wide, horizontal cards: a gentler hand */
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(1) { --press-r: -3deg; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(2) { --press-r: -1.2deg; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(3) { --press-r: 1.2deg; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:nth-child(4) { --press-r: 3deg; }
}
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press="armed"] .lp2-news__item {
  transform: translate(var(--press-dx, 0px), var(--press-dy, 0px)) rotate(var(--press-r, 0deg)) scale(.92); transition: none;
}
/* A shared 1.15-second ease, no overshoot and no delay between articles. */
html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press="fan"] .lp2-news__item {
  transition: none;
  animation: press-fan 1150ms cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes press-fan {
  0% { transform: translate(var(--press-dx, 0px), var(--press-dy, 0px)) rotate(var(--press-r, 0deg)) scale(.92); }
  100% { transform: none; }
}
/* no entrance at all (the cards are simply there): reduced motion, the landing's own Pause animations (which would
   otherwise freeze a card mid-flight), the KC's reduced and clear registers, forced colours */
html[data-motion-paused]:not([data-motion-paused="false"]):not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item,
html[data-motion="reduced"]:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item,
html[data-presentation="clear"]:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item { transform: none; animation: none; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item { transform: none; animation: none; transition: none; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:is(:hover, :focus-visible) { translate: none; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item :is(.lp2-news__arrow, img) { transition: none; transform: none; }
}
@media (forced-colors: active) {
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item { border-color: CanvasText; background: Canvas; color: CanvasText; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__item:focus-visible { outline-color: Highlight; }
  html:not([data-world="on"]) #news.lp2-section .lp2-news[data-press] .lp2-news__read { color: LinkText; }
}
