/* life.css - builder B22: the life-cycle, home, health, kosher and Judaism 101 guides (/life/, /kosher/, /learn/).
   Reads jewish.css's tokens (--jw-*), so light and dark follow the site. */
.life-prose h2 { font-family: var(--jw-serif); margin: 1.6em 0 .5em; scroll-margin-top: 80px; }
.life-prose h3 { font-family: var(--jw-serif); font-size: 1.12rem; margin: 1.2em 0 .4em; }
.life-prose ul, .life-prose ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.life-prose li { margin: 0 0 .35em; }
.life-prose blockquote { margin: 1em 0; padding: 6px 14px; border-left: 3px solid var(--jw-gold); background: var(--jw-soft); border-radius: 0 var(--jw-radius) var(--jw-radius) 0; }
.life-prose .jw-tablewrap { margin: 0 0 1em; }

.life-toc { background: var(--jw-soft); border: 1px solid var(--jw-line); border-radius: var(--jw-radius); padding: 10px 14px; margin: 0 0 18px; max-width: 72ch; font-size: .93rem; }
.life-toc b { display: block; margin-bottom: 4px; color: var(--jw-gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.life-toc ol { margin: 0; padding-inline-start: 1.2em; columns: 2 220px; column-gap: 24px; }
.life-toc li { margin: 0 0 3px; break-inside: avoid; }

/* Checklists: the tick boxes are remembered in the browser (life.js). */
.life-check { list-style: none; padding: 0 !important; margin: 0 0 1.2em; border: 1px solid var(--jw-line); border-radius: var(--jw-radius); background: var(--jw-card); }
.life-check li { margin: 0 !important; border-bottom: 1px solid var(--jw-line); }
.life-check li:last-child { border-bottom: 0; }
.life-check label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; cursor: pointer; }
.life-check input { margin-top: .3em; flex: 0 0 auto; width: 1.05em; height: 1.05em; accent-color: var(--jw-accent); }
.life-check input:checked + span { color: var(--jw-muted); text-decoration: line-through; text-decoration-color: var(--jw-line); }
.life-check-tools { margin: -.6em 0 1.2em; font-size: .85rem; }
.life-check-tools button { background: none; border: 0; padding: 0; color: var(--jw-link); cursor: pointer; text-decoration: underline; font: inherit; }

/* HowTo steps */
.life-steps { list-style: none; counter-reset: life-step; padding: 0 !important; }
.life-steps > li { counter-increment: life-step; position: relative; padding: 2px 0 10px 44px !important; margin: 0 0 6px !important; min-height: 32px; }
.life-steps > li::before { content: counter(life-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--jw-accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* Blessings */
.life-blessing { margin: 1em 0 1.4em; padding: 12px 16px; background: var(--jw-soft); border: 1px solid var(--jw-line); border-radius: var(--jw-radius); max-width: 900px; }
.life-blessing figcaption { font-weight: 600; color: var(--jw-gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.life-blessing-row { padding: 6px 0; border-bottom: 1px dashed var(--jw-line); }
.life-blessing-row:last-of-type { border-bottom: 0; }
.life-blessing .jw-he-block { font-size: 1.3rem; line-height: 1.8; margin: 0; }
.life-blessing .jw-translit { margin: 0 0 .3em; }
.life-blessing-en { margin: 0; }
.life-blessing .jw-note { margin: 8px 0 0; }

/* Tool boxes, the planner */
.life-tool { border: 1px solid var(--jw-line); border-left: 4px solid var(--jw-accent); border-radius: var(--jw-radius); padding: 10px 14px; margin: 1em 0 1.4em; background: var(--jw-card); }
.life-tool p { margin: .4em 0; }
.life-planner { border: 1px solid var(--jw-line); border-radius: var(--jw-radius); padding: 4px 16px 12px; margin: 1em 0 1.6em; background: var(--jw-card); }
.life-planner h2 { margin-top: .6em !important; }
.life-planner form { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin: 0 0 12px; }
.life-planner form > p { flex: 1 0 100%; margin: 0; }
.life-planner label { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; color: var(--jw-muted); max-width: 100%; }
.life-planner label.life-inline { flex-direction: row; align-items: center; gap: 6px; }
.life-planner input[type="date"], .life-planner select { padding: 6px 8px; border: 1px solid var(--jw-line); border-radius: 6px; background: var(--jw-card); color: var(--jw-ink); max-width: 100%; }
.life-planner-out { flex: 1 0 100%; display: block; }
.life-planner-out:not(:empty) { padding: 8px 10px; background: var(--jw-soft); border-radius: 6px; }
.life-timeline { list-style: none; padding: 0 !important; margin: 0; border-left: 2px solid var(--jw-line); }
.life-timeline li { position: relative; padding: 0 0 12px 18px !important; margin: 0 !important; }
.life-timeline li::before { content: ""; position: absolute; left: -7px; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--jw-accent); }
.life-timeline time { display: block; font-weight: 600; color: var(--jw-gold); font-size: .85rem; }
.life-timeline li.past { opacity: .6; }

.life-ask { margin-top: 24px; max-width: 72ch; }
.life-sources, .life-related { padding-inline-start: 1.2em; font-size: .93rem; }
.life-updated { font-size: .82rem; margin-top: 18px; }
.life-group h2 a { color: inherit; text-decoration: none; }
.life-group h2 a:hover { text-decoration: underline; }
.life-group p { margin: 0 0 8px; color: var(--jw-muted); }
.life-answer p { margin: 4px 0 0; }

@media print {
  .jw-sectionbar, .jw-crumbs, .life-toc, .jw-pager, .life-related, .life-planner form, .life-check-tools { display: none !important; }
  .life-check label { padding: 4px 8px; }
}
