:root {
  --ink: #16202b; --muted: #5b6b7b; --line: #d9e0e7; --bg: #f6f8fa; --card: #fff;
  --accent: #0f6b5c; --accent-ink: #fff; --warn-bg: #fff6e0; --warn: #8a5a00;
  --bad: #a3261d; --good: #0f6b5c; --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 6px 0 14px; }
h2 { font-size: 22px; margin: 28px 0 6px; }
h3 { margin: 0 0 6px; } h4 { margin: 18px 0 4px; font-size: 14px; }
small, .small { font-size: 12.5px; color: var(--muted); font-weight: normal; }
.hint { color: var(--muted); margin: 0 0 14px; }

.hero { background: #0f2a2a; color: #eef6f4; padding: 40px 0 34px; }
.hero .kicker { color: #8fd3c2; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.hero .lead { max-width: 720px; color: #cfe3de; }
.badges { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.badges li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.hero .ghost { color: #eef6f4; border-color: rgba(255,255,255,.35); }

button { font: inherit; border-radius: 8px; padding: 9px 16px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.ghost { background: transparent; }
button.small { padding: 4px 10px; font-size: 13px; }
button.x { border: 0; background: none; color: var(--muted); padding: 4px 8px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 4px; position: sticky; top: 0;
  background: var(--bg); padding: 10px 0; z-index: 2; border-bottom: 1px solid var(--line); }
.steps button { font-size: 13.5px; }
.steps button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.three { grid-template-columns: 1fr 1fr 2fr; align-items: end; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; }
label.inline { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: normal; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--ink); min-width: 0; }
input[type=checkbox], input[type=radio] { margin-top: 4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 16px; margin: 0 0 14px; }
.card-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.card-head .pid { background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
.card-head .title { flex: 1; font-weight: 600; }
.rows .row { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 8px; align-items: center; margin: 0 0 6px; }
.rows .row .em { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.note { background: #eef5f3; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; margin: 10px 0 0; }
.choice { margin-top: 12px; display: grid; gap: 6px; }
.transfer { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.nav { margin: 20px 0 30px; display: flex; gap: 8px; }

.problem { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; }
.problem.bad { background: #fde8e6; color: var(--bad); }

.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big { font-size: 20px; font-weight: 700; }
.good { color: var(--good); } .bad { color: var(--bad); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.subscribe { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin: 26px 0; }
.subscribe form { display: grid; gap: 8px; max-width: 520px; }
.method { margin: 10px 0 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.method summary { cursor: pointer; font-weight: 600; }
.method code { background: #f1f4f6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.foot { color: var(--muted); font-size: 13px; padding-top: 10px; padding-bottom: 40px; border-top: 1px solid var(--line); }

/* ── עזרה לכל שדה ──
   label הוא flex-column, ולכן טקסט התווית והכפתור עטופים ב-.lbl אחד;
   בלעדיו הכפתור נוחת בשורה נפרדת ברוחב מלא. */
.lbl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.help-btn { border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 50%; width: 18px; height: 18px; padding: 0; font-size: 12px; line-height: 1;
  display: inline-grid; place-items: center; flex: none; }
.help-btn:hover { color: var(--accent); border-color: var(--accent); }
.help-btn[aria-expanded="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
/* ‏z-index גבוה משורת השלבים הדביקה (2) */
.help-panel { position: relative; z-index: 3; margin: 6px 0 2px; }
.help-panel p { margin: 0 0 4px; }
.help-panel p:last-child { margin: 0; }
.help-mistake { color: var(--warn); }
.help-cite { color: var(--muted); font-size: 12px; }
h4 .help-btn { vertical-align: middle; }
.choice-head { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.consent { margin: 0; max-width: 760px; }
.consent input { margin-top: 3px; }
.gate { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0 12px; display: grid; gap: 10px;
  max-width: 760px; }
.gate .gate-intro { margin: 0; font-size: 14px; }
.gate .gate-email { max-width: 340px; }
.gate p { margin: 0; }
.gate.done { border-left-color: var(--muted); background: #f7faf9; }
.gate.done .gate-intro, .gate.done label { opacity: .6; }
#gate-msg { margin-inline-start: 10px; font-size: 13px; color: var(--accent); }

/* ── עמודי תוכן ── */
.content { max-width: 860px; padding: 28px 20px 60px; }
.content h1 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 12px; }
.content h2 { font-size: 19px; margin: 30px 0 8px; }
.content .crumb { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.content .lede { font-size: 16px; max-width: 70ch; }
.content li { margin: 0 0 6px; }
.content td.cn { white-space: nowrap; font-variant-numeric: tabular-nums; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0 14px; }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.cta:hover { filter: brightness(1.08); }
ul.cols { columns: 3 190px; column-gap: 24px; list-style: none; padding: 0; }
ul.cols li { break-inside: avoid; }

.print-only { display: none; }

@media (max-width: 640px) {
  .grid.three { grid-template-columns: 1fr; }
  .rows .row { grid-template-columns: 1fr 1fr; }
}

/* ─────────────── report: A4 print ─────────────── */
@media print {
  @page { size: A4; margin: 16mm 14mm 18mm; }
  body { background: #fff; font-size: 11pt; }
  .screen { display: none !important; }
  .print-only { display: block; }
  #report h1 { font-size: 20pt; margin: 0 0 4pt; }
  #report h2 { font-size: 13pt; margin: 14pt 0 6pt; }
  #report table { font-size: 9.5pt; page-break-inside: auto; }
  #report tr { page-break-inside: avoid; }
  #report .meta { color: #444; font-size: 9.5pt; }
  #report .callout { border: 1pt solid #0f6b5c; padding: 8pt 10pt; border-radius: 4pt; margin: 8pt 0; }
  #report .disclaimer { font-size: 8.5pt; color: #444; border-top: 0.5pt solid #999; padding-top: 6pt; margin-top: 14pt; }
}
