/* ניחומים · Design System
   קלף, ירוק מותג, זהב עתיק. בהיר בלבד. בלי צלליות, בלי גרדיאנטים, בלי גלולות.
   חלוקה בקווים דקים ובטיפוגרפיה. פינות 4–8px. ריווח על בסיס 8px.
   ניגודיות (WCAG 2.2 AA): טקסט משני #686D65 = 4.9:1. גבול שדות #8C877C = 3.6:1 (3:1 לרכיבי ממשק).
   הזהב (#AC9568) לקישוט בלבד: 2.7:1, לא לטקסט. */
:root {
  color-scheme: light;
  --bg: #F8F6F1;
  --card: #FFFFFF;
  --ink: #292F29;
  --muted: #686D65;
  --line: #DCD7CC;
  --control: #8C877C;
  --accent: #3E5046;
  --accent-hover: #33433A;
  --accent-ink: #FFFFFF;
  --accent-soft: #EDF0EB;
  --gold: #AC9568;
  --gold-soft: #F4EFE4;
  --done: #3E5046;
  --error: #8A3B2E;
  --error-soft: #F8ECE8;
  --ok-soft: #EDF0EB;
  --radius: 8px;
  --radius-s: 6px;
  --radius-xs: 4px;
  --serif: 'Frank Ruhl Libre', 'David', serif;
  --sans: 'Heebo', 'Segoe UI', Arial, sans-serif;
  --prayer: 'David Libre', 'Frank Ruhl Libre', 'David', serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --wrap: 720px;
  --wide: 1120px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
@media (min-width: 768px) { body { font-size: 18px; } }
main { max-width: var(--wrap); margin: 0 auto; padding: var(--s3) var(--gutter-r) var(--s5) var(--gutter); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 var(--s1); text-wrap: balance; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 700; font-size: 32px; }
h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin-top: var(--s5); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; }
@media (min-width: 768px) { h1 { font-size: 42px; } h2 { font-size: 28px; } }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: var(--s2) 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: var(--radius-s); z-index: 50; }
.skip-link:focus { top: 8px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
[dir=rtl] input[dir=auto] { text-align: right; }

/* מיקוד: תמיד גלוי */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.current :focus-visible, .btn:focus-visible, button:focus-visible { outline-color: var(--gold); }
button:not(.ghost):not(.link):focus-visible, .btn:not(.ghost):focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* טפסים: תווית קבועה מעל כל שדה */
label { display: block; font-size: 16px; font-weight: 500; color: var(--ink); margin: var(--s2) 0 6px; }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
input[type=text], input[type=date], input[type=tel], input[type=time], input[type=url], input[type=search], input[type=number], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 1px solid var(--control); border-radius: var(--radius-s); padding: 12px 14px; min-height: 52px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: 18px 50%, 12px 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 36px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input[aria-invalid=true] { border-color: var(--error); border-width: 2px; }
.check { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 17px; font-weight: 400; margin: 8px 0; min-height: 48px; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; margin: 0; }

/* כפתורים: ראשי 52–56px */
button, .btn {
  font: inherit; font-size: 17px; font-weight: 500; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-s); padding: 12px 22px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; line-height: 1.3; text-align: center;
}
button:hover, .btn:hover { background: var(--accent-hover); text-decoration: none; }
button.ghost, .btn.ghost { background: transparent; color: var(--accent); border-color: var(--control); }
button.ghost:hover, .btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
button.link { background: none; border: none; color: var(--accent); padding: 8px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
button.link:hover { background: none; text-decoration-thickness: 2px; }
button.block, .btn.block { display: flex; width: 100%; }
button.big, .btn.big { min-height: 56px; font-size: 18px; }
button:disabled { opacity: .55; cursor: default; }
.btn .arrow, button .arrow { font-family: var(--sans); }

/* הודעות מצב */
.err { background: var(--error-soft); border-inline-start: 4px solid var(--error); border-radius: var(--radius-xs); padding: 12px var(--s2); margin-top: var(--s2); color: var(--ink); }
.ok { background: var(--ok-soft); border-inline-start: 4px solid var(--accent); border-radius: var(--radius-xs); padding: 12px var(--s2); margin-top: var(--s2); }
.loading { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.loading::before { content: ''; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }

/* תגיות סיווג: הלכה / מנהג / מידע. טקסט + מסגרת, לא צבע בלבד */
.tag { display: inline-block; font-size: 14px; line-height: 1.5; padding: 1px 8px; border: 1px solid var(--control); border-radius: var(--radius-xs); color: var(--ink); background: var(--card); }
.tag.halacha { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tag.minhag { border-style: dashed; }
.tag.info { color: var(--muted); }

/* כותרת האתר */
/* באפליקציה (viewport-fit=cover) התוכן לא נכנס מתחת לשעון ולמצלמה של האייפון. בדפדפן הערך 0. */
body { padding-top: env(safe-area-inset-top, 0px); }
.site-head { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-head .in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; }
.brandbar { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1; color: var(--accent); text-decoration: none; min-height: 48px; }
.brandbar img { display: block; }
.brandbar img.wordmark { height: 34px; width: auto; }
.brandbar:hover { text-decoration: none; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions .resume-link { font-size: 16px; padding: 10px 6px; }
.menu-btn { background: transparent; color: var(--ink); border: 1px solid var(--control); min-height: 48px; padding: 8px 14px; gap: 8px; font-size: 16px; }
.menu-btn:hover { background: var(--accent-soft); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-panel { border-top: 1px solid var(--line); background: var(--bg); }
.menu-panel ul { list-style: none; margin: 0 auto; padding: 8px var(--gutter-r) 16px var(--gutter); max-width: var(--wide); }
.menu-panel li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 18px; }
.menu-panel li a:hover, .menu-panel li a[aria-current=page] { color: var(--accent); text-decoration: underline; }
@media (min-width: 1100px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 16px; }
  .site-nav a:hover, .site-nav a[aria-current=page] { color: var(--accent); text-decoration: underline; }
  .menu-btn, .menu-panel { display: none !important; }
}
@media (max-width: 420px) { .head-actions .resume-link { display: none; } }

/* כותרת תחתונה */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--s5); }
.site-foot .in { max-width: var(--wide); margin: 0 auto; padding: var(--s4) var(--gutter-r) calc(var(--s4) + env(safe-area-inset-bottom, 0px)) var(--gutter); display: grid; gap: var(--s3); }
.site-foot .about { max-width: 46ch; color: var(--muted); font-size: 15px; margin: 0; }
.site-foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-foot nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 16px; color: var(--ink); }
.site-foot .credit { font-size: 14px; color: var(--muted); margin: 0; }
.site-foot .install-app { justify-self: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--control); border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.site-foot .install-app[hidden] { display: none; }
@media (display-mode: standalone) { .site-foot .install-app { display: none; } }
@media (min-width: 768px) { .site-foot .in { grid-template-columns: 1fr auto; align-items: start; } .site-foot .credit, .site-foot .install-app { grid-column: 1 / -1; } }

/* ניווט בממשק המשפחה */
nav.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs .in { max-width: var(--wrap); margin: 0 auto; display: flex; padding: 0 8px; }
nav.tabs button { background: none; border: none; color: var(--muted); border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 14px; min-height: 52px; font-weight: 400; }
nav.tabs button:hover { background: none; color: var(--ink); }
nav.tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* שלבים וצעדים: רשימת משימות */
.stage { margin-top: 0; border-top: 1px solid var(--line); }
.stage:last-of-type { border-bottom: 1px solid var(--line); }
.stage > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: var(--s2) 0; min-height: 64px; }
.stage > summary::-webkit-details-marker { display: none; }
.stage > summary::after { content: ''; width: 10px; height: 10px; border-inline-start: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); flex: none; margin-inline-end: 6px; }
.stage[open] > summary::after { transform: rotate(135deg); }
.stage > summary h2, .stage > summary h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.stage > summary .count { color: var(--muted); font-size: 15px; margin-inline-start: auto; }
.stage .steps { padding: 0 0 var(--s2); }
.step { display: flex; gap: 14px; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.step > input[type=checkbox] { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step.is-done h3 { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.step .state { font-size: 14px; color: var(--muted); margin-inline-start: 6px; font-weight: 400; }
.step.is-skip h3 { color: var(--muted); }
.step.is-skip p, .step.is-skip .more { display: none; }
.step .more { margin-top: 10px; }
.step .acts { margin-top: 6px; }
.step .acts button { font-size: 15px; min-height: 40px; }

/* מועדים */
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: var(--s2) 0; border-top: 1px solid var(--line); }
.dates .card { margin: 0; padding: var(--s2) 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.dates .card:nth-child(odd):not([style]) { padding-inline-end: var(--s2); }
.dates .k { font-size: 15px; color: var(--muted); }
.dates .v { font-weight: 600; font-size: 18px; }
.dates .h { font-size: 16px; color: var(--muted); }
@media (max-width: 380px) { .dates { grid-template-columns: 1fr; } }

pre.msg { white-space: pre-wrap; font: inherit; font-size: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: var(--s2); margin: 12px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: none; }
.pill { display: inline-block; font-size: 14px; padding: 1px 8px; border-radius: var(--radius-xs); border: 1px solid var(--line); color: var(--muted); }
.note-rabbi { border-inline-start: 3px solid var(--gold); padding: 4px var(--s2); font-size: 16px; }

/* דף מבקרים / הנצחה */
.hero { text-align: center; padding: var(--s4) 0 var(--s1); }
.hero img.portrait { width: 148px; height: 148px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); margin-bottom: var(--s2); }
.hero .dates-line { color: var(--muted); }
.story { white-space: pre-wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s1); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-xs); display: block; background: var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); }
blockquote { margin: 0; padding: 8px var(--s2); border-inline-start: 2px solid var(--gold); font-family: var(--serif); font-size: 19px; }
.memory { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.memory .by { color: var(--muted); font-size: 15px; }
.consolation { text-align: center; font-family: var(--serif); font-size: 20px; color: var(--muted); margin: var(--s5) 0 var(--s1); }

.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin: 0 auto; width: max-content; max-width: 90vw; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-s); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }
footer.credit { text-align: center; font-size: 14px; color: var(--muted); padding: var(--s3) 0 calc(var(--s4) + env(safe-area-inset-bottom, 0px)); }

/* עץ משפחה */
.tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.tree .gen { text-align: center; width: 100%; }
.tree .gen-title { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.tree .names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tree .name { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-xs); padding: 4px 12px; font-size: 16px; }
.tree .name.self { border-color: var(--accent); font-weight: 600; }
.tree .link { width: 1px; height: 16px; background: var(--line); margin: 4px auto; }

.brandbar.top { display: flex; max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter-r) 4px var(--gutter); font-size: 20px; }

/* עמודי תוכן */
.crumbs { font-size: 15px; margin-bottom: var(--s1); color: var(--muted); }
.crumbs a { color: var(--muted); }
.answer { font-size: 19px; line-height: 1.75; border-inline-start: 3px solid var(--gold); padding: 4px 18px; margin: var(--s2) 0 var(--s3); }
.guide ul { padding-inline-start: 22px; }
.guide li { margin: 6px 0; }
.guide h3 { margin-top: var(--s3); }
.sources { font-size: 15px; }
.cta { margin-top: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-inline: 0; border-radius: 0; background: transparent; padding: var(--s3) 0; }
.hub li { padding: 12px 0; }
.notice-preview img { display: block; width: 100%; max-width: 480px; margin: 12px auto; border: 1px solid var(--line); border-radius: var(--radius-xs); background: #fff; }

/* דף הבית */
.home-hero { padding: var(--s5) 0 var(--s4); border-bottom: 1px solid var(--line); }
.home-hero h1 { font-size: 36px; line-height: 1.2; margin-bottom: var(--s2); max-width: 16ch; }
.home-hero .sub { font-size: 19px; color: var(--muted); max-width: 34ch; margin: 0 0 var(--s4); }
.home-hero .actions { display: grid; gap: 12px; max-width: 440px; }
.home-hero .primary-q { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 0 0 10px; }
@media (min-width: 768px) { .home-hero h1 { font-size: 52px; } }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 12px var(--s2); margin-top: var(--s3); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: var(--s5); }
.section-head h2 { margin: 0; }
.section-head a { font-size: 16px; }
.tools { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: var(--s2); }
.tool-link { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 64px; }
.tool-link:hover b { text-decoration: underline; }
.tool-link svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.tool-link b { display: block; font-size: 18px; font-weight: 600; color: var(--accent); }
.tool-link span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.tool-link .go { margin-inline-start: auto; color: var(--muted); font-size: 20px; }
@media (min-width: 768px) { .tools { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
.topics { display: grid; gap: 0; margin-top: var(--s2); border-top: 1px solid var(--line); }
.topic { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.topic h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.topic ul { list-style: none; margin: 6px 0 0; padding: 0; }
.topic li a { display: inline-flex; min-height: 40px; align-items: center; }
@media (min-width: 768px) { .topics { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
.tradition { margin-top: var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tradition .lead { font-family: var(--serif); font-size: 20px; max-width: 40ch; }
.tradition ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 0; }
.tradition li a { display: flex; min-height: 52px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 18px; }
.tradition li a:hover { color: var(--accent); text-decoration: underline; }
.tradition li a span { color: var(--muted); font-size: 15px; }

/* תהליך הליווי: בחירת שלב */
.wizard { max-width: 560px; margin: 0 auto; }
.wizard .progress { display: flex; gap: 6px; margin: var(--s2) 0 var(--s3); }
.wizard .progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.wizard .progress i.on { background: var(--accent); }
.wizard .step-of { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.wizard h1 { font-size: 30px; }
.wizard .lead { color: var(--muted); font-size: 17px; }
.wizard .nav { display: grid; gap: 12px; margin-top: var(--s4); }
.wizard .why { border-inline-start: 3px solid var(--gold); padding: 4px var(--s2); margin: var(--s2) 0; font-size: 16px; }
.choices { display: grid; gap: 10px; margin-top: var(--s3); }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 14px 18px; background: var(--card); color: var(--ink); border: 1px solid var(--control); border-radius: var(--radius); text-align: start; font-size: 18px; font-weight: 500; text-decoration: none; }
.choice:hover { background: var(--card); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice span { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.choice .go { color: var(--accent); font-size: 22px; flex: none; }
.choice.quiet { background: transparent; border-style: dashed; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg.three { grid-template-columns: 1fr; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 56px; padding: 10px 14px; border: 1px solid var(--control); border-radius: var(--radius-s); background: var(--card); cursor: pointer; font-weight: 500; }
.seg input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); font-weight: 700; }
.seg input:checked + label::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ממשק הליווי: השלב הנוכחי וציר הזמן */
.now-head h1 { margin-bottom: 4px; }
.now-head .sub { color: var(--muted); margin: 0; }
.current { border: 1px solid var(--accent); border-inline-start: 6px solid var(--accent); border-radius: var(--radius); background: var(--card); padding: 20px; margin: var(--s3) 0 var(--s2); }
.current h2 { font-family: var(--serif); font-weight: 700; color: var(--accent); margin: 0 0 6px; font-size: 26px; }
.current p { margin: 0; color: var(--ink); font-size: 17px; }
.current .next { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 4px 12px; align-items: baseline; flex-wrap: wrap; }
.current .next .heb { font-family: var(--serif); font-size: 19px; color: var(--accent); }
.timeline { list-style: none; margin: var(--s2) 0; padding: 0; position: relative; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 var(--s2); }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--control); }
.timeline li:last-child::before { display: none; }
.timeline .num { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--control); background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex: none; }
.timeline li.cur .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline .t { padding-top: 3px; min-width: 0; }
.timeline .t b { display: block; font-size: 18px; font-weight: 600; }
.timeline li.cur .t b { color: var(--accent); }
.timeline .t span { font-size: 15px; color: var(--muted); }
.timeline .where { font-size: 14px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-xs); padding: 0 6px; margin-inline-start: 6px; }
.timeline button.t { background: none; border: 0; color: inherit; padding: 3px 0 0; min-height: 44px; text-align: start; display: block; font-weight: 400; }
.timeline button.t:hover { background: none; }
.timeline button.t:hover b { text-decoration: underline; }

/* תוכנית אישית בלי חשבון */
.plan-tools { margin-top: var(--s4); }
.save-box { margin-top: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: var(--s3) 20px; }
.save-box h2 { margin-top: 0; font-size: 24px; }
.save-box ul { margin: 0 0 var(--s2); padding-inline-start: 20px; }
.phase-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s3); flex-wrap: wrap; }

/* ספריית מדריכים */
.lib-search { position: relative; margin: var(--s2) 0 var(--s1); }
.lib-search input { padding-inline-start: 44px; }
.lib-search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.lib-group { margin-top: var(--s5); }
.lib-group h2 { margin: 0 0 var(--s1); font-size: 24px; }
.lib-group .intro { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.lib-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lib-item { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; text-decoration: none; color: var(--ink); }
.lib-item:hover b { text-decoration: underline; }
.lib-item b { display: block; color: var(--accent); font-size: 18px; font-weight: 600; line-height: 1.4; }
.lib-item span { display: block; color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 2px; }
.lib-item .kind { display: inline-block; font-style: normal; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0 6px; margin-top: 6px; }
.lib-empty { color: var(--muted); text-align: center; padding: var(--s3) 0; }

/* מסך תפילות */
.sheet-text, .prayer { font-family: var(--prayer); }
.reader-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: var(--s2) 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 4; }
.reader-bar button { min-height: 44px; padding: 8px 14px; font-size: 16px; }
.reader-bar .size { display: inline-flex; border: 1px solid var(--control); border-radius: var(--radius-s); overflow: hidden; }
.reader-bar .size button { border: 0; border-radius: 0; background: var(--card); color: var(--ink); min-width: 48px; font-family: var(--serif); }
.reader-bar .size button + button { border-inline-start: 1px solid var(--control); }
.reader-bar .size button:hover { background: var(--accent-soft); }
.reader-bar .spacer { flex: 1; }
@media screen { .sheet .sheet-text { font-size: var(--read-size, 20px); line-height: 2; } }
body.reading .site-head, body.reading .site-foot, body.reading .crumbs, body.reading form.card, body.reading .tool-intro, body.reading .cta, body.reading h1, body.reading .answer, body.reading .reader-hide { display: none !important; }
body.reading main { max-width: 760px; }
body.reading .sheet { border: 0; }

/* מערכת העיצוב */
.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ds-swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.ds-swatch i { display: block; height: 64px; border-bottom: 1px solid var(--line); }
.ds-swatch div { padding: 8px 10px; font-size: 14px; }
.ds-swatch code { font-size: 13px; color: var(--muted); }
.ds-block { margin-top: var(--s4); }
.ds-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media print {
  body { background: #fff; }
  .site-head, .site-foot, .reader-bar, .noprint { display: none !important; }
  .notice-preview img { max-width: 100%; border: none; }
}
