/* בסיס לעמוד עצמאי (מחליף את מעטפת הערכה) */
:root {
  --ink: #33261a;
  --paper: #fbf7ef;
  --sand: #f3ede1;
  --gold: #b08d57;
  --bronze: #6f5c3e;
  --line: #d8c9ae;
  --ok: #2e7d32;
  --bad: #c62828;
  --f-display: "Frank Ruhl Libre", "David Libre", "Heebo", "Segoe UI", Arial, sans-serif;
  --f-body: "Heebo", "Assistant", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: #e8e0d0;
  line-height: 1.6;
  font-size: 16px;
}
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem;
}
.file-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--bronze);
  background: var(--bronze);
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.file-button:hover { background: #5d4c33; }
.file-button.is-compact { font-size: 0.85rem; padding: 0.4rem 0.9rem; }
.file-button[data-variant="secondary"] { background: #fff; color: var(--bronze); }
.file-button[data-variant="secondary"]:hover { background: var(--sand); }
.file-group-heading {
  font-family: var(--f-display);
  font-size: 1.35rem;
  margin: 0.5rem 0 0.75rem;
}
p { margin: 0.4rem 0 0.9rem; }
/* סגנונות אתר התרגול למצגת המנדט הבריטי — מבוסס על עיצוב אתר התרגול לשואה שאושר */

:root {
  --sh-ink: #3b2d1e;
  --sh-accent: #8a5a1e;
  --sh-accent-deep: #6f4513;
  --sh-soft: #f7efe1;
  --sh-card: #fffdf8;
  --sh-border: #e8dcc6;
  --sh-green: #1a7f5a;
  --sh-red: #b3261e;
  --sh-shadow: 0 1px 2px rgba(59, 45, 30, 0.07), 0 6px 16px rgba(59, 45, 30, 0.06);
}

/* רקע חם לכרטיס כולו */
.file-card, .page {
  background: linear-gradient(180deg, #faf5ea 0%, #fdfaf3 220px, #fdfaf3 100%);
  color: var(--sh-ink);
  gap: 18px;
}

/* כותרת ממורכזת, בס"ד קטן בצד */
.shoah-header {
  text-align: center;
  padding-top: 16px;
}

.shoah-title {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  position: relative;
  padding-bottom: 12px;
}

.shoah-title-sub {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin-top: 4px;
}

.shoah-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sh-accent), #c89b5f);
}

.file-header {
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-top: 14px;
}

.file-group {
  gap: 16px;
}

.file-group-heading {
  text-align: center;
}

.shoah-bsd {
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  font-size: 12px;
  opacity: 0.55;
  line-height: 1;
}

/* ניווט: גלולות ממורכזות */
.file-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 2px;
}

.file-nav a {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  background: var(--sh-card);
  color: var(--sh-ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.file-nav a[aria-current="page"], .file-nav a.is-active {
  background: var(--sh-accent);
  color: #fff;
  border-color: var(--sh-accent);
  box-shadow: 0 2px 8px rgba(138, 90, 30, 0.3);
}

/* כפתור התחל מחדש בתפריט */
.file-nav-reset {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  background: var(--sh-card);
  color: var(--sh-ink);
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
}

.file-nav-reset:hover {
  background: var(--sh-soft);
}

.file-nav .shoah-confirm {
  flex: 1 1 100%;
  order: 99;
  margin-top: 4px;
}

/* לוגו */
.shoah-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 18px auto 14px;
  border-radius: 12px;
}

.shoah-header .shoah-logo {
  width: 92px;
  margin: 6px auto 8px;
}

/* סיכום ניקוד בתחתית מסלול הלמידה */
.shoah-summary {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--sh-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* כרטיסי מענה */
.shoah-q {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid var(--sh-border);
  border-radius: 14px;
  background: var(--sh-card);
  box-shadow: var(--sh-shadow);
}

.shoah-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sh-accent-deep);
  background: var(--sh-soft);
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.shoah-qt {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}

.shoah-line {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* אפשרויות */
.shoah-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shoah-opt {
  text-align: start;
  font-size: 16px;
  line-height: 1.5;
  padding: 11px 13px;
  border: 1px solid var(--sh-border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.shoah-opt:hover {
  border-color: var(--sh-accent);
  background: var(--sh-soft);
}

.shoah-opt:active {
  transform: scale(0.99);
}

.shoah-opt.is-correct {
  border-color: var(--sh-green);
  background: rgba(26, 127, 90, 0.12);
  font-weight: 600;
}

.shoah-opt.is-wrong {
  border-color: var(--sh-red);
  background: rgba(179, 38, 30, 0.08);
}

.shoah-fb {
  position: relative;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.shoah-fb.is-correct {
  background: rgba(26, 127, 90, 0.12);
  border: 1px solid rgba(26, 127, 90, 0.35);
}

.shoah-fb.is-wrong {
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.3);
}

/* כפתורי חשיפה וסימון */
.shoah-reveal {
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--sh-accent);
  border-radius: 999px;
  background: var(--sh-card);
  color: var(--sh-accent-deep);
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s ease;
}

.shoah-reveal:hover {
  background: var(--sh-soft);
}

.shoah-ans {
  margin-top: 10px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--sh-accent);
  background: var(--sh-soft);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.shoah-ans p {
  margin: 0;
}

/* מסנני נושאים */
.shoah-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.shoah-chip {
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  background: var(--sh-card);
  color: inherit;
  cursor: pointer;
}

.shoah-chip.is-on {
  background: var(--sh-accent);
  color: #fff;
  border-color: var(--sh-accent);
}

/* תמונות */
.shoah-fig {
  margin: 0 0 12px;
}

.shoah-fig img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--sh-border);
}

.shoah-fig figcaption {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 6px;
  line-height: 1.5;
}

/* ===== עמוד הבית ===== */

.shoah-homebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 4px auto 20px;
  padding: 18px 20px 20px;
  border: 1px solid var(--sh-border);
  border-radius: 16px;
  background: var(--sh-card);
  box-shadow: var(--sh-shadow);
  text-align: center;
}

.shoah-level {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: var(--sh-accent-deep);
  background: linear-gradient(180deg, #f8ecd7, #f3e2c4);
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 6px 18px;
}

.shoah-homestats {
  font-size: 14px;
  opacity: 0.8;
}

.shoah-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(138, 90, 30, 0.14);
  overflow: hidden;
}

.shoah-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sh-accent), #c89b5f);
  transition: width 0.35s ease;
}

.shoah-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}

.shoah-cats span {
  background: var(--sh-soft);
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* כפתורי הפלטפורמה בתוך עמוד הבית */
.shoah-homebox .file-button {
  border-radius: 999px;
  font-weight: 700;
}

.shoah-restart {
  display: block;
  margin: 10px auto 0;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sh-accent-deep);
  background: #fdf6ec;
  border: 2px solid var(--sh-accent-deep);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.shoah-restart:hover {
  background: var(--sh-soft);
}

/* אישור איפוס פנימי */
.shoah-confirm {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 10px auto 0;
  padding: 12px 16px;
  border: 2px solid var(--sh-red);
  border-radius: 14px;
  background: #fdf3f1;
  max-width: 320px;
}

.shoah-confirm-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.shoah-confirm-btns {
  display: flex;
  gap: 10px;
}

.shoah-confirm-yes {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border: 1px solid var(--sh-red);
  border-radius: 999px;
  background: var(--sh-red);
  color: #fff;
  cursor: pointer;
}

.shoah-confirm-no {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  background: var(--sh-card);
  color: inherit;
  cursor: pointer;
}

/* ===== מסלול הלמידה ===== */

.shoah-racehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 6px;
}

.shoah-points {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  color: var(--sh-accent-deep);
  background: linear-gradient(180deg, #f8ecd7, #f3e2c4);
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 5px 14px;
}

/* קפיצת נקודות ברגע הצבירה */
.shoah-jump {
  animation: shoah-jump 0.55s ease;
}

@keyframes shoah-jump {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.shoah-pop {
  position: absolute;
  inset-inline-start: 12px;
  top: -8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--sh-green);
  pointer-events: none;
  animation: shoah-pop 1.2s ease-out forwards;
}

@keyframes shoah-pop {
  0% { transform: translateY(6px) scale(0.5); opacity: 0; }
  25% { opacity: 1; transform: translateY(-10px) scale(1.3); }
  55% { opacity: 1; transform: translateY(-24px) scale(1.05); }
  100% { transform: translateY(-42px) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shoah-jump { animation: none; }
  .shoah-pop { display: none; }
}

.shoah-level-inline {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
}

/* תחנות: רשת צפופה, שתיים בשורה גם בנייד */
.shoah-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

.shoah-station {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: start;
  padding: 12px 13px;
  border: 1px solid var(--sh-border);
  border-radius: 14px;
  background: var(--sh-card);
  box-shadow: var(--sh-shadow);
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.shoah-station:hover {
  border-color: var(--sh-accent);
  background: #fff;
}

.shoah-station:active {
  transform: scale(0.99);
}

.shoah-station.is-current {
  border-color: var(--sh-accent);
  border-width: 2px;
  background: #fff;
}

.shoah-station.is-done {
  border-color: rgba(26, 127, 90, 0.55);
  background: rgba(26, 127, 90, 0.05);
}

.shoah-station-period {
  font-size: 12px;
  font-weight: 700;
  color: var(--sh-accent-deep);
}

.shoah-station-num {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  color: var(--sh-accent-deep);
  background: var(--sh-soft);
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 2px 10px;
  align-self: flex-start;
}

.shoah-station-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.shoah-station-count {
  font-size: 12px;
  opacity: 0.65;
}

.shoah-station-go {
  font-size: 13px;
  font-weight: 700;
  color: var(--sh-accent-deep);
  margin-top: 2px;
}

.shoah-scroll-anchor {
  display: block;
  height: 100px;
  margin-top: -100px;
}

.shoah-station-body {
  scroll-margin-top: 100px;
}

.shoah-stbody-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.shoah-stbody-head .shoah-station-title {
  flex: 1 1 auto;
}

.shoah-stbody-head .shoah-confirm {
  flex: 1 1 100%;
}

.shoah-restart.is-inline {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  font-size: 13px;
  flex: 0 0 auto;
}

.shoah-station-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sh-accent-deep);
  margin: 4px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sh-border);
}

.shoah-next {
  display: block;
  margin: 18px auto 4px;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 24px;
  border: 1px solid var(--sh-accent);
  border-radius: 999px;
  background: var(--sh-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(138, 90, 30, 0.3);
}

.shoah-resetrow {
  margin: 18px 0 8px;
  text-align: center;
}

.shoah-reset {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.65;
}

/* סימון עצמי */
.shoah-note {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.7;
}

.shoah-selfmark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.shoah-claim {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--sh-green);
  border-radius: 999px;
  background: rgba(26, 127, 90, 0.1);
  color: inherit;
  cursor: pointer;
}

.shoah-claimed {
  position: relative;
  margin-top: 12px;
  font-size: 14px;
  color: var(--sh-green);
  font-weight: 700;
}

/* ===== ציר זמן ===== */
.shoah-museum {
  display: block;
  text-align: center;
  margin: 10px auto 0;
  text-decoration: none;
  height: auto;
  min-height: 0;
  line-height: 1.35;
  padding: 10px 18px;
  white-space: normal;
  overflow: visible;
}

.shoah-tl-year {
  margin-top: 16px;
}

.shoah-tl-y {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  color: var(--sh-accent-deep);
  background: var(--sh-soft);
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  padding: 4px 16px;
  margin: 0 0 8px;
}

.shoah-tl-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-inline-start: 2px solid var(--sh-border);
  padding-inline-start: 12px;
}

.shoah-tl-list li {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.shoah-tl-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: -17px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sh-accent);
  box-shadow: 0 0 0 2px #fdfaf3;
}

.shoah-tl-d {
  flex: 0 0 auto;
  min-width: 92px;
  font-weight: 700;
  font-size: 13px;
  color: var(--sh-accent-deep);
}

.shoah-tl-t {
  font-size: 14px;
  line-height: 1.5;
}

/* מילות הוראה */
.shoah-words {
  border: 1px solid var(--sh-border);
  border-radius: 14px;
  background: var(--sh-card);
  box-shadow: var(--sh-shadow);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 14px;
}

.shoah-words summary {
  cursor: pointer;
  font-weight: 700;
}

.shoah-words ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nm-back{position:fixed;inset:0;background:rgba(40,30,20,.55);display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}
.nm-box{background:#fffaf0;border-radius:14px;padding:20px;max-width:380px;width:100%;box-shadow:0 8px 30px rgba(0,0,0,.3)}
.nm-box h2{margin:0 0 8px}
.nm-in,#nm-input{width:100%;box-sizing:border-box;font:inherit;font-size:18px;padding:10px;border:1px solid #c9b48a;border-radius:8px;margin:8px 0}
.nm-ta{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:10px;border:1px solid #c9b48a;border-radius:8px}
.nm-row{display:flex;gap:10px;align-items:center;margin-top:10px}
.nm-go{background:#8a5a1f;color:#fff;border:0;border-radius:999px;padding:10px 22px;font:inherit;font-weight:700;cursor:pointer}
.nm-go:disabled{opacity:.6}
.nm-skip{background:none;border:1px solid #c9b48a;border-radius:999px;padding:6px 14px;font:inherit;font-size:14px;cursor:pointer}
.nm-err{color:#a22;min-height:1.2em;font-size:14px}
.nm-note{color:#6b5a40;font-size:14px;margin:4px 0 10px}
.nm-chip{display:inline-block;border:1px solid #c9b48a;background:#fffaf0;border-radius:999px;padding:6px 14px;font:inherit;font-size:14px;color:#5a4426}
.nm-board{list-style:none;padding:0;margin:0;counter-reset:r}
.nm-board li{counter-increment:r;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#fffaf0;border:1px solid #e3d5b5;border-radius:10px;padding:10px 14px;margin-bottom:8px}
.nm-board li::before{content:counter(r);font-weight:700;color:#8a5a1f;width:1.6em}
.nm-board li.me{border-color:#8a5a1f;background:#fff1d6}
.nm-n{flex:1}.nm-s{font-weight:700;color:#8a5a1f}
.t-card{background:#fffaf0;border:1px solid #e3d5b5;border-radius:10px;padding:10px 14px;margin-bottom:10px}
.t-head{display:flex;gap:10px;align-items:center;justify-content:space-between}
.t-msg{border-top:1px dashed #e3d5b5;margin-top:8px;padding-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}

.cele-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cele-btns .nm-go{width:100%}
