/* TLV TASE View — גיליון סגנון
 *
 * קהל היעד הוא מנהל השקעות שקורא את זה שלוש פעמים ביום, לרוב בסריקה מהירה
 * ולעיתים בטלפון. שלושת העקרונות שמנחים כאן:
 *   1. מספרים הם התוכן. ספרות טבלאיות בכל מקום שיש בו נתון, כדי שעמודות
 *      יתיישרו ושאפשר יהיה להשוות בעין.
 *   2. טבלאות פיננסיות נקראות טוב יותר עם קווים אופקיים בלבד. מסגרת מלאה
 *      סביב כל תא מייצרת רעש ויזואלי שמתחרה בנתון.
 *   3. עברית עם bidi: כל מספר חתום ובכל ערך מספרי מוגדר כיוון מפורש,
 *      אחרת "-7.11%" נקרא על המסך "7.11%-".
 */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --fg: #1a1a18;
  --muted: #6e6d68;
  --faint: #96948e;
  --accent: #17624a;
  --accent-soft: #e8f1ec;
  --border: #e5e2dc;
  --border-strong: #d2cec6;
  --table-head: #f4f2ee;
  --up: #157347;
  --down: #b4362b;
  --warn: #9a6b0f;
  --shadow: 0 1px 2px rgba(26, 26, 24, 0.04), 0 4px 12px rgba(26, 26, 24, 0.04);
  --radius: 10px;
  --measure: 44rem;   /* מידת קריאה לפרוזה */
  --wide: 68rem;      /* עמודי נתונים */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --surface: #1d1f22;
    --fg: #e9e7e2;
    --muted: #a3a19b;
    --faint: #7d7b76;
    --accent: #5fc496;
    --accent-soft: #1b2f27;
    --border: #2e3034;
    --border-strong: #3d4045;
    --table-head: #232529;
    --up: #4fbe84;
    --down: #e0705f;
    --warn: #d3a441;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Assistant", "Heebo", "Segoe UI", "Arial Hebrew", system-ui, sans-serif;
  font-size: 1.0rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* ---------- שלד ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem max(1rem, calc((100% - var(--wide)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  white-space: nowrap;
}
nav { display: flex; flex-wrap: wrap; gap: 0.15rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}
nav a:hover { color: var(--accent); background: var(--accent-soft); }

main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.6rem max(1rem, 5vw) 4rem;
}
/* פרוזה נשארת במידת קריאה גם כשהעמוד רחב; טבלאות ורצועות פורצות אותה */
main > p, main > ul:not([class]), main > ol, main > blockquote { max-width: var(--measure); }

footer {
  text-align: center;
  color: var(--faint);
  font-size: 0.78rem;
  padding: 1.6rem 1rem 2.4rem;
  border-top: 1px solid var(--border);
}

/* ---------- טיפוגרפיה ---------- */

h1 {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2.6rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.3rem; }
p { margin: 0.7rem 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: var(--table-head);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 2.6rem 0; }

blockquote {
  margin: 0.8rem 0;
  padding: 0.4rem 1rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
  color: var(--fg);
}

/* גוף הברייף: פסקה שנפתחת בהדגשה היא אייטם רמה 3, והיא נקודת העצירה
   של הסורק. סימון עדין בשוליים במקום כותרת נוספת. */
main > p > strong:first-child { color: var(--fg); }

/* ---------- טבלאות ---------- */

.tw { overflow-x: auto; margin: 0.9rem 0; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
}
th, td {
  padding: 0.5rem 0.7rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: transparent;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--table-head) 60%, transparent); }

/* ---------- דשבורד ---------- */

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.9rem;
}
.dash-head h1 { margin: 0; }
.stamp { color: var(--faint); font-size: 0.79rem; }
.stamp .stale { color: var(--down); font-weight: 700; }

ul.sources {
  list-style: none; padding: 0; margin: 0 0 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
ul.sources li {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.12rem 0.65rem; background: var(--surface);
}
ul.sources li em { color: var(--faint); font-style: normal; }
ul.sources li.ok span { color: var(--up); font-weight: 700; }
ul.sources li.bad { opacity: 0.65; }
ul.sources li.bad span { color: var(--down); font-weight: 700; }

/* רצועת השווקים — הדבר הראשון שנקרא, ולכן המספר הוא הגיבור בתא */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.8rem;
}
.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.1rem;
}
.tile .lbl { font-size: 0.71rem; color: var(--muted); line-height: 1.35; }
.tile .lbl b { font-weight: 600; color: var(--warn); margin-inline-start: 0.25rem; }
.tile .val { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.tile .chg { font-size: 0.79rem; font-weight: 600; }
.tile.up .chg { color: var(--up); }
.tile.down .chg { color: var(--down); }
.tile.flat .chg { color: var(--faint); }

table.cal { font-size: 0.84rem; }
table.cal td.imp { letter-spacing: 0.1em; white-space: nowrap; text-align: center; }
table.cal .up { color: var(--up); }
table.cal .down { color: var(--down); }

ul.archive { list-style: none; padding: 0; }
ul.archive li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
ul.archive li a { text-decoration: none; }
ul.archive li a:hover { text-decoration: underline; }

/* ---------- פיד דיווחי מאיה ---------- */

ul.reports { list-style: none; padding: 0; margin: 0.7rem 0; }
li.rep {
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--border-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.55rem;
  background: var(--surface);
}
li.rep.m3 { border-inline-start-color: var(--accent); box-shadow: var(--shadow); }
li.rep.m1 { opacity: 0.72; }
.rep-head {
  display: flex; align-items: baseline; gap: 0.5rem;
  flex-wrap: wrap; font-size: 0.85rem;
}
.rep-head .t { color: var(--faint); }
.rep-head a { font-weight: 700; text-decoration: none; }
.rep-head a:hover { text-decoration: underline; }
.rep-head .mat { color: var(--accent); letter-spacing: 0.08em; margin-inline-start: auto; }
.rep-head .cov {
  font-size: 0.67rem; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 600;
}
.rep-head .chg.up { color: var(--up); }
.rep-head .chg.down { color: var(--down); }
.rep-head .chg.flat { color: var(--faint); }
.rep-sum { font-size: 0.92rem; margin-top: 0.3rem; }
.rep-why { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.rep-hl { font-weight: 700; margin-top: 0.35rem; font-size: 0.95rem; }
.rep-ctx { font-size: 0.84rem; color: var(--muted); margin-top: 0.25rem; }
.rep-aff {
  font-size: 0.84rem; margin-top: 0.35rem;
  padding-inline-start: 0.65rem; border-inline-start: 2px solid var(--accent);
}
.rep-watch { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }
.figs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.figs .fig {
  font-size: 0.78rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: 0.12rem 0.55rem;
}
.figs .fig b { font-weight: 600; color: var(--muted); margin-inline-end: 0.35rem; }

/* ---------- ניווט נושאים ופיד חדשות ---------- */

nav.topics { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 1.3rem; }
nav.topics a {
  font-size: 0.81rem; text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.2rem 0.7rem; color: var(--fg); background: var(--surface);
}
nav.topics a:hover { border-color: var(--accent); background: var(--accent-soft); }
nav.topics a.cur { background: var(--accent); color: #fff; border-color: var(--accent); }
nav.topics a em { font-style: normal; color: var(--faint); margin-inline-start: 0.3rem; font-size: 0.74rem; }
nav.topics a.cur em { color: #fff; opacity: 0.85; }

ul.news { list-style: none; padding: 0; margin: 0.6rem 0; }
ul.news li.daysep {
  font-size: 0.74rem; color: var(--accent); font-weight: 700;
  margin: 1.2rem 0 0.3rem; border-bottom: 1px solid var(--border); padding-bottom: 0.2rem;
}
ul.news li.nw {
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.38rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--border);
}
ul.news li.nw .t { color: var(--faint); font-size: 0.77rem; }
ul.news li.nw a { text-decoration: none; flex: 1; }
ul.news li.nw a:hover { text-decoration: underline; }
ul.news li.nw .src { color: var(--faint); font-size: 0.72rem; white-space: nowrap; }

.topic-sum {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem; margin: 0 0 1.4rem;
  box-shadow: var(--shadow);
}
.topic-sum-head {
  font-size: 0.77rem; color: var(--accent); font-weight: 700;
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem;
}
.topic-sum p { margin: 0.3rem 0; font-size: 0.94rem; }
.topic-sum .takeaway {
  font-size: 0.87rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 0.45rem; margin-top: 0.55rem;
}
.topic-sum .takeaway b { color: var(--fg); }

/* ---------- עמודי חיפוש ---------- */

p.lead { color: var(--muted); font-size: 0.94rem; max-width: var(--measure); margin-top: -0.2rem; }
form.srch {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1rem; background: var(--surface);
  margin-bottom: 1.1rem; box-shadow: var(--shadow);
}
form.srch .row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end; }
form.srch .row + .row {
  margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--border);
}
form.srch label {
  display: flex; flex-direction: column; gap: 0.22rem;
  font-size: 0.74rem; color: var(--muted); position: relative;
}
form.srch label.grow { flex: 1 1 16rem; }
form.srch label.chk {
  flex-direction: row; align-items: center; gap: 0.35rem;
  font-size: 0.84rem; color: var(--fg); padding-bottom: 0.4rem;
}
form.srch label.chk input { width: auto; }
form.srch input, form.srch select {
  font: inherit; font-size: 0.92rem; padding: 0.36rem 0.55rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 7px;
}
form.srch input:focus, form.srch select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
form.srch .filters input { width: 5.4rem; }
form.srch button {
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  padding: 0.4rem 1.4rem; border-radius: 7px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
}
form.srch button:hover { filter: brightness(1.08); }
form.srch button:disabled { opacity: 0.5; cursor: default; filter: none; }

ul.ac {
  list-style: none; margin: 0; padding: 0; position: absolute;
  top: 100%; inset-inline: 0; z-index: 40; max-height: 15rem; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 7px; box-shadow: var(--shadow);
}
ul.ac li { padding: 0.35rem 0.65rem; font-size: 0.9rem; color: var(--fg); cursor: pointer; }
ul.ac li:hover { background: var(--accent-soft); color: var(--accent); }

.msg { font-size: 0.85rem; min-height: 1.3rem; margin-bottom: 0.6rem; }
.msg.wait { color: var(--muted); }
.msg.ok   { color: var(--accent); }
.msg.warn { color: var(--warn); }
.msg.err  { color: var(--down); }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.5rem; margin-bottom: 1.2rem;
}
.tbl-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.81rem; color: var(--muted); margin-bottom: 0.35rem;
}
button.lnk {
  font: inherit; font-size: 0.81rem; background: none; border: 0;
  color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline;
}
p.empty { color: var(--muted); font-size: 0.9rem; }
p.fineprint {
  color: var(--faint); font-size: 0.78rem; line-height: 1.6;
  max-width: var(--measure); margin-top: 2.4rem;
  border-top: 1px solid var(--border); padding-top: 0.7rem;
}

/* ---------- תוצאות חיפוש דוחות ---------- */

ul.filings { list-style: none; padding: 0; margin: 0.6rem 0; }
li.fil {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
li.fil .d { color: var(--faint); font-size: 0.77rem; white-space: nowrap; }
li.fil .co { font-weight: 700; }
li.fil .ti { flex: 1 1 14rem; }
li.fil .ti a { text-decoration: none; color: var(--fg); }
li.fil .ti a:hover { color: var(--accent); text-decoration: underline; }
li.fil .form {
  font-size: 0.69rem; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.05rem 0.5rem; white-space: nowrap;
}
li.fil .cov {
  font-size: 0.67rem; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 600;
}
li.fil .dl {
  text-decoration: none; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 7px; padding: 0.15rem 0.7rem;
}
li.fil .dl:hover { background: var(--accent); color: #fff; }

/* ---------- שיחות ועידה ---------- */

table.calls { font-size: 0.89rem; }
table.calls td.t { white-space: nowrap; color: var(--fg); font-weight: 600; }
table.calls td.q { color: var(--faint); font-size: 0.79rem; white-space: nowrap; }
table.calls tr.daysep td {
  background: var(--table-head); font-weight: 700;
  font-size: 0.79rem; color: var(--accent); border-bottom: 1px solid var(--border-strong);
}
table.calls a.join {
  text-decoration: none; font-weight: 700; white-space: nowrap;
  border-bottom: 1.5px solid var(--accent);
}
table.calls a.rep-lnk {
  font-size: 0.75rem; color: var(--faint); margin-inline-start: 0.45rem; text-decoration: none;
}
table.calls a.rep-lnk:hover { color: var(--accent); text-decoration: underline; }
table.calls .amb { color: var(--warn); font-size: 0.8rem; }
table.calls .none { color: var(--faint); font-size: 0.82rem; }

/* ---------- מובייל ---------- */

@media (max-width: 640px) {
  body { font-size: 0.97rem; }
  header { padding-inline: 0.9rem; }
  nav a { padding: 0.2rem 0.4rem; font-size: 0.8rem; }
  main { padding-inline: 0.9rem; }
  h2 { margin-top: 2rem; }
  .strip { grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); }
  form.srch .filters input { width: 4.6rem; }
  li.fil { gap: 0.4rem 0.55rem; }
}

/* ---------- הדפסה ---------- */

@media print {
  header, nav, footer, form.srch, .tbl-head button { display: none; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  main { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  li.rep, .tile, .topic-sum { break-inside: avoid; box-shadow: none; }
  h2 { break-after: avoid; }
}

/* ---- עמוד נחיתה ---- */
.hero { padding: 2.5rem 0 1.5rem; max-width: 46rem; }
.hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; margin: 0 0 0.5rem; }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem); line-height: 1.2;
  letter-spacing: -0.02em; margin: 0 0 0.9rem; }
.hero .sub { font-size: 1.05rem; color: var(--muted); line-height: 1.75; margin: 0 0 1.6rem; }
a.cta { display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.6rem 1.8rem; border-radius: 8px; }
a.cta:hover { filter: brightness(1.08); }
.hero .cta-note { font-size: 0.8rem; color: var(--faint); margin: 0.6rem 0 0; }

section.what, section.preview, section.request { margin-top: 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem; margin-top: 1rem; }
.grid article { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.grid h3 { margin: 0 0 0.4rem; font-size: 0.98rem; color: var(--accent); }
.grid p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.grid em { font-style: normal; color: var(--fg); font-weight: 600; }

/* התצוגות המקדימות — רכיבי האתר האמיתיים, בקנה מידה מוקטן */
.shot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); margin: 1rem 0 1.6rem; }
.shot-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem;
  background: var(--table-head); border-bottom: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted); }
.shot-bar b { font-weight: 600; color: var(--fg); }
.shot-body { padding: 0.9rem 1rem; }
.shot-body .strip { margin-bottom: 0; }
.shot-body ul.reports, .shot-body table { margin: 0; }

form.srch textarea { font: inherit; font-size: 0.92rem; padding: 0.4rem 0.55rem;
  color: var(--fg); background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 7px; resize: vertical; }
form.srch textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---- עמוד נחיתה: שכבה שנייה ---- */
body.landing main { padding-top: 0; }

.hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.hero .eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  margin-inline-end: 0.5rem; vertical-align: 0.15em;
}

/* שורת מספרים שמוכיחה היקף במקום להצהיר עליו */
.facts { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.8rem 0 0; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.facts span { font-size: 0.78rem; color: var(--muted); }

section.what h2, section.preview h2, section.request h2 { margin-top: 0; }
section.what, section.preview, section.request { margin-top: 3.2rem; }

.grid article { transition: border-color 0.15s; }
.grid article:hover { border-color: var(--border-strong); }

/* טופס הבקשה — מודגש כיעד העמוד */
section.request {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem 1.8rem 1.8rem;
  box-shadow: var(--shadow); scroll-margin-top: 4rem;
}
section.request h2 { border-bottom: 0; padding-bottom: 0; }
section.request form.srch { border: 0; box-shadow: none; background: transparent; padding: 0; }
section.request .row + .row { border-top: 0; padding-top: 0; margin-top: 0.7rem; }
section.request button { padding-inline: 2rem; }

@media (max-width: 640px) {
  .hero { padding-top: 2rem; }
  .facts { gap: 1.2rem; }
  section.request { padding: 1.1rem 1rem 1.3rem; border-radius: 12px; }
}

/* ---- ניווט סעיפים בברייף ---- */
nav.toc {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin: 0 0 1.6rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
nav.toc a {
  font-size: 0.79rem; text-decoration: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.15rem 0.65rem; background: var(--surface); white-space: nowrap;
}
nav.toc a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
main h2[id] { scroll-margin-top: 4rem; }
