/* Impact360 — In the Press (/press/, /en/press/). Shared components live in site.css.
   v2 · corporate restraint: the standard film hero, then typographic frosted cards — a masthead strip (publisher
   label + section | date over a hairline), the headline in Heebo 900, the description, a Glass Button. 3 / 2 / 1
   per row; the cards of a row share row tracks (subgrid) so every part lines up; a lone last card spans the row as a
   horizontal archive card aligned to the columns above. No ornaments; reveals and hovers only. */

/* ---------------------------------------------------------------- hero: the standard film window, a little shorter */
.press-hero .page-hero-window { min-height: clamp(320px, 44vh, 500px); }
.press-hero .page-title { font-size: clamp(52px, 6.8vw, 104px); line-height: .98; letter-spacing: -.03em; }
.press-hero .page-title[lang="en"], .press-hero .page-title [lang="en"], [lang="en"] .press-hero .page-title { font-weight: 800; }

/* ---------------------------------------------------------------- the list */
.press-sec { padding-block: clamp(48px, 6vw, 88px) var(--sec-y); }
.press-list {
  --g: clamp(16px, 2vw, 26px);        /* gutter between cards */
  --p: clamp(22px, 2.3vw, 34px);      /* card padding */
  --rule: rgba(10, 31, 68, .15);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.press-item { display: grid; min-width: 0; }

/* ---------------------------------------------------------------- the card (base: a column; subgrid below) */
.press-card {
  --tint-a: rgba(255, 255, 255, .82); --tint-b: rgba(255, 255, 255, .68); --blur: 20px;
  display: flex; flex-direction: column; min-width: 0;
  padding: var(--p); border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
  transition: transform .5s var(--spring), opacity 1s var(--ease) var(--d, 0s);
}
.js .press-card.in { transition: opacity 1s var(--ease) var(--d, 0s), transform .5s var(--spring); }
.press-card:focus-visible { outline-offset: 4px; }
/* the lift must out-rank the revealed state (.js [data-reveal].in { transform: none } is 0,3,0); motion only when allowed */
@media (prefers-reduced-motion: no-preference) {
  .press-card:hover, .js .press-card.in:hover { transform: translateY(-3px); }
}
.press-card > * { min-width: 0; }
/* DOM order is the JSON's (headline, strip, description); the strip reads first visually */
.press-cover { order: -2; }
.press-strip { order: -1; }

/* masthead strip: the publisher as a small navy label, the dateline at the far end, a hairline under both */
.press-strip {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px;
  padding-block-end: 13px; margin-block-end: clamp(18px, 1.7vw, 24px);
  border-block-end: 1px solid var(--rule);
  container: press-strip / inline-size;
}
.press-pub { font: 900 17px/1.25 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.page-press--en .press-pub { font: 700 13.5px/1.35 var(--font-display); letter-spacing: .13em; text-transform: uppercase; }
/* margin-inline-start: auto — if a dateline ever wraps on its own, it keeps to the strip's far end like the others */
.press-dl { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-inline-start: auto; font: 500 14px/1.35 var(--font-body); color: var(--ink-3); }
.press-sep { color: rgba(10, 31, 68, .3); }
.press-sep--lead { display: none; }   /* the strip spreads publisher | dateline apart; the pipe stays in the text */
/* narrow English strips: the tracked capitals of the longest publisher + a dateline need ~305px, so below ~312px
   every strip of the row stacks the same way (label, then dateline under it) instead of only the long ones
   wrapping — 3-up 960–1179, 2-up up to ~800, phones under 390 */
@container press-strip (max-width: 311px) {
  .page-press--en .press-dl { flex-basis: 100%; margin-inline-start: 0; }
}

/* the published headline */
.press-title { font: 900 clamp(22px, 1.75vw, 26px)/1.24 var(--font-display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.press-title-src { display: block; transition: color .35s var(--ease); }
/* the hover / keyboard-focus cue: the headline takes the link colour */
.press-card:is(:hover, :focus-visible) .press-title-src { color: var(--blue-deep); }
/* a headline in the other language (Hebrew on the English page): its own direction, aligned with the card's start edge */
[dir="ltr"] .press-title-src[dir="rtl"] { text-align: left; }
[dir="rtl"] .press-title-src[dir="ltr"] { text-align: right; }
.press-title-tr { display: block; margin-block-start: 10px; font: 600 16.5px/1.45 var(--font-body); letter-spacing: 0; color: var(--ink-2); text-wrap: pretty; }
.press-desc { max-width: 44em; margin-block-start: 14px; font: 400 16px/1.7 var(--font-body); color: var(--ink-2); }

/* foot: the Glass Button (a visual: the card is the link) */
.press-foot { display: flex; align-items: center; margin-block-start: auto; padding-block-start: clamp(22px, 2.2vw, 30px); container: press-foot / inline-size; }
.press-btn .glass-button-text { white-space: nowrap; }
.press-btn .i-out { width: 1.05em; height: 1.05em; transition: translate .4s var(--spring); }
[dir="rtl"] .press-btn .i-out { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .press-card:hover .press-btn .i-out { translate: 2px -2px; }
  [dir="rtl"] .press-card:hover .press-btn .i-out { translate: -2px -2px; }
}
/* narrow cards: the long English labels ("Read the policy paper (in Hebrew)", ~280px) take the component's --sm
   metrics where a card's foot is under ~290px — 3-up below 1180, 2-up below 750, phones below 366. A viewport rule
   (not a container query) so every button on the screen, the lone wide card's too, keeps one size. Last resort
   (a foot under 240px): the label may wrap — it never runs past the card */
@media (min-width: 960px) and (max-width: 1179px), (min-width: 641px) and (max-width: 749px), (max-width: 365px) {
  .page-press--en .press-btn .glass-button { font-size: .875rem; line-height: 1.25rem; }
  .page-press--en .press-btn .glass-button-text { padding: .5rem 1rem; }
}
@container press-foot (max-width: 240px) {
  .press-btn, .press-btn .glass-button { max-width: 100%; }
  .press-btn .glass-button-text { white-space: normal; }
}

/* optional 16:9 cover (item.image) — inset 10px from the card edge, like the blog cards */
.press-cover {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  margin: calc(10px - var(--p)) calc(10px - var(--p)) clamp(18px, 1.8vw, 24px);
  border-radius: calc(var(--r-lg) - 10px); background: var(--night);
  box-shadow: 0 0 0 1px rgba(10, 31, 68, .08);
}
.press-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
/* the cover (the article's own image) is part of the card link: a quiet zoom on hover, the photo credit in the corner */
.press-card:hover .press-cover-img, .press-card:focus-visible .press-cover-img { transform: scale(1.035); }
.press-cover-credit {
  position: absolute; z-index: 1; inset-block-end: 8px; inset-inline-end: 8px; max-width: calc(100% - 16px);
  padding: 4px 9px; border-radius: 999px; font: 500 11px/1.3 var(--font-body); color: #fff;
  background: rgba(6, 16, 40, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .press-cover-img { transition: none; } .press-card:hover .press-cover-img, .press-card:focus-visible .press-cover-img { transform: none; } }
/* no cover while others have one: a flat navy masthead panel (decorative) */
.press-cover--type { display: grid; place-items: center; container-type: inline-size; padding: 0 8%; text-align: center; }
.press-cover-mark { font: 900 9cqi/1.1 var(--font-display); letter-spacing: -.01em; color: #fff; }
.page-press--en .press-cover-mark { font-weight: 800; font-size: 7cqi; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- tablet (641–959): two per row, rows share their tracks */
@media (min-width: 641px) {
  .press-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
  @supports (grid-template-rows: subgrid) {
    .press-item { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .press-list--covers .press-item { grid-row: span 5; }
    .press-card { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 0; }
    .press-strip { grid-row: 1; }
    .press-title { grid-row: 2; }
    .press-desc { grid-row: 3; align-self: start; }
    .press-foot { grid-row: 4; align-self: end; }
    .press-list--covers .press-cover { grid-row: 1; }
    .press-list--covers .press-strip { grid-row: 2; }
    .press-list--covers .press-title { grid-row: 3; }
    .press-list--covers .press-desc { grid-row: 4; }
    .press-list--covers .press-foot { grid-row: 5; }
  }
}

/* ---------------------------------------------------------------- desktop (960+): three per row on six tracks
   (from 960, not the shared 900: below it a 3-up card is too narrow for the English button labels) */
@media (min-width: 960px) {
  .press-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .press-item { grid-column: span 2; }
  /* two left over on the last row: half each */
  .press-item:nth-last-child(2):nth-child(3n+1), .press-item:last-child:nth-child(3n+2) { grid-column: span 3; }
}

/* ---------------------------------------------------------------- one left over: a horizontal archive card
   spanning the row. Its columns are the row's own tracks (subgrid): strip + headline over the first card's column,
   the text over the rest, each aligned to the content edges of the cards above (the card's padding only reaches its
   outer edges), with a hairline centred in the gutter between. Written out per track count (2-up, 3-up). */
@media (min-width: 641px) and (max-width: 959px) {
  .press-item:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .press-item:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@supports (grid-template-columns: subgrid) {
  @media (min-width: 641px) and (max-width: 959px) {
    .press-item:last-child:nth-child(2n+1) { grid-template-columns: subgrid; }
    .press-item:last-child:nth-child(2n+1) > .press-card { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: var(--g); }
    .press-item:last-child:nth-child(2n+1) .press-strip { grid-area: 1 / 1 / 2 / -1; }
    .press-item:last-child:nth-child(2n+1) .press-title { grid-area: 2 / 1 / -1 / 2; margin-inline-end: var(--p); }
    .press-item:last-child:nth-child(2n+1) .press-desc { grid-area: 2 / 2 / 4 / -1; align-self: stretch; margin-block-start: 0; font-size: 17px; }
    .press-item:last-child:nth-child(2n+1) .press-foot { grid-area: 4 / 2 / -1 / -1; }
    .press-item:last-child:nth-child(2n+1) :is(.press-desc, .press-foot) {
      margin-inline-start: calc(var(--g) / -2); padding-inline-start: calc(var(--p) + var(--g) / 2); border-inline-start: 1px solid var(--rule);
    }
    .press-list--covers .press-item:last-child:nth-child(2n+1) .press-cover { grid-area: 1 / 1 / -1 / 2; aspect-ratio: auto; min-height: 220px; margin-inline-end: 0; margin-block-end: calc(10px - var(--p)); }
    .press-list--covers .press-item:last-child:nth-child(2n+1) .press-strip { grid-area: 1 / 2 / 2 / -1; }
    .press-list--covers .press-item:last-child:nth-child(2n+1) .press-title { grid-area: 2 / 2 / 3 / -1; }
    .press-list--covers .press-item:last-child:nth-child(2n+1) .press-desc { grid-area: 3 / 2 / 5 / -1; margin-block-start: 14px; }
    .press-list--covers .press-item:last-child:nth-child(2n+1) .press-foot { grid-area: 5 / 2 / -1 / -1; }
    .press-list--covers .press-item:last-child:nth-child(2n+1) :is(.press-strip, .press-title, .press-desc, .press-foot) {
      margin-inline: 0; padding-inline-start: var(--p); border-inline-start: 0;
    }
  }
  @media (min-width: 960px) {
    .press-item:last-child:nth-child(3n+1) { grid-template-columns: subgrid; }
    .press-item:last-child:nth-child(3n+1) > .press-card { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: var(--g); }
    .press-item:last-child:nth-child(3n+1) .press-strip { grid-area: 1 / 1 / 2 / -1; }
    .press-item:last-child:nth-child(3n+1) .press-title { grid-area: 2 / 1 / -1 / 3; margin-inline-end: var(--p); }
    .press-item:last-child:nth-child(3n+1) .press-desc { grid-area: 2 / 3 / 4 / -1; align-self: stretch; margin-block-start: 0; font-size: 17px; }
    .press-item:last-child:nth-child(3n+1) .press-foot { grid-area: 4 / 3 / -1 / -1; }
    .press-item:last-child:nth-child(3n+1) :is(.press-desc, .press-foot) {
      margin-inline-start: calc(var(--g) / -2); padding-inline-start: calc(var(--p) + var(--g) / 2); border-inline-start: 1px solid var(--rule);
    }
    .press-list--covers .press-item:last-child:nth-child(3n+1) .press-cover { grid-area: 1 / 1 / -1 / 3; aspect-ratio: auto; min-height: 220px; margin-inline-end: 0; margin-block-end: calc(10px - var(--p)); }
    .press-list--covers .press-item:last-child:nth-child(3n+1) .press-strip { grid-area: 1 / 3 / 2 / -1; }
    .press-list--covers .press-item:last-child:nth-child(3n+1) .press-title { grid-area: 2 / 3 / 3 / -1; }
    .press-list--covers .press-item:last-child:nth-child(3n+1) .press-desc { grid-area: 3 / 3 / 5 / -1; margin-block-start: 14px; }
    .press-list--covers .press-item:last-child:nth-child(3n+1) .press-foot { grid-area: 5 / 3 / -1 / -1; }
    .press-list--covers .press-item:last-child:nth-child(3n+1) :is(.press-strip, .press-title, .press-desc, .press-foot) {
      margin-inline: 0; padding-inline-start: var(--p); border-inline-start: 0;
    }
  }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .press-sec { padding-block-start: 40px; }
  .press-list { --p: 22px; }
  .press-card { border-radius: 24px; }
  .press-cover { border-radius: 16px; }
  .press-title { font-size: clamp(22px, 6.2vw, 25px); }
  .press-hero .page-title { font-size: clamp(42px, 13.4vw, 56px); }
}
@media (forced-colors: active) {
  .press-strip { border-color: CanvasText; }
  .press-cover { border: 1px solid CanvasText; }
}
