/* RebbeDaf individual-daf template: approved full-bleed hero, sticky source rail, modal sources. */
body.rd-template-daf{
  --paper:#f5f2ea;
  --raised:#fffdf8;
  --ink:#1b1813;
  --soft:#655e52;
  --accent:#8c1c22;
  --slate:#33465e;
  --stone:#cdbb9a;
  --rule:rgba(27,24,19,.18);
  --display:"Newsreader","Iowan Old Style",Georgia,serif;
  --body:"Newsreader","Iowan Old Style",Georgia,serif;
  --util:"DM Sans","Avenir Next","Helvetica Neue",Arial,sans-serif;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
}
body.rd-template-daf>.nav,
body.rd-template-daf>.sheet>.masthead,
body.rd-template-daf>.sheet #synthesis>.tier-head,
body.rd-template-daf #sources,
body.rd-template-daf #register{display:none!important}
body.rd-template-daf>.rd-header{
  position:sticky;
  top:0;
  z-index:80;
  min-height:72px;
  border-bottom:1px solid rgba(22,25,29,.17);
  background:rgba(242,239,231,.97);
  color:#16191d;
  box-shadow:0 1px 0 rgba(255,255,255,.45);
}
body.rd-template-daf>.rd-header .rd-wordmark,
body.rd-template-daf>.rd-header .rd-menu{color:#16191d}
body.rd-template-daf>.rd-header .rd-mark{border-color:#16191d;color:#16191d;background:transparent}
body.rd-template-daf>.rd-header nav a{color:#68737c;opacity:1}
body.rd-template-daf>.rd-header nav a:hover,
body.rd-template-daf>.rd-header nav a:focus-visible{color:#16191d;opacity:1}
body.rd-template-daf>.sheet{
  box-sizing:border-box;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0 0 5rem!important;
  overflow:visible!important;
  background:transparent;
}
.rd-vision-hero{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,22fr) minmax(0,38fr) minmax(0,40fr);
  width:100%;
  min-height:21.5rem;
  margin:0;
  overflow:hidden;
  border-bottom:1px solid #9b896b;
  background:var(--stone);
  box-shadow:0 14px 36px rgba(36,30,21,.09);
}
.rd-vision-hero>*{box-sizing:border-box;min-width:0}
.rd-vision-hero.no-evidence{grid-template-columns:minmax(14rem,28%) minmax(0,72%)}
.rd-vision-hero.no-evidence .rd-vision-evidence{display:none}
.rd-vision-identity{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  padding:1.4rem clamp(1.5rem,3vw,3.25rem);
  border-right:1px solid #9b896b;
  background:#cdbb9a;
  color:#201b14;
}
.rd-vision-identity-kicker{margin:0;font:700 .61rem/1.2 var(--util);letter-spacing:.16em;text-transform:uppercase}
.rd-vision-identity strong{display:block;margin-top:1.15rem;font:500 clamp(3.3rem,4vw,4.6rem)/.88 var(--display);letter-spacing:-.055em}
.rd-vision-identity b{display:block;font:500 clamp(5rem,6.2vw,6.9rem)/.82 var(--display);letter-spacing:-.065em}
.rd-vision-identity-he{margin-top:.8rem;font:1.08rem/1.2 var(--hebrew);direction:rtl}
.rd-vision-story{display:flex;flex-direction:column;padding:1.35rem clamp(1.5rem,2.4vw,2.6rem);background:#eee7da;color:var(--ink)}
.rd-vision-story h2{max-width:12ch;margin:0;font:500 clamp(2.5rem,3vw,3.45rem)/.94 var(--display);letter-spacing:-.045em;text-wrap:balance}
.rd-vision-story>.draws{max-width:48ch;margin:.65rem 0 .75rem;padding:0;color:#5e574b;font:500 .72rem/1.35 var(--util);text-transform:none;letter-spacing:.015em}
.rd-vision-story>.draws b{color:var(--slate)}
.rd-vision-story .player{margin:auto 0 .55rem;padding:.58rem .75rem;border:1px solid #c9c0b2;border-radius:0;background:var(--raised);box-shadow:none}
.rd-vision-story .player .lbl{color:var(--soft);font:650 .67rem/1.3 var(--util);letter-spacing:.045em}
.rd-vision-story .player .lbl b{color:var(--accent)}
.rd-vision-story .player audio{width:100%;height:1.8rem;margin-top:.3rem;accent-color:var(--accent)}
.rd-vision-story .rd-share{margin:0}
.rd-share-icons{display:flex!important;align-items:center!important;gap:.45rem!important;padding:.45rem .55rem!important;border:1px solid #c9c0b2!important;background:var(--raised)!important;font-family:var(--util)!important}
.rd-share-icons>span{margin-right:auto;font:700 .61rem/1 var(--util);letter-spacing:.09em;text-transform:uppercase;color:var(--soft)}
.rd-share-icons button,.rd-share-icons a{display:inline-grid!important;place-items:center;width:2rem!important;height:2rem!important;min-width:2rem!important;min-height:2rem!important;padding:0!important;border:1px solid #c9c0b2!important;border-radius:50%!important;background:#fffdf8!important;color:var(--ink)!important;text-decoration:none!important;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}
.rd-share-icons button:hover,.rd-share-icons a:hover{border-color:var(--accent)!important;background:var(--accent)!important;color:#fff!important;transform:translateY(-1px)}
.rd-share-icons button:focus-visible,.rd-share-icons a:focus-visible{outline:3px solid rgba(140,28,34,.24);outline-offset:2px}
.rd-share-icons svg{width:.95rem;height:.95rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rd-vision-evidence{display:flex;min-width:0;background:var(--slate)}
.rd-vision-evidence .cited{display:flex;flex:1;flex-direction:column;justify-content:center;margin:0!important;padding:1.35rem clamp(1.8rem,3vw,3.4rem)!important;border:0!important;background:var(--slate)!important;color:#fff!important;box-shadow:none!important}
.rd-vision-evidence .cited .lbl{margin:0 0 .5rem!important;color:#d1d9de!important;font:.61rem/1.2 var(--util)!important;letter-spacing:.12em;text-transform:uppercase}
.rd-vision-evidence .cited .he{margin:0 0 .55rem!important;color:#fff!important;font-size:clamp(1.38rem,1.7vw,1.8rem)!important;line-height:1.42!important}
.rd-vision-evidence .cited .en{margin:0 0 .55rem!important;color:#fff!important;font-size:clamp(.95rem,1.08vw,1.12rem)!important;line-height:1.42!important}
.rd-vision-evidence .cited .attrib{margin:0!important;color:#e4e9ec!important;font-size:.66rem!important;line-height:1.35!important}
.rd-vision-evidence .cited .note{margin:.55rem 0 0!important;padding-top:.5rem!important;border-top-color:rgba(255,255,255,.2)!important;color:#ccd5da!important;font:.64rem/1.4 var(--util)!important}
.rd-vision-reading{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:15rem minmax(0,46rem);
  gap:clamp(2rem,4vw,4rem);
  align-items:start;
  width:min(calc(100% - 2rem),88rem);
  min-height:1px;
  margin:0 auto 0 clamp(1rem,3vw,3rem);
  padding:1.3rem 0 0;
  overflow:visible!important;
}
.rd-vision-reading #synthesis{min-width:0;max-width:46rem!important;padding:0;color:var(--ink)}
.rd-vision-reading #synthesis>section{font-size:1rem!important;line-height:1.72!important}
.rd-vision-reading #synthesis>section p{font-size:1.08rem!important;line-height:1.72!important}
.rd-vision-reading #synthesis .lede{margin-top:0!important;font-size:1.18rem!important;line-height:1.62!important}
.rd-vision-reading #synthesis .lede::first-letter{float:none!important;margin:0!important;padding:0!important;font:inherit!important;color:inherit!important}
.rd-vision-reading #synthesis h3{font-size:clamp(1.7rem,2.2vw,2.25rem)!important;line-height:1.08!important}
.rd-vision-reading #synthesis>section:first-of-type{margin-top:0}
.rd-vision-source-rail{position:sticky!important;top:104px!important;z-index:30;display:block;visibility:visible;align-self:start;height:max-content;padding-top:0}
.rd-vision-source-rail>header{margin-bottom:.65rem;padding:0 0 .6rem;border-bottom:2px solid var(--accent)}
.rd-vision-source-rail>header span{color:var(--accent);font:750 .66rem/1.2 var(--util);letter-spacing:.16em;text-transform:uppercase}
.rd-vision-source-rail>header p{max-width:20ch;margin:.3rem 0 0;color:var(--soft);font:.72rem/1.4 var(--util)}
.rd-vision-source-list{display:flex;flex-direction:column;gap:.6rem}
.rd-vision-source{--category:var(--accent);display:grid;grid-template-columns:auto 1fr;gap:.5rem .7rem;width:100%;min-height:6.5rem;padding:.75rem;border:1px solid color-mix(in srgb,var(--category) 38%,transparent);border-left:5px solid var(--category);border-radius:2px;background:#f4e8e2;color:var(--ink);text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.rd-vision-source.is-gemara{--category:var(--slate);min-height:7rem;border:2px solid var(--slate);border-left-width:7px;background:#e8edf1;box-shadow:0 10px 26px rgba(39,61,80,.1)}
.rd-vision-source:hover{transform:translateX(3px);box-shadow:0 11px 25px rgba(39,51,59,.08)}
.rd-vision-source:focus-visible{outline:3px solid color-mix(in srgb,var(--category) 38%,transparent);outline-offset:2px}
.rd-vision-source-number{color:var(--soft);font:600 .58rem/1.2 var(--util);letter-spacing:.12em}
.rd-vision-source-category{justify-self:end;color:var(--category);font:750 .56rem/1.2 var(--util);letter-spacing:.1em;text-transform:uppercase}
.rd-vision-source strong,.rd-vision-source-action{grid-column:1/-1}
.rd-vision-source strong{font:650 .86rem/1.3 var(--util)}
.rd-vision-source-action{align-self:end;color:var(--category);font:750 .6rem/1.2 var(--util);letter-spacing:.08em;text-transform:uppercase}
.rd-reading-progress{position:fixed;top:71px;left:0;right:0;z-index:95;height:3px;background:rgba(22,25,29,.1);pointer-events:none}
.rd-reading-progress span{display:block;width:0;height:100%;background:var(--accent);transform-origin:left center;transition:width .08s linear}
.rd-source-dialog{width:min(72rem,calc(100% - 2rem));max-height:90vh;padding:0;border:0;background:var(--paper);color:var(--ink);box-shadow:0 30px 90px rgba(0,0,0,.58)}
.rd-source-dialog::backdrop{background:rgba(17,17,17,.72)}
.rd-source-dialog-bar{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:1.5rem;align-items:center;padding:1rem 1.25rem;background:var(--slate);color:#fff}
.rd-source-dialog-kicker{font:750 .58rem/1.2 var(--util);letter-spacing:.15em;text-transform:uppercase;color:#cbd4d9}
.rd-source-dialog-bar h2{margin:.2rem 0;font:500 clamp(1.25rem,3vw,1.85rem)/1.1 var(--display)}
.rd-source-dialog-category{display:inline-block;color:#e9b19f;font:750 .58rem/1 var(--util);letter-spacing:.12em;text-transform:uppercase}
.rd-source-dialog-close{padding:.65rem .9rem;border:1px solid rgba(255,255,255,.45);background:transparent;color:#fff;font:750 .66rem var(--util);text-transform:uppercase;letter-spacing:.1em;cursor:pointer}
.rd-source-dialog-body{padding:clamp(1.25rem,4vw,3rem)}
.rd-source-dialog-body .source{display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;animation:none!important}
.rd-source-dialog-body .rd-source-number{display:none}
.rd-source-dialog-body .source-cite{display:flex;flex-wrap:wrap;gap:.65rem 1rem;align-items:center;margin-bottom:1.25rem;padding:0 0 1rem;border-top:0;border-bottom:1px solid var(--rule);color:var(--slate);font-family:var(--util)}
.rd-source-dialog-body .source-cite>b{flex:1 1 20rem}
.rd-source-dialog-body .source-cite .flag{color:var(--accent)}
.rd-source-dialog-body .rd-original-source{display:inline-flex;align-items:center;justify-content:center;padding:.65rem .85rem;background:var(--accent);color:#fff!important;text-decoration:none;font:750 .66rem/1 var(--util);letter-spacing:.08em;text-transform:uppercase}
.rd-source-dialog-body .row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:clamp(1.5rem,4vw,3.5rem)!important;padding:1.25rem 0!important;border-top:1px solid var(--rule)!important;border-bottom:0!important;background:transparent!important}
.rd-source-dialog-body .row .he{padding:0!important;text-align:right;color:var(--ink);font-size:1.13rem;line-height:1.9}
.rd-source-dialog-body .row .en{padding:0!important;color:#363d42;font:1.03rem/1.75 var(--display)}
.rd-source-dialog-body .note{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--rule);color:var(--soft);font:.75rem/1.6 var(--util)}
.rd-modal-open{overflow:hidden}
@media(max-width:860px){
  body.rd-template-daf>.rd-header{min-height:64px}
  body.rd-template-daf>.rd-header nav{top:64px;background:#f2efe7;color:#16191d}
  body.rd-template-daf>.rd-header nav.is-open{display:flex}
  body.rd-template-daf>.sheet{padding-bottom:4rem!important}
  .rd-reading-progress{top:63px}
  .rd-vision-hero{display:block;min-height:0;border-left:0;border-right:0;box-shadow:none;overflow:visible}
  .rd-vision-identity{display:grid;grid-template-columns:auto 1fr auto;gap:.3rem 1rem;align-items:end;padding:1.1rem 1rem;border-right:0;border-bottom:1px solid #9b896b}
  .rd-vision-identity-kicker{grid-column:1/-1;margin:0 0 .35rem}
  .rd-vision-identity strong,.rd-vision-identity b{display:inline;margin:0;font-size:clamp(2.8rem,13vw,4.2rem);line-height:.85}
  .rd-vision-identity b{text-align:right}
  .rd-vision-identity-he{grid-column:1/-1;margin:.45rem 0 0;font-size:1rem}
  .rd-vision-story{padding:1.2rem 1rem}
  .rd-vision-story h2{font-size:clamp(2.5rem,12vw,3.9rem)}
  .rd-vision-story .player{margin:.8rem 0 .5rem}
  .rd-vision-evidence .cited{padding:1.2rem 1rem!important}
  .rd-vision-reading{display:block;width:auto;margin:0;padding:1.25rem 1rem 0}
  .rd-vision-source-rail{position:static!important;margin:0 0 1.5rem;padding:0}
  .rd-vision-source-list{display:grid;grid-auto-flow:column;grid-auto-columns:16rem;overflow-x:auto;gap:.65rem;padding-bottom:.5rem;scrollbar-width:thin}
  .rd-vision-source,.rd-vision-source.is-gemara{min-height:7.4rem}
  .rd-vision-reading #synthesis>section p{font-size:1rem!important;line-height:1.68!important}
  .rd-vision-reading #synthesis .lede{font-size:1.08rem!important;line-height:1.62!important}
  .rd-source-dialog{width:100%;max-height:94vh;margin:auto 0 0}
  .rd-source-dialog-body{padding:1rem}
  .rd-source-dialog-body .source-cite{align-items:flex-start}
  .rd-source-dialog-body .row{grid-template-columns:1fr!important;gap:1rem!important}
  .rd-source-dialog-body .row .he{padding-bottom:1rem!important;border-bottom:1px solid var(--rule)}
}
@media(prefers-reduced-motion:reduce){.rd-vision-source,.rd-share-icons button,.rd-share-icons a,.rd-reading-progress span{transition:none}}
@media print{
  body.rd-template-daf>.rd-header,.rd-reading-progress,.rd-vision-source-rail,.rd-share-icons{display:none!important}
  .rd-vision-hero{display:block;box-shadow:none}
  .rd-vision-reading{display:block;width:auto;margin:0;padding:0}
  .rd-vision-evidence .cited{color:#000!important;background:#fff!important}
}
