/* Chullin 109 — feedback-led publication reader refinement.
   This layer intentionally follows the RebbeDaf paper / ink / midnight / clay system. */

body.rd-chullin-109{
  --paper:#f2efe7;
  --raised:#fbfaf6;
  --ink:#16191d;
  --soft:#68737c;
  --accent:#a6452e;
  --slate:#24384a;
  --rule:rgba(22,25,29,.17);
  --display:"Newsreader","Iowan Old Style",Georgia,serif;
  --body:"Newsreader","Iowan Old Style",Georgia,serif;
  --util:"DM Sans","Avenir Next","Helvetica Neue",sans-serif;
  color-scheme:light;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--util);
}

body.rd-chullin-109>.rd-header{
  position:sticky;
  top:0;
  z-index:60;
  min-height:76px;
  border-bottom-color:var(--rule);
  background:rgba(242,239,231,.97);
  color:var(--ink);
  box-shadow:0 1px 0 rgba(255,255,255,.45);
}
body.rd-chullin-109>.rd-header .rd-wordmark{color:var(--ink);font-family:var(--util);font-weight:650}
body.rd-chullin-109>.rd-header .rd-mark{border-color:var(--ink);color:var(--ink);background:transparent}
body.rd-chullin-109>.rd-header nav a{color:var(--soft);font-family:var(--util);font-weight:500;letter-spacing:0}
body.rd-chullin-109>.rd-header nav a:hover,body.rd-chullin-109>.rd-header nav a:focus-visible{color:var(--ink)}
body.rd-chullin-109>.rd-header .rd-menu{color:var(--ink);font-family:var(--util)}

body.rd-chullin-109>.nav{
  top:76px;
  z-index:50;
  border-bottom:1px solid rgba(242,239,231,.18);
  background:var(--slate);
  color:var(--paper);
  box-shadow:0 10px 28px rgba(22,25,29,.1);
}
body.rd-chullin-109>.nav .nav-bar{max-width:78rem;min-height:60px}
body.rd-chullin-109>.nav .nav-daf{color:var(--paper);font-family:var(--util);font-weight:650;letter-spacing:.11em}
body.rd-chullin-109>.nav .nav-daf span{color:#dce1e4}
body.rd-chullin-109>.nav .nav-links button{color:#bdc7cd;font-family:var(--util);font-weight:650;letter-spacing:.1em}
body.rd-chullin-109>.nav .nav-links button:hover{color:#fff}
body.rd-chullin-109>.nav .nav-links button[aria-selected="true"]{color:#fff;border-bottom-color:var(--accent)}
body.rd-chullin-109>.nav .progress{background:var(--accent)}

body.rd-chullin-109>.sheet{max-width:78rem;background:transparent}
body.rd-chullin-109>.sheet .masthead{border-bottom-color:var(--ink)}
body.rd-chullin-109>.sheet .masthead::after{background:var(--accent)}
body.rd-chullin-109>.sheet .kicker{color:var(--soft);font-family:var(--util)}
body.rd-chullin-109>.sheet .kicker .cycle{color:var(--accent)}
body.rd-chullin-109>.sheet .daf-en{color:var(--ink);font-family:var(--display)}
body.rd-chullin-109>.sheet .daf-he{color:var(--accent)}
body.rd-chullin-109>.sheet .tier{scroll-margin-top:154px}
body.rd-chullin-109>.sheet .tier-head{border-bottom-color:var(--rule)}
body.rd-chullin-109>.sheet .tier-name{color:var(--accent);font-family:var(--util)}
body.rd-chullin-109>.sheet .tier-note{color:var(--soft);font-family:var(--util)}

body.rd-chullin-109>.sheet .player{
  border:1px solid var(--rule);
  border-radius:0;
  background:var(--raised);
  box-shadow:none;
}
body.rd-chullin-109>.sheet .player .lbl{color:var(--soft);font-family:var(--util)}
body.rd-chullin-109>.sheet .player .lbl b{color:var(--accent)}
body.rd-chullin-109>.sheet .player audio{accent-color:var(--accent)}

/* Synthesis: editorial, warm, and deliberately high contrast. */
body.rd-chullin-109>.sheet .essay{color:var(--ink);font-family:var(--body)}
body.rd-chullin-109>.sheet .essay h2{color:var(--ink);font-family:var(--display)}
body.rd-chullin-109>.sheet .essay p{color:#30353a}
body.rd-chullin-109>.sheet .lede::first-letter,body.rd-chullin-109>.sheet .mark,body.rd-chullin-109>.sheet sup.src{color:var(--accent)}
body.rd-chullin-109>.sheet .draws{color:var(--soft);font-family:var(--util)}
body.rd-chullin-109>.sheet .draws b{color:var(--slate)}
body.rd-chullin-109>.sheet .cited{
  border:0;
  background:var(--slate);
  color:var(--paper);
  box-shadow:0 22px 54px rgba(36,56,74,.14);
}
body.rd-chullin-109>.sheet .cited .lbl{color:#c7d0d5}
body.rd-chullin-109>.sheet .cited .he,body.rd-chullin-109>.sheet .cited .en{color:#fff}
body.rd-chullin-109>.sheet .cited .attrib{color:#d6dde1}
body.rd-chullin-109>.sheet .cited .note{border-top-color:rgba(255,255,255,.2);color:#c7d0d5}
body.rd-chullin-109>.sheet blockquote{
  border-left:3px solid var(--accent);
  background:var(--raised);
  color:#30353a;
  box-shadow:inset 0 0 0 1px rgba(22,25,29,.05);
}
body.rd-chullin-109>.sheet blockquote cite{color:var(--slate)}

/* Sources: one active source, clear bearings, language controls remain local. */
body.rd-chullin-109>.sheet #sources{max-width:76rem}
body.rd-chullin-109>.sheet .source-tabs-intro{max-width:46rem;margin:-28px 0 28px;color:var(--soft);font-family:var(--util);font-size:13px;line-height:1.65}
body.rd-chullin-109>.sheet .source-tabs{
  position:sticky;
  top:136px;
  z-index:25;
  margin:0 0 46px;
  padding:0 0 12px;
  display:flex;
  gap:8px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  background:linear-gradient(var(--paper) 0,var(--paper) calc(100% - 12px),transparent 100%);
}
body.rd-chullin-109>.sheet .source-tab{
  min-width:138px;
  min-height:72px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--rule);
  background:rgba(251,250,246,.82);
  color:var(--soft);
  font-family:var(--util);
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
body.rd-chullin-109>.sheet .source-tab:hover{border-color:var(--slate);color:var(--ink);transform:translateY(-1px)}
body.rd-chullin-109>.sheet .source-tab[aria-selected="true"]{border-color:var(--slate);background:var(--slate);color:var(--paper)}
body.rd-chullin-109>.sheet .source-tab:focus-visible{outline:3px solid rgba(166,69,46,.34);outline-offset:2px}
body.rd-chullin-109>.sheet .source-tab-index{color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.15em}
body.rd-chullin-109>.sheet .source-tab[aria-selected="true"] .source-tab-index{color:#e2a391}
body.rd-chullin-109>.sheet .source-tab-label{max-width:14ch;font-size:11px;font-weight:650;line-height:1.25;letter-spacing:.02em}
body.rd-chullin-109>.sheet .source[hidden]{display:none!important}
body.rd-chullin-109>.sheet .source{margin:0;padding:0;animation:rdSourceIn .2s ease-out}
body.rd-chullin-109>.sheet .source-cite{border-top-color:var(--ink);color:var(--slate);font-family:var(--util)}
body.rd-chullin-109>.sheet .source-cite.sub{border-bottom-color:var(--rule);color:var(--soft)}
body.rd-chullin-109>.sheet .source-cite .flag{color:var(--accent)}
body.rd-chullin-109>.sheet .langbar{justify-content:flex-start;margin-bottom:22px}
body.rd-chullin-109>.sheet .langbar button{border-color:var(--rule);color:var(--soft);font-family:var(--util);cursor:pointer}
body.rd-chullin-109>.sheet .langbar button:hover{color:var(--ink)}
body.rd-chullin-109>.sheet .langbar button[aria-pressed="true"]{border-color:var(--slate);background:var(--slate);color:var(--paper)}
body.rd-chullin-109>.sheet .row{border-top-color:var(--rule);background:transparent}
body.rd-chullin-109>.sheet .row:nth-child(even){background:rgba(251,250,246,.68)}
body.rd-chullin-109>.sheet .row:hover{background:var(--raised)}
body.rd-chullin-109>.sheet .row .he{color:var(--ink)}
body.rd-chullin-109>.sheet .row .en{color:#3b4247;font-family:var(--display)}
body.rd-chullin-109>.sheet .he .os,body.rd-chullin-109>.sheet sup.f,body.rd-chullin-109>.sheet .haoros b{color:var(--accent)}
body.rd-chullin-109>.sheet .haoros{border-left-color:var(--accent);background:var(--raised);color:#3b4247}

/* Register: a real research surface rather than an undifferentiated document. */
body.rd-chullin-109>.sheet #register{max-width:76rem}
body.rd-chullin-109>.sheet .reg-wrap{
  overflow:auto;
  border:1px solid var(--rule);
  border-top:2px solid var(--ink);
  background:var(--raised);
  box-shadow:0 20px 50px rgba(22,25,29,.06);
}
body.rd-chullin-109>.sheet table{min-width:980px;background:var(--raised)}
body.rd-chullin-109>.sheet thead{position:sticky;top:0;z-index:2;background:var(--slate)}
body.rd-chullin-109>.sheet th{padding:15px 14px;border-bottom:0;color:#d5dde1;font-family:var(--util);font-size:9px}
body.rd-chullin-109>.sheet td{padding:18px 14px;border-bottom-color:var(--rule);color:#343a3f;background:transparent}
body.rd-chullin-109>.sheet tbody tr:nth-child(even){background:rgba(242,239,231,.72)}
body.rd-chullin-109>.sheet tbody tr:hover{background:#fff}
body.rd-chullin-109>.sheet td.num{color:var(--slate);font-weight:650}
body.rd-chullin-109>.sheet a{color:var(--accent);font-weight:600;text-decoration-thickness:1px}
body.rd-chullin-109>.sheet a:hover{color:#7d301f}
body.rd-chullin-109>.sheet .colophon{border-top-color:var(--ink);color:var(--soft)}
body.rd-chullin-109>.sheet .colophon strong{color:var(--ink)}

body.rd-chullin-109>.rd-share,body.rd-chullin-109>.rd-daf-pager{font-family:var(--util)}
body.rd-chullin-109>.rd-daf-pager>a{border-color:var(--rule);background:var(--raised);color:var(--ink)}
body.rd-chullin-109>.rd-daf-pager>a:hover{border-color:var(--accent)}

@keyframes rdSourceIn{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:none}}

@media(max-width:760px){
  body.rd-chullin-109>.rd-header{min-height:66px}
  body.rd-chullin-109>.rd-header nav a:nth-child(3){display:block}
  body.rd-chullin-109>.nav{top:66px}
  body.rd-chullin-109>.rd-header nav{top:66px;background:var(--paper)}
  body.rd-chullin-109>.sheet .tier{scroll-margin-top:132px}
  body.rd-chullin-109>.sheet .source-tabs{top:120px;margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}
  body.rd-chullin-109>.sheet .source-tabs-intro{margin-top:-16px}
  body.rd-chullin-109>.sheet .source-tab{min-width:126px;min-height:66px}
  body.rd-chullin-109>.sheet .row .he{border-bottom-color:var(--rule)}
  body.rd-chullin-109>.sheet .reg-wrap{margin-left:-20px;margin-right:-20px;border-left:0;border-right:0}
}

@media(max-width:460px){
  body.rd-chullin-109>.nav .nav-links{gap:10px}
  body.rd-chullin-109>.nav .nav-links button{font-size:8px}
  body.rd-chullin-109>.sheet .cited{box-shadow:none}
}

@media(prefers-reduced-motion:reduce){
  body.rd-chullin-109>.sheet .source,body.rd-chullin-109>.sheet .source-tab{animation:none;transition:none}
}
