/* Results page — additions on top of /survey/styles.css.
 *
 * This file defines no colours of its own: --navy, --blue-accent,
 * --blue-light, --bg-base, --text-muted and --radius-pill all come from
 * the survey stylesheet, which is loaded first. Anything that needs a new
 * colour should get a token there, not a hex code here — otherwise the
 * two pages drift apart the first time the brand shifts.
 *
 * Layout follows the v1 mockup: a card grid where the photo is the card,
 * with the list badge and the name sitting on top of it. Unlike the
 * mockup, this is a real responsive page rather than a phone frame.
 */

/* Logo, enlarged 25% over the shared 24px token (Ayelet, 2026-09-05:
   "at least 20%"), and a link to the movileyhinuch site — .brand is a
   <div> on the survey form but an <a> here, so text-decoration needs an
   explicit reset. Scoped to this stylesheet only, loaded solely on `/` —
   the shared rules in survey/styles.css still govern the survey form.
   NOTE: the 2026-10-01 "logo large at the top" request is the hero logo
   below (.r-head-logo), not this top-bar mark — Gal corrected this after
   the first pass enlarged the wrong logo. */
.brand-mark { width: 30px; height: 30px; }
.brand { text-decoration: none; }
.brand:hover .brand-text { color: var(--blue-accent); }

/* .progress-meta (survey/styles.css) is positioned absolute at the
   top-left corner of .top-bar. On the survey form it's a real visible
   "question X of Y" meter; here it's only announce()'s channel (search
   result count, "link copied", the open candidate's name — app.js) and
   was never meant to be read visually. That corner was empty before, so
   it went unnoticed; the new results-link button (T-16-39) now sits
   exactly there and the two render on top of each other on every load
   ("X מתוך Y" behind the button text). Scoped to this page only: give
   it the same visually-hidden treatment as .sr-only instead of moving
   it, since an announcement channel is what it already was. */
.progress-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------- Results-paper link in the top bar (T-16-39) -------
 *
 * Ayelet reported a visitor was impressed by the page but had to search
 * for the link to the results/position paper (one document — "survey
 * results" and "position paper" are the same policy-doc). It already
 * existed as an inline text link (buried in the hero paragraph, and in
 * the candidate page's verbatim-note) — not missing, just not visible
 * without reading or scrolling.
 *
 * Tried first as a second row below the hero that docked under the logo
 * on scroll (plain CSS sticky) — dropped: fragile (survey/styles.css's
 * .app-shell has `overflow: hidden` for the decorative orbs, which
 * silently caps position:sticky on everything inside it) and, for a
 * single link rather than a pair, more than the problem needs. A plain
 * nav item in .top-bar solves the actual complaint — visible on the
 * first paint, no scroll dependency — and .top-bar stays sticky so it's
 * reachable throughout a long candidate page too.
 *
 * .top-bar itself keeps .progress-meta's absolute corner spot free
 * (transient visible status text — search count, "link copied", the
 * open candidate's name, see announce() in app.js): this link is a
 * normal flex sibling of .brand, so space-between puts the two at
 * opposite ends and progress-meta's absolute position is undisturbed.
 */
.app-shell { overflow: visible; }
.bg-orbs { overflow: hidden; }
.top-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--bg-base);
  flex-wrap: wrap;
  gap: 10px;
}
/* Ayelet: the blue CTA didn't stand out — the whole page (hero, logo,
   links) is already navy/blue, so a same-family button can't pop no
   matter how dark. Gold accent (--gold/--gold-dark, survey/styles.css)
   used only for this one button. Text/icon flip to navy: white on this
   gold fails contrast. */
.r-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  color: var(--navy);
  background: var(--gold);
  transition: transform .2s ease, background .2s ease;
}
.r-header-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.r-header-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
@media (max-width: 640px) {
  .r-header-cta { font-size: 12px; padding: 7px 14px; }
}

#results-root {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 40px 48px;
}

/* ------- Hero, version ג "variant-c" (previewed 2026-09-30, Ayelet
   approved 2026-10-01 + asked for the logo above to be bigger — see
   .brand-mark). Full-bleed, taller, the date as the visual anchor (not a
   caption), a decorative ballot icon, and a slow ambient shine so it
   reads as "alive". Same navy/blue-accent tokens as the 09-28 first pass.
   Ported verbatim from the approved local preview (hero-preview-c.html,
   class `.variant-c` folded into the base `.r-head` since this is now
   the real hero, not a toggled comparison). */
.r-head {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: 0;
  margin: 12px -40px 28px;
  padding: 72px 40px 64px;
  background:
    radial-gradient(circle at 88% -25%, rgba(159, 195, 239, .38) 0%, transparent 55%),
    radial-gradient(circle at -10% 120%, rgba(255, 255, 255, .10) 0%, transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--blue-accent) 100%);
  box-shadow: 0 18px 40px rgba(20, 51, 94, .28);
}
.r-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%);
  background-size: 220% 220%;
  animation: r-head-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes r-head-sheen {
  0%   { background-position: 120% 0%; }
  50%  { background-position: -20% 100%; }
  100% { background-position: 120% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .r-head::after { animation: none; display: none; }
}

/* Large logo (Ayelet, 2026-10-01) — replaces the decorative ballot icon
   from the approved preview with the real movileyhinuch mark, large,
   inside the hero itself. The small top-bar logo above (.brand-mark) is
   untouched. The mark itself is navy/blue on transparent (see
   002 clients/מובילי חינוך/ASSETS/logo-mark.png) — on the hero's own
   navy gradient it would vanish, so it sits on a small white badge
   rather than directly on the gradient. */
.r-head-logo-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 51, 94, .25);
}
.r-head-logo {
  display: block;
  width: 60px;
  height: auto;
}
.r-head .eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  color: var(--blue-light);
  font-size: 15px;
  letter-spacing: .08em;
}
.r-head-date-big {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 88px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, #fff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 10px 0 6px;
}
.r-head .screen-title {
  position: relative;
  z-index: 1;
  max-width: none;
  text-align: center;
  margin: 0 auto 14px;
  font-size: 40px;
  color: #fff;
}
.r-head-subtitle {
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: center;
  margin: 0 auto 22px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.r-head .screen-body {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  font-size: 18px;
  color: rgba(255, 255, 255, .88);
}
.r-head .screen-body strong { color: #fff; }
.r-head .inline-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }
.r-head .inline-link:hover { color: var(--blue-light); }

/* ------- Stat tiles (decided with Ayelet 2026-09-01, 4th tile 2026-09-05) ------- */
.r-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.r-stat {
  padding: 18px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #E2E8F2;
  box-shadow: 0 2px 10px rgba(20, 51, 94, .06);
  text-align: center;
}
.r-stat-value {
  display: block;
  font-family: inherit;
  font-weight: 800;
  font-size: 31px;
  color: var(--blue-accent);
  font-variant-numeric: tabular-nums;
}
.r-stat-caption {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ------- View toggle: לפי מועמד/ת · לפי סוגיה ------- */
.r-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  background: #EDF1F8;
}
.r-view-btn {
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.r-view-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(20, 51, 94, .12);
}
.r-view-btn:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; }

/* ------- Toolbar: search + list filter ------- */
.r-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid #E2E8F2;
  border-bottom: 1px solid #E2E8F2;
}
.r-search {
  flex: 0 1 300px;
  min-width: 200px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #E2E8F2;
  background: #fff;
  font-family: inherit;
  font-size: 17px;
  color: var(--navy);
}
.r-search:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 1px;
  border-color: var(--blue-accent);
}
.r-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.r-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #E2E8F2;
  background: #fff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
}
.r-chip:hover { border-color: var(--blue-light); }
.r-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--blue-accent), var(--navy));
  color: #fff;
  border-color: transparent;
}
.r-chip:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; }

.r-count {
  padding: 14px 0 18px;
  font-size: 15.5px;
  color: var(--text-muted);
}

/* Topic filter chips (Gal, 2026-09-05: filter the "לפי סוגיה" view down to
   one of the six questions instead of scrolling past all of them).
   Standalone here — sits above the toolbar, not inside it, so it needs
   its own bottom margin instead of the toolbar's border+padding. */
.r-topic-filter { margin-bottom: 18px; }

/* ------- Gallery ------- */
/* Responded / did-not-respond split (Gal, 2026-10-01) — two labeled
   groups instead of one mixed grid where the only signal was a per-card
   badge. */
.r-group:not(:last-child) { margin-bottom: 0; }
.r-group-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: .2px;
}
.r-group-title-responded { color: var(--blue-accent); }
.r-group-title-not-responded { color: #B91C1C; }
.r-group-divider {
  height: 1px;
  background: #E2E8F2;
  margin: 28px 0;
}

.r-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
}
/* Grid items get an automatic minimum width from their content unless
   opted out — a long `white-space: nowrap` string (role, or the new
   credit-bar line) inflates that one item's track past the shared `1fr`
   size instead of truncating with its own ellipsis, visibly widening and
   heightening just that card (Gal, 2026-10-01: caught on "ח"כ יבגני
   סובה", long role + long credit line stacked together). */
.r-grid > li { min-width: 0; }
.r-card {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #DCE4F0;
  box-shadow: 0 3px 12px rgba(20, 51, 94, .14);
  transition: transform .15s, box-shadow .15s;
  text-align: right;
}
.r-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 51, 94, .2); }
.r-card:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 3px; }

/* The aspect-ratio box used to be .r-card itself — split out so a solid
   credit bar (Gal, 2026-10-01: the credit was sitting on the photo,
   unreadable against busy backgrounds) can sit below the photo instead
   of overlaid on it, without the whole card growing past a 3:4 photo. */
/* display:block is load-bearing: .r-card-photo-wrap is a <span>, and
   `aspect-ratio` has no effect on an inline (non-replaced) box per spec.
   Without this, the box's height fell back to shrink-to-fit around the
   <img> — which happened to still look like 3:4 for the 6 curated
   Cloudinary photos (explicitly cropped w_480,h_640 at the source), but
   exposed each real candidate's own arbitrary upload ratio instead
   (Gal, 2026-10-01 — caught as inconsistent card heights only among the
   self-submitted photos, not the archive ones, which is what made this
   one hard to spot by eye). */
.r-card-photo-wrap { display: block; position: relative; width: 100%; aspect-ratio: 3 / 4; }

.r-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
}
/* Sized per context rather than as a percentage: a percentage font-size
   resolves against the inherited font size, not the card, so it would not
   scale with the photo the way it looks like it should. */
.r-card .r-photo-fallback { font-size: 34px; }

.r-card-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: block;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(14, 38, 71, .9), rgba(14, 38, 71, .32) 65%, transparent);
  z-index: 1;
}
/* Back on the photo itself, top corner (Gal, 2026-09-05 — explicit call
   to put it there "anyway"). This is a deliberate exception to Ayelet's
   original brief ("not over the face area"): logged as decision #5 in
   008 decisions/שאלון חברי כנסת - מובילי חינוך.md. On a 3:4 portrait crop
   this can sit over hair/forehead depending on the photo. */
.r-card-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .93);
  color: var(--navy);
}
.r-card-name { display: block; font-size: 16.5px; font-weight: 700; color: #fff; }
/* Clamped to one line, not wrapped (Gal caught a long role — "סגן יו"ר
   הכנסת, חבר ועדת החינוך" — wrapping to a 2nd line and running into the
   CTA label below it on a narrow card). */
.r-card-role {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .85);
  margin-top: 2px;
}
/* Visual-only CTA (Ayelet: "a clear button — לכל התשובות") — the whole
   card is already the single click target and aria-label, so this is a
   label, not a second interactive element nested in the card button. */
.r-card-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  opacity: .85;
}

/* "Did not respond" cards (T-16-34, decision #6) — flag opposite the list
   badge (top-start, badge is top-end), kept small (Gal, 2026-10-01: the
   first pass read as too loud next to the list badge). */
.r-card-flag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: rgba(185, 28, 28, .92);
  color: #fff;
  letter-spacing: .1px;
}
/* Solid bar below the photo, not overlaid on it (decision #8 requires the
   credit everywhere the photo appears, but legibility on an arbitrary
   press photo can't be guaranteed with translucent text on the image). */
.r-card-credit-bar {
  display: block;
  min-height: 24px;
  padding: 6px 10px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-muted);
  background: #F6F9FD;
  border-top: 1px solid #E2E8F2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.r-photo-credit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -6px;
}

/* ------- By-topic view ------- */
.r-topic-section { margin-bottom: 34px; }
.r-topic-section:last-child { margin-bottom: 0; }
.r-topic-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-light);
}
/* Informational, not a per-candidate flag — shown above a thin section
   (under 10 results), so it reads as a caveat about coverage rather than
   .r-topic-answer-flag's red "didn't respond" marker. */
.r-topic-disclaimer {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  background: #F6F9FD;
  border: 1px solid #E2E8F2;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
}
.r-topic-answers { display: flex; flex-direction: column; gap: 12px; }
/* Closed accordion by default (Gal, 2026-09-05) — a border per answer is
   still what gives "clear visual separation" between one candidate's
   answer and the next (Ayelet's original ask) even collapsed. */
.r-topic-answer { border: 1px solid #E2E8F2; border-radius: 14px; overflow: hidden; background: #fff; }
.r-topic-answer[open] { border-color: var(--blue-light); }
.r-topic-answer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.r-topic-answer-summary::-webkit-details-marker { display: none; }
.r-topic-answer-summary:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: -2px; }
.r-topic-answer-headline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
/* Plain text, not a link (Gal, 2026-09-05): this sits inside <summary>,
   which people click to open the answer — a nav target here fired on
   every open instead of toggling. Viewing the full profile moved to
   .r-topic-answer-link, below, revealed only once the answer is open. */
.r-topic-answer-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.r-topic-answer-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(26, 95, 168, .09);
  color: var(--blue-accent);
}
.r-topic-answer-chevron { width: 18px; height: 18px; flex-shrink: 0; color: #93A0BC; transition: transform .15s; }
.r-topic-answer[open] .r-topic-answer-chevron { transform: rotate(180deg); color: var(--blue-accent); }
.r-topic-answer-body { padding: 0 16px 16px; }
.r-topic-answer-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted-footer);
  white-space: pre-wrap;
}
.r-topic-answer-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-accent);
  cursor: pointer;
}
.r-topic-answer-link:hover { text-decoration: underline; }
.r-topic-answer-link:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; border-radius: 4px; }

.r-empty, .r-loading, .r-error {
  padding: 48px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 17.5px;
}
.r-error { color: #B3261E; }

/* ------- Candidate detail ------- */
.r-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 22px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--blue-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.r-back svg { width: 18px; height: 18px; }
.r-back:hover { background: var(--navy); }
.r-back-footer { display: flex; justify-content: center; margin-top: 8px; }
.r-back-footer .r-back { margin: 24px 0 8px; }
.r-back:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 3px; border-radius: 4px; }

.r-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
  padding-bottom: 40px;
}

/* Horizontal profile bar (redesigned 2026-09-05 — Ayelet: the portrait was
   "very large relative to the content"). Photo shrinks to an avatar, name
   and role sit beside it, share lives at the far end of the same row. */
.r-profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.r-profile-photo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 51, 94, .16);
}
.r-profile-photo .r-photo { width: 100%; height: 100%; }
.r-profile-photo .r-photo-fallback { font-size: 31px; }
.r-profile-info { flex: 1; min-width: 0; }
.r-detail-name { font-size: 31px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.r-detail-name:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 4px; border-radius: 4px; }
.r-profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.r-detail-role { font-size: 17.5px; color: var(--text-muted-footer); line-height: 1.5; }
.r-detail-list {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-accent);
  background: rgba(26, 95, 168, .09);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}
.r-share-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1.5px solid #E2E8F2;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--blue-accent);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.r-share-btn svg { width: 16px; height: 16px; }
.r-share-btn:hover { border-color: var(--blue-light); }
.r-share-btn:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; }

.r-detail-bio { font-size: 18px; line-height: 1.75; color: var(--text-muted-footer); }
/* Editorial note from Moviley Hinuch, not the candidate's own words (see
   EDITORIAL_NOTES in app.js) — kept visually distinct from .r-detail-bio. */
.r-editorial-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted-footer);
  background: #F6F9FD;
  border-right: 3px solid var(--blue-accent);
  padding: 10px 14px;
  border-radius: 6px;
}
.r-video {
  width: fit-content;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(26, 95, 168, .1);
  color: var(--blue-accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.r-video:hover { text-decoration: underline; }
.r-video:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: 2px; }

/* Subtle frame, per Ayelet's note — moved to the top of the page (was a
   footnote under the answers) so it's the first thing read, not the last. */
.r-verbatim-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #E2E8F2;
  border-radius: 12px;
  background: #F6F9FD;
  font-size: 16px;
  color: var(--text-muted);
}
/* "Did not respond" variant (T-16-34) — same frame, red-tinted so the
   distinction from a real answer reads immediately. */
.r-not-responded-note {
  border-color: #F3C9C9;
  background: #FDF4F4;
  color: #8A3A3A;
}

.r-detail-main { display: flex; flex-direction: column; gap: 22px; }
/* Background sections on a "did not respond" candidate page (decision #6:
   same section shell as a regular candidate's content, not a different
   component). */
.r-nr-intro { background: #F6F9FD; box-shadow: none; }
.r-nr-intro-text { font-size: 17px; line-height: 1.7; color: var(--navy); font-weight: 600; margin: 0; }
.r-nr-paragraph { font-size: 16.5px; line-height: 1.75; color: var(--text-muted-footer); margin: 0 0 14px; }
.r-nr-paragraph:last-of-type { margin-bottom: 0; }

/* "לא השיב/ה" entry inside the topic-view accordion — same red-tinted
   frame as .r-not-responded-note, scaled for an answer body. */
.r-topic-answer-flag {
  font-size: 15px;
  line-height: 1.6;
  color: #8A3A3A;
  background: #FDF4F4;
  border: 1px solid #F3C9C9;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
}
.r-nr-links-heading { font-size: 15px; font-weight: 700; color: var(--navy); margin: 18px 0 6px; }
.r-nr-links-heading:first-of-type { margin-top: 0; }
.r-nr-links { margin: 0; padding: 0 20px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-muted-footer); }
.r-nr-links li { margin: 2px 0; overflow-wrap: anywhere; }
.r-section {
  padding: 24px 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(20, 51, 94, .06);
}
.r-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 16px;
}

.r-barriers { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.r-barrier {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--navy);
  background: rgba(26, 95, 168, .08);
  border: 1px solid rgba(26, 95, 168, .2);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
}

/* The free-text barrier. Reads as prose, not as a tag: it can run to
   several sentences and candidates sometimes number their points inside
   it, so pre-wrap preserves whatever structure they typed. The right
   border ties it to the pills above without pretending to be one. */
.r-barrier-other {
  margin-top: 16px;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--blue-light);
  background: rgba(26, 95, 168, .04);
  border-radius: 10px;
}
.r-barrier-other-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 6px;
}
.r-barrier-other-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  white-space: pre-wrap;
}

.r-qa { display: flex; flex-direction: column; gap: 10px; }
.r-qa-item { border: 1.5px solid #E2E8F2; border-radius: 14px; overflow: hidden; }
.r-qa-item[open] { border-color: var(--blue-light); }
.r-qa-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.r-qa-summary::-webkit-details-marker { display: none; }
.r-qa-summary:focus-visible { outline: 2px solid var(--blue-accent); outline-offset: -2px; }
.r-qa-title { display: block; font-size: 18.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.r-qa-head { min-width: 0; }
/* Closed state shows the opening of the answer, clamped to two lines. The
   clamp supplies the trailing ellipsis itself, which is the signal that
   there is more — so it stays lighter and lower-contrast than the
   question above it, and disappears once the full answer is on screen. */
.r-qa-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}
.r-qa-item[open] .r-qa-preview { display: none; }
.r-qa-chevron { width: 18px; height: 18px; flex-shrink: 0; color: #93A0BC; transition: transform .15s; }
.r-qa-item[open] .r-qa-chevron { transform: rotate(180deg); color: var(--blue-accent); }
.r-qa-answer {
  padding: 0 16px 16px;
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--text-muted-footer);
  white-space: pre-wrap;
}

/* ------- Responsive ------- */
@media (max-width: 1020px) {
  #results-root { padding: 8px 24px 40px; }
  .r-grid { grid-template-columns: repeat(3, 1fr); }
  /* 4 columns got tight at tablet widths once the captions grew 20% —
     e.g. "אומרים שחינוך צריך להיות..." wrapping into a narrow 235px-ish
     tile. Dropping to 2 earlier gives each one roughly double the room. */
  .r-stats { grid-template-columns: repeat(2, 1fr); }
  .r-head { margin: 12px -24px 28px; padding: 56px 32px 48px; }
  .r-head .screen-title { font-size: 38px; }
  .r-head-date-big { font-size: 64px; }
  .r-head-logo-badge { width: 84px; height: 84px; }
  .r-head-logo { width: 54px; }
}

@media (max-width: 680px) {
  #results-root { padding: 8px 16px 36px; }
  .r-head { margin: 8px -16px 22px; padding: 44px 22px 36px; }
  .r-head .screen-title { font-size: 26px; }
  .r-head .screen-body { font-size: 16px; }
  .r-head-date-big { font-size: 52px; }
  .r-head-logo-badge { width: 76px; height: 76px; border-radius: 16px; }
  .r-head-logo { width: 48px; }
  .r-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .r-search { flex-basis: 100%; }
  .r-section { padding: 18px 16px; }
  .r-view-toggle { display: flex; }
  .r-view-btn { flex: 1; text-align: center; }
  .r-profile-row { flex-wrap: wrap; }
  .r-share-btn { margin-inline-start: auto; }
  .r-detail-name { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .r-card, .r-qa-chevron, .r-topic-answer-chevron { transition: none; }
  .r-card:hover { transform: none; }
}

/* ------- Footer note for MKs who landed here instead of the form -------
 *
 * Sits above the footer links (.app-footer is a centred flex column, so
 * source order is display order). Colours and link styling are inherited
 * from .app-footer in the survey stylesheet — only the measure and the
 * spacing are set here, so the line reads as a note rather than as
 * another footer link.
 */
.app-footer-note {
  max-width: 52ch;
  margin-bottom: 2px;
  line-height: 1.6;
  text-wrap: balance;
}
.app-footer-note a { text-decoration: underline; }
