/* ערכת עיצוב: בר ובת מצווה — קלף של ספר תורה, דיו שחור, קטיפה בורדו של המעיל וכתר זהב. נטענת רק בעמודים עם "theme": "scroll" */
.theme-scroll{
  --sc-parch:#F6EBD3; --sc-parch2:#EFDDB8; --sc-ink:#1E1A16; --sc-wine:#6E1F2E; --sc-wine2:#8E2B3D; --sc-gold:#C9A043; --sc-gold-l:#EBD196; --sc-wood:#5A3A22;
  --link:#7A2232;
  --grad:linear-gradient(100deg,#6E1F2E,#8E2B3D);
  --crownic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M4 26 2 8l9 8 9-13 9 13 9-8-2 18z' fill='%23C9A043' stroke='%236E1F2E' stroke-width='1.6' stroke-linejoin='round'/%3E%3Crect x='4' y='26' width='32' height='4' rx='1.5' fill='%236E1F2E'/%3E%3Ccircle cx='20' cy='18' r='2.4' fill='%236E1F2E'/%3E%3C/svg%3E");
  background:var(--sc-parch);
}
.theme-scroll .progress span{background:linear-gradient(90deg,var(--sc-gold),var(--sc-wine))}
.theme-scroll .phero{
  position:relative;isolation:isolate;margin:20px auto 8px;max-width:1232px;padding:50px 44px;border-radius:30px;color:#F4E7CC;
  background:radial-gradient(80% 120% at 85% 0%,#8E2B3D 0%,var(--sc-wine) 55%,#4A1420 100%);
  box-shadow:inset 0 0 0 8px var(--sc-wine),inset 0 0 0 10px var(--sc-gold),0 28px 54px -30px rgba(74,20,32,.85);
}
.theme-scroll .phero::after{content:"";position:absolute;width:120px;height:96px;inset-inline-start:34px;bottom:26px;background:var(--crownic) center/contain no-repeat;opacity:.28;z-index:-1}
.theme-scroll .phero h1{color:var(--sc-gold-l)}
.theme-scroll .phero .lead{color:#EEDFC2}
.theme-scroll .phero .crumbs,.theme-scroll .phero .crumbs a,.theme-scroll .phero .ameta{color:#D9C29A}
.theme-scroll .phero .chip{background:var(--sc-gold);color:var(--sc-ink)}
.theme-scroll .phero-img{border-radius:22px;overflow:hidden;box-shadow:0 0 0 6px var(--sc-gold-l),0 0 0 8px var(--sc-gold),0 24px 46px -18px #000}
.theme-scroll .body h2{display:flex;align-items:center;gap:12px;color:var(--sc-wine);font-weight:700}
.theme-scroll .body h2::before{content:"";flex:0 0 30px;height:24px;background:var(--crownic) center/contain no-repeat}
.theme-scroll .toc{border-inline-start-color:var(--sc-gold)}
.theme-scroll .ticks li::before{background:var(--sc-wine);box-shadow:0 0 0 3px var(--sc-gold-l)}
.theme-scroll .steps li::before{background:var(--sc-ink);color:var(--sc-gold-l)}
.theme-scroll th{background:var(--sc-wine);color:var(--sc-gold-l)}
.theme-scroll tbody tr:nth-child(even) td{background:#FBF3E2}
.theme-scroll td{background:#FFFCF5}
.theme-scroll .tbl{box-shadow:0 0 0 1px #DCC79B,var(--sh)}
.theme-scroll .tip{background:#FBF1DA;border-color:var(--sc-gold)}
.theme-scroll .body figure{border-radius:20px;overflow:hidden;background:var(--sc-wine);padding:8px;box-shadow:0 0 0 2px var(--sc-gold)}
.theme-scroll .body figure img{border-radius:14px;aspect-ratio:4/3}
.theme-scroll .body figcaption{color:var(--sc-gold-l);padding:10px 8px 6px}
.theme-scroll blockquote{text-align:center;border:0;margin:44px 0 24px;padding:34px 28px;border-radius:6px;font-size:22px;background:#fff;color:var(--sc-ink);box-shadow:inset 0 0 0 2px var(--sc-gold),inset 0 0 0 8px #fff,inset 0 0 0 9px var(--sc-wine)}

/* --- רכיב חתימה: מגילה עם תוכנית שלושת המועדים --- */
.theme-scroll .sc-scroll{display:flex;align-items:stretch;margin:30px 0;filter:drop-shadow(0 18px 26px rgba(74,40,20,.25))}
.theme-scroll .sc-rod{flex:0 0 22px;border-radius:12px;background:linear-gradient(90deg,#3E2716,#8A5E3A 45%,#3E2716);position:relative;margin:-14px 0}
.theme-scroll .sc-rod::before,.theme-scroll .sc-rod::after{content:"";position:absolute;inset-inline:-5px;height:16px;border-radius:8px;background:var(--sc-gold)}
.theme-scroll .sc-rod::before{top:-6px}.theme-scroll .sc-rod::after{bottom:-6px}
.theme-scroll .sc-sheet{flex:1;background:linear-gradient(90deg,var(--sc-parch2),#FBF4E4 12%,#FBF4E4 88%,var(--sc-parch2));padding:26px 26px 22px}
.theme-scroll .sc-sheet h3{margin:0 0 18px;text-align:center;font-size:23px;color:var(--sc-wine)}
.theme-scroll .sc-sheet ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.theme-scroll .sc-sheet li{padding:4px 18px;border-inline-start:1px solid #D8C49A}
.theme-scroll .sc-sheet li:first-child{border-inline-start:0}
.theme-scroll .sc-when{display:inline-block;font-size:13px;font-weight:700;color:var(--sc-wine2);letter-spacing:.02em;margin-bottom:4px}
.theme-scroll .sc-sheet b{display:block;font-size:20px;color:var(--sc-ink);margin-bottom:6px}
.theme-scroll .sc-sheet p{margin:0;font-size:15px;line-height:1.6;color:#3B332A}
.theme-scroll .sc-sheet i{display:block;font-style:normal;font-weight:700;color:var(--sc-wine);margin-top:8px}
@media (max-width:900px){
  .theme-scroll .phero{margin:12px 12px 4px;padding:32px 22px}
}
@media (max-width:700px){
  .theme-scroll .sc-scroll{flex-direction:column}
  .theme-scroll .sc-rod{flex:0 0 18px;margin:0 -10px;height:18px}
  .theme-scroll .sc-rod::before,.theme-scroll .sc-rod::after{inset-inline:auto;top:-5px;bottom:-5px;width:14px;height:auto}
  .theme-scroll .sc-rod::before{inset-inline-start:-6px}.theme-scroll .sc-rod::after{inset-inline-end:-6px}
  .theme-scroll .sc-sheet{background:linear-gradient(180deg,var(--sc-parch2),#FBF4E4 8%,#FBF4E4 92%,var(--sc-parch2));padding:22px 18px}
  .theme-scroll .sc-sheet ol{grid-template-columns:1fr}
  .theme-scroll .sc-sheet li{border-inline-start:0;border-top:1px solid #D8C49A;padding:14px 4px}
  .theme-scroll .sc-sheet li:first-child{border-top:0;padding-top:0}
  .theme-scroll blockquote{font-size:19px;padding:28px 18px}
}
html.a11y-contrast .theme-scroll .phero{background:#000!important;color:#fff!important}
