/* מאגר שיעורי תנ"ך חי
   הפלטה והגדלים נמדדו מדף הנחיתה של לימור, לא הומצאו.
   ⚠️ פונט הכותרות "RavMesser atlas" זמין רק על שרתי רב מסר ולא ייטען על דומיין
   משלנו. לימור בחרה Secular One כתחליף (2026-09-03) — הקרוב ביותר לאופי
   הכותרות בדף הנחיתה שלה. משקל יחיד: לא להוסיף לו font-weight. */

:root {
  --turquoise:  #029c83;   /* מילויים בלבד. בהיר מדי לטקסט */
  --deep:       #01705E;   /* כותרות גדולות */
  --deepest:    #024C41;   /* טקסט קטן, וטקסט על חול */
  --sand:       #DECCBB;
  --olive:      #9AA17C;   /* עליו טקסט כהה, לעולם לא לבן */
  --wash:       #EBEEEF;
  --cream:      #F9F7E2;
  --ink:        #1d2b28;
  --muted:      #5d6b66;
  --card:       #ffffff;
  --radius:     14px;
  --shadow:     0 2px 14px rgba(2,76,65,.09);
  font-size: 20px;         /* הגוף אצלה 22-26px. זה הבסיס */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Assistant, "Segoe UI", system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--wash);
  direction: rtl;
}

h1, h2, h3 {
  font-family: "Secular One", Assistant, sans-serif;
  font-weight: 400;               /* Secular One הוא משקל אחד. bold מזויף מלכלך אותו */
  color: var(--deep);
  line-height: 1.25;
  margin: 0 0 .4em;
}
h1 { font-size: 1.7rem; }   /* יחס הגדלים אצלה שטוח בכוונה */
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

a { color: var(--deepest); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1rem 4rem; }

/* ── פס עליון ── */
header.bar {
  background: var(--card);
  border-bottom: 1px solid #dfe5e4;
  padding: .7rem 0;
  position: sticky; top: 0; z-index: 10;
}
.bar .wrap { display: flex; align-items: center; gap: 1rem; padding-bottom: 0; }
.brand { font-family: "Secular One", sans-serif; font-size: 1.25rem; color: var(--deep); text-decoration: none; }
.bar .spacer { flex: 1; }
.who { font-size: .8rem; color: var(--muted); }

/* ── כפתורים ── */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--turquoise); color: #fff;
  font: inherit; font-size: .95rem;
  padding: .55rem 1.3rem; border-radius: 999px;
  text-decoration: none;
}
.btn:hover { background: var(--deep); }
.btn.ghost { background: transparent; color: var(--deepest); border: 1.5px solid var(--turquoise); }
.btn.ghost:hover { background: var(--turquoise); color: #fff; }

/* ── כרטיסי ספרים ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.book {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem;
  text-decoration: none; color: inherit; border: 1px solid transparent;
}
.book:hover { border-color: var(--turquoise); }
.book .meta { color: var(--muted); font-size: .85rem; }
.badge {
  align-self: flex-start; font-size: .72rem; padding: .18rem .7rem;
  border-radius: 999px; letter-spacing: .02em;
}
.badge.free   { background: var(--cream); color: var(--deepest); }
.badge.open   { background: var(--turquoise); color: #fff; }
.badge.locked { background: var(--sand); color: var(--deepest); }

/* ── רשימת שיעורים ── */
.lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.lesson {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit;
}
.lesson:hover { outline: 1.5px solid var(--turquoise); }
.lesson .num {
  flex: 0 0 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--wash); color: var(--deepest);
  display: grid; place-items: center; font-size: .85rem;
}
.lesson .body { flex: 1; min-width: 0; }
.lesson .t { display: block; font-size: 1rem; }
.lesson .s { color: var(--muted); font-size: .8rem; }

/* ── עמוד שיעור ── */
.player { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
audio { width: 100%; margin-top: 1rem; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin-top: 1.2rem; }

/* ── מצבים ── */
.note { background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--deepest); }
.note.locked { background: var(--sand); }
.center { text-align: center; }
.loading { color: var(--muted); padding: 2rem 0; text-align: center; }
.field { width: 100%; font: inherit; padding: .6rem .8rem; border: 1.5px solid #cfd8d6; border-radius: 10px; }
.field:focus { outline: 0; border-color: var(--turquoise); }

@media (max-width: 640px) {
  :root { font-size: 18px; }
  .wrap { padding: 0 .8rem 3rem; }
}

/* ── עמודי מדיניות/תנאים ── */
.panel.doc { max-width: 720px; margin: 1.2rem auto 0; }
.panel.doc h2 { margin-top: 1.3em; }
.panel.doc h2:first-child { margin-top: 0; }

/* ── פוטר ── */
footer.foot {
  margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid #dfe5e4;
  text-align: center; color: var(--muted); font-size: .85rem;
}
footer.foot a { margin: 0 .5rem; }
