/* law4me: "a law you read with a highlighter". Tokens and decisions: law4me-site/BRIEF.md.
   Rules kept here: nothing visible under 16px; one accent (the highlighter); radius 6px, pills only for life-moment
   chips and step numbers; hairlines instead of shadows; light theme only; motion only to explain a change of state. */

:root {
  --paper: #FBFBF8;
  --surface: #FFFFFF;
  --tint: #F3F5F7;
  --ink: #132238;
  --body: #2E3A4D;
  --muted: #5A6577;
  --line: #E2E5E8;
  --line-strong: #C5CBD3;
  --hl: #FFE14D;
  --hl-edge: #E5C52C;
  --hl-wash: #FFF8D6;
  --ok: #0F7A57;
  --warn: #B4471E;
  --link: #1D4FA3;
  --chip: #EAF0F8;
  --r: 6px;
  --wrap: 76rem;
  --measure: 44rem;
  --gutter: clamp(16px, 4vw, 40px);
  --f-display: "Rubik", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-body: "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --head-h: 4.5rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 18px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 19px; } }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
/* the illustrations are drawn on pure white; multiply turns that white into the paper and leaves the ink untouched */
.hero-art img, .hub-art img, .hub-band-img, .soon-item img { mix-blend-mode: multiply; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--f-display); font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
a:focus-visible { background: var(--hl); color: var(--ink); }
::selection { background: var(--hl); color: var(--ink); }
mark {
  color: inherit;
  padding-inline: .1em;
  background: linear-gradient(transparent 50%, var(--hl) 50%, var(--hl) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.i { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.2em; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--hl); color: var(--ink); font-weight: 600; border-radius: var(--r); }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: clamp(19px, 1rem + .45vw, 21px); line-height: 1.6; color: var(--body); max-width: 36rem; }
.empty { padding-block: 1rem 2rem; color: var(--muted); }
.empty h2 { margin-bottom: .5rem; }

/* ---------- buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .625rem 1.125rem;
  border: 1px solid transparent; border-radius: var(--r);
  font: 600 18px/1.2 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .16s var(--ease-out), border-color .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--hl); border-color: var(--hl-edge); color: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-s { min-height: 44px; padding: .5rem .875rem; font-size: 17px; }
@media (hover: hover) {
  .btn-primary:hover { background: #FFD91F; }
  .btn-ghost:hover { border-color: var(--ink); }
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.05rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 500 17px/1.25 var(--f-body); text-decoration: none;
  transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), transform .16s var(--ease-out);
}
.chip:active { transform: scale(.97); }
@media (hover: hover) { .chip:hover { background: var(--hl); border-color: var(--hl-edge); } }

.tag { display: inline-flex; align-items: center; gap: .35rem; font: 500 16px/1.3 var(--f-body); color: var(--muted); white-space: nowrap; }
.tag .i { width: 1.1em; height: 1.1em; }

.stamp {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  padding: .3rem .65rem; border: 1.5px solid currentColor; border-radius: var(--r);
  color: var(--ok); font: 600 16px/1.3 var(--f-body); white-space: nowrap;
  transform: rotate(-1.5deg);
}

/* the highlighter sweep on link titles: a marker stroke that runs in the reading direction (right to left) */
.hl-sweep {
  background-image: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%);
  background-repeat: no-repeat; background-position: 100% 0; background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .28s var(--ease-out);
}
@media (hover: hover) {
  a:hover .hl-sweep { background-size: 100% 100%; }
}
a:focus-visible .hl-sweep { background-size: 100% 100%; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 251, 248, .94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--head-h); }
.logo { display: block; flex: none; border-radius: var(--r); }
.logo img { height: 42px; width: auto; }
.nav ul { display: flex; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: var(--r);
  color: var(--ink); font: 500 17px/1.3 var(--f-body); text-decoration: none;
}
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--hl); border-radius: var(--r) var(--r) 0 0; }
@media (hover: hover) { .nav a:hover { background: var(--tint); } }
.masthead-actions { margin-inline-start: auto; display: flex; gap: .25rem; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r); background: none; color: var(--ink); cursor: pointer;
}
.icon-btn .i { width: 24px; height: 24px; }
@media (hover: hover) { .icon-btn:hover { background: var(--tint); } }
.menu-btn { display: none; }
.menu-btn .when-open, .menu-btn[aria-expanded="true"] .when-closed { display: none; }
.menu-btn[aria-expanded="true"] .when-open { display: inline-block; }
.search-row { border-top: 1px solid var(--line); padding-block: 1rem; background: var(--paper); }
.search-form { display: flex; gap: .5rem; max-width: 40rem; }
.search-form input {
  flex: 1; min-width: 0; min-height: 48px; padding: .5rem .875rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  color: var(--ink); font: 400 18px/1.4 var(--f-body);
}
.search-form input::placeholder { color: var(--muted); }

@media (max-width: 899px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
  .nav a { padding: .8rem .5rem; font-size: 18px; }
  .nav a[aria-current] { box-shadow: none; border-radius: var(--r); background: var(--hl-wash); font-weight: 600; } /* no side stripe */
  .logo img { height: 38px; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.75rem; }
.sec-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.4rem); }
.sec-head p { margin-top: .5rem; color: var(--muted); max-width: 40rem; }
.more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.more .i { transition: transform .2s var(--ease-out); }
@media (hover: hover) { .more:hover { text-decoration: underline; } .more:hover .i { transform: translateX(-3px); } }

/* ---------- home ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-in { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.7rem); line-height: 1.1; letter-spacing: -.012em; max-width: 19ch; }
.hero .lede { margin-block: 1.25rem 2rem; }
.hero-ask { margin-bottom: .75rem; color: var(--ink); font: 600 19px/1.3 var(--f-display); }
.hero-art img { width: 100%; max-width: 40rem; margin-inline: auto; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; }
}
@media (max-width: 899px) {
  .hero-art img { max-width: 26rem; }
}

/* tools: a list of rows (two columns on desktop), separated by hairlines like an index, not a grid of identical cards */
.tool-cards { display: grid; grid-template-columns: 1fr; column-gap: 3rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .tool-cards { grid-template-columns: 1fr 1fr; } }
.tool-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .25rem; align-items: start;
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--line);
  color: var(--body); text-decoration: none;
}
.tool-card .tool-ic { grid-row: 1 / span 2; }
.tool-card-ask { color: var(--ink); font: 600 20px/1.35 var(--f-display); }
.tool-card-desc { color: var(--muted); font-size: 17px; line-height: 1.5; }
@media (hover: hover) { .tool-card:hover .hl-sweep { background-size: 100% 100%; } }
.tool-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--hl); color: var(--ink); }
.tool-ic .i { width: 26px; height: 26px; }

.hub-band-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.hub-band-img { width: 160px; }
.hub-band-head h2 { font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.6rem); }
.hub-band-head p { margin-block: .4rem .6rem; color: var(--muted); max-width: 38rem; }
@media (min-width: 900px) { .hub-band-img { width: 220px; } }
@media (max-width: 599px) { .hub-band-head { grid-template-columns: 1fr; gap: .5rem; } .hub-band-img { width: 150px; } }
.moments { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .moments { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.moment-h { margin-bottom: .5rem; color: var(--muted); font: 600 18px/1.3 var(--f-display); }
.guide-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guide-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem .125rem; border-bottom: 1px solid var(--line);
  color: var(--ink); font: 500 19px/1.4 var(--f-display); text-decoration: none;
}

.how-in { display: grid; gap: 2.5rem; }
.how-in h2 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: 1rem; max-width: 18ch; }
.how-in p { max-width: 36rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .how-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; } }
.ledger { margin: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 17px; line-height: 1.6; }
.ledger-cap { margin-bottom: 1rem; color: var(--muted); font-size: 16px; }
.ledger dl { display: grid; grid-template-columns: max-content 1fr; gap: .65rem 1.25rem; margin: 0 0 1.25rem; }
.ledger dt { color: var(--muted); font-weight: 500; }
.ledger dd { margin: 0; color: var(--ink); }
.ledger-quote { font-weight: 500; }
@media (max-width: 599px) { .ledger dl { grid-template-columns: 1fr; gap: .2rem; } .ledger dd { margin-bottom: .6rem; } }

/* "soon" rows: every card in a row the same height, every illustration in the same box, and no hole at the end of the
   grid (Michael 30.10.2026: "נראה קצת שבור ולא אחיד"). Three columns: a last row of two spans half each; when one would
   be left alone, the last four go two by two. A list of one card keeps one column. */
.soon-list { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.soon-list > li { display: flex; }
@media (min-width: 640px) {
  .soon-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .soon-list > li { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 1023px) { /* two columns: an odd last card takes the row (kept out of 1024+, where it outranked the span-3 rules) */
  .soon-list > li:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .soon-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .soon-list > li:nth-last-child(2):nth-child(3n+1), .soon-list > li:last-child:nth-child(3n+2),
  .soon-list > li:nth-last-child(4):nth-child(3n+1), .soon-list > li:nth-last-child(4):nth-child(3n+1) ~ li { grid-column: span 3; }
}
.soon-item { flex: 1; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.soon-item img { width: 96px; height: 96px; object-fit: contain; }
.soon-item :is(h3, h4) { font-size: 19px; }
.soon-item p { margin-block: .2rem .35rem; color: var(--muted); font-size: 16px; line-height: 1.45; }
.soon-tag { display: inline-block; padding: .1rem .5rem; border-radius: var(--r); background: var(--tint); color: var(--muted); font: 500 16px/1.4 var(--f-body); }

/* ---------- hub ---------- */
.hub-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); }
.hub-hero-in { display: grid; gap: 1.5rem; align-items: center; }
.hub-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.8rem); line-height: 1.1; margin-bottom: 1rem; }
.hub-hero .lede { margin-bottom: 1.5rem; }
.hub-art img { width: 100%; max-width: 34rem; margin-inline: auto; }
@media (min-width: 900px) { .hub-hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; } }
@media (max-width: 899px) { .hub-art img { max-width: 22rem; } }

.guide-cards { border-top: 1px solid var(--line); }
.guide-card {
  display: grid; grid-template-columns: 1fr; gap: .35rem;
  padding: 1.15rem .25rem; border-bottom: 1px solid var(--line);
  color: var(--body); text-decoration: none;
}
.guide-card-t { font-size: 20px; line-height: 1.35; }
.guide-card p { max-width: 46rem; color: var(--muted); font-size: 17px; line-height: 1.55; }
.guide-card-foot { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
@media (min-width: 900px) {
  .guide-card { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; }
  .guide-card-t, .guide-card p { grid-column: 1; }
  .guide-card-foot { grid-column: 2; grid-row: 1 / span 2; align-self: center; flex-direction: column; align-items: flex-start; }
}
@media (hover: hover) { .guide-card:hover .hl-sweep { background-size: 100% 100%; } }

/* ---------- article ---------- */
.article { padding-block: clamp(1.25rem, 3vw, 2.25rem) 0; }
.crumbs { margin-bottom: 1.25rem; color: var(--muted); font-size: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-inline-end: .5rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article-grid { display: grid; gap: 2.5rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 1100px) {
  .article-grid { grid-template-columns: minmax(0, var(--measure)) 16.5rem; justify-content: space-between; gap: 4rem; }
}
.article-main { min-width: 0; max-width: var(--measure); }
.meta-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.meta-chip { display: inline-block; padding: .25rem .65rem; border-radius: var(--r); background: var(--chip); color: var(--ink); font-size: 16px; line-height: 1.45; }
.meta-chip b { font-weight: 600; white-space: nowrap; }
.meta-chip .i { margin-inline-end: .3rem; }
.meta-chip.is-ok { background: #E6F3ED; color: var(--ok); font-weight: 500; }
.article h1 { font-size: clamp(2.05rem, 1.45rem + 2.3vw, 3.05rem); line-height: 1.14; letter-spacing: -.008em; margin-bottom: 1.5rem; }

.answer { margin-bottom: 1.75rem; padding: 1.15rem 1.35rem 1.25rem; border: 1px solid #EAD679; border-radius: var(--r); background: var(--surface); color: var(--ink); }
.answer-label { margin-bottom: .45rem; font: 700 17px/1.3 var(--f-display); color: var(--ink); }
.answer p + p { margin-top: .6em; }
.answer a { color: var(--link); }

.toc-m { margin-bottom: 2rem; border-block: 1px solid var(--line); }
.toc-m summary { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding-block: .5rem; color: var(--ink); font: 600 18px/1.3 var(--f-display); cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary .i { transition: transform .2s var(--ease-out); }
.toc-m[open] summary .i { transform: rotate(180deg); }
.toc-m ol { margin: 0 0 1rem; padding-inline-start: 1.4rem; }
.toc-m a { display: block; padding-block: .55rem; color: var(--body); }
.toc-m li + li { margin-top: 0; }
@media (min-width: 1100px) { .toc-m { display: none; } }

.aside { display: none; }
@media (min-width: 1100px) { .aside { display: block; } }
.aside-in { position: sticky; top: calc(var(--head-h) + 1.5rem); display: grid; gap: 1.75rem; }
.toc-h { margin-bottom: .6rem; font-size: 17px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-inline-start: 2px solid var(--line); }
.toc a {
  display: block; margin-inline-start: -2px; padding: .35rem .9rem;
  border-inline-start: 2px solid transparent;
  color: var(--muted); font-size: 16px; line-height: 1.45; text-decoration: none;
  transition: color .16s var(--ease-out), border-color .16s var(--ease-out);
}
.toc a:hover, .toc a.is-current { color: var(--ink); }
.toc a.is-current { border-inline-start-color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-end { margin-top: 1.5rem; }
@media (min-width: 1100px) { .share-end { display: none; } }

/* prose: the guide body (blocks: paragraph, heading, html) */
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.9rem); line-height: 1.25; }
.prose h3 { margin-top: 1.8em; font-size: 1.2em; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { margin-block: 0; padding-inline-start: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a.src {
  padding: 0 .12em; border-radius: 3px; background: var(--chip);
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* an underline, not colour alone, marks a source link inside a paragraph (axe link-in-text-block, WCAG 1.4.1; audit 27.10.2026) */
@media (hover: hover) { .prose a.src:hover { text-decoration-thickness: 2px; } }
.prose .example {
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.prose .example > * + * { margin-top: .6em; }
.prose .note { padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--tint); }
.prose .note > * + * { margin-top: .6em; }
.prose .note h2, .prose .note h3, .prose .example h3, .prose .example h4 { margin-top: 0; font-size: 1.05em; }
.prose ol.steps { padding: 0; list-style: none; counter-reset: step; }
.prose ol.steps > li { position: relative; min-height: 2.4rem; padding-inline-start: 3.1rem; padding-top: .2rem; counter-increment: step; }
.prose ol.steps > li + li { margin-top: 1rem; }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 1.5px solid var(--ink); border-radius: 50%;
  color: var(--ink); font: 600 17px/1 var(--f-display);
}
/* official service pages at the end of a "how to" section: rows on hairlines, the service name in bold */
.prose ul.gov-links { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose ul.gov-links > li { margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.prose ul.gov-links a { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose thead th { background: var(--tint); color: var(--ink); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* trust box */
.trust { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 17px; line-height: 1.6; }
.trust > * + * { margin-top: .75rem; }
.trust-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: .25rem; }
.trust-h { font-size: 22px; }
.trust-disc { color: var(--muted); }
.trust-sub { margin-top: 1.25rem; font-size: 18px; }
.sources { margin: .5rem 0 0; padding: 0; list-style: none; }
.sources li { display: flex; gap: .5rem; align-items: baseline; }
.sources li + li { margin-top: .4rem; }
.sources .i { color: var(--muted); transform: translateY(.15em); }
.how { border-top: 1px solid var(--line); padding-top: .75rem; }
.how summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how summary .i { transition: transform .2s var(--ease-out); }
.how[open] summary .i { transform: rotate(180deg); }
.how p { margin-top: .25rem; }
.trust-fix { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  margin-top: 1.25rem !important; padding-top: 1rem; border-top: 1px solid var(--line); }
.trust-fix p { margin: 0; color: var(--body); }

.related { background: var(--surface); }

/* ---------- pages ---------- */
/* not bare .page: WordPress puts class="page" on <body> of every Page too (design critic 28.10.2026) */
:is(article, section).page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.page-head { max-width: var(--measure); margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.page-head .search-form { margin-top: 1.25rem; }
:is(article, section).page .prose { max-width: var(--measure); }
.h-sub { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.tools-group { margin-top: 2.5rem; }
.tools-group h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.nav-links { display: flex; gap: .5rem; margin-top: 2rem; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: .6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-links .current { background: var(--hl); border-color: var(--hl-edge); }

/* ---------- tools ---------- */
.tool { margin-block: 2.25rem !important; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.tool-head { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.25rem; background: var(--ink); color: #fff; }
.tool-head .tool-ic { flex: none; }
.prose .tool-title { margin: 0; color: #fff; font-size: 21px; line-height: 1.3; }
.tool-desc { margin-top: .15rem; color: #D5DBE4; font-size: 16px; line-height: 1.45; }
.tool-body { display: block; padding: 1.25rem; }
.tool-nojs { color: var(--muted); }
.tool-body .field { display: grid; gap: .35rem; }
.tool-body .field + .field, .tool-body .row + .field, .tool-body .field + .row { margin-top: 1rem; }
.tool-body .row { display: grid; gap: 1rem; align-items: start; }
.tool-body fieldset + *, .tool-body * + fieldset, .tool-body .field + div, .tool-body div + .field { margin-top: 1rem; }
.tool-body .row > .field + .field { margin-top: 0; }
.result-note { margin-bottom: .9rem; padding: .8rem 1rem; border: 1px solid #E6D27A; border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1.6; }
@media (min-width: 560px) { .tool-body .row { grid-template-columns: 1fr 1fr; } }
.tool-body label, .tool-body legend { color: var(--ink); font: 600 17px/1.35 var(--f-body); }
.tool-body .hint { color: var(--muted); font-size: 16px; line-height: 1.45; }
.tool-body input[type="number"], .tool-body input[type="date"], .tool-body input[type="text"], .tool-body select, .tool-body textarea {
  width: 100%; min-height: 48px; padding: .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
  color: var(--ink); font: 400 18px/1.4 var(--f-body);
}
.tool-body input:focus-visible, .tool-body select:focus-visible, .tool-body textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.tool-body input[type="number"] { font-variant-numeric: tabular-nums; }
/* no margin-block here: a tag reset outranks ".field + .field" and swallowed the spacing (design_qa LOST_MARGIN, 28.10.2026) */
.tool-body fieldset { margin-inline: 0; padding: 0; border: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, max-content)); gap: .5rem; margin-top: .35rem; }
@media (max-width: 559px) { .seg { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); } .seg span { padding-inline: .5rem; } }
.seg label { position: relative; display: flex; }
.seg label span { flex: 1; justify-content: center; text-align: center; }
.seg.seg-col { grid-template-columns: 1fr; max-width: 34rem; }
.seg.seg-col label span { justify-content: flex-start; text-align: start; }
.tool-body .periods { display: grid; gap: .75rem; margin-block: .75rem; }
.tool-body .periods .row { padding: .75rem; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 560px) { .tool-body .periods .row { grid-template-columns: 1fr 1fr 7rem; } }
.result-why ul { margin: 0; padding-inline-start: 1.2em; }
.result-why li + li { margin-top: .3rem; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
  color: var(--ink); font: 500 17px/1.25 var(--f-body);
  transition: background-color .14s var(--ease-out), border-color .14s var(--ease-out);
}
.seg input:checked + span { background: var(--hl); border-color: var(--hl-edge); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.tool-body .check { display: flex; gap: .6rem; align-items: center; min-height: 44px; cursor: pointer; }
.tool-body .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.tool-body [data-when] > .field + .field, .tool-body [data-when] > .field:first-child { margin-top: 1rem; }
.result { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid #EAD679; border-radius: var(--r); background: var(--surface); }
.result[hidden] { display: none; }
.result { scroll-margin-top: calc(var(--head-h) + 1rem); }
.tool-body input[data-num] { text-align: right; font-variant-numeric: tabular-nums; }
/* the date field's calendar button gets the same focus ring as every control (audit M-11) */
.tool-body input[type="date"]:focus { outline: 3px solid var(--ink); outline-offset: 2px; } /* :focus, not :focus-visible: Chrome moves focus into the field's parts and its calendar button */
.result-echo { margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--line-strong); font-size: 17px; }
.result-echo[hidden] { display: none; }
.result-echo a { display: inline-flex; min-height: 44px; align-items: center; color: var(--link); }
.result-echo b { margin-inline-start: .3em; color: var(--ink); font-variant-numeric: tabular-nums; }
@media print { .result-echo { display: none !important; } }
.field-err { margin-top: .35rem; color: var(--warn); font-size: 16px; line-height: 1.45; }
.field-err[hidden] { display: none; }
.tool-body input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.result-label { color: var(--muted); font-size: 16px; }
.result-num {
  display: inline-block; padding-inline: .12em; color: var(--ink); font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.7rem)/1.15 var(--f-display); font-variant-numeric: tabular-nums;
  background-image: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 90%, transparent 90%);
  background-repeat: no-repeat; background-position: 100% 0; background-size: 100% 100%;
}
/* the stroke is drawn once, right to left, when the result changes (MOTION 3: motion only for a change of state) */
.is-fresh .result-num { animation: l4m-mark .55s var(--ease-out) .08s both; }
@keyframes l4m-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.result-sub { margin-top: .2rem; color: var(--ink); font-weight: 500; }
.result-why { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed #E6D27A; color: var(--body); font-size: 17px; line-height: 1.6; }
.result-why > * + * { margin-top: .4rem; }
.result-warn { margin-top: .75rem; color: var(--warn); font-size: 17px; }
.more-fields { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.more-fields summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary .i { transition: transform .2s var(--ease-out); }
.more-fields[open] summary .i { transform: rotate(180deg); }
.result-dates { margin-top: .2rem; color: var(--muted); font-size: 16px; }
.tool-basis { margin-top: 1rem; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.is-fresh { animation: l4m-rise .24s var(--ease-out); }
@keyframes l4m-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.letter-wrap { margin-top: 1.25rem; }
.letter { padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; color: #111; font: 400 17px/1.75 var(--f-body); }
.letter p { margin: 0 0 1em; }
.letter p:last-child { margin-bottom: 0; }
.letter .l-receipt { margin-top: 1.75em; padding-top: .9em; border-top: 1px dashed var(--line-strong); }
.letter .ph { padding-inline: .15em; border-radius: 3px; background: var(--hl-wash); box-shadow: inset 0 -2px 0 var(--hl-edge); color: var(--body); white-space: nowrap; }
.letter .nw { white-space: nowrap; }
.letter-missing { margin-top: .6rem; color: var(--muted); font-size: 16px; line-height: 1.5; }
.letter-missing:empty { display: none; }
.tool-actions .btn:disabled { opacity: .5; cursor: not-allowed; }
#l4m-print-root { display: none; }
@media (max-width: 480px) { .letter { padding: 1.1rem 1rem; font-size: 16px; } }
.tool-body textarea { min-height: 6rem; resize: vertical; }
.tool-body fieldset .check + .check, .tool-body .field .check + .check { margin-top: .25rem; }

/* ---------- stories: the week's ruling, the new law, myth or fact (spec §5 layer 3, §6; inc/stories.php) ---------- */
.hl-mark {
  padding-inline: .06em; color: inherit;
  background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%) no-repeat 100% 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero h1 + .hero-ask { margin-top: 2rem; }
.hero-reads { display: grid; gap: .6rem; margin: 1.75rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); list-style: none; max-width: 36rem; }
.hero-reads li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; color: var(--body); font-size: 17px; line-height: 1.5; }
.hero-reads .i { width: 1.25em; height: 1.25em; margin-top: .15em; color: var(--ink); }
.hero-reads b { color: var(--ink); font-weight: 600; }
.hero-reads a { color: var(--link); text-underline-offset: 3px; }

.stories-in { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .stories-in.is-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; } }
.stories-col h2 { margin-bottom: 1rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); }
.story-card {
  display: grid; gap: .75rem; padding: 1.35rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--body); text-decoration: none;
}
.guide-cards .story-card { border-width: 0 0 1px; border-radius: 0; padding: 1.15rem .25rem; background: none; }
.story-card-t { color: var(--ink); font-size: 21px; line-height: 1.35; }
.story-card p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.story-quote { margin: 0; padding: .9rem 1.1rem; border-inline-start: 3px solid var(--ink); background: var(--paper); }
.story-card .story-quote p { color: var(--ink); font-size: 18px; line-height: 1.65; }
.story-line { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); font-size: 16px; line-height: 1.5; }
.story-line .i { flex: none; width: 1.15em; height: 1.15em; margin-top: .15em; }
@media (hover: hover) { .story-card:hover .hl-sweep { background-size: 100% 100%; } .story-card:hover { border-color: var(--line-strong); } }
.story-card:focus-visible .hl-sweep { background-size: 100% 100%; }
.stories-more { margin-top: 1rem; color: var(--muted); font-size: 17px; }
.stories-more a { color: var(--link); }
.story-src { display: flex; gap: .5rem; align-items: flex-start; margin: -.5rem 0 1.5rem; color: var(--muted); font-size: 16px; line-height: 1.5; }
.story-src .i { flex: none; width: 1.15em; height: 1.15em; margin-top: .15em; }
.story-src a { color: var(--link); }
.prose blockquote.ruling { margin-inline: 0; padding: .9rem 1.2rem; border-inline-start: 3px solid var(--ink); background: var(--surface); color: var(--ink); }
.prose blockquote.ruling > * + * { margin-top: .5em; }

.myths-in { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 900px) { .myths-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; } }
.myths-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.4rem); }
.myths-head p { margin-top: .6rem; color: var(--muted); max-width: 26rem; }
.myth { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #EAD679; border-radius: var(--r); background: var(--surface); }
.myth-belief { color: var(--ink); font: 600 clamp(1.45rem, 1.1rem + 1.2vw, 1.95rem)/1.3 var(--f-display); outline: none; }
.myth-belief::before, .myth-belief::after { content: '"'; }
.myth-guess { display: flex; flex-wrap: wrap; gap: .6rem; }
.myth-guess .btn { flex: 1 1 8rem; justify-content: center; }
.myth-guess .btn[aria-pressed="true"] { background: var(--hl); border-color: var(--hl-edge); }
.myth-guess .btn:disabled { cursor: default; }
.myth-guess .btn:disabled:not([aria-pressed="true"]) { opacity: .55; }
.myth-answer { display: grid; gap: .85rem; }
.myth-answer > * { margin: 0; }
.myth-verdict { font: 700 20px/1.35 var(--f-display); color: var(--ink); }
.myth-word.is-true { color: var(--ok); }
.myth-word.is-false { color: var(--warn); }
.myth-text { color: var(--body); font-size: 18px; line-height: 1.6; }
.myth-quote { margin: 0; padding: .85rem 1.1rem; border-inline-start: 3px solid var(--ink); background: var(--paper); }
.myth-quote p { color: var(--ink); font-size: 17px; line-height: 1.65; }
.myth-quote footer { margin-top: .5rem; font-size: 16px; }
.myth-quote a.src { color: var(--link); }
.myth-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.myth-count { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
/* with JavaScript the reader guesses first; without it the card shows its answer and no buttons */
l4m-myths:not(.is-ready) .myth-guess, l4m-myths:not(.is-ready) .myth-next { display: none; }
l4m-myths.is-ready:not(.is-revealed) .myth-answer { display: none; }
l4m-myths.is-revealed .myth-answer { animation: l4m-rise .24s var(--ease-out); }
l4m-myths.is-revealed .myth-quote .hl-mark { animation: l4m-mark .6s var(--ease-out) .12s both; }

/* ---------- the whole spec on the site: rubrics, topics, "בקרוב" (inc/rubrics.php, Michael 28.10.2026) ---------- */
.soon-item { color: var(--body); text-decoration: none; }
.soon-item-lead { display: block; margin-block: .2rem .35rem; color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (hover: hover) { .soon-item:hover { border-color: var(--line-strong); } .soon-item:hover .hl-sweep { background-size: 100% 100%; } }
.soon-line { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; color: var(--muted); font-size: 17px; }

.rubric-group + .rubric-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.rubric-group h2 { margin-bottom: 1.1rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
.rubric-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
@media (min-width: 900px) { .rubric-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sub-h { margin: 2rem 0 .85rem; color: var(--ink); font-size: 1.25rem; }
.sec-head + .sub-h { margin-top: 0; }
.rubric-card {
  display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--body); text-decoration: none; overflow: hidden;
}
.rubric-card-img { display: block; aspect-ratio: 4 / 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.rubric-card-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.rubric-card-body { display: grid; gap: .45rem; align-content: start; padding: 1rem 1.1rem 1.15rem; }
.rubric-card-t { color: var(--ink); font-size: 20px; line-height: 1.3; }
.rubric-card-desc { color: var(--muted); font-size: 16px; line-height: 1.5; }
.rubric-card-foot { margin-top: .25rem; }
.rubric-card.is-soon .rubric-card-img img { opacity: .78; }
@media (hover: hover) { .rubric-card:hover { border-color: var(--line-strong); } .rubric-card:hover .hl-sweep { background-size: 100% 100%; } }
.rubric-card:focus-visible .hl-sweep { background-size: 100% 100%; }

.hub-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.hub-card { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--body); text-decoration: none; overflow: hidden; }
.hub-card-img { display: block; background: var(--paper); border-bottom: 1px solid var(--line); }
.hub-card-img img { width: 100%; height: auto; mix-blend-mode: multiply; }
.hub-card-body { display: grid; gap: .45rem; align-content: start; padding: 1rem 1.15rem 1.2rem; }
.hub-card-t { color: var(--ink); font-size: 22px; line-height: 1.3; }
.hub-card-desc { color: var(--muted); font-size: 17px; line-height: 1.5; }
@media (hover: hover) { .hub-card:hover { border-color: var(--line-strong); } .hub-card:hover .hl-sweep { background-size: 100% 100%; } }
.hub-card:focus-visible .hl-sweep { background-size: 100% 100%; }

/* the topics to come: a plain list, not rows that look like the clickable guide list; the heading already says "בקרוב" */
.soon-topics { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.soon-topics li { position: relative; padding-inline-start: 1.15rem; color: var(--body); font-size: 18px; line-height: 1.5; }
.soon-topics li::before { content: ""; position: absolute; inset-inline-start: .2rem; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.tool-card.is-soon .tool-ic { background: var(--tint); }
.tool-card.is-soon { background: var(--paper); }
.tools-soon { margin-top: clamp(3rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.tools-soon-h { margin: 1.5rem 0 .75rem; color: var(--ink); font-size: 1.2rem; }
.tools-note { margin: -.25rem 0 1rem; max-width: var(--measure); color: var(--muted); font-size: 17px; line-height: 1.55; }
.foot-soon { margin-top: .75rem; color: var(--muted); font-size: 17px; }

.myth-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; max-width: 52rem; }
.myth-item { display: grid; gap: .75rem; padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.myth-item > * { margin: 0; }
.myth-item-belief { color: var(--ink); font: 600 clamp(1.3rem, 1.05rem + .8vw, 1.65rem)/1.35 var(--f-display); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.foot-brand img { width: 220px; margin-bottom: 1rem; }
.foot-brand p { max-width: 26rem; color: var(--muted); font-size: 17px; line-height: 1.6; }
.foot-h { margin-bottom: .6rem; font-size: 17px; }
.foot-nav ul { margin: 0; padding: 0; list-style: none; }
.foot-nav li + li { margin-top: 0; }
.foot-nav a { display: inline-block; padding-block: .6rem; color: var(--body); font-size: 17px; text-decoration: none; }
@media (hover: hover) { .foot-nav a:hover { color: var(--ink); text-decoration: underline; } }
.foot-legal { padding-block: 0 2rem; color: var(--muted); font-size: 16px; line-height: 1.6; }
.foot-legal p:first-child { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.foot-legal p + p { margin-top: .4rem; }
.foot-legal a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@page l4m-letter { margin: 0; }
@media print {
  .masthead, .aside, .share, .foot, .toc-m, #a11yw-host { display: none !important; }
  /* a printed guide keeps the reader's result and its explanation, not the form */
  /* the fields go, the result stays (in some tools the result sits inside the form) */
  .tool .field, .tool .row, .tool .more-fields, .tool .tool-actions, .tool .letter-missing, .tool .result:empty { display: none !important; }
  .tool-head { background: none !important; color: #000 !important; border-bottom: 1px solid #999; }
  .tool-head .tool-title, .tool-head .tool-desc { color: #000 !important; }
  body { background: #fff; }
  /* the resignation letter prints alone: its copy at the end of <body> is the only part shown, so no blank pages follow */
  body.print-letter > *:not(#l4m-print-root) { display: none !important; }
  /* its own page box with no margin, so the browser prints no title and address over the letter; the margin is padding */
  body.print-letter #l4m-print-root { display: block; page: l4m-letter; border: 0; padding: 20mm 22mm; font: 400 12pt/1.6 Arial, "IBM Plex Sans Hebrew", sans-serif; color: #000; }
  body.print-letter #l4m-print-root .ph { background: none; box-shadow: none; }
}
/* ---------- the lawyers index (inc/lawyers.php, Michael 28.10.2026) ---------- */
.lw-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .lw-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lw-field { display: grid; gap: .35rem; height: 100%; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--body); text-decoration: none; }
.lw-field-t { color: var(--ink); font: 700 20px/1.3 var(--f-display); }
.lw-field-n { color: var(--muted); font-size: 16px; }
@media (hover: hover) { .lw-field:hover { border-color: var(--line-strong); } .lw-field:hover .hl-sweep { background-size: 100% 100%; } }
.lw-field:focus-visible .hl-sweep { background-size: 100% 100%; }
.lw-how { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .lw-how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.lw-how h3 { margin-bottom: .45rem; font-size: 20px; }
.lw-how p { color: var(--body); font-size: 17px; line-height: 1.6; }
.lw-join-box { display: grid; gap: 1rem; align-items: center; padding: 1.25rem 1.4rem; border: 1px solid var(--hl-edge); border-radius: var(--r); background: var(--surface); }
@media (min-width: 760px) { .lw-join-box { grid-template-columns: 1fr auto; } }
.lw-join-box h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-bottom: .35rem; }
.lw-join-box p { color: var(--muted); font-size: 17px; }
.lawyer-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.lawyer-card { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); scroll-margin-top: calc(var(--head-h) + 1rem); }
.lawyer-name { font-size: 21px; }
.lawyer-fields { color: var(--ink); font-weight: 500; font-size: 17px; }
.lawyer-facts { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; color: var(--body); font-size: 16px; }
.lawyer-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: var(--body); font-size: 17px; line-height: 1.55; } /* the whole text is on the lawyer's own page */
.lawyer-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.lawyer-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); }
.lawyer-name a { color: var(--ink); text-decoration: none; }
.lawyer-more { gap: .35rem; font-weight: 600; }
.lawyer-more .i { width: 1.05em; height: 1.05em; }
.lawyer-check { display: flex; gap: .4rem; align-items: center; padding-top: .5rem; border-top: 1px solid var(--line); color: var(--ok); font-size: 16px; }
.lw-empty { margin-block: 1rem 2rem; }
.lw-before { max-width: var(--measure); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.lw-before h2 { margin-bottom: .5rem; font-size: 1.35rem; }
.lw-back { margin-top: 2rem; }
.lw-back a { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; color: var(--link); }
.join { max-width: 46rem; margin-top: 2.5rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.join > h2 { margin-bottom: 1rem; }
.join-form { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.join-form input[type="email"], .join-form input[type="tel"], .join-form input[type="url"] {
  width: 100%; min-height: 48px; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
  color: var(--ink); font: 400 18px/1.4 var(--f-body);
}
.join-form input[type="email"], .join-form input[type="tel"], .join-form input[type="url"] { direction: ltr; text-align: right; }
.join-form textarea { min-height: 7rem; resize: vertical; }
.join-form fieldset { margin-top: 1rem; }
.join-form fieldset .check + .check { margin-top: 0; }
.join-agree { margin-top: 1.25rem; }
.join-send { margin-top: 1rem; }
.join-ok, .join-err { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: var(--r); font-size: 17px; line-height: 1.55; }
.join-ok { border: 1px solid var(--ok); background: var(--surface); color: var(--ink); }
.join-err { border: 1px solid var(--warn); background: var(--surface); color: var(--ink); }
/* "מספרים לעורכי דין" under the form (spec v2 §7): the tool rows of the site, three links */
.join-numbers { margin-top: 3rem; }
.join-numbers > h2 { margin-bottom: .5rem; }
.join-numbers-lead { max-width: 46rem; margin-bottom: 1.25rem; color: var(--muted); font-size: 17px; line-height: 1.55; }
.join-err ul { margin: .35rem 0 0; padding-inline-start: 1.2em; }
.join-ok[hidden], .join-err[hidden], .join-err li[hidden] { display: none; }
.join-privacy { margin-top: 1.5rem; color: var(--muted); font-size: 16px; line-height: 1.6; }
.join-privacy h3 { margin-bottom: .4rem; color: var(--ink); font-size: 18px; }
.join-privacy p + p { margin-top: .5rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* ---------- everything that opens more of the page looks like it (Michael 28.10.2026: "צריך לנחש שזה לחיץ") ----------
   One pattern for every <details>: a framed row, the label, and a chevron at its end that turns over when it is open. The
   chevron is drawn here, so a summary written anywhere (PHP, the tools' JS) gets it; design_qa.py HIDDEN_TOGGLE fails a
   summary without a visible cue. */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.more-fields, .how { border-top: 0; padding-top: 0; }
.more-fields { margin-top: 1.25rem; }
.how { margin-top: 1rem; }
.toc-m { border-block: 0; }
.more-fields > summary, .how > summary, .toc-m > summary {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 48px; padding: .65rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  color: var(--ink); font: 600 17px/1.4 var(--f-body); text-align: start;
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
}
.more-fields > summary::after, .how > summary::after, .toc-m > summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-inline-start: auto; margin-block: 0 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform .2s var(--ease-out);
}
.more-fields[open] > summary::after, .how[open] > summary::after, .toc-m[open] > summary::after { transform: rotate(-135deg); margin-block: 4px 0; }
.more-fields[open] > summary, .how[open] > summary, .toc-m[open] > summary { margin-bottom: .75rem; background: var(--tint); }
@media (hover: hover) { .more-fields > summary:hover, .how > summary:hover, .toc-m > summary:hover { border-color: var(--ink); background: var(--tint); } }
.more-fields > summary:focus-visible, .how > summary:focus-visible, .toc-m > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .more-fields > summary::after, .how > summary::after, .toc-m > summary::after { transition: none; } }
/* the tools, usability audit 28.10.2026: the date in words under a date field; the line that holds the result's place */
.date-echo { margin-top: .3rem; color: var(--ink); font-size: 16px; line-height: 1.45; }
.date-echo[hidden] { display: none; }
.result-wait { margin-top: 1.25rem; padding: .9rem 1.1rem; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); font-size: 17px; line-height: 1.5; }
.result:not([hidden]) ~ .result-wait { display: none; }
/* the way down from the answer box to the tool; three short answers side by side on a phone (usability audits 28.10.2026) */
.answer-cta { margin-top: 1rem; max-width: 100%; white-space: normal; text-align: center; } /* a label wider than a phone wraps instead of pushing the page sideways (live inheritance guide, 41px at 390px, 10.11.2026) */
@media (max-width: 559px) { .seg:has(> label:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* a result in one order in every tool (usability audits 28.10.2026): the number, one line on what it means, 2-4 key facts,
   the next step, then "איך חישבנו" in a box (.how) with the formula, the caveats and the sources */
.result-facts { display: grid; gap: .35rem; margin: .75rem 0 0; padding: 0; list-style: none; color: var(--body); font-size: 17px; line-height: 1.5; }
.result-facts li { position: relative; padding-inline-start: 1.1rem; }
.result-facts li::before { content: ""; position: absolute; inset-inline-start: .15rem; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.result-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.result-next { margin-top: .9rem; padding-top: .75rem; border-top: 1px dashed #E6D27A; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.5; }
.result-next a { color: var(--link); }
.result .how { margin-top: .9rem; }
/* the tools, from the usability fixers (28.10.2026): the letter's brackets are links to their fields; its action buttons
   on a phone; two rows in a row keep the field gap */
.letter a.ph { text-decoration: none; cursor: pointer; }
@media (hover: hover) { .letter a.ph:hover { box-shadow: inset 0 -3px 0 var(--hl-edge); } }
.tool-actions [data-act="copy"] { min-width: 11.5rem; }
@media (max-width: 559px) { .tool-actions .btn { flex: 1 1 100%; } }
.tool-body .row + .row { margin-top: 1rem; }
/* maternity's two wage groups hold three months each; the "איך חישבנו" box holds the explanation without a second rule;
   a field restored to its default says so in ink (usability fixers, 28.10.2026) */
@media (min-width: 560px) { .tool-body .wages .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.result .how > .result-why { margin-top: 0; padding-top: 0; border-top: 0; }
.tool-body .field > .hint[id$="-r"] { color: var(--ink); }
/* long options stay one per row on a phone even when there are three; the minimum-wage verdict in colour (fixers 28.10.2026) */
@media (max-width: 559px) { .seg.seg-col:has(> label:nth-child(3):last-child) { grid-template-columns: 1fr; } }
.result-num.is-short { color: var(--warn); }
.result-num.is-ok { color: var(--ok); }
/* the notary fees' breakdown table sits right under the line before VAT: air above it (local visual check 10.11.2026) */
l4m-notary-fees .result .table-wrap { margin-top: .9rem; }
/* the bar tariff's six groups of services: three even columns from 560px, not six squeezed ones (local check 10.11.2026);
   on a phone the default two columns stay. Its "not binding" box sits right under the number line. */
@media (min-width: 560px) { l4m-bar-tariff .seg.seg-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; } }
l4m-bar-tariff .result .result-note { margin-top: .75rem; }
/* the article's contents list: the current section is a soft highlight, not a stripe on the side (taste-floor rule 2;
   design_qa SIDE_STRIPE, 28.10.2026) */
.toc ol { border-inline-start: 0; }
.toc a { margin-inline-start: 0; padding: .35rem .7rem; border-inline-start: 0; border-radius: var(--r); transition: color .16s var(--ease-out), background-color .16s var(--ease-out); }
.toc a.is-current { background: var(--hl-wash); color: var(--ink); font-weight: 600; }
/* final usability audit, 28.10.2026: a headline that wraps keeps its highlighter behind the words only (m11); the letter
   preview gets air under the buttons (m7) */
.result-num { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tool-actions + .letter, .tool-actions ~ .letter { margin-top: 1rem; }
/* ---------- report a problem (inc/report.php, assets/js/report.js; Michael 01.11.2026) ---------- */
.report { width: min(36rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--body); overflow: auto; }
.report::backdrop { background: rgb(19 34 56 / .5); }
.report-form { padding: 1.25rem; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.report-head h2 { font-size: 22px; }
.report-x { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -.5rem; border: 0; border-radius: var(--r);
  background: none; color: var(--ink); cursor: pointer; }
.report-x .i { width: 24px; height: 24px; }
.report-lead { margin: .35rem 0 .5rem; font-size: 17px; line-height: 1.6; }
.report textarea { min-height: 7rem; resize: vertical; }
.report input[type="email"] { width: 100%; min-height: 48px; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: #fff; color: var(--ink); font: 400 18px/1.4 var(--f-body); text-align: right; }
.report textarea[aria-invalid="true"], .report input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.report-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.report-note { margin-bottom: 1rem; color: var(--muted); font-size: 16px; line-height: 1.5; }
.report-note a, .report .hint a, .report-msg a { color: var(--link); }
.report-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.report-msg { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--r); font-size: 17px; line-height: 1.55; }
.report-msg:focus { outline: none; }
.report-msg.is-ok { background: #E6F3ED; color: var(--ok); }
.report-msg.is-err { background: #FBEDE7; color: var(--warn); }
.report-form.is-sent > .report-lead, .report-form.is-sent > .field, .report-form.is-sent > .report-note,
.report-form.is-sent > .report-actions { display: none; }
.report-form.is-sent > .report-done[hidden] { display: inline-flex; margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .report[open] { animation: report-in .2s var(--ease-out); }
  .report[open]::backdrop { animation: report-fade .2s var(--ease-out); }
}
@keyframes report-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes report-fade { from { opacity: 0; } }
.tool-report { margin: 0; padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.tool-report a { color: var(--link); }
@media print { .report, .trust-fix, .tool-report { display: none !important; } }
