@font-face { font-family: "Heebo"; src: url("/decks/engine/fonts/heebo-hebrew.woff2") format("woff2"); font-weight: 300 900; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("/decks/engine/fonts/heebo-latin.woff2") format("woff2"); font-weight: 300 900; unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2212; }
@font-face { font-family: "JetBrains Mono"; src: url("/decks/engine/fonts/jbmono.woff2") format("woff2"); font-weight: 400 600; }

:root {
  --paper: #F7FAFE; --surface: #FFFFFF; --soft: #F1F6FC; --blue: #1266CA; --blue-dark: #0A509F; --blue-light: #E6F1FF;
  --cyan: #18A5E8; --ink: #102D50; --text: #273B53; --muted: #4A5F7A; --line: #DCE6F0; --line-strong: #B9CCDF;
  --ok: #147A57; --ok-bg: #E8F5EF; --bad: #C73535; --bad-bg: #FCEDED; --warn: #93600E; --warn-bg: #FBF3E4;
}
* { box-sizing: border-box; }
html { direction: rtl; }
body {
  margin: 0; min-height: 100vh; font: 500 17px/1.55 "Heebo", system-ui, sans-serif; color: var(--text); background-color: var(--paper);
  background-image: linear-gradient(rgb(18 102 202 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(18 102 202 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 30px; font-weight: 900; }
h2 { font-size: 21px; font-weight: 800; }
p { margin: 0; }
.mono { font-family: "JetBrains Mono", monospace; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.kicker { font: 600 13px/1 "JetBrains Mono", monospace; letter-spacing: .18em; color: var(--blue); direction: ltr; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgb(16 45 80 / .05), 0 8px 20px -8px rgb(16 45 80 / .12); }
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }

label { display: grid; gap: 5px; font-weight: 700; color: var(--ink); font-size: 15px; }
input, textarea, select {
  font: inherit; color: var(--ink); background: white; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
button, .button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; border: 1.5px solid var(--blue); background: var(--blue); color: white;
  padding: 10px 18px; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button:hover, .button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
button.ghost, .button.ghost { background: white; color: var(--blue); border-color: var(--line-strong); }
button.ghost:hover, .button.ghost:hover { background: var(--blue-light); }
button.danger { background: white; color: var(--bad); border-color: #F0B9B9; }
button.danger:hover { background: var(--bad-bg); }
button.small { min-height: 34px; padding: 4px 12px; font-size: 14px; }
button:disabled { opacity: .55; cursor: default; }

.notice { border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 700; background: var(--blue-light); color: var(--blue); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.off { background: var(--soft); color: var(--muted); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
[hidden] { display: none !important; }

/* מפת דרך של הקורס (roadmap.js): 25 תחנות בארבעה מודולים. */
.roadmap { display: grid; gap: 14px; }
.road-module { display: grid; gap: 8px; }
.road-module h3 { font-size: 15px; font-weight: 800; color: var(--muted); }
.stations { display: flex; flex-wrap: wrap; gap: 8px; }
.station { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px; border: 2px solid var(--line-strong); background: white; color: var(--ink); font: 700 15px/1 "JetBrains Mono", monospace; text-decoration: none; direction: ltr; }
.station:hover { background: var(--blue-light); }
.station.locked { background: var(--soft); color: var(--muted); border-style: dashed; border-color: var(--line-strong); }
.station.open { border-color: var(--blue); color: var(--blue); }
.station.progress { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.station.done { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.station.current { box-shadow: 0 0 0 4px rgb(24 165 232 / .35); }
.station .mark { position: absolute; top: -7px; inset-inline-start: -7px; width: 18px; height: 18px; border-radius: 50%; background: white; border: 1.5px solid currentColor; font: 800 11px/15px "Heebo", sans-serif; text-align: center; direction: rtl; }
.road-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.road-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--line-strong); margin-inline-end: 6px; vertical-align: -1px; }
.road-legend .locked::before { border-style: dashed; background: var(--soft); }
.road-legend .open::before { border-color: var(--blue); }
.road-legend .progress::before { border-color: var(--warn); background: var(--warn-bg); }
.road-legend .done::before { border-color: var(--ok); background: var(--ok-bg); }
.road-next { border-inline-start: 5px solid var(--cyan); background: var(--soft); border-radius: 10px; padding: 10px 14px; color: var(--ink); font-weight: 600; }
.roadmap.compact .station { min-width: 34px; height: 34px; font-size: 13px; border-radius: 9px; padding: 0 5px; }
.roadmap.compact .road-module h3 { font-size: 13px; }
.roadmap.compact .stations { gap: 5px; }
.roadmap.compact .road-legend { display: none; }
@media print {
  .roadmap .station { min-width: 28px; height: 28px; font-size: 11px; border-width: 1.5px; padding: 0 4px; }
  .roadmap .stations { gap: 4px; }
  .roadmap { gap: 6px; }
  .road-legend { font-size: 10pt; }
}
