/* מחוונים במאמרים: מחשבון קטן וצ'קליסט במסגרת נייר מצוירת.
   נטען רק בעמודי מאמרים שיש בהם מחוון (scripts/build-blog.mjs, withPostArt).
   הצבעים מהטוקנים של האתר. */
.pa-box { position: relative; margin: 32px 0 28px; padding: 20px 16px 20px; background: #fffaf0; border-radius: 6px; }
.pa-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.post__body .pa-box__title { margin: 0 0 14px; font-family: var(--font-editorial); font-size: 1.2rem; font-weight: 700; line-height: 1.4; text-align: center; color: var(--ink); }
.post__body .pa-box p { margin: 0; }
.pa-fields { display: grid; gap: 12px; }
.pa-field { display: block; min-width: 0; }
.pa-field__label { display: block; margin-bottom: 4px; font-size: 0.9375rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.pa-field__box { display: flex; align-items: center; gap: 6px; }
.pa-field__box input { flex: 1; min-width: 0; padding: 8px 10px; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--ink); background: #fff; border: 1.5px solid var(--red-ink); border-radius: 6px 8px 7px 9px; text-align: right; }
.pa-field__box input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.pa-field__unit { min-width: 1.2em; font-weight: 800; color: var(--ink); }
.pa-field__hint { display: block; margin-top: 3px; font-size: 0.8125rem; color: var(--ink-muted); }
.pa-toggle { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.pa-toggle label { cursor: pointer; }
.pa-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pa-toggle span { display: inline-block; padding: 6px 12px; font-size: 0.9375rem; font-weight: 700; color: var(--ink); background: #fff; border: 1.5px solid var(--red-ink); border-radius: 7px 9px 6px 8px; }
.pa-toggle input:checked + span { background: var(--red-ink); color: #fffaf0; }
.pa-toggle input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 1px; }
.pa-out { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--red-ink); }
.post__body .pa-out__lead { font-size: 0.9375rem; color: var(--ink-soft); }
.post__body .pa-out__big { margin: 2px 0 0; font-family: var(--font-editorial); font-size: 1.75rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.post__body .pa-out__big--good { color: #23633f; }
.post__body .pa-out__big--bad { color: #b3272e; }
.post__body .pa-rows { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.post__body .pa-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding-bottom: 6px; font-size: 0.9375rem; line-height: 1.4; border-bottom: 1px dashed rgba(46, 8, 16, 0.18); }
.pa-rows strong { font-weight: 800; color: var(--ink); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.pa-bar { display: block; height: 10px; border-radius: 3px 5px 4px 3px; background: var(--yellow); border: 1.4px solid var(--yellow-deep); transition: width 0.35s ease; }
.pa-bar--red { background: repeating-linear-gradient(135deg, #b3272e 0 2px, #f7e1df 2px 6px); border-color: #b3272e; }
.post__body .pa-fine { margin: 14px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-muted); }

/* צ'קליסט */
.post__body .pa-check { margin: 0; padding: 0; list-style: none; }
.post__body .pa-check li { margin: 0; }
.pa-check label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; cursor: pointer; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); border-bottom: 1px dashed rgba(46, 8, 16, 0.18); }
.pa-check input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.pa-check li.is-on label > span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(181, 130, 42, 0.7); text-decoration-thickness: 2px; }
.pa-meter { position: relative; height: 8px; margin: 0 0 12px; border-radius: 99px; background: rgba(46, 8, 16, 0.1); overflow: hidden; }
.pa-meter span { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--fill, 0) * 100%); background: var(--yellow); border-radius: 99px; transition: width 0.4s ease; }
.post__body .pa-check-count { margin: 0 0 4px; font-size: 0.8125rem; font-weight: 700; color: var(--ink-muted); }
.pa-reset { margin-top: 12px; padding: 6px 12px; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); background: transparent; border: 1.5px dashed var(--ink-muted); border-radius: 6px; cursor: pointer; }

@media (min-width: 640px) {
  .pa-box { padding: 26px 28px; }
  .pa-fields--2 { grid-template-columns: 1fr 1fr; }
  .pa-fields--3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pa-box *, .pa-box { transition: none !important; }
}
