/* המסלול לבגרות 791381 — "Z ACADEMY"
   הרעיון: האתר הוא ארון תקשורת. כל נושא הוא כבל בלוח של מתג; מתחילים ללמוד — הכבל
   מתחבר, נורת הפורט מהבהבת בענבר; מסיימים — היא נדלקת בירוק.
   הצבעים הם צבעי כבלי Patch אמיתיים, כתום-בטיחות הוא הדגשה, והמתכת של המתג היא הבמה.
   ירוק/אדום שמורים לנכון/שגוי (ונורת "הושלם"), תמיד עם ✓ / ✗ לצידם. */

:root {
  --bg: #F2F4F7;          /* רקע בהיר וקר — קריא יותר מהבטון הכהה של הגרסה הקודמת */
  --paper: #FFFFFF;
  --paper-2: #F6F8FA;
  --ink: #14171C;
  --muted: #56606C;
  --line: #CBD2DA;
  --line-soft: #E1E6EB;

  --metal: #262A31;
  --metal-2: #30353D;
  --metal-edge: #474D57;
  --metal-ink: #C9CFD6;

  --orange: #F26B1D;      /* הדגשה + כפתור ראשי (טקסט כהה עליו) */
  --orange-ink: #B0450A;  /* כתום לטקסט על לבן */
  --on-orange: #14171C;   /* טקסט על רקע כתום: כהה בשני המצבים, כי הכתום בהיר בשניהם */
  --orange-soft: #FFF1E8;

  /* צבעי הכבלים — קבוצת נושאים לכל צבע */
  --c-found: #F26B1D;
  --c-models: #2457C5;
  --c-addr: #E2A80E;
  --c-proto: #7A4CC2;
  --c-switch: #0E95A0;

  --blue: #2457C5;
  --blue-soft: #EAF0FC;
  --pos: #1E7A46;
  --pos-soft: #E9F6EE;
  --neg: #C0392B;
  --neg-soft: #FDF0EE;
  --led-on: #3BDB82;
  --led-busy: #FFB020;
  --term-bg: #1B1F25;

  --f-display: 'Karantina', 'IBM Plex Sans Hebrew', sans-serif;
  --f-body: 'IBM Plex Sans Hebrew', 'Heebo', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 44px);
  --read: 70ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17.5px; line-height: 1.75;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--orange); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 8vw, 104px); line-height: .86; letter-spacing: .005em; }
h2 { font-family: var(--f-body); font-weight: 700; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3; }
h3 { font-weight: 700; font-size: 18.5px; line-height: 1.35; }

.en { direction: ltr; unicode-bidi: isolate; font-weight: 500; }
.en.nowrap, .nowrap { white-space: nowrap; }
.mono-t, .mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; font-size: .9em; }
.ltr-t { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }

/* ═══ סרגל עליון — מתכת, כמו חזית ציוד ═══ */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--metal); border-bottom: 3px solid var(--orange); }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 9px var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand b { font-family: var(--f-display); font-size: 31px; font-weight: 700; line-height: .9; display: block; }
.brand small { display: block; font-size: 12.5px; color: var(--metal-ink); line-height: 1.2; }
.topnav { margin-inline-start: auto; display: flex; gap: 6px; }
.topnav a { text-decoration: none; color: var(--metal-ink); padding: 7px 14px; border-radius: 4px; font-size: 15.5px; font-weight: 500; border: 1px solid transparent; }
.topnav a:hover { color: #fff; border-color: var(--metal-edge); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--orange); font-weight: 700; }

main { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 90px; }
.footer { background: var(--metal); color: var(--metal-ink); font-size: 13.5px; text-align: center; padding: 20px var(--gutter); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  border: 2px solid var(--ink); background: transparent; border-radius: 6px; color: var(--ink);
  padding: 9px 20px; font-size: 16px; font-weight: 600; line-height: 1.4;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.primary { background: var(--orange); border-color: var(--ink); color: var(--ink); font-weight: 700; box-shadow: 0 3px 0 var(--ink); }
.btn.primary:hover { box-shadow: 0 5px 0 var(--ink); transform: translateY(-2px); }
.btn.ghost { border-color: transparent; color: var(--orange-ink); }
.btn.ghost:hover { box-shadow: none; text-decoration: underline; }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.btn.big { font-size: 19px; padding: 13px 26px; }

/* ═══ דף הבית ═══ */
.hero { padding: 46px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.hero h1 { font-size: clamp(72px, 12vw, 168px); }
.hero h1 .o { color: var(--orange); }
.hero .lede { margin: 16px 0 0; color: var(--muted); max-width: 52ch; font-size: 19px; line-height: 1.65; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* המתג עצמו — הדבר שזוכרים מהאתר */
.rack { margin: 34px calc(var(--gutter) * -0.5) 0; position: relative; }
.rack svg { display: block; width: 100%; height: auto; }
.rack-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.rack-scroll svg { min-width: 900px; }
.rack .port { cursor: pointer; }
.rack .port:focus { outline: none; }
.rack .port:focus-visible .tagbox, .rack .port:hover .tagbox { stroke: var(--ink); stroke-width: 2.5; }
.rack .port:hover .cable { filter: brightness(1.12); }
.led-busy { animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.boot .cable { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.6,0,.2,1) forwards; animation-delay: calc(var(--i) * 70ms); }
.boot .plug, .boot .led { opacity: 0; animation: pop .25s ease-out forwards; animation-delay: calc(var(--i) * 70ms + .75s); }
.boot .tagbox, .boot .tagtext { opacity: 0; animation: pop .3s ease-out forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
.rack-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding: 4px calc(var(--gutter) * .5) 0; }
.rack-legend i { display: inline-block; width: 14px; height: 9px; border-radius: 2px; vertical-align: 0; margin-inline-end: 7px; background: #3A3F47; }
.rack-legend i.busy { background: var(--led-busy); }
.rack-legend i.on { background: var(--led-on); }
.rack-legend .grp { display: inline-flex; align-items: center; gap: 6px; }
.rack-legend .grp b { display: inline-block; width: 22px; height: 6px; border-radius: 3px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 46px; align-items: start; }

.group-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin: 30px 0 8px; color: var(--ink); }
.group-h::before { content: ""; width: 28px; height: 7px; border-radius: 4px; background: var(--gc); }
.group-h:first-of-type { margin-top: 0; }
.topic-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px; gap: 16px; align-items: center;
  background: var(--paper); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px;
  text-decoration: none; color: inherit;
  transition: transform .12s;
}
.topic-row:hover { transform: translateX(-4px); }
.topic-row .idx { font-family: var(--f-display); font-size: 44px; line-height: .8; color: var(--gc); text-align: center; }
.topic-row .t { font-weight: 700; font-size: 17px; display: block; }
.topic-row .s { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
.ledbar { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.ledbar .l { width: 12px; height: 8px; border-radius: 2px; background: #C6CDD5; flex-shrink: 0; }
.ledbar .l.busy { background: var(--led-busy); }
.ledbar .l.on { background: var(--led-on); box-shadow: 0 0 6px var(--led-on); }
.meter { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--gc, var(--orange)); border-radius: 3px; transition: width .5s; }
.topic-row .prog .meter { margin-top: 6px; }

.panel { background: var(--paper); border-radius: 12px; padding: 22px 22px 20px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-family: var(--f-display); font-size: 36px; line-height: .9; margin-bottom: 8px; font-weight: 700; }
.panel p { margin: 6px 0; font-size: 15.5px; }
.panel.dark { background: var(--metal); color: #fff; }
.panel.dark h3 { color: #fff; }
.panel.dark .muted { color: var(--metal-ink); }
.stat-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.stat-line:last-of-type { border-bottom: 0; }
.stat-line b { font-family: var(--f-display); font-size: 30px; line-height: .9; direction: ltr; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; font-size: 14.5px; color: var(--muted); }
.panel.dark .field { color: var(--metal-ink); }
.field input { font: inherit; color: var(--ink); padding: 8px 10px; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); }
.pace-msg { background: var(--metal-2); border-radius: 8px; padding: 12px 14px; font-size: 15px; margin-top: 8px; color: #fff; }
.pace-msg b { color: var(--led-busy); font-size: 1.15em; }
.week { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin: 12px 0 4px; direction: ltr; }
.week i { height: 12px; border-radius: 2px; background: #3A3F47; }
.week i.on { background: var(--led-on); box-shadow: 0 0 6px rgba(59, 219, 130, .7); }
.week i.today { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ═══ דף נושא ═══ */
.topic-head {
  margin: 0 calc(var(--gutter) * -1); padding: 40px var(--gutter) 30px; background: var(--metal); color: #fff;
  position: relative; overflow: hidden; border-bottom: 6px solid var(--gc, var(--orange));
}
.topic-head > * { position: relative; max-width: 900px; }
.crumb { font-size: 14px; color: var(--metal-ink); }
.crumb a { color: #fff; }
.topic-head h1 { color: #fff; margin-top: 10px; }
.topic-head .sub { color: var(--metal-ink); margin: 10px 0 0; max-width: 56ch; font-size: 18px; }
.topic-head .hp { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 14.5px; color: var(--metal-ink); }
.topic-head .hp .meter { width: 260px; background: var(--metal-edge); }

.topic-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; margin-top: 34px; align-items: start; }
/* תוכן העניינים = כבל אנכי, כל פרק הוא נקודת חיבור */
.toc { position: sticky; top: 80px; font-size: 14.5px; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 10px; }
.toc .toc-h { font-family: var(--f-display); font-size: 30px; line-height: 1; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; position: relative; }
.toc ol::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--gc, var(--orange)); opacity: .35; }
.toc li a { position: relative; display: block; padding: 6px 0; padding-inline-start: 30px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc li a::before {
  content: ""; position: absolute; inset-inline-start: 1px; top: 9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--line);
}
.toc li a.read::before { background: var(--gc, var(--orange)); border-color: var(--gc, var(--orange)); }
.toc li a:hover { color: var(--ink); }
.toc li a.cur { color: var(--ink); font-weight: 700; }
.toc li a.cur::before { border-color: var(--ink); }
.toc .ck { display: none; }

.lesson { min-width: 0; max-width: 900px; }
.agenda-box { background: var(--metal); color: #fff; border-radius: 12px; padding: 20px 26px; margin-bottom: 18px; }
.agenda-box h2 { font-family: var(--f-display); font-size: 38px; line-height: 1; font-weight: 700; color: var(--gc, var(--orange)); margin-bottom: 6px; }
.agenda-box ul { margin: 0; padding: 0; list-style: none; counter-reset: ag; }
.agenda-box li { counter-increment: ag; display: flex; gap: 12px; margin: 5px 0; color: #E8ECF0; }
.agenda-box li::before { content: counter(ag); font-family: var(--f-display); font-size: 26px; line-height: 1.05; color: var(--gc, var(--orange)); min-width: 16px; }

.sec {
  background: var(--paper); border-radius: 12px; padding: 30px clamp(18px, 3.4vw, 40px) 30px; margin-bottom: 18px;
  scroll-margin-top: 84px; counter-increment: sec;
}
#secs { counter-reset: sec; }
.sec > h2 { margin-bottom: 16px; }
.sec .lead, .sec p { max-width: var(--read); margin: 0 0 14px; }
.sec strong { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, var(--orange-soft) 62%); }
.sec .figure { margin: 22px 0 6px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
.sec .figure img { display: block; width: 100%; height: auto; }
.sec .figure figcaption { font-size: 13.5px; color: var(--muted); padding: 7px 14px; background: var(--paper-2); }

.diagram { margin: 18px 0; padding: 14px; background: var(--paper-2); border-radius: 10px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 560px; }

.take {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 14px;
  background: var(--metal); color: #fff; border-radius: 8px; padding: 11px 18px; font-weight: 600; line-height: 1.55;
}
.take svg { width: 18px; height: 18px; stroke: var(--led-on); fill: none; stroke-width: 2.6; flex-shrink: 0; }
.take strong { color: #fff; background: none; }
.keynote {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0;
  background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); border-radius: 8px; padding: 13px 18px; color: #5E2A06;
}
.keynote svg { width: 20px; height: 20px; stroke: var(--orange-ink); fill: none; stroke-width: 2.2; flex-shrink: 0; margin-top: 5px; }
.keynote strong { color: inherit; background: none; }
.keynote.neg { background: var(--neg-soft); border-color: color-mix(in srgb, var(--neg) 40%, transparent); color: #7E2117; }
.keynote.neg svg { stroke: var(--neg); }
.hi-stack { display: flex; flex-direction: column; }

table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 15.5px; border-radius: 10px; overflow: hidden; border: 2px solid var(--metal); }
table.cmp th { background: var(--metal); color: #fff; padding: 10px 14px; text-align: right; font-weight: 600; }
table.cmp td { padding: 10px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.cmp td.k { font-weight: 700; white-space: nowrap; }
table.cmp tr:nth-child(even) td { background: var(--paper-2); }
.tbl-wrap { overflow-x: auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.card { background: var(--paper-2); border-radius: 10px; border-top: 5px solid var(--blue); padding: 16px 18px; }
.card.warm { border-top-color: var(--orange); } .card.pos { border-top-color: var(--pos); } .card.neg { border-top-color: var(--neg); }
.card .icon svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.7; }
.card.warm .icon svg { stroke: var(--orange-ink); }
.card h3 { margin: 6px 0 8px; }
.card ul, .side-list { list-style: none; padding: 0; margin: 0; }
.card li, .side-list li { position: relative; padding-inline-start: 16px; margin-bottom: 6px; font-size: 15.5px; line-height: 1.6; }
.card li::before, .side-list li::before { content: "-"; position: absolute; inset-inline-start: 0; color: var(--muted); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.step { background: var(--paper-2); border-radius: 10px; padding: 14px 16px; }
.step .num { font-family: var(--f-display); font-size: 40px; line-height: .9; color: var(--orange-ink); }
.step p { margin: 0; font-size: 15px; }

.terminal { background: var(--term-bg); border-radius: 10px; overflow: hidden; direction: ltr; text-align: left; margin: 14px 0; box-shadow: 0 8px 0 -4px rgba(0,0,0,.18); }
.term-bar { background: #2A3038; padding: 8px 12px; display: flex; gap: 7px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1){background:#E06C5F} .term-bar i:nth-child(2){background:#E0B44F} .term-bar i:nth-child(3){background:#5BB974}
.term-body { padding: 16px 18px; font-family: var(--mono); font-size: 14.5px; line-height: 1.8; color: #E6EAF0; overflow-x: auto; }
.term-body .line, .term-body .res, .term-body .find { display: block; white-space: pre-wrap; }
.term-body .prompt { color: #FF9A5C; }
.term-body .cmd { color: #FFFFFF; font-weight: 600; }
.term-body .res { color: #A8B4C4; }
.term-body .find { color: #FFC56B; }
.term-body .out { color: #7FE0A8; direction: rtl; display: block; text-align: right; font-family: var(--f-body); font-size: 14.5px; margin-bottom: 8px; }

/* ═══ מעבדה — חלון סימולציה בסגנון Packet Tracer ═══ */
.lab { margin: 24px 0 8px; border-radius: 12px; overflow: hidden; background: var(--metal); box-shadow: 0 10px 0 -5px rgba(20, 23, 28, .25); }
.lab-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #fff; }
.lab-head .leds { display: flex; gap: 5px; }
.lab-head .leds i { width: 9px; height: 9px; border-radius: 50%; background: #4A505A; }
.lab-head .leds i.on { background: var(--led-on); box-shadow: 0 0 6px var(--led-on); }
.lab-head .leds i.busy { background: var(--led-busy); }
.lab-head svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2.2; flex-shrink: 0; }
.lab-head b { font-weight: 700; font-size: 16.5px; }
.lab-head .lab-tag { margin-inline-start: auto; font-size: 13px; color: var(--metal-ink); white-space: nowrap; }
.lab-stage {
  margin: 0 10px; border-radius: 8px 8px 0 0; overflow-x: auto; padding: 8px 8px 0;
  background-color: #F7F9FB;
  background-image: radial-gradient(#D3DAE2 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
/* בטלפון הסצנה נשארת ברוחב קריא וגוללת הצידה, במקום להתכווץ לטקסט זעיר */
.lab-stage svg { display: block; width: 100%; height: auto; min-width: 640px; }
/* js/scroll-hint.js: אזור שגולש לצד מקבל דהייה בקצה הנסתר (משמאל, כי הדף מימין לשמאל) ושורת רמז */
.scrolls { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.scroll-tip { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.lab-stage.scrolls { -webkit-mask-image: none; mask-image: none; }   /* מאחורי המעבדה רקע כהה: דהייה הייתה פס כהה */
.lab-stage + .scroll-tip { margin: 0 10px; padding: 4px 0 6px; background: #F7F9FB; color: #5A6472; }
.lab-caption {
  min-height: 80px; margin: 0 10px; padding: 14px 18px; background: var(--paper); border-radius: 0 0 8px 8px;
  font-size: 16.5px; line-height: 1.65; display: flex; gap: 14px; align-items: flex-start; border-top: 2px solid var(--line-soft);
}
.lab-caption .stepno {
  flex-shrink: 0; font-family: var(--f-display); font-size: 34px; line-height: .9; color: var(--orange-ink); min-width: 44px; direction: ltr; text-align: center;
}
.lab-caption strong { background: linear-gradient(transparent 62%, var(--orange-soft) 62%); }
.lab-controls { display: flex; align-items: center; gap: 8px; padding: 12px 18px 14px; flex-wrap: wrap; }
.lab-controls .btn { padding: 7px 16px; font-size: 15px; border-color: var(--metal-edge); color: #fff; }
.lab-controls .btn:hover { box-shadow: 0 3px 0 #000; }
.lab-controls .btn.primary { color: var(--ink); border-color: #000; box-shadow: 0 3px 0 #000; }
.lab-controls .btn.ghost { color: var(--metal-ink); border-color: transparent; }
.lab-controls .btn:disabled { opacity: .3; }
.lab-dots { display: flex; gap: 6px; margin-inline-start: auto; direction: ltr; }
.lab-dots button { width: 14px; height: 9px; border-radius: 2px; border: 0; background: #4A505A; padding: 0; cursor: pointer; }
.lab-dots button.seen { background: var(--led-on); }
.lab-dots button.on { background: var(--led-busy); box-shadow: 0 0 6px var(--led-busy); }

/* ═══ ווידג'טים ═══ */
.widget { margin: 24px 0; border-radius: 12px; overflow: hidden; background: var(--metal); padding-bottom: 10px; box-shadow: 0 10px 0 -5px rgba(20, 23, 28, .25); }
.widget-body { background: var(--paper); margin: 0 10px; border-radius: 8px; padding: 16px 18px; }
.bits { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; direction: ltr; margin: 14px 0; }
.bit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bit .w { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 600; }
.bit button {
  width: 100%; max-width: 62px; aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--ink); background: var(--paper);
  font-family: var(--f-display); font-size: 40px; line-height: 1; cursor: pointer; color: var(--muted);
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.bit button[aria-pressed="true"] { background: var(--orange); color: var(--ink); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.bin-sum { font-size: 17px; margin: 10px 0; }
.bin-sum .eq { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.bin-big { font-family: var(--f-display); font-size: 64px; line-height: .8; color: var(--ink); }
.challenge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper-2); border-radius: 8px; padding: 12px 16px; margin-top: 10px; }
.challenge .target { font-family: var(--f-display); font-size: 48px; line-height: .8; color: var(--orange-ink); }
.verdict { font-weight: 700; }
.verdict.ok { color: var(--pos); }
.verdict.no { color: var(--neg); }
.ipsplit { font-family: var(--mono); font-size: clamp(16px, 2.6vw, 26px); direction: ltr; display: flex; flex-wrap: wrap; gap: 3px; margin: 14px 0; font-weight: 600; }
.ipsplit span { padding: 6px 9px; border-radius: 5px; }
.ipsplit .n { background: var(--blue-soft); color: var(--blue); border-bottom: 4px solid var(--blue); }
.ipsplit .h { background: var(--orange-soft); color: var(--orange-ink); border-bottom: 4px dashed var(--orange); }
.ipsplit .dot { padding: 6px 0; color: var(--muted); }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: var(--paper); padding: 6px 16px; cursor: pointer; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.seg button + button { border-inline-start: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--orange); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15.5px; margin-top: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); direction: ltr; text-align: right; unicode-bidi: isolate; font-weight: 600; }

/* ═══ בוחן ═══ */
#sec-quiz { background: var(--metal); color: #fff; }
#sec-quiz > h2 { color: #fff; }
#sec-quiz > h2::before { content: "?"; font-family: var(--f-display); font-size: 46px; line-height: .8; color: var(--orange); }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.quiz-top b { font-family: var(--f-display); font-size: 30px; line-height: 1; font-weight: 700; }
.quiz-top .meter { flex: 1; min-width: 140px; background: var(--metal-edge); }
.q-card { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 20px 22px; font-size: 18.5px; line-height: 1.7; }
.q-card strong { background: none; }
.options { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; text-align: right; cursor: pointer; width: 100%;
  border: 2px solid transparent; border-radius: 10px; background: var(--metal-2); color: #fff; padding: 13px 16px; font-size: 16.5px; line-height: 1.6;
  transition: border-color .12s, background .12s;
}
.opt:hover:not(:disabled) { border-color: var(--metal-ink); }
.opt .mark {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 6px; background: var(--metal); border: 2px solid var(--metal-edge);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-top: -1px;
}
.opt[aria-pressed="true"] { border-color: var(--orange); background: #3A2C22; }
.opt[aria-pressed="true"] .mark { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.opt.right { border-color: var(--led-on); background: #1F3A2C; }
.opt.right .mark { background: var(--led-on); border-color: var(--led-on); color: var(--ink); }
.opt.wrong { border-color: #F07264; background: #45231F; }
.opt.wrong .mark { background: #F07264; border-color: #F07264; color: var(--ink); }
.opt:disabled { cursor: default; }
.hint { color: #FFE2CC; background: #3A2C22; border-radius: 8px; padding: 11px 15px; margin: 8px 0; font-size: 15.5px; }
.explain { background: var(--paper); color: var(--ink); border: 1px solid color-mix(in srgb, var(--pos) 40%, transparent); padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-size: 15.5px; line-height: 1.75; }
.explain.no { border-color: color-mix(in srgb, var(--neg) 40%, transparent); }
.explain b { display: block; margin-bottom: 4px; font-size: 17px; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#sec-quiz .btn:not(.primary), .exam-box .btn:not(.primary) { color: #fff; border-color: var(--metal-edge); }
#sec-quiz .btn.ghost, .exam-box .btn.ghost { color: #FFB98E; border-color: transparent; }
#sec-quiz .btn:hover, .exam-box .btn:hover { box-shadow: 0 3px 0 #000; }
.result { text-align: center; padding: 24px 10px; }
.result .big { direction: ltr; font-family: var(--f-display); font-size: 140px; line-height: .85; color: var(--orange); }
.result .big small { font-size: 50px; color: var(--metal-ink); }
.result p { color: var(--metal-ink); }
.review { margin-top: 18px; }
.review h3 { font-family: var(--f-display); font-size: 36px; font-weight: 700; color: #fff; }
.review-item { border-bottom: 1px solid var(--metal-edge); padding: 14px 0; display: flex; gap: 12px; font-size: 15.5px; }
.review-item .sym { font-weight: 700; flex-shrink: 0; width: 22px; font-size: 18px; }
.review-item .sym.ok { color: var(--led-on); } .review-item .sym.no { color: #F07264; }
.review-item .good { color: var(--led-on); margin-top: 4px; }
.review-item a, .review-item summary { color: #FFB98E; }
.open-q { background: var(--metal-2); border-radius: 10px; padding: 16px 18px; margin: 12px 0; }
.open-q textarea { width: 100%; min-height: 96px; font: inherit; font-size: 15.5px; padding: 10px 12px; border: 2px solid var(--metal-edge); background: var(--paper); color: var(--ink); border-radius: 8px; margin: 10px 0; resize: vertical; }
.open-q .look { background: var(--paper); color: var(--ink); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); border-radius: 8px; padding: 12px 16px; margin-top: 8px; font-size: 15.5px; }
.open-q .src { font-size: 13px; color: var(--metal-ink); }
.open-h { font-family: var(--f-display); font-size: 40px; line-height: 1; margin-top: 36px; color: #fff; font-weight: 700; }

/* ═══ מבחן ═══ */
.exam-hero { margin: 0 calc(var(--gutter) * -1); padding: 50px var(--gutter) 40px; background: var(--metal); color: #fff; border-bottom: 6px solid var(--orange); }
.exam-hero h1 { color: #fff; font-size: clamp(72px, 11vw, 150px); }
.exam-hero h1 .o { color: var(--orange); }
.exam-hero .rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 28px; max-width: 980px; }
.exam-hero .rule { border-top: 3px solid var(--metal-edge); padding-top: 10px; color: var(--metal-ink); font-size: 15px; }
.exam-hero .rule b { display: block; font-family: var(--f-display); font-size: 58px; line-height: .85; color: #fff; }
.exam-box { max-width: 920px; margin: 30px auto 0; background: var(--metal); color: #fff; border-radius: 12px; padding: 26px clamp(18px, 3vw, 34px); }
.timer { font-family: var(--mono); direction: ltr; font-size: 16px; color: var(--led-busy); font-weight: 600; }

@media (max-width: 1020px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .toc { position: static; max-height: none; background: var(--paper); border-radius: 12px; padding: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topnav a { padding: 6px 9px; font-size: 14.5px; }
  .brand small { display: none; }
  .brand b { font-size: 26px; }
  .topic-row { grid-template-columns: 40px minmax(0, 1fr); }
  .topic-row .prog { grid-column: 2; }

  .lab-caption { font-size: 15.5px; }
  .q-card { font-size: 16.5px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .boot .cable { stroke-dashoffset: 0; }
  .boot .plug, .boot .led, .boot .tagbox, .boot .tagtext { opacity: 1; }
}

/* ═══ אתר מקיף: מסלולים, בגרות, תרגול, וידאו ═══ */
.topbar-in { flex-wrap: nowrap; }
.topnav { overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { white-space: nowrap; }
#acct:empty { display: none; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-size: 18px; }
.empty { padding: 60px 0; }
.btn.on-dark { color: #fff; border-color: var(--metal-edge); }
.btn.on-dark:hover { box-shadow: 0 3px 0 #000; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.rack .port .hit { transition: fill .15s; }
.rack .port:hover .hit, .rack .port:focus-visible .hit { fill: rgba(242, 107, 29, .22); }

.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }

.part-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 40px 0 0; font-family: var(--f-display); font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.part-h span { font-family: var(--f-body); font-size: 16px; color: var(--orange-ink); font-weight: 700; }
.group-h.sep { margin-top: 34px; }

/* וידאו */
.video { margin-bottom: 18px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 0 -5px rgba(20, 23, 28, .25); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: 13.5px; color: var(--muted); margin: 8px 4px 0; }

.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.q-from { display: inline-block; font-size: 13px; color: var(--metal-ink); margin-bottom: 8px; }
.q-from.pending { color: var(--led-busy); margin-inline-start: 10px; }

/* תרגול */
.lede-dark { color: var(--metal-ink); max-width: 64ch; font-size: 18px; margin-top: 14px; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.ex-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper);
  border-radius: 12px; padding: 20px; border-top: 6px solid var(--tc, var(--metal)); transition: transform .12s;
}
.ex-card:hover { transform: translateY(-3px); }
.ex-card.hot { background: var(--orange); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.ex-card.off { opacity: .6; }
.ex-card .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.ex-card.hot .k { color: var(--ink); }
.ex-card .t { font-family: var(--f-display); font-size: 44px; line-height: .92; font-weight: 700; }
.ex-card .d { font-size: 14.5px; line-height: 1.55; flex: 1; }
.ex-card .go { align-self: flex-start; margin-top: 8px; background: var(--ink); color: #fff; font-weight: 700; padding: 7px 16px; border-radius: 6px; }
.sec.drill { margin-top: 26px; }
.pick { border: 0; padding: 0; margin: 14px 0; }
.pick legend { font-weight: 700; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px 6px; padding: 5px 12px 5px 10px; border-radius: 20px; background: var(--paper-2); border: 2px solid var(--line-soft); font-size: 14.5px; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--gc); background: var(--paper); box-shadow: inset 0 -3px 0 var(--gc); }
.chip input, .pick legend input { accent-color: var(--orange); }
.drill-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.drill-go select { font: inherit; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.run-h { color: #fff; font-size: clamp(44px, 6vw, 72px); margin-bottom: 18px; }
.review-item .was { margin-top: 4px; color: var(--metal-ink); }
.review-item details { margin-top: 4px; }
.review-item summary { cursor: pointer; }
.review-item details .explain { margin-top: 6px; }
.review-item .from { font-size: 13px; margin-top: 2px; color: var(--metal-ink); }

/* ההתקדמות שלי */
.track-line { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.track-line:last-child { border-bottom: 0; }
.track-line .nm { font-weight: 700; }
.track-line .meter { --gc: var(--tc); height: 10px; border-radius: 5px; }
.track-line .st { font-size: 14px; color: var(--muted); }
.track-line .st b { color: var(--ink); }
.panel .tbl-wrap table.cmp { margin-top: 6px; }

@media (max-width: 640px) {

  .track-line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .topnav { max-width: 56vw; }
}

/* חשבון ולוח מורה */
.acct-login { background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none; padding: 7px 14px; border-radius: 4px; font-size: 15px; white-space: nowrap; }
.acct-in { display: flex; align-items: center; gap: 10px; color: var(--metal-ink); font-size: 14px; white-space: nowrap; }
.acct-in .who { color: #fff; font-weight: 600; }
.acct-in a { color: var(--orange); }
.acct-in button { background: none; border: 1px solid var(--metal-edge); color: var(--metal-ink); border-radius: 4px; padding: 4px 10px; cursor: pointer; }
.auth-wrap { display: grid; place-items: center; padding: 50px 0; }
.auth-card { background: var(--paper); border-radius: 14px; padding: 28px; width: min(440px, 100%); box-shadow: 0 10px 0 -5px rgba(20, 23, 28, .2); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: var(--paper); padding: 10px; font-weight: 700; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--orange); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.teacher-stats { margin-bottom: 20px; }
.teacher-stats .rule { border-top-color: var(--line); color: var(--muted); }
.teacher-stats .rule b { color: var(--ink); }
table.teach td { white-space: nowrap; font-size: 14.5px; }
table.teach .srow { cursor: pointer; }
table.teach .srow:hover td { background: var(--orange-soft); }
.mini { display: inline-block; width: 48px; height: 7px; background: var(--line-soft); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.mini i { display: block; height: 100%; background: var(--tc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { font-size: 13px; padding: 4px 10px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.tchip.busy { border-color: var(--led-busy); background: #FFF6E2; }
.tchip.on { border-color: var(--pos); background: var(--pos-soft); }
.field select { font: inherit; padding: 6px 10px; border-radius: 6px; border: 2px solid var(--line); }

/* דף סקירת השאלות */
.rv { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.rv:first-of-type { border-top: 0; }
.rv-st { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; background: #FFF6E2; color: #6B4A00; margin-bottom: 8px; }
.rv-st.approved { background: var(--pos-soft); color: var(--pos); }
.rv-st.rejected { background: var(--neg-soft); color: var(--neg); }
.rv-q { font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.rv-opts { margin: 0 0 8px; padding-inline-start: 22px; }
.rv-opts li { margin: 3px 0; }
.rv-opts li.ok { color: var(--pos); font-weight: 600; }
.rv-meta { font-size: 15px; color: var(--muted); margin: 4px 0; }

/* ═══ סדר ונגישות: דף בית חדש, תפריט טלפון ═══ */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--orange); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 10px; }
#app:focus { outline: none; }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--metal-edge); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
.topnav a { padding: 9px 14px; }
@media (max-width: 1080px) {
  .topbar-in { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  .topnav { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; margin: 4px 0 6px; max-width: none; overflow: visible; }
  .topnav.open { display: flex; }
  .topnav a { padding: 12px 14px; font-size: 17px; border-radius: 6px; }
  #acct { order: 2; }
}

/* הגיבור: טקסט מימין, סצנת רשת חיה משמאל */

@keyframes h-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

.h-sec { margin-top: 64px; }
.h-sec > h2 { font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 700; margin-bottom: 20px; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how li { counter-increment: how; position: relative; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.how li::before { content: counter(how); font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--link); }

.how b { font-size: 19px; }
.how span:last-child { color: var(--muted); font-size: 15px; line-height: 1.6; }

.p-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.p-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px; transition: border-color .15s; }
.p-card:hover { border-color: var(--orange); }
.p-card b { font-size: 19px; }
.p-card span { color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {

  .t-grid, .p-row { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 560px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .h-sec { margin-top: 46px; }

}

/* ═══ מפת הקווים ═══
   כל מסלול הוא קו בצבע שלו, כל תחנה היא קבוצת נושאים (במפה) או נושא (בדף הקו).
   טבעת כתומה = חומר הבגרות. תחנת מעבר = מילוי לבן ומסגרת שחורה, כמו במפות תחבורה. */
.btn.pill { border-radius: 40px; }

@keyframes here { 0% { box-shadow: 0 0 0 0 rgba(20, 23, 28, .55); } 100% { box-shadow: 0 0 0 16px rgba(20, 23, 28, 0); } }

/* קו אנכי — דף הקו, ובטלפון גם דף הבית */
.line { list-style: none; margin: 0; padding: 0 0 10px; position: relative; }
.line::before { content: ""; position: absolute; inset-inline-start: 19px; top: 18px; bottom: 18px; width: 10px; border-radius: 5px; background: var(--lc); }
.line .zone h2 { position: relative; margin: 26px 0 6px; padding-inline-start: 56px; font-family: var(--f-display); font-size: 36px; line-height: 1; color: var(--lc); }
.line .zone:first-child h2 { margin-top: 4px; }
.stop a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 12px 14px 12px 12px; padding-inline-start: 56px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.stop a:hover { background: color-mix(in srgb, var(--lc) 8%, #fff); }
.stop .dot { position: absolute; inset-inline-start: 10px; top: 13px; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; background: var(--paper); border: 7px solid var(--lc); }
.stop.on .dot { background: var(--lc); border-color: var(--lc); box-shadow: inset 0 0 0 3px #fff; }
.stop.busy .dot { background: linear-gradient(90deg, var(--lc) 50%, #fff 50%); }
.stop.bag .dot { outline: 4px solid var(--orange); outline-offset: 0; }
.stop.here .dot { animation: here 1.8s ease-out infinite; }
.stop .nm { font-weight: 700; font-size: 17px; line-height: 1.4; }
.stop .sub { grid-column: 1; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.stop .st { grid-column: 2; grid-row: 1; font-size: 13.5px; color: var(--muted); white-space: nowrap; align-self: center; }
.stop.here .nm::after { content: " ●"; color: var(--orange); }
.line-wrap { background: var(--paper); border-radius: 14px; padding: 18px 12px; }
.track-head h1 { max-width: none; }

.line .zone { scroll-margin-top: 80px; }

/* ═══ ארכיון הבגרויות ═══ */
.ar-note { color: #FFB98E; font-size: 15px; margin-top: 10px; }
.ar-years { display: grid; gap: 12px; margin-bottom: 30px; }
.ar-year { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; background: var(--paper); border-radius: 12px; padding: 16px 20px; }
.ar-year .y { font-family: var(--f-display); font-size: 64px; line-height: .8; color: var(--orange); direction: ltr; }
.ar-y-body > b { display: block; font-size: 18px; margin-bottom: 6px; }
.ar-part { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.ar-part span { flex: 1 1 220px; font-size: 15.5px; }
.btn.small { padding: 6px 14px; font-size: 14.5px; min-height: 0; }
.ar-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 40px; }
.ar-topic { background: var(--paper); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ar-topic b { font-size: 17.5px; }
.ar-topic .muted { font-size: 14px; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ar-learn { font-size: 14px; color: var(--ink); }
.ar-mode { color: var(--metal-ink); margin: -6px 0 14px; font-size: 15px; }
.ar-qh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; color: #fff; }
.ar-qh b { font-size: 18px; margin-inline-end: 6px; }
.ar-tag { font-size: 13px; color: var(--metal-ink); border: 1px solid var(--metal-edge); border-radius: 4px; padding: 2px 8px; }
.ar-fig { display: block; max-width: 100%; height: auto; margin: 14px auto 4px; border-radius: 6px; background: #fff; }
.ar-code, .ar-model pre { font-family: var(--mono); font-size: 14.5px; line-height: 1.6; background: #14171C; color: #E6E9ED; border-radius: 8px; padding: 12px 14px; margin: 12px 0 0; overflow-x: auto; text-align: left; white-space: pre; }
.ltr-opt { font-family: var(--mono); font-size: 14.5px; text-align: left; }
.tf { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; counter-reset: tf; }
.tf li { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; border: 1px solid transparent; }
.tf li::before { counter-increment: tf; content: counter(tf) "."; font-weight: 700; }
.tf li.ok { border-color: var(--pos); } .tf li.no { border-color: var(--neg); }
.tf-t { flex: 1 1 260px; line-height: 1.6; }
.tf-b { display: flex; gap: 6px; }
.tf-btn { font: inherit; font-size: 14.5px; padding: 6px 12px; border-radius: 6px; border: 2px solid var(--line, #C9CFD6); background: var(--paper); color: var(--ink); cursor: pointer; }
.tf-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tf-btn.right { border-color: var(--pos); }
.tf-btn.wrong { border-color: var(--neg); }
.tf-btn:disabled { cursor: default; }
.tf-fix { font-size: 14px; color: var(--pos); font-weight: 700; }
.ar-in { color: var(--metal-ink); margin: 14px 0; }
.ar-in input, .ar-in textarea { font-family: var(--mono); font-size: 16px; }
.ar-verdict { font-weight: 700; margin: -4px 0 8px; }
.ar-verdict.ok { color: var(--led-on); } .ar-verdict.no { color: #F07264; }
.ar-model { color: #fff; margin-top: 4px; }
.ar-self { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--metal-ink); margin: 10px 0; }
.ar-self .tf-btn[aria-pressed="true"] { border-color: #fff; }
.ar-rev { display: flex; gap: 12px; border-bottom: 1px solid var(--metal-edge); padding: 18px 0; }
.ar-rev .sym { font-weight: 700; flex-shrink: 0; width: 22px; font-size: 18px; color: var(--metal-ink); }
.ar-rev .sym.ok { color: var(--led-on); } .ar-rev .sym.no { color: #F07264; }
.ar-rev > div { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .ar-year { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ar-year .y { font-size: 48px; }
}

/* ═══ פלטפורמת לימוד (2026-10-29, בהשראת Khan Academy ו-Duolingo) ═══
   בהיר וכהה עם מתג (html[data-theme]). כחול = פעולה וקישור, ירוק = התקדמות והצלחה,
   ענבר = רצף ויעד. כפתורים "תלת-ממדיים": פס תחתון כהה יותר. כרטיסים מעוגלים, תפריט צד.
   הבמות (בוחן, מבחן, מעבדה) נשארות כחול-לילה בשני המצבים: מסך ממוקד, כמו חלון סימולציה. */
:root {
  --bg: #F4F6F9; --paper: #FFFFFF; --paper-2: #F7F9FC;
  --ink: #14213D; --muted: #5A6A85; --line: #DCE2EB; --line-soft: #E9EDF3;
  --blue: #1865F2; --blue-edge: #0E45B0; --blue-soft: #E8F0FE; --on-blue: #FFFFFF; --link: #1554C7;
  --banner: #1865F2; --banner-edge: #0E45B0;
  --pos: #148A45; --pos-fill: #1FAB54; --pos-soft: #E6F6EC; --neg: #C0392B; --neg-soft: #FDF0EE;
  --orange: #FF9600; --orange-ink: #9A5800; --orange-soft: #FFF4DC;
  --metal: #16213A; --metal-2: #1E2B47; --metal-edge: #33456A; --metal-ink: #C3CEE0;
  --m-none: #D9DFE8; --m-busy: #9CC0FB; --m-done: #1865F2;
  --f-display: 'Heebo', Arial, sans-serif; --f-body: 'Heebo', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1522; --paper: #172131; --paper-2: #131C2B;
  --ink: #E9EEF6; --muted: #9FB0C8; --line: #2A3750; --line-soft: #22304A;
  --blue: #4C8DFF; --blue-edge: #2A62CC; --blue-soft: #1C2B45; --on-blue: #0E1522; --link: #8DB6FF;
  --banner: #1D3A70; --banner-edge: #122650;
  --pos: #4ED17E; --pos-fill: #34C46A; --pos-soft: #16301F; --neg: #F07264; --neg-soft: #3A1E1E;
  --orange: #FFB33F; --orange-ink: #FFC870; --orange-soft: #2A2414;
  --metal: #0A1020; --metal-2: #121B2C; --metal-edge: #2A3750; --metal-ink: #B8C6DA;
  --m-none: #2A3750; --m-busy: #2E5BA8; --m-done: #4C8DFF;
  color-scheme: dark;
}
body { background: var(--bg); font-family: var(--f-body); font-size: 17px; color: var(--ink); }
a { color: var(--link); }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: 0; }
h2 { font-weight: 700; }
.muted { color: var(--muted); }

/* מעטפת: תפריט צד + תוכן */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; box-sizing: border-box; background: var(--paper); border-inline-end: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; z-index: 30; }
.side-top { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
/* הסמל: Z שהוא מסלול ברשת — ארבעה צמתים וקו שעובר ביניהם; Z גם לזריהן */
.brand svg { width: 36px; height: 36px; fill: none; flex-shrink: 0; }
.brand svg path { stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand svg circle { fill: var(--ink); }
.brand b.en { direction: ltr; text-align: right; letter-spacing: .04em; font-size: 20px; }
.brand b .z { color: var(--orange); }
.brand b { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; }
.brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.theme-btn, .menu-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.theme-btn { margin-inline-start: auto; }
.theme-btn svg, .menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
.topnav { display: flex; flex-direction: column; gap: 4px; margin: 20px 0 0; max-width: none; overflow: visible; }
.topnav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 0; border: 0; border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.topnav a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.topnav a:hover { background: var(--paper-2); color: var(--ink); }
.topnav a[aria-current="page"] { background: var(--blue-soft); color: var(--link); font-weight: 700; }
#acct { margin-top: auto; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1180px; box-sizing: border-box; margin: 0 auto; padding: 0 var(--gutter) 80px; flex: 1; }
/* מילה ארוכה בלי רווחים (כתובת IPv6, כתובת URL) נשברת רק כשהיא לא נכנסת בשורה, ולא מרחיבה את הדף בטלפון */
main { overflow-wrap: break-word; }
.footer { background: none; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; height: auto; padding: 10px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .topnav { display: none; margin: 8px 0 4px; }
  .topnav.open { display: flex; }
  #acct { margin-top: 0; }
}

/* כפתורים */
.btn { border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: none; padding: 9px 20px; }
.btn:hover { transform: none; box-shadow: none; background: var(--paper-2); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn.primary { background: var(--blue); border-color: var(--blue); border-bottom-color: var(--blue-edge); color: var(--on-blue); box-shadow: none; font-weight: 700; }
.btn.primary:hover { background: var(--blue); filter: brightness(1.06); box-shadow: none; transform: none; }
.btn.ghost { border-color: transparent; background: none; color: var(--link); }
.btn.on-dark, .exam-box .btn:not(.primary), #sec-quiz .btn:not(.primary), .lab-controls .btn:not(.primary):not(.ghost) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
/* כפתור ההפעלה במעבדה: טקסט על כחול כמו כל כפתור ראשי (הכלל הישן של המעבדה צבע אותו בכהה) */
.lab-controls .btn.primary { color: var(--on-blue); border-color: var(--blue); border-bottom-color: var(--blue-edge); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .08); }

/* כרטיסים */
.panel, .p-card, .ar-year, .ar-topic, .topic-row, .line-wrap { border-radius: 18px; border: 1px solid var(--line); }
.panel:not(.dark), .p-card, .ar-year, .ar-topic, .topic-row { background: var(--paper); }
.panel h3 { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.panel.dark { background: var(--metal); border-color: var(--metal); }
.topic-row:hover { transform: none; border-color: var(--blue); }
.topic-row .idx, .stat-line b, .step .num, .ar-year .y, .result .big, .exam-hero .rule b, .bin-big, .challenge .target, .agenda-box li::before { font-family: var(--mono); font-weight: 600; }
.topic-row .idx { font-size: 24px; }
.stat-line b { font-size: 22px; }
.result .big { font-size: 96px; } .result .big small { font-size: 34px; }
.ar-year .y { font-size: 38px; }
.part-h { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.toc .toc-h, .review h3, .open-h, .agenda-box h2, .quiz-top b, .h-sec > h2, .ex-card .t { font-family: var(--f-display); font-weight: 700; }
.toc .toc-h, .review h3, .open-h { font-size: 20px; }
.agenda-box h2 { font-size: 22px; }
.quiz-top b { font-size: 17px; }
.h-sec > h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.ex-card .t { font-size: 24px; line-height: 1.2; }
.ex-card { border-radius: 18px; }

/* באנר: כותרת נושא, כיתה, מבחנים */
.topic-head, .exam-hero { background: var(--banner); border-radius: 20px; margin: 24px 0 0; padding: 28px clamp(20px, 3vw, 36px); border-bottom: 5px solid var(--banner-edge); color: #fff; }
.topic-head h1, .exam-hero h1 { color: #fff; }
.topic-head .crumb, .topic-head .crumb a, .topic-head .sub { color: rgba(255, 255, 255, .88); }
.exam-box, #sec-quiz, .lab { border-radius: 20px; }

/* דף הבית */
.hello { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 30px 0 6px; }
.hello h1 { margin: 0; }
.streak { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); font-weight: 700; font-size: 15px; }
.streak svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linejoin: round; }
.home2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-top: 18px; }
.home2 > div { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.card .k { font-size: 14px; font-weight: 600; color: var(--muted); }
.card .big-t { font-size: 26px; font-weight: 700; line-height: 1.25; }
.card .meta { font-size: 15px; color: var(--muted); }
.bar { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.bar > span { flex: 1; height: 12px; border-radius: 6px; background: var(--line-soft); overflow: hidden; display: block; }
.bar > span > i { display: block; height: 100%; border-radius: 6px; background: var(--pos-fill); }
.bar.amber > span > i { background: var(--orange); }
.card .btn { align-self: flex-start; margin-top: 4px; }
.class-card { text-decoration: none; color: var(--ink); }
.class-card:hover { border-color: var(--blue); }
.class-card .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.class-card .head b { font-size: 21px; }
.class-card .head .cnt { margin-inline-start: auto; font-weight: 600; font-size: 15px; }
.squares { display: flex; flex-wrap: wrap; gap: 5px; }
.squares i { width: 18px; height: 18px; border-radius: 4px; background: var(--m-none); }
.squares i.busy { background: var(--m-busy); } .squares i.on { background: var(--m-done); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--m-none); }
.legend i.busy { background: var(--m-busy); } .legend i.on { background: var(--m-done); }
.card.soft { background: var(--blue-soft); border-color: transparent; }
.card.soft .num { font-size: 54px; font-weight: 800; line-height: 1; color: var(--link); }
.tracks2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tracks2 a { text-decoration: none; color: var(--ink); }
.tracks2 b { font-size: 19px; }
@media (max-width: 960px) {
  .home2 { grid-template-columns: minmax(0, 1fr); }
  .tracks2 { grid-template-columns: minmax(0, 1fr); }
}

/* דף כיתה: מסלול */
.unit { background: var(--banner); color: #fff; border-radius: 20px; border-bottom: 5px solid var(--banner-edge); padding: 20px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.unit .u-t { display: flex; flex-direction: column; gap: 2px; }
.unit .u-t small { font-size: 14px; font-weight: 600; opacity: .9; }
.unit .u-t b { font-size: 24px; font-weight: 800; }
.unit .u-t span { font-size: 15px; opacity: .92; }
.unit .btn { margin-inline-start: auto; background: #fff; color: #1554C7; border-color: #fff; border-bottom-color: #C9D9F7; }
.path { list-style: none; margin: 18px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.path li { display: flex; align-items: center; gap: 16px; }
.path li:nth-child(4n+2) { margin-inline-start: 64px; }
.path li:nth-child(4n+3) { margin-inline-start: 112px; }
.path li:nth-child(4n) { margin-inline-start: 64px; }
.path .node { width: 62px; height: 62px; border-radius: 50%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; background: var(--m-none); border-bottom: 6px solid var(--line); }
.path .node svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.path .node.on { background: var(--pos-fill); border-bottom-color: #148A45; }
.path .node.on svg { stroke: #fff; }
.path .node.busy { background: var(--m-busy); border-bottom-color: var(--blue); }
.path .node.busy svg { stroke: var(--ink); }
.path .node.next { width: 76px; height: 76px; background: var(--blue); border-bottom-color: var(--blue-edge); outline: 4px solid var(--blue-soft); outline-offset: 4px; }
.path .node.next svg { stroke: var(--on-blue); }
.path .lbl { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.path .lbl b { font-size: 17px; }
.path .lbl span { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) {
  .path li:nth-child(n) { margin-inline-start: 0; }
}

/* מצב כהה: טקסט שנכתב בצבע כהה קבוע על רקע רך */
:root[data-theme="dark"] .keynote { color: #FFD9A0; }
:root[data-theme="dark"] .keynote.neg { color: #F8B9B0; }
.exam-hero h1 { font-size: clamp(30px, 3.6vw, 42px); }
.exam-hero { margin-bottom: 8px; }
.ex-card { border: 1px solid var(--line); box-shadow: none; }
.ex-card:hover { transform: none; border-color: var(--blue); }
.ex-card .go { background: var(--blue); color: var(--on-blue); border-radius: 12px; border-bottom: 4px solid var(--blue-edge); padding: 8px 18px; }
.ex-card.hot { background: var(--orange); border: 0; border-bottom: 5px solid #C77600; box-shadow: none; color: #1F1300; }
.ex-card.hot .k, .ex-card.hot .t, .ex-card.hot .d { color: #1F1300; }
.ex-card.hot .go { background: #1F1300; color: #FFF4DC; border-bottom-color: #000; }
.run-h { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }

/* ═══ ניקוי (2026-11-07): פחות מסגרות, פחות באנרים, פחות קישוט ═══
   כרטיס נשאר רק למה שלוחצים עליו. פרקים, כותרות דפים וחלקים בשאלון זורמים על הרקע, עם קו מפריד. */

/* כותרת דף: טקסט על הרקע במקום באנר כחול */
.topic-head, .exam-hero { background: none; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 28px 0 8px; padding: 0 0 22px; }
.topic-head h1, .exam-hero h1 { color: var(--ink); }
.topic-head .crumb, .topic-head .sub, .topic-head .hp, .exam-hero .lede-dark { color: var(--muted); }
.topic-head .crumb a { color: var(--link); }
.topic-head .hp .meter { background: var(--line); }
.exam-hero .rule { border-top-color: var(--line); color: var(--muted); }
.exam-hero .rule b { color: var(--ink); }
.exam-hero .lede-dark a { color: var(--link); }
.topic-head .btn.on-dark, .exam-hero .btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* חלקי השאלון בדף הכיתה: כותרת עם קו, לא באנר */
.unit { background: none; color: var(--ink); border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 0 0 12px; }
.unit .u-t small, .unit .u-t span { color: var(--muted); opacity: 1; }
.unit .btn { background: var(--paper); color: var(--ink); border-color: var(--line); border-bottom-color: var(--line); }

/* פרקים בדף נושא: בלי כרטיס, עם קו בין פרק לפרק */
.sec { background: none; border-radius: 0; padding: 30px 0 8px; margin: 0; border-top: 1px solid var(--line); }
#secs > .sec:first-child { border-top: 0; padding-top: 6px; }
.sec .card { background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; padding: 12px 0 0; }
.sec .card.warm { border-top-color: var(--orange); }
.sec .card.pos { border-top-color: var(--pos); }
.sec .card.neg { border-top-color: var(--neg); }
/* הבוחן נשאר במה כהה: שם עונים, וזה שונה מקריאה */
#sec-quiz { background: var(--metal); border-radius: 20px; padding: 28px clamp(18px, 3.4vw, 36px); margin-top: 30px; border-top: 0; }
#sec-quiz > h2::before { content: none; }

/* מילה מודגשת: הדגשה אחת, בלי מרקר מתחתיה */
.sec strong, .lab-caption strong { background: none; }

/* בטלפון ביטוי ארוך באנגלית נשבר, במקום לברוח מחוץ למסך */
@media (max-width: 560px) {
  .en.nowrap { white-space: normal; }
}

/* ═══ לפי המדריך "אתרים עם אופי" (2026-11-07) ═══ */

/* 08: בלי נקודה או פס קישוט לפני כותרת */
.group-h::before { content: none; }
/* 05: בלי רקע נקודות במעבדה */
.lab-stage { background-image: none; }

/* 10: צורה אחת לכל האתר. פינות של 8px, כמו הקווים הישרים של סמל ה-Z. עיגול נשאר רק למה שהוא באמת עגול */
.card, .panel, .ex-card, .topic-row, .ar-year, .ar-topic, .line-wrap, .exam-box, #sec-quiz, .lab, .unit,
.btn, .ex-card .go, .chip, .opt, .keynote, .video-wrap, .figure, input, select, textarea { border-radius: 8px; }
.chip { border-radius: 6px; }

/* 03: אייקונים, משפחה אחת */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ex-card > .ic { width: 30px; height: 30px; color: var(--link); }
.ex-card.hot > .ic { color: #1F1300; }
.tracks2 b, .card.soft > b { display: flex; align-items: center; gap: 8px; }
.tracks2 b .ic, .card.soft > b .ic { color: var(--link); }

/* 06 + 04: מסלול הרשתות גדול, עם איור מהמצגת, ושני המסלולים האחרים זה מעל זה לצידו */
.tracks2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.tracks2 .feature { grid-row: span 2; }
.tracks2 .feature img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
@media (min-width: 760px) { .practice-grid .ex-card.hot { grid-column: span 2; } }

/* 04: איור הנושא מהמצגת ליד הכותרת */
.topic-head.has-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: 28px; align-items: center; }
.topic-head.has-img > :not(.th-img) { grid-column: 1; }
.topic-head .th-img { grid-column: 2; grid-row: 1 / span 4; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) {
  .tracks2 { grid-template-columns: minmax(0, 1fr); }
  .tracks2 .feature { grid-row: auto; }
  .topic-head.has-img { display: block; }
  .topic-head .th-img { display: none; }
}

/* 07: כניסה עדינה (js/reveal.js) */
.rv { opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--rv-d, 0ms); }
.rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* 01: Heebo, הפונט של המצגות. המשקל הדק לשורות משנה, והרגיל לגוף הטקסט כדי שיישאר נוח לקריאה */
.topic-head .sub, .exam-hero .lede-dark, .card .meta, .ex-card .d, .tracks2 .meta { font-weight: 300; }


/* ── ניגודיות (סקירה 2026-11-09) ──
   צבע קבוצה או כתום הם צבעי קישוט; כשהם משמשים כצבע טקסט מערבבים אותם עם --ink,
   שכהה בבהיר ובהיר בכהה, כך שהגוון נשמר והטקסט עובר 3:1 בשני המצבים. */
.topic-row .idx { color: color-mix(in srgb, var(--gc) 60%, var(--ink)); }
.line .zone h2 { color: color-mix(in srgb, var(--lc) 65%, var(--ink)); }
.ar-year .y { color: var(--orange-ink); }
.ar-note { color: var(--orange-ink); }

/* טקסט מודגש על במה כהה (בוחן, מבחן, מעבדה, משחק): `.sec strong` צובע ב---ink,
   שבמצב בהיר כהה, והמילה נעלמה על הרקע הכהה ("לא" בתשובה של בוחן). כאן היא יורשת את צבע הבמה. */
#sec-quiz strong, .exam-box strong, .lab strong, .g-stage strong { color: inherit; background: none; }

/* כפתור נבחר על כתום: הטקסט כהה גם במצב כהה (שם --ink בהיר ונבלע בכתום) */
.seg button[aria-pressed="true"], .bit button[aria-pressed="true"], .opt[aria-pressed="true"] .mark { color: var(--on-orange); }

/* ארכיון בטלפון: שם הפרק בשורה משלו, ושני הכפתורים יחד מתחתיו (קודם "תרגול" נשאר ליד הטקסט ו"מבדק" ירד לבד) */
@media (max-width: 560px) { .ar-part span { flex-basis: 100%; } }
