/* תזרים מזומנים · tazrim-site. Built by src/build.mjs into site/assets/css/style.css */
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/heebo-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/heebo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/heebo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #10231f;
  --ink-2: #33463f;
  --muted: #55615c;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #e3ddd0;
  --green: #0f5c4d;
  --green-2: #15775f;
  --green-soft: #e3efe9;
  --amber: #d9921a;
  --amber-ink: #8a5a08;
  --amber-soft: #fbf0dc;
  --red: #b4432f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16,35,31,.06), 0 10px 30px -18px rgba(16,35,31,.28);
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.8 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.3; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246,243,236,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; direction: ltr; text-align: right; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; margin-inline-start: auto; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--green-soft); color: var(--green); }
.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 1060px) {
  .nav-toggle { display: grid; }
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  html.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 10px; }
}

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 12px; border-radius: 999px; text-decoration: none; }
a.tag:hover { background: var(--green); color: #fff; }
.kicker { display: block; font-size: .85rem; font-weight: 700; color: var(--amber-ink); letter-spacing: .02em; margin-bottom: 6px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.flow-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 16px; box-shadow: var(--shadow); }
.flow-card h2 { font-size: 1rem; margin: 0 0 4px; }
.flow-card p { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.flow-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 5px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 36px; } }

/* ---------- sections, cards ---------- */
section.block { padding: 48px 0; }
section.alt { background: #efeadf; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 40em; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--green); }
.card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:hover { color: var(--green); }
.card p { color: var(--muted); font-size: .96rem; margin: 0 0 12px; }
.card .meta { margin-top: auto; font-size: .82rem; color: var(--muted); }
.card .tag { position: relative; z-index: 1; align-self: flex-start; }
.cat-card { padding: 24px; }
.cat-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.cat-card .icon svg { width: 26px; height: 26px; }
.cat-card h3 { margin-top: 14px; }
.cat-card ul { list-style: none; margin: 0 0 4px; padding: 0; font-size: .92rem; }
.cat-card li { padding: 3px 0; color: var(--ink-2); }
.cat-card li::before { content: "·"; color: var(--amber); font-weight: 900; margin-inline-end: 6px; }
.tool-band { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; background: var(--ink); color: #fff; border-radius: 26px; padding: 34px 36px; }
.tool-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.tool-band p { color: #c9d6d1; margin: 0; max-width: 40em; }
.tool-band .btn-primary { background: var(--amber); color: var(--ink); }
.tool-band .btn-primary:hover { background: #ecaa3a; color: var(--ink); }
@media (max-width: 760px) { .tool-band { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ---------- portal front page ---------- */
.masthead { padding: 30px 0 22px; border-bottom: 3px double #cfc7b7; }
.masthead h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin: 0 0 6px; }
.masthead p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.front { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .95fr); gap: 0 32px; padding-top: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.front > * + * { border-inline-start: 1px solid var(--line); padding-inline-start: 32px; }
.front .tag { margin: 12px 0 6px; }
.front-lead h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.2; margin: 4px 0 10px; }
.front-lead h2 a, .front-story h3 a { color: var(--ink); text-decoration: none; }
.front-lead h2 a:hover, .front-story h3 a:hover { color: var(--green); text-decoration: underline; }
.front-lead p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 8px; }
.lead-art { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 8px; }
.front-story + .front-story { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.story-art { display: block; }
.front-story h3 { font-size: 1.15rem; line-height: 1.35; margin: 4px 0 6px; }
.meta { font-size: .82rem; color: var(--muted); }
.thumb { display: block; width: 100%; height: auto; border-radius: 12px; }
.rail-h { font-size: 1rem; font-weight: 800; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.rules { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 0 40px 12px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r); position: absolute; inset-inline-start: 0; top: 0; font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--amber); }
.rules a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.4; }
.rules a:hover { color: var(--green); text-decoration: underline; }
.rules span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.rail-tools a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.rail-tools a:hover { border-color: var(--green); }
.rail-tools strong { display: block; color: var(--green); }
.rail-tools span { font-size: .86rem; color: var(--muted); }
@media (max-width: 1060px) { .front { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .front-rail { grid-column: 1 / -1; border-inline-start: 0 !important; padding-inline-start: 0 !important; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 32px; } }
@media (max-width: 720px) { .front, .front-rail { grid-template-columns: 1fr; } .front > * + * { border-inline-start: 0; padding-inline-start: 0; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); } .front-rail { display: block; } }
.topic { padding: 34px 0 10px; }
.topic-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; border-top: 4px solid var(--topic, var(--green)); padding-top: 12px; margin-bottom: 18px; }
.topic-head h2 { font-size: 1.45rem; margin: 0; }
.topic-head h2 a { color: var(--ink); text-decoration: none; }
.topic-head h2 a:hover { color: var(--topic, var(--green)); }
.topic-head p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1 1 320px; }
.topic-all { font-size: .9rem; font-weight: 600; }
.card-art { margin: -22px -22px 6px; }
.card-art .thumb { border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- five rules (home) ---------- */
.steps-block { padding-top: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 18px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { font-size: .94rem; color: var(--muted); margin: 0 0 12px; }
.steps a { margin-top: auto; font-size: .9rem; font-weight: 600; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- breadcrumbs, page head ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "‹"; margin-inline: 6px; color: #a59f92; }
.crumbs a { color: var(--muted); }
.page-head { padding-block: 18px 26px; } /* keep the container's side gutters on phones */
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; margin-bottom: 12px; }
.page-head .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 42em; margin: 0; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: .88rem; color: var(--muted); }

/* ---------- article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 56px; justify-content: space-between; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 92px; font-size: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; }
.toc h2 { font-size: .95rem; margin-bottom: 8px; }
.toc ol { margin: 0; padding-inline-start: 18px; }
.toc li { margin-bottom: 6px; line-height: 1.45; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.55rem; margin: 2.1em 0 .6em; padding-top: .7em; border-top: 2px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--amber-soft); border-inline-start: 4px solid var(--amber); border-radius: 12px; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: #ece6da; padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.tldr { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: var(--radius); padding: 18px 22px 8px; margin: 0 0 1.6em; box-shadow: var(--shadow); }
.tldr h2 { font-size: 1.05rem; margin: 0 0 8px; border: 0; padding: 0; }
.tldr ul { margin-bottom: .8em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--green-soft); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose td.num { direction: ltr; } /* a leading minus stays on the left of the number */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 8px; }
.sources { font-size: .9rem; color: var(--ink-2); }
.sources li { margin-bottom: .5em; word-break: break-word; }
.disclaimer { font-size: .88rem; color: var(--muted); background: #efeadf; border-radius: 12px; padding: 12px 16px; margin-top: 2em; }

/* ---------- glossary ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.letters a { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.terms dt { font-weight: 800; font-size: 1.15rem; margin-top: 1.4em; scroll-margin-top: 96px; }
.terms dt span { font-weight: 500; font-size: .9rem; color: var(--muted); margin-inline-start: 6px; }
.terms dd { margin: .3em 0 0; color: var(--ink-2); }
.terms dd a { font-size: .92rem; }

/* ---------- calculator ---------- */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.calc fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.calc legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.calc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .calc-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .calc-fields { grid-template-columns: 1fr; } }
.calc label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.calc label small { display: block; font-weight: 400; color: var(--muted); }
.calc input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc7b7; border-radius: 10px; background: #fff; color: var(--ink); direction: ltr; text-align: right; }
.calc input:focus { border-color: var(--green); outline: 3px solid rgba(15,92,77,.18); outline-offset: 0; }
.calc-out { margin-top: 8px; }
.calc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .calc-summary { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.bad b { color: var(--red); }
.stat.good b { color: var(--green); }
.neg { color: var(--red); font-weight: 700; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 140px; margin: 8px 0 4px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars span { display: block; border-radius: 6px 6px 0 0; background: var(--green); min-height: 2px; }
.bars span.below { background: var(--red); }
.bars-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; font-size: .75rem; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9d6d1; padding: 48px 0 28px; margin-top: 40px; font-size: .95rem; }
.site-footer a { color: #e9f1ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9fb3ac; }
.site-footer h2 { font-size: .95rem; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-note { margin-top: 14px; color: #9fb3ac; font-size: .88rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #2b4640; margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #9fb3ac; }
.footer-bottom .wmg-credit-link .wmg-credit { --wmg-main: #c9d6d1; --wmg-navy: #e9f1ee; --wmg-lime: #c7dd52; }

/* ---------- header: search, shadow ---------- */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(16,35,31,.35); }
.nav-links { order: 2; }
.search-btn { order: 3; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; margin-inline-start: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: .92rem; cursor: pointer; transition: border-color .15s, color .15s; }
.search-btn:hover { border-color: var(--green); color: var(--green); }
.nav-toggle { order: 4; }
@media (max-width: 1060px) { .search-btn { margin-inline-start: auto; } .nav-toggle { margin-inline-start: 8px; } }
@media (max-width: 420px) { .search-label { display: none; } .search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; } }

/* ---------- search dialog ---------- */
html.search-open { overflow: hidden; }
.search { position: fixed; inset: 0; z-index: 80; background: rgba(16,35,31,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; align-items: start; justify-items: center; padding: 10vh 16px 16px; }
.search[hidden] { display: none; }
.search-box { width: min(680px, 100%); background: var(--paper); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; animation: pop .22s cubic-bezier(.2,.8,.2,1); }
.search form { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card); color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.15rem; background: transparent; color: var(--ink); min-width: 0; }
.search-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.search-close:hover { background: var(--paper); }
.search-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 18px; font-size: .9rem; color: var(--muted); }
.search-hint button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.search-hint button:hover { border-color: var(--green); color: var(--green); }
.search-hint[hidden] { display: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus-visible { background: var(--card); }
.search-results .kind { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 1px 9px; margin-inline-end: 8px; vertical-align: 2px; }
.search-results strong { font-weight: 700; }
.search-results .snip { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-results .empty { padding: 16px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- reading progress ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--green)); transform: scaleX(0); transform-origin: right; }

/* ---------- motion (only when allowed: main.js adds .motion) ---------- */
.motion .rv { transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .rv:not(.in) { opacity: 0; transform: translateY(18px); }
.motion .front-lead .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 55ms + 250ms); }
.motion .front-lead.in .bar { transform: scaleY(1); }
.motion .front-lead .bal { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s ease-in-out 1s; }
.motion .front-lead.in .bal { stroke-dashoffset: 0; }
.motion .front-lead .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1) calc(var(--i) * 180ms + 1.1s); }
.motion .front-lead.in .dot { transform: scale(1); }
.motion .front-lead .neg-label { opacity: 0; transition: opacity .5s ease 2.2s; }
.motion .front-lead.in .neg-label { opacity: 1; }
.motion .front-lead.in .dot.neg { animation: ping 1.4s ease-out 2.3s 2; }
@keyframes ping { 0% { filter: drop-shadow(0 0 0 rgba(180,67,47,.7)); } 70% { filter: drop-shadow(0 0 8px rgba(180,67,47,0)); } 100% { filter: none; } }
.motion .article-cover .w1, .motion .article-cover .w2 { transition: transform 1.6s cubic-bezier(.2,.7,.2,1) .2s; transform: translateX(40px); }
.motion .article-cover.in .w1, .motion .article-cover.in .w2 { transform: none; }
html.a11y-motion .rv, html.a11y-motion .bar, html.a11y-motion .dot { opacity: 1 !important; transform: none !important; }
html.a11y-motion .bal { stroke-dashoffset: 0 !important; }
html.a11y-motion .neg-label { opacity: 1 !important; }

/* ---------- cards: hover ---------- */
.card { transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,35,31,.06), 0 20px 40px -22px rgba(16,35,31,.4); }
.card-art { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-art .thumb { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-art .thumb { transform: scale(1.04); }
.story-art, .lead-art { overflow: hidden; border-radius: 12px; }
.story-art .thumb { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.front-story:hover .story-art .thumb { transform: scale(1.04); }
.motion .rv.card:not(.in) { transform: translateY(18px); }

/* ---------- home rail ---------- */
.rail-box + .rail-box { margin-top: 24px; }
.rail-term p { font-size: .94rem; color: var(--ink-2); margin-bottom: 6px; }
.rail-term dfn { font-style: normal; font-weight: 800; color: var(--green); margin-inline-end: 4px; }
.rail-term a { font-size: .88rem; font-weight: 600; }

/* ---------- article extras ---------- */
.article-cover { margin: 0 0 1.4em; border-radius: var(--radius); overflow: hidden; }
.article-cover .thumb { border-radius: 0; }
.toc a.on { color: var(--green); font-weight: 700; }
.toc li { transition: transform .2s; }
.article-tools { margin: 2.4em 0 1.4em; }
.article-tools h2 { font-size: 1.2rem; border: 0; padding: 0; margin: 0 0 12px; }
.tool-card { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: border-color .2s, transform .25s; }
.tool-card:hover { border-color: var(--green); transform: translateY(-2px); }
.tool-card .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-ink); }
.tool-card .icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tool-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.6em 0 0; padding-top: 1.2em; border-top: 1px solid var(--line); }
.share-h { font-weight: 700; font-size: .95rem; margin-inline-end: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: .88rem; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.share a:hover, .share button:hover { border-color: var(--green); color: var(--green); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 40px; }
.pager a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color .2s, transform .25s; }
.pager a:hover { border-color: var(--green); transform: translateY(-2px); }
.pager a span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.pager .prev span::before { content: "→ "; }
.pager .next { text-align: left; }
.pager .next span::after { content: " ←"; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: right; } }
.tool-more { margin-top: 40px; }
.tool-more h2 { font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .toc, .a11y-root { display: none !important; } body { background: #fff; } }

.wmg-credit-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.wmg-credit {
  --wmg-credit-size: 13px;
  --wmg-main: #111111;
  --wmg-navy: #24345d;
  --wmg-lime: #b8d431;

  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  color: var(--wmg-main);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--wmg-credit-size);
  font-weight: 700;
  line-height: 1.1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wmg-credit__char {
  display: inline-block;
  animation: wmgCreditCharIn 70ms ease-out both;
}

.wmg-credit__char--brand {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.wmg-credit__char--navy {
  color: var(--wmg-navy);
}

.wmg-credit__char--lime {
  color: var(--wmg-lime);
}

.wmg-credit__char--pipe {
  margin-inline: 0.05em;
}

.wmg-credit__cursor {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  background: var(--wmg-navy);
  transform: translateY(0.12em);
  animation: wmgCreditBlink 0.68s steps(1, end) infinite;
}

.wmg-credit__cursor.is-done {
  animation: wmgCreditCursorOut 0.45s ease forwards;
}

@keyframes wmgCreditCharIn {
  from {
    opacity: 0;
    transform: translateY(1px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wmgCreditBlink {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

@keyframes wmgCreditCursorOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .wmg-credit {
    --wmg-credit-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wmg-credit__char {
    animation: none;
  }

  .wmg-credit__cursor {
    display: none;
  }
}

/* The credit is an inline-flex of per-character spans, so inside an RTL page
   the flex line reverses and the English text renders backwards. Required on
   every Hebrew/Arabic site. */
.wmg-credit-link,
.wmg-credit {
  direction: ltr;
  unicode-bidi: isolate;
}

/* On dark footers override these three on a wrapper, e.g.
   .footer .wmg-credit{--wmg-main:#aeb6c6;--wmg-navy:#fff;--wmg-lime:#bce029} */

/* The credit types itself out one character at a time, so its box grows from
   nothing to full width — and anything laid out beside it slides while that
   happens. Reserving the final width up front keeps the row still. The
   reservation is invisible, has no height, and carries the same weight and
   family so it measures the same string the animation will draw. */
.wmg-credit-link {
  display: inline-block;
  min-width: 0;
}
.wmg-credit-link::after {
  content: "Made With Passion By WMG | WMG.co.il";
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--wmg-credit-size, 13px);
  font-weight: 700;
  white-space: nowrap;
  direction: ltr;
}
