/* Impact360 — research page (מחקר ופרסומים אקדמיים) composition. Shared components live in site.css.
   v2 · corporate restraint: the standard film hero, the three research questions as a calm statement beside the
   two paragraphs, a slim affiliation row between hairlines (not a card), then two publication sections that share
   one frosted card design: header (eyebrow + Heebo 900 heading over a thin rule), 2 columns, 1 on phones.
   In a card the hook question is the one blue line (the lay reader's way in); chips differ by tint and wording.
   One hue (navy / blue), flat fills, no orbs, rings or glows. Nothing moves but the reveals. */

/* ---------------------------------------------------------------- 1 · hero: the standard film window, a little shorter */
.rs-hero .page-hero-window { min-height: clamp(340px, 46vh, 520px); }
.rs-hero .page-hero-copy { max-width: 64rem; }
.rs-hero .page-title { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- 2 · intro: the questions + two paragraphs */
.rs-intro { padding-block: clamp(56px, 7vw, 104px) 0; }
.rs-intro-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5.4vw, 88px); align-items: start;
}
/* the statement: one question per line, a short blue rule above it */
.rs-q { font: 700 clamp(24px, 2.3vw, 34px)/1.36 var(--font-display); letter-spacing: -.006em; color: var(--ink); }
.rs-q::before { content: ""; display: block; width: 44px; height: 3px; margin-block-end: clamp(20px, 2.2vw, 28px); background: var(--blue); }
.rs-q-ln { display: block; text-wrap: balance; }
/* English questions run ~45% longer than the Hebrew: a smaller cap keeps the first two on one line each on
   desktop (the long third one wraps, balanced, in both languages) */
.page-research--en .rs-q { font-size: clamp(22px, 2.3vw, 29px); line-height: 1.34; }
/* every question starts its own line; the gap between questions is clearly wider than a wrapped line's leading,
   so three questions read as three even where they wrap (phones) */
.rs-q-ln + .rs-q-ln { margin-block-start: .55em; }
.rs-intro-body { padding-block-start: calc(3px + clamp(20px, 2.2vw, 28px)); }
.rs-intro-p { font: 400 clamp(17px, 1.28vw, 19px)/1.75 var(--font-body); color: var(--ink-2); }
.rs-intro-p + .rs-intro-p { margin-block-start: .9em; }

/* ---------------------------------------------------------------- 3 · affiliation row: hairlines, emblem, name | role, link */
.rs-pf {
  display: flex; align-items: center; gap: clamp(16px, 1.8vw, 24px);
  margin-block-start: clamp(48px, 6vw, 88px); padding-block: clamp(16px, 1.6vw, 20px);
  border-block: 1px solid rgba(10, 31, 68, .13);
}
.rs-pf-mark { flex: none; width: clamp(48px, 4.2vw, 60px); aspect-ratio: 1; }
.rs-pf-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; } /* the emblem file is cropped flat at its edges: its inscribed circle rounds the flats off */
.rs-pf-copy { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 32px; }
.rs-pf-id { font: 400 clamp(16px, 1.2vw, 17.5px)/1.5 var(--font-body); color: var(--ink-2); }
.rs-pf-name { font-weight: 700; color: var(--ink); }
.rs-pf-sep { margin-inline: .4em; color: rgba(10, 31, 68, .32); }
.rs-pf-link {
  display: inline-flex; align-items: center; gap: 10px; padding-block: 6px;
  font: 600 clamp(15.5px, 1.12vw, 16.5px)/1.4 var(--font-body); color: var(--blue); text-decoration: none;
}
.rs-pf-link-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: rgba(35, 67, 246, .35); transition: text-decoration-color .3s; }
.rs-pf-link:hover .rs-pf-link-t { text-decoration-color: currentColor; }
.rs-pf-go { width: 18px; height: 18px; transition: translate .4s var(--spring); }
.rs-pf-link:hover .rs-pf-go { translate: 3px 0; }
[dir="rtl"] .rs-pf-link:hover .rs-pf-go { translate: -3px 0; }

/* ---------------------------------------------------------------- 4 / 5 · publication sections */
.rs-sec { padding-block: clamp(64px, 8vw, 120px) 0; }
.rs-sec:last-child { padding-block-end: var(--sec-y); }
/* header: eyebrow + heading (+ the policy intro beside it) over a thin rule */
.rs-head {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 16px clamp(32px, 5vw, 80px);
  margin-block-end: clamp(24px, 3vw, 40px); padding-block-end: clamp(18px, 2vw, 26px);
  border-block-end: 1px solid rgba(10, 31, 68, .14);
}
.rs-head--lead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.rs-eyebrow { margin-block-end: 14px; }
.rs-h2 { font: 900 clamp(34px, 3.6vw, 54px)/1.06 var(--font-display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.rs-lead { max-width: 38em; font: 400 clamp(16.5px, 1.22vw, 18.5px)/1.7 var(--font-body); color: var(--ink-2); }

/* cards: 2 columns; the four parts of every card (top, head, text, button) share rows across a row of cards
   (subgrid), so the rules, hooks and buttons line up */
.rs-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); }
.rs-item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-width: 0; }
.rs-item:nth-child(n + 3) { margin-block-start: clamp(16px, 2vw, 28px); }
.rs-card {
  --tint-a: rgba(255, 255, 255, .84); --tint-b: rgba(255, 255, 255, .7); --blur: 20px;
  grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; min-width: 0;
  padding: clamp(26px, 2.8vw, 40px) clamp(24px, 2.8vw, 40px) clamp(26px, 2.6vw, 36px);
  border-radius: var(--r-lg);
}
.rs-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-block-end: clamp(18px, 2vw, 26px); }
/* optional cover (policy papers: the publication's own image, clickable) — first row, above chip + meta */
.rs-card-lead { min-width: 0; }
.rs-cover {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer;
  margin-block-end: clamp(18px, 2vw, 24px); border-radius: calc(var(--r-lg) - 14px);
  background: var(--night); box-shadow: 0 0 0 1px rgba(10, 31, 68, .08);
}
.rs-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rs-cover:hover .rs-cover-img { transform: scale(1.035); }
.rs-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) { .rs-cover-img { transition: none; } .rs-cover:hover .rs-cover-img { transform: none; } }
/* status chip: a flat label. Research = blue tint, policy = navy tint (the wording differs too) */
.rs-chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 13px; border-radius: 999px;
  font: 500 14px/1.2 var(--font-body);
}
.rs-chip :lang(en), .rs-chip:lang(en) { font: 600 12.5px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.rs-chip--research { color: var(--blue-deep); background: rgba(35, 67, 246, .08); box-shadow: inset 0 0 0 1px rgba(35, 67, 246, .24); }
.rs-chip--policy { color: var(--ink); background: rgba(10, 31, 68, .06); box-shadow: inset 0 0 0 1px rgba(10, 31, 68, .2); }
.rs-meta { display: flex; flex-wrap: wrap; align-items: center; font: 500 14.5px/1.4 var(--font-body); color: var(--ink-3); }
.rs-mi { display: inline-flex; align-items: center; }
.rs-mi + .rs-mi::before { content: ""; width: 1px; height: .95em; margin-inline: 11px; background: currentColor; opacity: .45; }
.rs-meta time { font-variant-numeric: tabular-nums; }

.rs-card-head { min-width: 0; }
.rs-title { font: 800 clamp(21px, 1.7vw, 25px)/1.28 var(--font-display); letter-spacing: -.008em; color: var(--ink); text-wrap: balance; }
/* a Hebrew title (policy papers, on both pages) takes the Heebo 900 cut; the English titles keep Archivo 800 */
.rs-title--he { font-weight: 900; line-height: 1.3; letter-spacing: 0; }
.rs-title-a { color: inherit; text-decoration: none; }
.rs-title-a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-color: rgba(35, 67, 246, .55); }
.rs-title-en { margin-block-start: 8px; font: 500 clamp(15.5px, 1.15vw, 17px)/1.5 var(--font-body); color: var(--ink-2); text-wrap: pretty; }
.rs-authors { margin-block-start: 12px; font: 400 14.5px/1.55 var(--font-body); color: var(--ink-3); }
.rs-au { white-space: nowrap; } /* a line breaks between names, never inside one */

.rs-text { margin-block-start: clamp(18px, 2vw, 24px); padding-block-start: clamp(18px, 2vw, 24px); border-block-start: 1px solid rgba(10, 31, 68, .12); }
.rs-hook { font: 700 clamp(18px, 1.42vw, 21px)/1.45 var(--font-display); color: var(--blue); text-wrap: balance; }
.rs-desc { font: 400 clamp(16px, 1.14vw, 17.5px)/1.75 var(--font-body); color: var(--ink-2); }
.rs-hook + .rs-desc { margin-block-start: 10px; }
.rs-cta { align-self: end; padding-block-start: clamp(22px, 2.4vw, 32px); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .rs-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rs-intro-body { padding-block-start: 0; max-width: 40em; }
  .rs-head--lead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rs-cards { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .rs-item, .rs-card { display: flex; flex-direction: column; grid-row: auto; }
  .rs-item:nth-child(n + 3) { margin-block-start: 0; }
  .rs-cta { margin-block-start: auto; align-self: flex-start; }
}
@media (max-width: 640px) {
  .rs-intro { padding-block-start: 44px; }
  .rs-hero .page-title { font-size: clamp(34px, 9.4vw, 42px); }
  .rs-q, .page-research--en .rs-q { font-size: clamp(22px, 6vw, 25px); line-height: 1.38; }
  .rs-q::before { margin-block-end: 18px; }
  .rs-intro-p { font-size: 17px; }
  .rs-pf { align-items: flex-start; margin-block-start: 40px; }
  .rs-pf-copy { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rs-pf-name { display: block; }
  .rs-pf-sep { display: none; }
  /* the link wraps: a balanced block whose arrow follows the last word */
  .rs-pf-link { display: block; text-wrap: balance; }
  .rs-pf-go { display: inline-block; vertical-align: -.22em; margin-inline-start: 8px; }
  .rs-sec { padding-block-start: 56px; }
  .rs-h2 { font-size: clamp(30px, 8.4vw, 36px); }
  .rs-card { padding: 24px 20px 22px; border-radius: 24px; }
  .rs-cta { align-self: stretch; }
  .rs-cta > .cta-pool, .rs-cta .glass-button-wrap, .rs-cta .glass-button { display: block; width: 100%; }
  /* a label that wraps (the long English policy label at 320px) stays centred in the full-width button */
  .rs-cta .glass-button-text { text-align: center; text-wrap: balance; }
}
@media (forced-colors: active) {
  .rs-chip { border: 1px solid CanvasText; }
  .rs-q::before, .rs-mi + .rs-mi::before { background: CanvasText; }
}

/* client: English runs on the Hebrew page sit flush left (the paper titles and their author lines) */
[dir="rtl"] .rs-card--research .rs-title--en,
[dir="rtl"] .rs-card--research .rs-authors { text-align: left; }
