:root {
  /* --banner-h + --header-h: נמדדים ומעודכנים ב-js/app.js (updateStickyOffsets) -
     --banner-h הוא גובה רצועת-ההתקנה בפועל (0 כשהיא מוסתרת), --header-h הוא
     סכום הרצועה+ה-header (המרווח הכולל שתפוס בפועל למעלה, בין אם יש רצועה
     ובין אם לא). גובה ה-header עצמו משתנה (68px בשורה אחת בדסקטופ, עד כ-118px
     כשה-nav עובר לשתי שורות במסכים צרים) ולא ניתן לקבע במספר אחד; ה-fallback
     הוא רק לרגע שלפני שה-JS רץ. */
  --banner-h: 0px;
  --header-h: 80px;

  --ink: #23343a;
  --ink-soft: #4c6067;

  --teal-950: #0a6e78;
  --teal-900: #0f8793;
  --teal-850: #12959f;
  --teal-800: #15a8b5;
  --teal-700: #22bcc7;
  --teal-600: #3fc9d3;
  --teal-500: #63d5de;
  --teal-300: #a8e9ee;
  --teal-200: #d3f4f6;

  --sand-50: #fffdf6;
  --sand-100: #fff5e2;
  --sand-200: #ffe7bc;

  --gold-700: #c85a1a;
  --gold-600: #f0812c;
  --gold-500: #ff9d47;
  --gold-400: #ffb768;
  --gold-300: #ffd28f;
  --gold-100: #ffedcf;

  /* Dark, WCAG-safe variants for text on light backgrounds - the scales
     above are tuned bright for cheerful decorative use (buttons, icons,
     gradients) and don't have enough contrast on their own for body text. */
  --teal-heading: #0b6b76;
  --teal-ink: #0a7681;
  --gold-ink: #a8481a;

  --white: #ffffff;

  --font-display: "Suez One", "David Libre", serif;
  --font-body: "Heebo", "Segoe UI", Arial, sans-serif;

  --shadow-soft: 0 12px 30px -12px rgba(7, 34, 41, 0.35);
  --shadow-card: 0 18px 45px -18px rgba(7, 34, 41, 0.45);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container-w: 1120px;

  color-scheme: light;
}

html[lang="en"] {
  --font-display: "Fredoka", "Quicksand", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-100);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  /* לא overflow-x: hidden כאן: כש-html וגם body מקבלים overflow לא-visible, שניהם
     נהפכים לקונטיינר-גלילה משלהם (overflow-y מחושב auto באילוץ), וה-sticky של
     .site-header/.install-banner מתייחס לגלילה הפנימית (שאף אחד לא באמת מגלגל)
     במקום לגלילת הדף האמיתית - ולכן נשאר "דבוק" בכלל. hidden על html בלבד מספיק
     כדי למנוע פס-גלילה אופקי, ולא שובר sticky (אומת 2026-09-28). */
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
/* .btn's display:inline-flex has the same specificity as the UA stylesheet's
   [hidden]{display:none} and loads after it, so it silently wins - a hidden
   .btn button stays visible. Found via admin.html's edit-cancel button. */
.btn[hidden] { display: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(217, 154, 43, 0.6);
}
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(217, 154, 43, 0.75); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* בניגוד ל-.btn--ghost (מיועד לרקע כהה, ה-hero) - זה לכרטיסים בהירים
   (auth-card/offer-price-card), כמו כפתור "שליחת קישור התחברות". */
.btn--outline {
  background: transparent;
  color: var(--teal-ink);
  border-color: var(--teal-800);
}
.btn--outline:hover { background: var(--teal-200); }

.section-eyebrow {
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  font-size: 0.95rem;
  margin-bottom: 0.6em;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--teal-heading);
  margin-bottom: 0.5em;
  line-height: 1.25;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  /* לא 0 קבוע: כש-.install-banner מוצגת (גם היא sticky, top:0, ולפניה ב-DOM)
     שתי sticky ב-top:0 היו נערמות זו על זו ומכסות זו את זו - --banner-h
     (js/app.js, updateStickyOffsets) הוא 0 כשהרצועה מוסתרת ואז ההתנהגות
     זהה לגמרי למה שהיה. */
  top: var(--banner-h, 0px);
  z-index: 40;
  background: rgba(15, 135, 147, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--sand-50);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.brand__mark {
  width: 2em;
  height: 2em;
  border-radius: 24%;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(255, 183, 104, 0.45));
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  text-decoration: none;
  color: var(--sand-100);
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { opacity: 1; color: var(--gold-300); }
.site-nav a:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }
.site-nav a.lang-switch {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  opacity: 1;
}
.site-nav a.lang-switch:hover { border-color: var(--gold-300); }

/* ---------- Install banner ---------- */
.install-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, var(--teal-950), var(--teal-800));
  color: var(--sand-50);
  border-bottom: 2px solid var(--gold-500);
}
.install-banner[hidden] { display: none; }
.install-banner__icon img { border-radius: 10px; display: block; }
.install-banner__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.install-banner__text strong { font-size: 0.95rem; }
.install-banner__text span { font-size: 0.78rem; opacity: 0.85; }
.install-banner__btn {
  flex-shrink: 0;
  background: var(--gold-400);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.55em 1.1em;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
}
.install-banner__btn:hover { background: var(--gold-300); }
.install-banner__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--sand-100);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3em;
  opacity: 0.75;
}
.install-banner__close:hover { opacity: 1; }

.install-steps {
  display: none;
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  max-width: 420px;
  margin: 0 auto;
}
.install-steps.is-open { display: block; }
.install-steps h3 { font-size: 1.1rem; margin-bottom: 0.5em; color: var(--teal-heading); }
.install-steps ol { margin: 0; padding-inline-start: 1.2em; line-height: 1.7; }
.install-steps__close {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-soft);
}

/* ---------- Hero (warm gradient glow + twinkling stars + an occasional moon) ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.25rem 5rem;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 55% at 22% 20%, rgba(255, 183, 104, 0.28), transparent 60%),
    radial-gradient(65% 60% at 82% 85%, rgba(168, 233, 238, 0.24), transparent 60%),
    linear-gradient(160deg, #063d46 0%, #0a5c66 45%, #0f7f8c 100%);
}
/* כוכבים מנצנצים - אותו אפקט כמו ב"אי היהלומים" (נוצרים ב-js/app.js, setupSparkles) */
.hero__sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparkle {
  position: absolute;
  color: var(--gold-300);
  opacity: 0;
  animation: sparkle-twinkle 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 210, 143, 0.6));
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.8; transform: scale(1.05) rotate(20deg); }
}
/* ירח חדש מדי פעם: מופיע לאט, מרחף מעט, ונעלם (setupMoon ב-js/app.js). הסהר נבנה ב-CSS בלבד
   (צל פנימי על עיגול) כדי שייראה זהה בכל מכשיר - אימוג'י 🌙 נראה שונה בכל פלטפורמה. */
.hero__moon {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 238, 178, 0.65));
  animation: moon-pass 16s ease-in-out forwards;
}
@keyframes moon-pass {
  0%   { opacity: 0; transform: translateY(14px) rotate(-18deg) scale(0.92); }
  18%  { opacity: 0.95; }
  78%  { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-18px) rotate(-6deg) scale(1); }
}
.hero__content { position: relative; z-index: 2; width: 100%; max-width: 760px; }
.hero__eyebrow {
  color: var(--gold-300);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin: 0 0 0.9em;
}
.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  color: var(--sand-50);
  text-shadow: 0 2px 0 rgba(0,0,0,0.15), 0 18px 40px rgba(0,0,0,0.35);
  line-height: 1.15;
  margin-bottom: 0.35em;
}
.hero__title::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin: 0.55em auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  border-radius: 4px;
}
.hero__subtitle {
  color: var(--teal-200);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto 2.2em;
  max-width: 580px;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- About ---------- */
.about {
  background: var(--sand-100);
  padding: 5rem 1.25rem;
}
.about__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about__text {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 1.1em;
}
.about__text:last-child { margin-bottom: 0; }

/* ---------- Category quick-nav ---------- */
.cat-nav {
  background: linear-gradient(180deg, var(--sand-100), var(--sand-200));
  padding: 1rem 1.25rem 4rem;
}
.cat-nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
}
.cat-nav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.cat-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cat-pill:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.cat-pill__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.cat-pill__title { font-weight: 700; color: var(--teal-heading); margin: 0 0 0.2em; font-size: 1.02rem; }
.cat-pill__desc { margin: 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Category sections ---------- */
.category-section {
  padding: 4rem 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 10px);
}
/* #about/#categories הם יעדי-עוגן בדיוק כמו .category-section (קישורי ה-nav
   הראשיים "על הפרויקט"/"כל הקטגוריות" וכפתורי ה-CTA בהירו מצביעים אליהם) -
   בלעדי scroll-margin-top כאן, ה-header הדביק (עכשיו שהוא באמת דביק - ראו התיקון
   ל-body { overflow-x } למעלה) היה מסתיר את תחילתם. רק scroll-margin, לא padding -
   כדי לא לדרוס את ה-padding הייחודי של .about/.cat-nav. */
#about,
#categories {
  scroll-margin-top: calc(var(--header-h) + 10px);
}
.category-section:nth-of-type(even) {
  background: var(--sand-200);
}
.category-section__inner {
  max-width: var(--container-w);
  margin: 0 auto;
}
.category-section__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.category-section__icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 18px -4px rgba(0,0,0,0.3);
}
.category-section__title { font-size: clamp(1.5rem, 3.2vw, 2rem); color: var(--teal-heading); margin: 0; }
.category-section__tagline {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 1.4rem;
}
.category-section__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.86rem;
  color: var(--teal-ink);
  background: var(--teal-200);
  border: 1px dashed var(--teal-500);
  border-radius: 999px;
  padding: 0.45em 1em;
  margin-bottom: 2.2rem;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.category-section__more {
  display: flex;
  margin: 2rem auto 0;
  background: var(--white);
  color: var(--teal-heading);
  border-color: var(--teal-700);
}
.category-section__more:hover { background: var(--teal-200); }

/* ---------- Content card (audio episodes) ---------- */
.content-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  max-width: 100%;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.content-card.is-visible { opacity: 1; transform: translateY(0); }
.content-card[hidden] { display: none; }
@media (min-width: 820px) {
  .content-card { grid-template-columns: 38% minmax(0, 1fr); align-items: stretch; }
  .content-card--reverse { grid-template-columns: minmax(0, 1fr) 38%; }
  .content-card--reverse .content-card__media { order: 2; }
  .content-card--reverse .content-card__body { order: 1; }
}
.content-card--full { display: block; }

.content-card__media {
  position: relative;
  min-height: 200px;
  background: var(--teal-900);
}
.content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.content-card__main-img { transition: opacity 0.3s ease; }

/* תמונה שנייה לפרק (אופציונלי, ep.images) - כפתור קטן שמחליף מקום עם התמונה הראשית */
.content-card__thumb {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--sand-50);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  background: var(--teal-800);
  z-index: 2;
  padding: 0;
  transition: transform 0.15s ease;
}
.content-card__thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.content-card__thumb:hover { transform: translateY(-2px); }
.content-card__thumb:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.cover-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-950));
  font-size: 3.4rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.content-card__badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(7, 34, 41, 0.75);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  z-index: 2;
}
.content-card__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.content-card__badge--inline {
  flex-shrink: 0;
  background: var(--teal-900);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35em 0.8em;
  border-radius: 999px;
}

.content-card__body {
  padding: 1.7rem 1.9rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}
.content-card__eyebrow {
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.content-card__title {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--teal-heading);
  line-height: 1.3;
}
.content-card__desc {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.99rem;
  margin: 0;
}
.content-card__desc strong { color: var(--teal-ink); }

/* ---------- Audio player ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  margin-top: 0.4rem;
}
.player__btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: var(--sand-50);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.player__btn:hover { transform: scale(1.06); }
.player__btn:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.player__btn.is-playing { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--ink); }

.player__body { flex: 1 1 auto; min-width: 0; }
.player__seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--sand-200);
  cursor: pointer;
  accent-color: var(--gold-600);
}
.player__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  cursor: pointer;
}
.player__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.player--soon {
  background: var(--sand-200);
  color: var(--ink-soft);
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.player--soon .player__soon-icon { font-size: 1.15rem; }

/* ---------- "נגן ברצף" (play in a row) ---------- */
.player-wrap { margin-top: 0.4rem; }
.player-wrap .player { margin-top: 0; }
.player-continuous {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--ink-soft);
  padding: 0.75rem 0.7rem 0 0.7rem;
}

/* תפריט נפתח מותאם-אישית - לא <select>: הרשימה הפתוחה של select היא
   chrome של מערכת ההפעלה שאי-אפשר לעצב. כפתור + רשימה-צפה (position:fixed,
   ממוקמת ב-JS לפי מיקום הכפתור בפועל - .content-card הוא overflow:hidden
   כדי לחתוך את התמונה לפי הפינות המעוגלות, וזה היה חותך גם רשימה שנפתחת
   קרוב לתחתית הכרטיס אילו הייתה position:absolute רגילה). */
.continuous-dd { position: relative; }
.continuous-dd__btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--teal-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-900);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 6px -3px rgba(7, 34, 41, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.continuous-dd__btn:hover { border-color: var(--teal-600); }
.continuous-dd__btn:focus-visible,
.continuous-dd__option:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
  border-color: var(--teal-600);
}
.continuous-dd__btn[aria-expanded="true"] { border-color: var(--teal-700); box-shadow: 0 4px 12px -4px rgba(7, 34, 41, 0.35); }
.continuous-dd__chevron { flex-shrink: 0; transition: transform 0.15s ease; }
.continuous-dd__btn[aria-expanded="true"] .continuous-dd__chevron { transform: rotate(180deg); }

.continuous-dd__list {
  position: fixed; /* top/left (or right) set from JS on open - see setupContinuousDropdowns() */
  z-index: 90;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--teal-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.continuous-dd__option {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.continuous-dd__option:hover { background: var(--sand-100); }
.continuous-dd__option.is-selected { background: var(--teal-200); color: var(--teal-heading); }

/* ---------- Spot-the-difference card ---------- */
.spot-card__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0.6rem 0 1rem;
}
@media (min-width: 640px) {
  .spot-card__images { grid-template-columns: 1fr 1fr; }
}
.spot-card__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--sand-200);
  background: var(--white);
}
.spot-card__frame img { width: 100%; height: auto; display: block; }
.spot-card__item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-width: 0; }
.spot-card__item .spot-card__frame { align-self: stretch; }
/* התווית מעל המסגרת, לא בתוכה - כדי לא להסתיר את התמונה (אברהם, 2026-09-27) */
.spot-card__label {
  background: rgba(7, 34, 41, 0.75);
  color: var(--sand-50);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.7em;
  border-radius: 999px;
}
.spot-card__marker {
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 50%;
  border: 3px solid var(--gold-500);
  box-shadow: 0 0 0 3px rgba(7,34,41,0.35);
  display: none;
}
.spot-card.is-solved .spot-card__marker { display: block; }
.spot-card__actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-950);
  color: var(--sand-100);
  padding: 3rem 1.25rem;
}
.site-footer__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  text-align: center;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.6em;
}
.site-footer__note { color: var(--sand-200); font-size: 0.95rem; max-width: 480px; margin: 0 auto; text-wrap: balance; }

/* ---------- Auth gate (login.html/offer.html, and the guard on index.html) ----------
   מונע הבזק תוכן/דף לפני שבדיקת ה-session/הזכאות ב-js/auth.js מסתיימת - ראו
   guardGatedPage()/revealPage() שם. */
body.auth-pending { visibility: hidden; }

/* ---------- Login page ---------- */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(160deg, #063d46 0%, #0a5c66 45%, #0f7f8c 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.4rem 2rem;
  text-align: center;
}
.auth-card__title { font-size: 1.7rem; color: var(--teal-heading); margin-bottom: 0.4em; }
.auth-card__sub { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.5em; }
.auth-card__note {
  background: var(--teal-200);
  color: var(--teal-heading);
  border-radius: var(--radius-sm);
  padding: 0.8em 1em;
  font-size: 0.92rem;
  margin-bottom: 1.3em;
}
.auth-card__google { width: 100%; margin-bottom: 1.2em; }
.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 0.8em;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 1.2em 0;
}
.auth-card__divider::before, .auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--teal-200);
}
.auth-card__form { display: flex; flex-direction: column; gap: 0.7em; text-align: start; }
.auth-card__label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.auth-card__input {
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal-200);
  font-family: var(--font-body);
  font-size: 1rem;
}
.auth-card__input:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 1px; }
.auth-card__status { min-height: 1.4em; font-size: 0.9rem; color: var(--teal-ink); margin-top: 1em; }
.auth-card__footer { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1.5em; }
.auth-card__footer a { color: var(--teal-ink); font-weight: 600; }

/* ---------- Offer / subscribe page ---------- */
.offer-page { background: var(--sand-100); }
.offer-hero {
  text-align: center;
  padding: 5rem 1.25rem 3rem;
  background: linear-gradient(160deg, #063d46 0%, #0a5c66 45%, #0f7f8c 100%);
}
.offer-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--sand-50);
  margin-bottom: 0.3em;
}
.offer-hero__sub { color: var(--teal-200); font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 620px; margin: 0 auto; line-height: 1.6; }

.offer-hero__illustration {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 1.3rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.offer-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em 1.6em;
  max-width: 560px;
  margin: 1.8em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.offer-hero__benefits span { color: var(--sand-100); font-size: 0.92rem; font-weight: 600; white-space: nowrap; }

.offer-price-card {
  max-width: 560px;
  margin: -2.5rem auto 0;
  position: relative;
  z-index: 2;
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 2rem;
}
.offer-price-card__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  margin-bottom: 0.5em;
}
.offer-price-card__hero-label { font-size: 0.95rem; font-weight: 700; color: var(--teal-ink); }
.offer-price-card__hero-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 4.2rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.offer-price-card__then { text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 0.6em; }
.offer-price-card__fine-print { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.6em; }

.offer-form { display: flex; flex-direction: column; gap: 0.7em; }
.offer-form__cta { width: 100%; margin-top: 0.4em; }

.offer-about { padding: 4rem 1.25rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 34, 41, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  backdrop-filter: blur(3px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 820px);
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.24); }

/* ---------- Daily points / gamification widget (index.html/en/index.html) ----------
   ראו js/points.js - מתמלא רק אחרי guardGatedPage() מאשר זכאות. */
.points-widget {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.points-widget:empty { display: none; }

.points-onboarding {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.4rem 2rem;
}
.points-onboarding__emoji { font-size: 2.6rem; display: block; margin-bottom: 0.3em; }
.points-onboarding__title { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-heading); margin: 0 0 0.4em; }
.points-onboarding__explain { color: var(--ink-soft); line-height: 1.7; margin: 0 0 1.3em; font-size: 0.96rem; }
.points-onboarding__cta { color: var(--teal-ink); font-weight: 700; margin: 0 0 1em; }
.points-onboarding__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.2em;
}
.points-onboarding__form .auth-card__input,
.points-onboarding__form button {
  width: 100%;
  max-width: 260px;
}

.points-child-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-bottom: 0.6em;
}
.points-widget__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.2em;
  margin: 0 0 1.2rem;
}
.points-remove-child {
  display: block;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.2em 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.points-remove-child:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
.points-remove-child:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.points-child-tab {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--teal-200);
  border-radius: 999px;
  padding: 0.55em 1.3em;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.points-child-tab:hover { transform: translateY(-2px); }
.points-child-tab:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.points-child-tab.is-active {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}
.points-child-tab--add {
  background: transparent;
  border-style: dashed;
  color: var(--teal-ink);
}
.points-child-tab--add:hover { background: var(--teal-200); }

.points-child-tabs__add-form { display: flex; align-items: center; gap: 0.5em; }
.points-child-tabs__add-input { padding: 0.5em 0.9em; font-size: 0.92rem; max-width: 160px; }
.points-child-tabs__add-cancel {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--sand-200);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.95rem;
}
.points-child-tabs__add-cancel:hover { background: var(--sand-100); }

.points-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 0;
  margin: 0 0 1.6rem;
}
.points-checklist__item { position: relative; }
.points-checkbox {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9em;
  background: var(--white);
  border: 2px solid var(--sand-200);
  border-radius: var(--radius-md);
  padding: 0.85em 1.1em;
  cursor: pointer;
  text-align: start;
  font-family: var(--font-body);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.points-checkbox:hover { transform: translateY(-1px); border-color: var(--teal-500); }
.points-checkbox:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.points-checkbox[aria-pressed="true"] {
  background: var(--teal-200);
  border-color: var(--teal-700);
}
.points-checkbox__circle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--sand-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.points-checkbox[aria-pressed="true"] .points-checkbox__circle,
.points-checkbox__circle.is-checked {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  border-color: transparent;
  color: var(--white);
}
.points-checkbox__icon { font-size: 1.3rem; flex-shrink: 0; }
.points-checkbox__label { flex: 1; font-weight: 600; color: var(--ink); }
.points-checkbox__value {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-ink);
  font-size: 0.95rem;
}

/* וריאנט קומפקטי - שורות דיווח "רעיון בפרשה" לכל ילד (ראו content-card__report) */
.points-checklist--report { gap: 0.4em; margin: 0.8em 0 0; }
.points-checkbox--report { padding: 0.55em 0.9em; }
.points-checkbox--report .points-checkbox__circle { width: 22px; height: 22px; font-size: 0.8rem; }

/* "בלון הליום" - ראו floatPointsNear() ב-js/points.js. position:fixed על
   document.body (לא ילד של הרובריקה), --bx/--by נקבעים ב-JS למיקום המקורי
   של התיבה שסומנה; הבלון גדל, מתנדנד קלות, וטס אל מעבר לקצה העליון של המסך. */
.balloon-float {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 500;
  transform: translate(var(--bx), var(--by)) translate(-50%, -50%) scale(0.5);
  animation: balloon-rise 3.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.balloon-float__img {
  display: block;
  height: 84px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(7, 34, 41, 0.35));
}
.balloon-float__generic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.balloon-float__number {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.balloon-float__string {
  width: 1.5px;
  height: 22px;
  background: rgba(7, 34, 41, 0.4);
  margin-top: 2px;
}
/* עולה + נסחף בהדרגה לכיוון אמצע המסך (--drift, מחושב ב-JS לפי מיקום
   הסימון) + מתנדנד קלות הצידה בכמה נקודות (לא רק פעם אחת ימינה ופעם אחת
   שמאלה) - כדי שזה יראה כמו בלון הליום אמיתי שמתנדנד ברוח, לא קו ישר. */
@keyframes balloon-rise {
  0%   { opacity: 0; transform: translate(var(--bx), var(--by)) translate(-50%, -50%) scale(0.5); }
  8%   { opacity: 1; transform: translate(calc(var(--bx) + 10px), calc(var(--by) - 4vh)) translate(-50%, -50%) scale(1.2) rotate(-3deg); }
  22%  { opacity: 1; transform: translate(calc(var(--bx) + var(--drift) * 0.18 - 18px), calc(var(--by) - 22vh)) translate(-50%, -50%) scale(1.15) rotate(4deg); }
  36%  { opacity: 1; transform: translate(calc(var(--bx) + var(--drift) * 0.38 + 16px), calc(var(--by) - 40vh)) translate(-50%, -50%) scale(1.2) rotate(-4deg); }
  50%  { opacity: 1; transform: translate(calc(var(--bx) + var(--drift) * 0.55 - 14px), calc(var(--by) - 58vh)) translate(-50%, -50%) scale(1.15) rotate(3deg); }
  64%  { opacity: 1; transform: translate(calc(var(--bx) + var(--drift) * 0.68 + 12px), calc(var(--by) - 75vh)) translate(-50%, -50%) scale(1.2) rotate(-3deg); }
  78%  { opacity: 1; transform: translate(calc(var(--bx) + var(--drift) * 0.8 - 9px), calc(var(--by) - 92vh)) translate(-50%, -50%) scale(1.15) rotate(2deg); }
  92%  { opacity: 1; transform: translate(calc(var(--bx) + var(--drift) * 0.9 + 6px), calc(var(--by) - 110vh)) translate(-50%, -50%) scale(1.2) rotate(-2deg); }
  100% { opacity: 0; transform: translate(calc(var(--bx) + var(--drift) * 0.95), calc(var(--by) - 128vh)) translate(-50%, -50%) scale(1.15) rotate(0deg); }
}

/* פרגון-עידוד בולט ויזואלית (לא רק טקסט) - בדיוק אחרי סימון פריט. חל רק
   כשה-hint נושא את המחלקה הזו (ראו showEncourage ב-js/points.js) - שאר
   הזמן ה-hint מציג טקסט רגיל (".points-progress__hint" הבסיסי). */
.points-progress__hint.points-encourage {
  display: block;
  width: fit-content;
  margin: 0.6em auto 0;
  padding: 0.5em 1.3em;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--white);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  animation: points-encourage-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes points-encourage-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.7); }
  55%  { opacity: 1; transform: translateY(-3px) scale(1.12); }
  80%  { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes points-check-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.points-checkbox__circle.is-checked { animation: points-check-pop 0.3s ease; }

.points-progress { margin-bottom: 1.6rem; }
.points-progress__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5em; }
.points-progress__label { font-weight: 700; color: var(--teal-heading); }
.points-progress__count { font-size: 0.92rem; color: var(--ink-soft); }
.points-progress__count strong { color: var(--gold-ink); font-family: var(--font-display); }
.points-progress__track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: var(--sand-200);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}
.points-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.points-progress__hint {
  margin: 0.6em 0 0;
  font-size: 0.92rem;
  color: var(--teal-ink);
  font-weight: 600;
  text-align: center;
}

.points-reward {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.3rem;
  flex-wrap: wrap;
}
.points-reward--pending { background: var(--sand-50); border: 2px dashed var(--sand-200); box-shadow: none; }
.points-reward--pending .points-reward__art .cover-placeholder { opacity: 0.7; }
.points-reward__art {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.points-reward__art .cover-placeholder { min-height: 0; height: 100%; font-size: 2.4rem; }
.points-reward__art img { width: 100%; height: 100%; object-fit: cover; }
.points-reward--locked .points-reward__art img,
.points-reward--locked .points-reward__art .cover-placeholder { filter: grayscale(0.6) brightness(0.75); }
.points-reward__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(7, 34, 41, 0.35);
}
.points-reward__body { flex: 1; min-width: 200px; }
.points-reward__eyebrow { display: block; font-size: 0.78rem; font-weight: 700; color: var(--teal-ink); letter-spacing: 0.04em; margin-bottom: 0.2em; }
.points-reward__title { font-size: 1.15rem; color: var(--teal-heading); margin: 0 0 0.25em; }
.points-reward__desc { margin: 0 0 0.8em; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.points-reward__cta[disabled] { opacity: 0.65; cursor: not-allowed; }
.points-reward__cta[disabled]:hover { transform: none; }

/* ---------- Reward-unlock celebration modal (reuses .lightbox layout) ---------- */
.points-celebrate__card {
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  text-align: center;
  max-width: 380px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.points-celebrate__emoji { font-size: 3rem; display: block; margin-bottom: 0.3em; }
.points-celebrate__title { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-heading); margin: 0 0 0.4em; }
.points-celebrate__art {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 1em;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.points-celebrate__art:hover { transform: scale(1.04); }
.points-celebrate__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.points-celebrate__reward-title { color: var(--ink-soft); margin: 0 0 1.4em; }

/* ---------- "שנו רובריקות" picker (reuses .lightbox layout) ---------- */
.points-picker__card {
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
}
.points-picker__title { font-family: var(--font-display); font-size: 1.4rem; color: var(--teal-heading); margin: 0 0 0.3em; }
.points-picker__explain { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.9em; }
.points-picker__count { font-weight: 700; color: var(--teal-ink); font-size: 0.92rem; margin: 0 0 0.8em; }
.points-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-bottom: 1rem;
}
.points-picker__chip {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--sand-200);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.points-picker__chip:hover { transform: translateY(-1px); border-color: var(--teal-500); }
.points-picker__chip:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.points-picker__chip[data-selected="true"] { background: var(--teal-200); border-color: var(--teal-700); }
.points-picker__chip:disabled { opacity: 0.45; cursor: not-allowed; }
.points-picker__add-row { margin-bottom: 1.4rem; }
.points-picker__actions { display: flex; justify-content: flex-end; gap: 0.7em; }
.points-picker__actions .btn { padding: 0.6em 1.3em; font-size: 0.92rem; }
.points-picker__actions .btn--primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.points-picker__actions .btn--primary[disabled]:hover { transform: none; }

/* ---------- "רעיון בפרשה" - כפתור הורדת PDF + תיבת דיווח (ראו js/app.js pdfReportHTML) ---------- */
.content-card__pdf {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--sand-200);
}
.content-card__pdf-btn { width: 100%; }

/* "שיתוף" on every recording card (2026-10-18) - shares this one recording to WhatsApp (js/app.js setupStoryShare) */
.content-card__share { margin-top: 0.7rem; }
.content-card__share-btn { padding: 0.55em 1.3em; font-size: 0.95rem; }
.content-card__report:empty { display: none; }

.parasha-prep {
  margin-top: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--sand-100);
  border: 1px dashed var(--teal-500);
  border-radius: var(--radius-md);
}
.parasha-prep__title { font-weight: 700; color: var(--teal-heading); margin: 0 0 0.5em; }
.parasha-prep__steps {
  margin: 0 0 0.6em;
  padding-inline-start: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  color: var(--ink);
  font-size: 0.94rem;
}
.parasha-prep__note { margin: 0; font-size: 0.86rem; color: var(--teal-ink); font-weight: 600; }

/* ---------- דף סיפור בודד לשיתוף (s/<slug>/, en/s/<slug>/ - נוצר ע"י tools/build_story_pages.mjs) ----------
   הכרטיס והנגן הם אותם .content-card/.player של האתר, בלי שינוי. כאן רק מה שמיוחד
   לדף שכולו סיפור אחד: פחות רווח מעל הכרטיס, ושורת השיתוף וההצטרפות שמתחתיו. */
.story-page { padding-top: 1.25rem; }
@media (min-width: 820px) {
  .story-page { padding-top: 3rem; }
}
/* אברהם (2026-10-14): "התמונה חתוכה ולא מרובעת - צריך לתקן". בדף הזה התמונה תמיד שלמה
   וריבועית, בכל רוחב: בטלפון ברוחב מלא, ובשתי עמודות היא לא נמתחת לגובה הכרטיס (שם
   object-fit: cover היה חותך אותה מהצדדים כשהטקסט ארוך ממנה) אלא נשארת ריבוע ממורכז. */
.story-page .content-card__media { align-self: center; }
.story-page .content-card__main-img { aspect-ratio: 1 / 1; height: auto; }
.story-share {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
  text-align: center;
}
@media (min-width: 720px) {
  .story-share--two { grid-template-columns: 1fr 1fr; align-items: start; }
}
.story-share__text {
  margin: 0 0 0.85rem;
  text-wrap: balance;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
}
.story-player-error {
  margin: 0.6rem 0 0;
  color: var(--gold-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* מי שביקש פחות תנועה: כוכבים דוממים ועמומים במקום ניצנוץ, בלי ירח נע */
  .sparkle { animation: none !important; opacity: 0.45; }
  .hero__moon { display: none; }
}
