/* ──────────────────────────────────────────────────────────────────────────
   curriculum.css - עמוד הפריסה.

   התפקידים של הפלטה נשמרים: --iris פעולה, --aqua ידע ותאוריה, --lilac
   הקשר ותגיות, --ink מדורים מובילים. תגיות המיקוד אינן אדום או צהוב -
   הבעלים ביקש שלא, וגם לא היה נכון: "לא לבחינה השנה" אינו אזהרה אלא
   מידע, ולכן הוא נקרא בגוון שקט ולא בגוון מסוכן.
   ────────────────────────────────────────────────────────────────────────── */

/* ── תגיות ─────────────────────────────────────────────────────────────
   scope-chip הוא הסימון שהתלמיד סורק לפיו. הוא חייב להיקרא בלי לקרוא
   את הטקסט סביבו, ולכן יש לו גוון משלו ולא רק גבול. */
.scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: help;
}

.scope-chip.is-reduced { background: var(--lilac); color: var(--lilac-deep); }
.scope-chip.is-out {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
}
.scope-chip.is-enrich { background: var(--aqua-soft); color: var(--aqua-deep); }

/* תגית "מתאים לכיתה י׳". אקווה, כי זו תגית של ידע ולא של פעולה. */
.grade-chip {
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--aqua-soft);
  color: var(--aqua-deep);
  white-space: nowrap;
}

/* הלשונית של הכיתה שיש בה תוכן, מובלטת כדי שתלמיד כיתה י׳ ידע
   מאיפה להתחיל. הכיתה עצמה נבחרת בנתונים, לא כאן. */
#grade-tabs button[data-focus] {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

#grade-tabs button[data-focus] i {
  font-style: normal;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--aqua-soft);
  color: var(--aqua-deep);
}


/* ── מקרא ──────────────────────────────────────────────────────────── */
.scope-legend {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 30px;
}
.scope-legend h2 { font-size: 1rem; margin: 0 0 12px; }
.scope-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.scope-legend li { display: flex; align-items: center; gap: 10px; }
.scope-legend li span { color: var(--text-muted); font-size: .9rem; }
.scope-legend-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .88rem;
  max-width: 70ch;
}

/* ── בלוק ──────────────────────────────────────────────────────────── */
.cur-block { margin: 0 0 38px; }

.cur-block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
}
.cur-block-head h2 { font-size: 1.18rem; margin: 0; }
.cur-block-note {
  color: var(--text-muted);
  font-size: .92rem;
  margin: -8px 0 18px;
  max-width: 74ch;
}

.cur-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

/* ── כרטיס נושא ────────────────────────────────────────────────────── */
.cur-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
}

/* נושא שהוצא מהבחינה נשאר קריא אבל מפסיק למשוך את העין - זה בדיוק
   מה שהתלמיד צריך: לראות שהוא קיים, ולא לעצור עליו. */
.cur-item.is-out { background: var(--bg); box-shadow: none; }
.cur-item.is-reduced { border-color: var(--lilac); }

.cur-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.cur-item-head h3 { font-size: 1.04rem; margin: 0; flex: 1 1 auto; }

.cur-code {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--iris-soft);
  color: var(--iris-deep);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cur-item.is-out .cur-code { background: var(--lilac); color: var(--lilac-deep); }

.cur-detail { color: var(--text); font-size: .93rem; margin: 0 0 10px; }
.cur-note {
  color: var(--text-muted);
  font-size: .87rem;
  margin: 0 0 10px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--aqua-soft);
}

/* ── תתי נושאים ────────────────────────────────────────────────────── */
.parts { margin: 0 0 12px; }

.parts summary {
  cursor: pointer;
  color: var(--accent);
  font-size: .87rem;
  font-weight: 600;
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.parts summary::-webkit-details-marker { display: none; }
.parts summary::before {
  content: "";
  width: 5px; height: 5px;
  border-inline-end: 1.6px solid currentColor;
  border-block-end: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .15s ease;
}
.parts[open] summary::before { transform: rotate(-135deg) translateY(-1px); }
.parts summary i {
  font-style: normal;
  font-weight: 400;
  font-size: .8rem;
  color: var(--lilac-deep);
  background: var(--lilac);
  border-radius: 999px;
  padding: 1px 8px;
}

.parts ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.parts li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .89rem;
}
.parts li:nth-child(odd) { background: var(--bg); }
.parts li.is-marked { background: var(--iris-soft); }

.part-code {
  color: var(--text-muted);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}
.part-label { flex: 1 1 auto; }

/* ── מה כבר קיים ───────────────────────────────────────────────────── */
.mat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-btn);
  font-size: .82rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.mat b { font-weight: 600; }
.mat span { opacity: .75; font-size: .78rem; }

.mat-theory { background: var(--aqua-soft); color: var(--aqua-deep); }
.mat-drill { background: var(--iris-soft); color: var(--iris-deep); }
.mat-exam { background: var(--ink-2); color: #fff; }
.mat-video { background: var(--lilac); color: var(--lilac-deep); }
.mat-soon {
  background: transparent;
  border-color: var(--border-strong);
  border-style: dashed;
  color: var(--text-muted);
}

a.mat:hover { filter: brightness(.94); }

/* ── דגשים ומקור ───────────────────────────────────────────────────── */
.cur-notes {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 22px;
}
.cur-notes h2 { font-size: 1rem; margin: 0 0 10px; }
.cur-notes ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 7px; }
.cur-notes li { color: var(--text-muted); font-size: .92rem; }

.cur-source {
  color: var(--text-muted);
  font-size: .84rem;
  max-width: 82ch;
  margin: 0 0 40px;
}
