@import url("https://fonts.googleapis.com/css2?family=Jomolhari&display=swap");

/* Rinchen Terzod — modern scholarly theme
   Final override layer for the multi-page build. */
:root{
  --rt-bg:#f4f2ee;
  --rt-surface:#ffffff;
  --rt-surface-2:#faf9f7;
  --rt-ink:#1c1b1a;
  --rt-muted:#6e6a64;
  --rt-line:#e5e0d9;
  --rt-line-strong:#d4cdc3;
  --rt-accent:#782d3d;
  --rt-accent-deep:#4f1b28;
  --rt-warm:#9b7651;
  --rt-teal:#486d68;
  --rt-shadow:0 18px 50px rgba(43,36,31,.07);
  --rt-shadow-sm:0 8px 24px rgba(43,36,31,.055);
  --rt-radius:16px;
  --rt-radius-sm:11px;
  --rt-sidebar:286px;
  --rt-ui:"Jomolhari","Noto Serif Tibetan",serif;
  --rt-serif:"Jomolhari","Noto Serif Tibetan",serif;
}

html{background:var(--rt-bg)!important;font-size:17px!important;scroll-behavior:smooth}
body{
  margin:0!important;
  min-height:100vh;
  background:linear-gradient(180deg,#f7f5f2 0,#f3f1ed 42rem,#f4f2ee 100%)!important;
  color:var(--rt-ink)!important;
  font-family:var(--rt-ui)!important;
  line-height:1.65!important;
  -webkit-font-smoothing:antialiased;
}
body *{font-family:inherit!important}
.tibetan-title,.rtz-tibetan,.bo{font-family:"Jomolhari","Noto Serif Tibetan",serif!important}
.page-content p,.page-content li,.page-content dd,.page-content td,
.study-intro,.study-note,.tsadra-reference-box p{
  font-family:var(--rt-serif)!important;
  font-size:1.03rem!important;
  line-height:1.76!important;
  color:#2e2b28!important;
}

/* Navigation */
.tsadra-sidebar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:var(--rt-sidebar)!important;
  height:100vh!important;
  padding:76px 22px 30px!important;
  overflow-y:auto!important;
  background:rgba(251,250,248,.94)!important;
  border-right:1px solid var(--rt-line)!important;
  box-shadow:none!important;
  backdrop-filter:blur(18px) saturate(120%);
  z-index:70!important;
  transition:transform .22s ease,visibility .22s ease!important;
}
.tsadra-brand{
  padding:0 4px 24px!important;
  margin:0 0 22px!important;
  border-bottom:1px solid var(--rt-line)!important;
}
.tsadra-brand a,.tsadra-brand button{
  display:block!important;
  width:100%!important;
  color:var(--rt-ink)!important;
  text-decoration:none!important;
  background:none!important;
  border:0!important;
  padding:0!important;
  text-align:left!important;
}
.tsadra-brand-tibetan{
  display:block!important;
  margin-bottom:9px!important;
  color:var(--rt-accent)!important;
  font-size:1.12rem!important;
  line-height:1.55!important;
  white-space:nowrap;
}
.tsadra-brand-title{
  display:block!important;
  font-family:var(--rt-serif)!important;
  font-size:1.28rem!important;
  font-weight:600!important;
  letter-spacing:-.018em!important;
  line-height:1.15!important;
}
.tsadra-brand-place{
  display:block!important;
  margin-top:6px!important;
  color:var(--rt-muted)!important;
  font-family:var(--rt-ui)!important;
  font-size:.75rem!important;
  font-style:normal!important;
  line-height:1.45!important;
}
.tsadra-nav-group{margin:0 0 22px!important}
.tsadra-nav-group>h2{
  margin:0 0 7px!important;
  padding:0 9px 5px!important;
  border:0!important;
  color:#928b83!important;
  font-family:var(--rt-ui)!important;
  font-size:.66rem!important;
  font-weight:650!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
  line-height:1.3!important;
}
.tsadra-nav-group>h2::after{right:8px!important;color:#aaa29a!important}
.tsadra-nav-group a,.tsadra-nav-group button{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:1px 0!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#4a4641!important;
  font-family:var(--rt-ui)!important;
  font-size:.85rem!important;
  font-weight:450!important;
  line-height:1.35!important;
  text-align:left!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transform:none!important;
}
.tsadra-nav-group a:hover,.tsadra-nav-group button:hover{
  background:#f0ede8!important;
  color:var(--rt-ink)!important;
  text-decoration:none!important;
}
.tsadra-nav-group .nav-link.font-bold,.tsadra-nav-group .nav-link.active,
.tsadra-nav-group .nav-link.text-\[\#74283D\]{
  background:#eee8e5!important;
  color:var(--rt-accent-deep)!important;
  font-weight:650!important;
}
.tsadra-nav-group .nav-link.font-bold::before,.tsadra-nav-group .nav-link.active::before,
.tsadra-nav-group .nav-link.text-\[\#74283D\]::before{
  content:"";
  position:absolute;
  left:0;top:8px;bottom:8px;
  width:2px;
  border-radius:999px;
  background:var(--rt-accent);
}
.tsadra-sidebar-note{
  margin:24px 4px 0!important;
  padding:18px 4px 0!important;
  border-top:1px solid var(--rt-line)!important;
  color:#8a847c!important;
  font-family:var(--rt-ui)!important;
  font-size:.68rem!important;
  line-height:1.55!important;
}
.nav-toggle{
  position:fixed!important;
  z-index:90!important;
  top:18px!important;
  left:18px!important;
  min-height:34px!important;
  padding:7px 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  border:1px solid var(--rt-line-strong)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.9)!important;
  color:#3b3834!important;
  font-family:var(--rt-ui)!important;
  font-size:.72rem!important;
  font-weight:550!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 5px 18px rgba(40,35,31,.07)!important;
  backdrop-filter:blur(12px);
  transform:none!important;
}
.nav-toggle:hover{background:#fff!important;border-color:#b9b1a8!important;color:var(--rt-accent-deep)!important}
.nav-toggle-icon{font-family:var(--rt-ui)!important;font-size:.9rem!important}

body>main,body>section:not(.modal-backdrop),body>footer{margin-left:var(--rt-sidebar)!important}
main{background:transparent!important;min-height:82vh!important}

/* Page frame */
.page-content{
  display:none!important;
  max-width:1160px!important;
  margin:0 auto!important;
  padding:62px 72px 96px!important;
  background:transparent!important;
  color:var(--rt-ink)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:none!important;
  filter:none!important;
}
.page-content.active{
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  animation:rtFade .34s ease both!important;
}
@keyframes rtFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.wiki-breadcrumb{
  margin:0 0 34px!important;
  color:#918b84!important;
  font-family:var(--rt-ui)!important;
  font-size:.72rem!important;
  font-weight:550!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.wiki-breadcrumb a{color:inherit!important;text-decoration:none!important}

.rtz-masthead{
  position:relative;
  margin:0 0 64px!important;
  padding:0 0 38px!important;
  border:0!important;
  border-bottom:1px solid var(--rt-line)!important;
  background:transparent!important;
  text-align:left!important;
}
.rtz-masthead::after{
  content:"";
  position:absolute;
  left:0;bottom:-1px;
  width:72px;height:2px;
  background:var(--rt-accent);
}
.rtz-tibetan{
  margin:0 0 13px!important;
  color:var(--rt-accent)!important;
  font-size:clamp(1.45rem,2.1vw,2rem)!important;
  line-height:1.55!important;
}
.rtz-masthead h1,.page-content h1{
  margin:0!important;
  color:var(--rt-ink)!important;
  font-family:var(--rt-serif)!important;
  font-size:clamp(3rem,5.1vw,5.25rem)!important;
  font-weight:500!important;
  letter-spacing:-.052em!important;
  line-height:.98!important;
  text-transform:none!important;
}
.rtz-place{
  max-width:740px!important;
  margin:18px 0 0!important;
  color:var(--rt-muted)!important;
  font-family:var(--rt-ui)!important;
  font-size:.92rem!important;
  font-style:normal!important;
  line-height:1.55!important;
  letter-spacing:.01em!important;
}

/* Reading sections */
.wiki-section,.page-content section{
  margin:0 0 62px!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
}
.wiki-section h2,.page-content h2{
  margin:0 0 20px!important;
  padding:0!important;
  border:0!important;
  color:var(--rt-ink)!important;
  font-family:var(--rt-serif)!important;
  font-size:clamp(1.72rem,2.4vw,2.3rem)!important;
  font-weight:520!important;
  letter-spacing:-.027em!important;
  line-height:1.12!important;
  text-transform:none!important;
  text-align:left!important;
}
.page-content h3{
  margin:28px 0 10px!important;
  color:var(--rt-ink)!important;
  font-family:var(--rt-serif)!important;
  font-size:1.25rem!important;
  font-weight:650!important;
  letter-spacing:-.015em!important;
  line-height:1.25!important;
  text-transform:none!important;
}
.page-content h4{font-family:var(--rt-ui)!important;color:var(--rt-ink)!important}
.wiki-section>p,.study-page .wiki-section>p{max-width:810px!important;margin:0 0 1.15em!important}
.page-content a,.source-link{color:var(--rt-accent)!important;text-decoration-color:rgba(120,45,61,.35)!important;text-underline-offset:3px!important;text-decoration-thickness:1px!important}
.page-content a:hover{color:var(--rt-accent-deep)!important;text-decoration-color:currentColor!important}

/* Feature cards */
.classic-search-row{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin:30px 0 0!important;
  border:0!important;
}
.classic-search-row button{
  position:relative!important;
  min-height:170px!important;
  padding:25px 25px 48px!important;
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius)!important;
  background:rgba(255,255,255,.82)!important;
  color:var(--rt-ink)!important;
  text-align:left!important;
  box-shadow:var(--rt-shadow-sm)!important;
  transform:none!important;
}
.classic-search-row button::after{
  content:"↗";
  position:absolute;
  right:22px;bottom:19px;
  color:var(--rt-accent)!important;
  font-family:var(--rt-ui)!important;
  font-size:1rem!important;
}
.classic-search-row button:hover{
  background:#fff!important;
  border-color:#d3cbc1!important;
  box-shadow:var(--rt-shadow)!important;
  transform:translateY(-2px)!important;
}
.classic-search-row strong{
  display:block!important;
  margin:0 0 9px!important;
  color:var(--rt-ink)!important;
  font-family:var(--rt-serif)!important;
  font-size:1.13rem!important;
  font-weight:650!important;
  line-height:1.25!important;
  text-decoration:none!important;
}
.classic-search-row span{
  color:var(--rt-muted)!important;
  font-family:var(--rt-ui)!important;
  font-size:.78rem!important;
  line-height:1.58!important;
}

.tsadra-reference-box,.study-note{
  max-width:860px!important;
  margin:28px 0!important;
  padding:20px 22px!important;
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius-sm)!important;
  background:#f9f6f2!important;
  box-shadow:none!important;
}
.tsadra-reference-box{border-left:3px solid var(--rt-warm)!important}
.tsadra-reference-box h3{margin:0 0 8px!important;font-size:1.05rem!important}
.tsadra-reference-box p,.study-note{font-size:.94rem!important;line-height:1.67!important}
.study-note strong{font-family:var(--rt-ui)!important;font-size:.8rem!important;letter-spacing:.02em!important}

.section-directory{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  margin:24px 0 4px!important;
}
.section-directory>*{
  padding:8px 13px!important;
  border:1px solid var(--rt-line-strong)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.75)!important;
  color:var(--rt-accent)!important;
  font-family:var(--rt-ui)!important;
  font-size:.76rem!important;
  font-weight:600!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transform:none!important;
}
.section-directory>*:hover{background:#fff!important;border-color:#bdb4aa!important;color:var(--rt-accent-deep)!important}

.event-facts{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin:26px 0!important;
  border:0!important;
}
.event-facts>div{
  display:block!important;
  min-height:112px!important;
  padding:20px!important;
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius-sm)!important;
  background:rgba(255,255,255,.72)!important;
}
.event-facts dt{
  margin-bottom:7px!important;
  color:#8a837b!important;
  font-family:var(--rt-ui)!important;
  font-size:.67rem!important;
  font-weight:650!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}
.event-facts dd{margin:0!important;font-size:.98rem!important;line-height:1.55!important}

.classic-action,.received-btn,.tab-button,.cycle-tab,.volume-tab,
.admin-actions button,.file-action{
  border:1px solid var(--rt-line-strong)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--rt-accent)!important;
  padding:9px 14px!important;
  font-family:var(--rt-ui)!important;
  font-size:.75rem!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-decoration:none!important;
  box-shadow:0 3px 10px rgba(44,37,31,.04)!important;
  transform:none!important;
}
.classic-action:hover,.received-btn:hover,.tab-button:hover,.cycle-tab:hover,.volume-tab:hover{
  border-color:#bdb4aa!important;background:#fcfbfa!important;color:var(--rt-accent-deep)!important
}
.tab-button.active,.cycle-tab.active,.volume-tab.active,.received-btn[data-received="true"]{
  border-color:var(--rt-ink)!important;
  background:var(--rt-ink)!important;
  color:#fff!important;
}
.tab-button.active *,.cycle-tab.active *,.volume-tab.active *{color:#fff!important}

/* Generic cards */
.archive-grid,.grid{gap:16px!important}
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,.protector-card,.lineage-node{
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius-sm)!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 4px 18px rgba(42,35,30,.035)!important;
  transform:none!important;
}
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,.protector-card{padding:20px!important}
.archive-card:hover,.library-card:hover,.tantra-card:hover,.terton-card:hover,.soft-panel:hover,.protector-card:hover{
  background:#fff!important;
  border-color:#d5cec5!important;
  box-shadow:var(--rt-shadow-sm)!important;
  transform:translateY(-1px)!important;
}
.terton-chip,.tag-pill,.volume-source-badge{
  border:1px solid var(--rt-line)!important;
  border-radius:999px!important;
  background:#f4f1ed!important;
  color:#766f67!important;
  font-family:var(--rt-ui)!important;
  font-size:.66rem!important;
  font-weight:600!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.terton-chip,.tag-pill{padding:5px 9px!important}
.material-placeholder{border:1px dashed #c8c0b6!important;border-radius:var(--rt-radius-sm)!important;background:#f6f3ef!important}

/* Study pages */
.study-page{max-width:1080px!important}
.study-intro{max-width:840px!important;font-size:1.16rem!important;line-height:1.73!important;color:#262320!important}
.study-toc{
  max-width:880px!important;
  margin:30px 0 54px!important;
  padding:18px 20px!important;
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius-sm)!important;
  background:rgba(255,255,255,.7)!important;
}
.study-toc>strong{
  display:block!important;
  margin-bottom:10px!important;
  color:#89827a!important;
  font-family:var(--rt-ui)!important;
  font-size:.66rem!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
.study-toc-links{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
.study-toc button{
  margin:0!important;
  padding:6px 9px!important;
  border:0!important;
  border-radius:7px!important;
  background:#f1efeb!important;
  color:#4d4843!important;
  font-family:var(--rt-ui)!important;
  font-size:.7rem!important;
  line-height:1.3!important;
  transform:none!important;
}
.study-toc button:hover{background:#ebe6e1!important;color:var(--rt-accent-deep)!important}
.study-sources{
  max-width:860px!important;
  margin-top:44px!important;
  padding-top:22px!important;
  border-top:1px solid var(--rt-line)!important;
  color:var(--rt-muted)!important;
  font-family:var(--rt-ui)!important;
  font-size:.76rem!important;
}
.study-sources strong{font-family:var(--rt-ui)!important;font-size:.7rem!important;text-transform:uppercase!important;letter-spacing:.1em!important;color:#827b73!important}
.study-sources li{font-family:var(--rt-ui)!important;font-size:.76rem!important;line-height:1.55!important}
.vocab-table{border-collapse:separate!important;border-spacing:0!important;width:100%!important;border:1px solid var(--rt-line)!important;border-radius:var(--rt-radius-sm)!important;overflow:hidden!important;background:#fff!important}
.vocab-table th,.vocab-table td{padding:11px 13px!important;border:0!important;border-bottom:1px solid var(--rt-line)!important;vertical-align:top!important}
.vocab-table tr:last-child td{border-bottom:0!important}
.vocab-table th{background:#f6f4f1!important;color:#736d66!important;font-family:var(--rt-ui)!important;font-size:.69rem!important;letter-spacing:.07em!important;text-transform:uppercase!important}
.vocab-table td{font-size:.92rem!important;line-height:1.55!important}

/* Tables */
.classic-table,.lung-history-table,.volume-directory{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius-sm)!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:none!important;
}
.classic-table th,.classic-table td,.lung-history-table th,.lung-history-table td,.volume-directory th,.volume-directory td{
  padding:12px 14px!important;
  border:0!important;
  border-bottom:1px solid var(--rt-line)!important;
  text-align:left!important;
  vertical-align:top!important;
}
.classic-table tr:last-child td,.lung-history-table tr:last-child td,.volume-directory tr:last-child td{border-bottom:0!important}
.classic-table th,.lung-history-table th,.volume-directory th{
  background:#f6f4f1!important;
  color:#777069!important;
  font-family:var(--rt-ui)!important;
  font-size:.67rem!important;
  font-weight:650!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.classic-table button,.lung-history-table button,.volume-directory button{
  padding:0!important;border:0!important;background:none!important;color:var(--rt-accent)!important;font-family:inherit!important;text-decoration:none!important;box-shadow:none!important;transform:none!important
}

/* Forms and search */
input,select,textarea{
  min-height:42px!important;
  padding:10px 12px!important;
  border:1px solid var(--rt-line-strong)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--rt-ink)!important;
  font-family:var(--rt-ui)!important;
  font-size:.82rem!important;
  box-shadow:0 1px 0 rgba(255,255,255,.6)!important;
}
textarea{min-height:110px!important;resize:vertical!important}
input:focus,select:focus,textarea:focus{
  outline:none!important;
  border-color:#a88f91!important;
  box-shadow:0 0 0 3px rgba(120,45,61,.08)!important;
}
input::placeholder,textarea::placeholder{color:#aaa39a!important}

/* Transmission status */
.status-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  margin:22px 0!important;
  border:1px solid var(--rt-line)!important;
  border-radius:var(--rt-radius)!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:var(--rt-shadow-sm)!important;
}
.status-cell{min-height:112px!important;padding:18px!important;border-right:1px solid var(--rt-line)!important;background:#fff!important}
.status-cell:last-child{border-right:0!important}
.status-label{font-family:var(--rt-ui)!important;font-size:.65rem!important;font-weight:650!important;text-transform:uppercase!important;letter-spacing:.09em!important;color:#8b847c!important}
.status-value{font-family:var(--rt-serif)!important;font-size:1.28rem!important;color:var(--rt-ink)!important}
.status-title{font-family:var(--rt-ui)!important;font-size:.75rem!important;line-height:1.5!important;color:var(--rt-muted)!important}
.progress-bar{height:6px!important;border-radius:999px!important;background:#e9e4de!important;overflow:hidden!important}
.progress-bar>div{background:linear-gradient(90deg,var(--rt-accent),#a05b67)!important;border-radius:999px!important}

/* Modal */
.modal-backdrop{margin-left:0!important;background:rgba(25,22,20,.44)!important;backdrop-filter:blur(10px)!important}
.modal-backdrop>div,.modal-panel{
  border:1px solid rgba(255,255,255,.65)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 30px 90px rgba(27,23,20,.24)!important;
}

/* Lower modules and footer */
body>section:not(.modal-backdrop){
  padding:38px 72px!important;
  border-top:1px solid var(--rt-line)!important;
  background:#efede9!important;
}
footer{
  padding:34px 72px!important;
  border-top:1px solid var(--rt-line)!important;
  background:#ebe8e3!important;
  color:#7e7871!important;
  font-family:var(--rt-ui)!important;
  font-size:.72rem!important;
}
.footer-inner{max-width:1020px!important;margin:0 auto!important}
.footer-inner p{color:#7e7871!important;font-family:var(--rt-ui)!important;font-size:.72rem!important}
.footer-inner .tibetan-title{color:#5d5751!important;font-size:.9rem!important}

/* Desktop collapsed state */
body.nav-collapsed .tsadra-sidebar{transform:translateX(-100%)!important;visibility:hidden!important;pointer-events:none!important}
body.nav-collapsed>main,body.nav-collapsed>section:not(.modal-backdrop),body.nav-collapsed>footer{margin-left:0!important}
body.nav-collapsed .nav-toggle{left:18px!important}
body.nav-collapsed .page-content{padding-top:62px!important}

/* Accessibility */
:focus-visible{outline:2px solid rgba(120,45,61,.55)!important;outline-offset:3px!important}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Responsive */
@media(max-width:1050px){
  :root{--rt-sidebar:252px}
  .page-content{padding:54px 46px 82px!important}
  .classic-search-row{grid-template-columns:1fr 1fr!important}
  .classic-search-row button:last-child{grid-column:1/-1!important}
  body>section:not(.modal-backdrop),footer{padding-left:46px!important;padding-right:46px!important}
}
@media(max-width:900px){
  body>main,body>section:not(.modal-backdrop),body>footer{margin-left:0!important}
  .tsadra-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:min(88vw,320px)!important;
    height:100vh!important;
    padding:74px 20px 28px!important;
    display:block!important;
    border-right:1px solid var(--rt-line)!important;
    border-bottom:0!important;
    box-shadow:18px 0 55px rgba(28,24,21,.13)!important;
    transform:translateX(0)!important;
  }
  body.nav-collapsed .tsadra-sidebar{display:block!important;transform:translateX(-105%)!important;visibility:hidden!important}
  .tsadra-brand,.tsadra-sidebar-note{grid-column:auto!important}
  .nav-toggle,body:not(.nav-collapsed) .nav-toggle,body.nav-collapsed .nav-toggle{top:14px!important;left:14px!important}
  .page-content,body.nav-collapsed .page-content{padding:58px 24px 68px!important}
  .rtz-masthead{margin-bottom:48px!important;padding-bottom:30px!important}
  .classic-search-row{grid-template-columns:1fr!important}
  .classic-search-row button:last-child{grid-column:auto!important}
  .event-facts{grid-template-columns:1fr!important}
  .status-grid{grid-template-columns:1fr 1fr!important}
  .status-cell:nth-child(2){border-right:0!important}
  .status-cell:nth-child(-n+2){border-bottom:1px solid var(--rt-line)!important}
  body>section:not(.modal-backdrop),footer{padding:30px 24px!important}
}
@media(max-width:620px){
  html{font-size:16px!important}
  .page-content,body.nav-collapsed .page-content{padding:56px 18px 58px!important}
  .rtz-masthead h1,.page-content h1{font-size:clamp(2.55rem,14vw,3.7rem)!important}
  .rtz-tibetan{font-size:1.25rem!important;white-space:normal!important}
  .wiki-section,.page-content section{margin-bottom:48px!important}
  .status-grid{grid-template-columns:1fr!important}
  .status-cell{border-right:0!important;border-bottom:1px solid var(--rt-line)!important}
  .status-cell:last-child{border-bottom:0!important}
  .classic-table,.lung-history-table,.volume-directory,.vocab-table{display:block!important;overflow-x:auto!important;border-radius:10px!important}
  .study-toc-links{display:block!important}
  .study-toc button{display:block!important;width:100%!important;margin:6px 0!important;text-align:left!important}
}


/* Site-wide Jomolhari lockup — final typography override. */
html,body,body *,
button,input,select,textarea,option,
code,pre,kbd,samp,
.tibetan-title,.rtz-tibetan,.bo,.remote-library-title,
.vocab-table .bo,.activity-card .bo{
  font-family:"Jomolhari","Noto Serif Tibetan",serif!important;
}


/* October 2026 refinement — quiet editorial hierarchy, tracker redesign, streaming. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:rtPageOut .16s ease both}
::view-transition-new(root){animation:rtPageIn .28s ease .03s both}
@keyframes rtPageOut{to{opacity:.82;transform:translateY(-2px)}}
@keyframes rtPageIn{from{opacity:.72;transform:translateY(7px)}to{opacity:1;transform:none}}

html{font-size:16px!important}
.page-content{
  max-width:1320px!important;
  padding:46px 54px 82px!important;
}
body[data-page="home"] .page-content.active{max-width:1480px!important;padding-left:42px!important;padding-right:42px!important}
.page-content p,.page-content li,.page-content dd,.page-content td,.study-intro,.study-note,.tsadra-reference-box p{font-size:.96rem!important;line-height:1.72!important}
.wiki-breadcrumb{margin-bottom:24px!important;font-size:.67rem!important;letter-spacing:.055em!important}

.rtz-masthead,.minimal-page-header{
  max-width:980px!important;
  margin:0 0 42px!important;
  padding:0 0 25px!important;
  border:0!important;
  border-bottom:1px solid var(--rt-line)!important;
  text-align:left!important;
  background:transparent!important;
}
.rtz-masthead::after{width:44px!important;height:1px!important}
.rtz-tibetan{
  margin:0 0 8px!important;
  color:var(--rt-accent)!important;
  font-size:clamp(1.55rem,2vw,1.95rem)!important;
  line-height:1.62!important;
  letter-spacing:0!important;
}
.rtz-masthead h1,.page-content h1,.minimal-page-header h1{
  margin:0!important;
  color:var(--rt-ink)!important;
  font-size:clamp(1.9rem,3vw,2.8rem)!important;
  font-weight:500!important;
  letter-spacing:-.035em!important;
  line-height:1.06!important;
}
.rtz-place,.minimal-page-header>p{
  max-width:820px!important;
  margin:11px 0 0!important;
  color:var(--rt-muted)!important;
  font-size:.9rem!important;
  line-height:1.65!important;
}
.wiki-section,.page-content section{margin-bottom:44px!important}
.wiki-section h2,.page-content h2{
  margin:0 0 13px!important;
  color:var(--rt-ink)!important;
  font-size:clamp(1.18rem,1.6vw,1.45rem)!important;
  font-weight:600!important;
  letter-spacing:-.018em!important;
  line-height:1.18!important;
}
.page-content h3{margin:20px 0 8px!important;font-size:1.02rem!important;font-weight:650!important;letter-spacing:-.01em!important}
.page-content h4{font-size:.9rem!important;letter-spacing:.01em!important}
.study-intro{font-size:1rem!important}
.study-page{max-width:1180px!important}

/* Homepage uses more of the canvas. */
body[data-page="home"] .rtz-masthead{max-width:none!important;margin-bottom:42px!important}
body[data-page="home"] .wiki-section>p{max-width:980px!important}
body[data-page="home"] .classic-search-row{grid-template-columns:repeat(3,minmax(220px,1fr))!important;gap:12px!important}
body[data-page="home"] .classic-search-row button{min-height:140px!important;padding:20px 21px 42px!important}
body[data-page="home"] .classic-search-row strong{font-size:1rem!important}

/* Minimal page headers used by trackers, attending, streaming. */
.minimal-page-header{position:relative}
.minimal-page-header::after{content:"";position:absolute;left:0;bottom:-1px;width:44px;height:1px;background:var(--rt-accent)}
.tracker-header{margin-bottom:27px!important}
.tracker-header>p{max-width:900px!important;margin-left:0!important}
.tracker-editorial-note{color:#928b83!important;font-size:.8rem!important;max-width:880px!important}

/* Tracker summary is information, not a card row. */
.tracker-metrics{display:flex!important;flex-wrap:wrap!important;gap:0!important;margin:0 0 30px!important;padding:13px 0!important;border-top:1px solid var(--rt-line)!important;border-bottom:1px solid var(--rt-line)!important}
.tracker-metrics>div{min-width:150px!important;padding:5px 26px 5px 0!important;margin-right:26px!important;border-right:1px solid var(--rt-line)!important;background:none!important}
.tracker-metrics>div:last-child{border-right:0!important}
.tracker-metrics span{display:block!important;color:#918a82!important;font-size:.64rem!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.tracker-metrics strong{display:block!important;margin-top:2px!important;color:var(--rt-ink)!important;font-size:1.25rem!important;font-weight:500!important}
.tracker-metrics .progress-bar{width:100px!important;margin-top:5px!important}

.tracker-controls{margin:0 0 30px!important;padding:0 0 25px!important;border-bottom:1px solid var(--rt-line)!important}
.tracker-filter-grid{display:grid!important;grid-template-columns:minmax(280px,2fr) repeat(3,minmax(150px,1fr))!important;gap:9px!important}
.tracker-filter-footer{display:flex!important;align-items:center!important;gap:16px!important;margin-top:10px!important;color:var(--rt-muted)!important;font-size:.74rem!important}
.quiet-button{min-height:0!important;padding:7px 11px!important;border:1px solid var(--rt-line-strong)!important;border-radius:999px!important;background:transparent!important;color:var(--rt-accent)!important;font-size:.7rem!important;font-weight:600!important;line-height:1.2!important;box-shadow:none!important;transform:none!important}
.quiet-button:hover{background:#fff!important;border-color:#bcb3a9!important}

.tracker-layout{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;gap:32px!important;align-items:start!important}
.tracker-day-rail{position:sticky!important;top:28px!important;margin:0!important;padding:0 18px 0 0!important;border-right:1px solid var(--rt-line)!important;background:transparent!important}
.tracker-day-rail h2{margin:0 0 12px!important;font-size:.76rem!important;text-transform:uppercase!important;letter-spacing:.09em!important;color:#8b847c!important}
#tracker-day-index{display:grid!important;gap:2px!important;max-height:72vh!important;overflow:auto!important;padding-right:5px!important}
#tracker-day-index button{display:grid!important;gap:1px!important;width:100%!important;padding:9px 9px!important;border:0!important;border-radius:7px!important;background:transparent!important;text-align:left!important;color:var(--rt-ink)!important;box-shadow:none!important;transform:none!important}
#tracker-day-index button:hover{background:#efebe7!important}
#tracker-day-index button span{font-size:.6rem!important;color:#999189!important;text-transform:uppercase!important;letter-spacing:.08em!important}
#tracker-day-index button strong{font-size:.75rem!important;font-weight:600!important}
#tracker-day-index button em{font-size:.68rem!important;font-style:normal!important;color:#706a64!important;line-height:1.35!important}
#tracker-day-index button small{font-size:.61rem!important;color:#9b7460!important}
#tracker-results{display:grid!important;gap:0!important}
.empowerment-list-entry{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:16px!important;padding:17px 0!important;border-bottom:1px solid var(--rt-line)!important;background:transparent!important;transition:background .18s ease,padding .18s ease!important}
.empowerment-list-entry:first-child{border-top:1px solid var(--rt-line)!important}
.empowerment-list-entry:hover{background:rgba(255,255,255,.45)!important;padding-left:8px!important;padding-right:8px!important}
.empowerment-list-entry.is-received{opacity:.76!important}
.empowerment-open{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:12px!important;width:100%!important;padding:0!important;border:0!important;background:none!important;text-align:left!important;color:inherit!important;box-shadow:none!important;transform:none!important}
.empowerment-sequence{padding-top:1px!important;color:var(--rt-accent)!important;font-size:.9rem!important;font-weight:600!important}
.empowerment-copy{display:block!important;min-width:0!important}
.empowerment-date-line{display:block!important;margin-bottom:3px!important;color:#918a83!important;font-size:.64rem!important;letter-spacing:.045em!important;text-transform:uppercase!important}
.empowerment-copy>strong{display:block!important;color:var(--rt-ink)!important;font-size:.98rem!important;font-weight:600!important;line-height:1.42!important}
.empowerment-list-tibetan{display:block!important;margin-top:5px!important;color:#615a54!important;font-size:1rem!important;line-height:1.75!important}
.empowerment-list-tags{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin-top:8px!important}
.empowerment-list-entry>.received-btn{margin-top:4px!important;white-space:nowrap!important;background:transparent!important;box-shadow:none!important}
.empty-state{padding:18px 0!important;color:#8c857e!important;font-size:.8rem!important}

/* Day and empowerment entry overlays. */
.modal-backdrop{padding:32px!important;background:rgba(28,25,23,.35)!important;backdrop-filter:blur(10px)!important}
.day-modal-panel,.empowerment-entry-panel{width:min(920px,94vw)!important;max-height:90vh!important;overflow:auto!important;padding:28px 30px!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:16px!important;background:#fcfbf9!important;box-shadow:0 28px 90px rgba(28,23,20,.2)!important}
.empowerment-entry-panel{width:min(860px,94vw)!important}
.modal-minimal-header{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:20px!important;padding-bottom:18px!important;border-bottom:1px solid var(--rt-line)!important}
.modal-minimal-header>div>span{display:block!important;margin-bottom:4px!important;color:#8f8780!important;font-size:.67rem!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.modal-minimal-header h3{margin:0!important;color:var(--rt-ink)!important;font-size:1.3rem!important;font-weight:600!important;line-height:1.25!important}
.modal-minimal-header p{margin:5px 0 0!important;color:var(--rt-muted)!important;font-size:.75rem!important}
.modal-minimal-header>button{padding:0!important;border:0!important;background:none!important;color:#746d67!important;font-size:1.45rem!important;line-height:1!important;box-shadow:none!important;transform:none!important}
.day-theme-block{padding:15px 0 17px!important;border-bottom:1px solid var(--rt-line)!important}
#modal-generated-tags{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
#modal-generated-summary{max-width:760px!important;margin:9px 0 0!important;color:#6e6862!important;font-size:.79rem!important;line-height:1.6!important}
.day-empowerment-list{list-style:none!important;margin:0!important;padding:0!important}
.day-empowerment-list li{margin:0!important;border-bottom:1px solid var(--rt-line)!important}
.day-empowerment-list li>button{display:grid!important;grid-template-columns:34px 1fr!important;gap:11px!important;width:100%!important;padding:14px 0!important;border:0!important;background:transparent!important;text-align:left!important;color:inherit!important;box-shadow:none!important;transform:none!important}
.day-empowerment-list li>button:hover{padding-left:6px!important;background:rgba(255,255,255,.6)!important}
.day-empowerment-list li>button>span:first-child{color:var(--rt-accent)!important;font-size:.9rem!important;font-weight:600!important}
.day-empowerment-list strong{display:block!important;color:var(--rt-ink)!important;font-size:.94rem!important;line-height:1.42!important}
.day-empowerment-list em{display:block!important;margin-top:4px!important;color:#625b55!important;font-style:normal!important;font-size:.98rem!important;line-height:1.72!important}
.day-empowerment-list small{display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin-top:7px!important}
.day-editorial-details{margin:22px 0!important;padding:0!important;border-top:1px solid var(--rt-line)!important;border-bottom:1px solid var(--rt-line)!important}
.day-editorial-details summary{padding:11px 0!important;cursor:pointer!important;color:#716a64!important;font-size:.72rem!important;font-weight:600!important}
.day-editorial-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;padding:4px 0 13px!important}
.day-editorial-grid label{display:block!important;margin-bottom:5px!important;color:#888078!important;font-size:.65rem!important;text-transform:uppercase!important;letter-spacing:.07em!important}
.day-editorial-actions{display:flex!important;gap:8px!important;padding-bottom:13px!important}
.day-context-grid,.empowerment-detail-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:26px!important;margin-top:26px!important}
.day-context-grid h4,.empowerment-detail-grid h4{margin:0 0 10px!important;color:#827a73!important;font-size:.68rem!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.context-record{display:block!important;width:100%!important;margin:0!important;padding:11px 0!important;border:0!important;border-bottom:1px solid var(--rt-line)!important;background:transparent!important;text-align:left!important;color:inherit!important;box-shadow:none!important;transform:none!important}
.context-record:hover{background:rgba(255,255,255,.55)!important}
.context-record span{display:block!important;color:#948c84!important;font-size:.62rem!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.context-record strong{display:block!important;margin-top:3px!important;color:var(--rt-ink)!important;font-size:.82rem!important;line-height:1.4!important}
.context-record em{display:block!important;margin-top:4px!important;color:#675f59!important;font-size:.83rem!important;font-style:normal!important;line-height:1.6!important}
.context-record p{margin:5px 0 0!important;color:#746d66!important;font-size:.72rem!important;line-height:1.5!important}
.sacred-inline-note{margin:16px 0 0!important;color:#8b837c!important;font-size:.69rem!important;line-height:1.55!important}
.empowerment-entry-heading{display:grid!important;grid-template-columns:auto 1fr!important;gap:10px!important;align-items:start!important}
#empowerment-entry-number{color:var(--rt-accent)!important;font-size:1rem!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
.empowerment-entry-tibetan{padding:19px 0 14px!important;color:#4e4843!important;font-size:1.23rem!important;line-height:1.78!important}
.empowerment-tag-row{display:flex!important;flex-wrap:wrap!important;gap:5px!important;padding-bottom:18px!important;border-bottom:1px solid var(--rt-line)!important}
.empowerment-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border-bottom:1px solid var(--rt-line)!important}
.empowerment-meta>div{padding:13px 18px 13px 0!important}
.empowerment-meta span{display:block!important;color:#978f87!important;font-size:.61rem!important;text-transform:uppercase!important;letter-spacing:.07em!important}
.empowerment-meta strong{display:block!important;margin-top:3px!important;color:#4f4a45!important;font-size:.76rem!important;font-weight:550!important;line-height:1.45!important}
.empowerment-entry-actions{display:flex!important;gap:8px!important;margin-top:17px!important}

/* Attending and streaming are calm reference pages rather than promo cards. */
.attending-grid,.streaming-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:0 0 44px!important}
.attending-grid article,.streaming-grid article{padding:20px 0!important;border-top:1px solid var(--rt-line)!important;background:transparent!important}
.attending-grid h3,.streaming-grid h3{margin:0 0 8px!important;font-size:.92rem!important}
.attending-grid p,.streaming-grid p{margin:0 0 8px!important;color:#625c56!important;font-size:.84rem!important;line-height:1.62!important}
.stream-status{max-width:900px!important;margin:0 0 38px!important;padding:15px 18px!important;border:1px solid var(--rt-line)!important;border-radius:10px!important;background:rgba(255,255,255,.55)!important}
.stream-status>div{display:flex!important;align-items:center!important;gap:8px!important}
.stream-status strong{font-size:.82rem!important;font-weight:650!important}
.stream-status p{margin:7px 0 0!important;color:#6f6862!important;font-size:.78rem!important;line-height:1.58!important}
.stream-status-dot{width:7px!important;height:7px!important;border-radius:50%!important;background:#a97b58!important;box-shadow:0 0 0 4px rgba(169,123,88,.12)!important}
.stream-player-placeholder{max-width:900px!important;margin-top:17px!important;padding:34px!important;border:1px dashed #cfc7be!important;border-radius:12px!important;background:#f6f3ef!important;text-align:center!important}
.stream-player-placeholder span{display:block!important;margin-bottom:5px!important;color:#9a928a!important;font-size:.62rem!important;text-transform:uppercase!important;letter-spacing:.09em!important}
.stream-player-placeholder strong{display:block!important;color:#4d4843!important;font-size:.92rem!important;font-weight:600!important}
.stream-player-placeholder p{max-width:570px!important;margin:7px auto 0!important;color:#7e7770!important;font-size:.75rem!important}
.stream-source-note{padding-top:22px!important;border-top:1px solid var(--rt-line)!important}
.sacred-access-note{max-width:900px!important;padding-top:18px!important;border-top:1px solid var(--rt-line)!important;color:#7f7871!important}

/* Transmission tracker uses the same visual grammar as the empowerment tracker. */
.transmission-tracker-page .status-grid{margin-top:18px!important}
.transmission-tracker-page .wiki-section{max-width:1040px!important}

@media(max-width:1050px){
  .page-content{padding-left:38px!important;padding-right:38px!important}
  .tracker-filter-grid{grid-template-columns:1fr 1fr!important}
  .tracker-layout{grid-template-columns:180px minmax(0,1fr)!important;gap:22px!important}
}
@media(max-width:820px){
  .page-content,body[data-page="home"] .page-content.active{padding:54px 22px 66px!important}
  .tracker-layout{display:block!important}
  .tracker-day-rail{position:static!important;margin-bottom:24px!important;padding:0 0 18px!important;border-right:0!important;border-bottom:1px solid var(--rt-line)!important}
  #tracker-day-index{display:flex!important;gap:5px!important;max-height:none!important;overflow-x:auto!important;padding-bottom:4px!important}
  #tracker-day-index button{min-width:150px!important;border:1px solid var(--rt-line)!important}
  .tracker-filter-grid{grid-template-columns:1fr!important}
  .tracker-metrics>div{min-width:45%!important;margin:0!important;padding:8px 18px 8px 0!important;border-right:0!important}
  .attending-grid,.streaming-grid,.day-context-grid,.empowerment-detail-grid,.day-editorial-grid{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  .rtz-masthead h1,.page-content h1,.minimal-page-header h1{font-size:2rem!important}
  .rtz-tibetan{font-size:1.55rem!important;white-space:normal!important}
  .empowerment-list-entry{grid-template-columns:1fr!important}
  .empowerment-list-entry>.received-btn{margin-left:46px!important;justify-self:start!important}
  .modal-backdrop{padding:12px!important}
  .day-modal-panel,.empowerment-entry-panel{padding:21px 18px!important;max-height:94vh!important}
  .empowerment-meta{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}}

/* Final surface cleanup: headers sit directly on the page, never as white panels. */
.page-content header.rtz-masthead,
.page-content header.minimal-page-header,
.page-content .minimal-page-header{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
body>section:not(.modal-backdrop) button{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  color:var(--rt-accent)!important;
  text-align:left!important;
}
body>section:not(.modal-backdrop) ul{padding-left:0!important;list-style:none!important}
body>section:not(.modal-backdrop) li{margin:5px 0!important}
/* Tertön cross-links and landing records */
.empowerment-main{min-width:0!important}
.terton-inline-row{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;margin:8px 0 0 46px!important;font-size:.76rem!important;line-height:1.4!important;color:var(--rt-muted)!important}
.terton-inline-row>span:first-child{font-size:.62rem!important;text-transform:uppercase!important;letter-spacing:.09em!important;color:#8d857d!important}
.terton-inline-row>div{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
.terton-inline-link{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:3px 8px!important;border:1px solid var(--rt-line)!important;border-radius:999px!important;background:transparent!important;color:var(--rt-accent)!important;text-decoration:none!important;font-size:.76rem!important}
.terton-unresolved{color:#928a82!important;font-style:italic!important}.day-empowerment-list .terton-inline-row{margin:0 0 13px 45px!important}.terton-meta-links{display:flex!important;gap:5px!important;flex-wrap:wrap!important}.terton-context-card{padding:0 0 15px!important;margin:0 0 15px!important;border-bottom:1px solid var(--rt-line)!important}.terton-context-card:last-child{border-bottom:0!important}.terton-context-card .tibetan-title{font-size:1rem!important;color:var(--rt-accent)!important}.terton-context-card h5{margin:4px 0!important;font-size:.94rem!important}.terton-context-card p{margin:6px 0!important;font-size:.82rem!important}.terton-context-dates{font-size:.72rem!important;color:var(--rt-muted)!important}.terton-context-open{font-size:.76rem!important}
#page-tertons #terton-results{display:block!important}.terton-card{margin:0!important;border-top:1px solid var(--rt-line)!important;border-left:0!important;border-right:0!important;border-bottom:0!important;padding:18px 0!important}.terton-directory-head h3{margin:4px 0!important;font-size:1.05rem!important}.terton-directory-head .tibetan-title{font-size:1.05rem!important;color:var(--rt-accent)!important}.terton-directory-dates{font-size:.74rem!important;color:var(--rt-muted)!important}.terton-directory-counts{display:flex!important;gap:12px!important;flex-wrap:wrap!important;margin:10px 0!important;font-size:.74rem!important;color:var(--rt-muted)!important}.terton-record-link,.terton-back-link{font-size:.78rem!important;text-decoration:none!important}
.terton-detail-view{max-width:980px!important}.terton-detail-header{padding:0 0 24px!important;margin:0 0 22px!important;border-bottom:1px solid var(--rt-line)!important}.terton-detail-header h2{font-size:clamp(1.75rem,3vw,2.6rem)!important;margin:5px 0!important}.terton-detail-tibetan{font-size:1.45rem!important;color:var(--rt-accent)!important}.terton-detail-dates{font-size:.78rem!important;color:var(--rt-muted)!important}.terton-detail-summary,.terton-detail-connection{max-width:800px!important;font-size:.92rem!important}.terton-detail-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;border-top:1px solid var(--rt-line)!important;border-bottom:1px solid var(--rt-line)!important;margin:0 0 34px!important}.terton-detail-stats>div{padding:14px 14px 14px 0!important}.terton-detail-stats strong{display:block!important;font-size:1.3rem!important;color:var(--rt-accent)!important}.terton-detail-stats span{display:block!important;font-size:.68rem!important;color:var(--rt-muted)!important}.terton-detail-section{margin:0 0 42px!important}.terton-detail-section h3{font-size:1.05rem!important}.terton-scope-note,.terton-source-scope p{font-size:.82rem!important;color:var(--rt-muted)!important;max-width:800px!important}
.terton-transmission-list,.terton-catalog-list,.terton-lung-list{border-top:1px solid var(--rt-line)!important}.terton-transmission-list>a,.terton-catalog-list>article{display:block!important;padding:13px 0!important;border-bottom:1px solid var(--rt-line)!important;text-decoration:none!important}.terton-transmission-list>a>span,.terton-catalog-meta{display:block!important;font-size:.7rem!important;color:var(--rt-muted)!important}.terton-transmission-list>a>strong{display:block!important;color:var(--rt-ink)!important;font-size:.9rem!important}.terton-transmission-list>a>em{display:block!important;font-size:.96rem!important;font-style:normal!important}.terton-catalog-list h4{font-size:.9rem!important;margin:4px 0!important}.terton-catalog-actions{display:flex!important;gap:12px!important;flex-wrap:wrap!important;margin-top:7px!important;font-size:.74rem!important}.terton-lung-list>article{display:grid!important;grid-template-columns:130px 130px 1fr!important;gap:12px!important;padding:12px 0!important;border-bottom:1px solid var(--rt-line)!important;font-size:.78rem!important}.terton-cycle-list{display:flex!important;flex-wrap:wrap!important;gap:7px!important}.terton-cycle-list span{padding:5px 8px!important;border:1px solid var(--rt-line)!important;border-radius:999px!important;font-size:.74rem!important}
@media(max-width:780px){.terton-detail-stats{grid-template-columns:1fr 1fr!important}.terton-lung-list>article{grid-template-columns:1fr!important}}@media(max-width:520px){.terton-detail-stats{grid-template-columns:1fr!important}}

/* October 2026 — seamless editorial pass.
   Ordinary content now reads as one continuous scholarly surface. Borders are
   reserved for controls, tables, overlays, and true interaction boundaries. */
:root{
  --rt-bg:#f7f5f1;
  --rt-surface:#fbfaf7;
  --rt-line:#ded8d0;
  --rt-line-strong:#cbc3b8;
  --rt-shadow:none;
  --rt-shadow-sm:none;
}
body{
  background:linear-gradient(180deg,#faf8f4 0,#f7f5f1 48rem,#f7f5f1 100%)!important;
}
.page-content{
  max-width:1400px!important;
  padding:40px 46px 76px!important;
}
body[data-page="home"] .page-content.active{
  max-width:1540px!important;
  padding-left:32px!important;
  padding-right:32px!important;
}
.wiki-section,.page-content section{
  margin-bottom:40px!important;
}
.wiki-section>p,.study-page .wiki-section>p{
  max-width:900px!important;
}

/* Feature links should feel like an index, not a row of cards. */
.classic-search-row{
  gap:28px!important;
  margin-top:22px!important;
  border:0!important;
}
.classic-search-row button,
body[data-page="home"] .classic-search-row button{
  min-height:0!important;
  padding:14px 30px 18px 0!important;
  border:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.classic-search-row button::after{
  right:0!important;
  top:14px!important;
  bottom:auto!important;
  font-size:.8rem!important;
}
.classic-search-row button:hover{
  background:transparent!important;
  border-color:var(--rt-accent)!important;
  box-shadow:none!important;
  transform:none!important;
}
.classic-search-row strong{
  margin-bottom:5px!important;
}

/* Facts are grouped by rhythm and rules rather than bordered tiles. */
.event-facts{
  gap:0 30px!important;
  border:0!important;
  margin:20px 0 26px!important;
}
.event-facts>div{
  min-height:0!important;
  padding:11px 0 13px!important;
  border:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.event-facts dd{
  font-size:.92rem!important;
}

/* Generic content records become open editorial rows. */
.archive-grid,.grid{
  gap:26px 34px!important;
}
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,.protector-card,.lineage-node{
  border:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,.protector-card{
  padding:16px 0!important;
}
.archive-card:hover,.library-card:hover,.tantra-card:hover,.terton-card:hover,.soft-panel:hover,.protector-card:hover{
  background:transparent!important;
  border-color:#c8beb3!important;
  box-shadow:none!important;
  transform:none!important;
}
#tracker-results,#library-results,#terton-results,#learn-cards{
  background:transparent!important;
}
#tracker-results>*,#library-results>*,#terton-results>*{
  box-shadow:none!important;
}

/* Reference and study notes remain visibly distinct without becoming boxes. */
.tsadra-reference-box,.study-note{
  max-width:900px!important;
  margin:24px 0!important;
  padding:1px 0 1px 17px!important;
  border:0!important;
  border-left:2px solid #d1c7bc!important;
  border-radius:0!important;
  background:transparent!important;
}
.tsadra-reference-box{
  border-left-color:rgba(120,45,61,.42)!important;
}
.study-toc{
  max-width:920px!important;
  margin:24px 0 46px!important;
  padding:13px 0 15px!important;
  border:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.study-toc button{
  padding:5px 8px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.study-toc button:hover{
  background:transparent!important;
  color:var(--rt-accent)!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}

/* Summaries stay structured but visually belong to the page. */
.status-grid{
  gap:0!important;
  border:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.status-cell{
  min-height:88px!important;
  padding:14px 22px 14px 0!important;
  background:transparent!important;
  border-right:1px solid var(--rt-line)!important;
}
.status-cell:last-child{
  border-right:0!important;
}
.tracker-metrics{
  padding:10px 0!important;
  background:transparent!important;
}

/* Tables are allowed to remain tabular, but drop the enclosing card silhouette. */
.classic-table,.lung-history-table,.volume-directory,.vocab-table{
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.classic-table th,.lung-history-table th,.volume-directory th,.vocab-table th{
  background:rgba(238,234,228,.58)!important;
}

/* Streaming keeps only the actual player/access area bounded. */
.stream-status{
  padding:13px 0!important;
  border:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.stream-player-placeholder{
  border-radius:6px!important;
  background:rgba(245,242,237,.62)!important;
  box-shadow:none!important;
}
.attending-grid article,.streaming-grid article{
  padding:16px 0!important;
}

/* Tertön pages should read like archival records, not profile cards. */
.terton-card{
  padding:17px 0!important;
  border-top:1px solid var(--rt-line)!important;
}
.terton-detail-stats{
  background:transparent!important;
}
.terton-context-card{
  background:transparent!important;
}
.terton-cycle-list{
  gap:0!important;
}
.terton-cycle-list span{
  margin-right:10px!important;
  padding:2px 10px 2px 0!important;
  border:0!important;
  border-right:1px solid var(--rt-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.terton-cycle-list span:last-child{
  border-right:0!important;
}

/* Footer and lower information modules stay part of the same document surface. */
body>section:not(.modal-backdrop){
  background:transparent!important;
  border-top:1px solid var(--rt-line)!important;
  box-shadow:none!important;
}
footer{
  background:#f1eee9!important;
  box-shadow:none!important;
}

/* Keep real controls and overlays legible and intentionally bounded. */
input,select,textarea,
.classic-action,.received-btn,.quiet-button,.volume-tab,.tab-button,.cycle-tab,
.admin-actions button,.file-action{
  box-shadow:none!important;
}
.day-modal-panel,.empowerment-entry-panel,.modal-backdrop>div,.modal-panel{
  background:#fcfbf9!important;
}

/* Hover becomes a subtle change of tone instead of physical card motion. */
.empowerment-list-entry:hover,
.context-record:hover,
.day-empowerment-list li>button:hover{
  transform:none!important;
  box-shadow:none!important;
}

/* Small screens keep the same open-document logic. */
@media(max-width:820px){
  .page-content,body[data-page="home"] .page-content.active{
    padding-left:20px!important;
    padding-right:20px!important;
  }
  .classic-search-row{
    gap:16px!important;
  }
  .event-facts{
    grid-template-columns:1fr!important;
  }
  .status-grid{
    border-top:1px solid var(--rt-line)!important;
  }
  .status-cell{
    border-right:0!important;
    border-bottom:1px solid var(--rt-line)!important;
  }
  .status-cell:last-child{
    border-bottom:0!important;
  }
}



/* October 2026 — Japanese-inspired editorial palette and section rhythm.
   The visual language is intentionally quiet: warm paper, sumi ink, aizome-like
   indigo, muted vermilion, tea-brown and moss accents. Sections are separated
   by rules, rhythm and tonal shifts rather than card chrome. */
:root{
  --rt-bg:#f2eee4;
  --rt-surface:#f8f5ec;
  --rt-surface-2:#ece6d9;
  --rt-paper:#f4f0e6;
  --rt-ink:#27231f;
  --rt-muted:#736c63;
  --rt-line:#d7d0c3;
  --rt-line-strong:#bdb3a3;
  --rt-accent:#b6493f;
  --rt-accent-deep:#7f312d;
  --rt-indigo:#355564;
  --rt-indigo-deep:#27424d;
  --rt-moss:#66705b;
  --rt-tea:#8a704d;
  --rt-nezu:#8c857c;
  --rt-warm:#8a704d;
  --rt-teal:#4f6965;
}

html{background:var(--rt-bg)!important}
body{
  background:
    linear-gradient(180deg,#f7f3e9 0,#f2eee4 46rem,#f2eee4 100%)!important;
  color:var(--rt-ink)!important;
}
.tsadra-sidebar{
  background:rgba(246,242,232,.96)!important;
  border-right-color:var(--rt-line)!important;
}
.tsadra-brand{border-bottom-color:var(--rt-line)!important}
.tsadra-brand-tibetan{color:var(--rt-indigo)!important}
.tsadra-brand-title{color:var(--rt-ink)!important}
.tsadra-brand-place,.tsadra-sidebar-note{color:var(--rt-nezu)!important}

/* Navigation groups become visibly distinct without becoming separate boxes. */
.tsadra-nav-group{position:relative!important;padding-left:10px!important}
.tsadra-nav-group::before{
  content:"";
  position:absolute;
  left:0;top:2px;bottom:4px;
  width:2px;
  background:var(--rt-line-strong);
  opacity:.75;
}
.tsadra-nav-group:nth-of-type(1)::before{background:var(--rt-indigo)!important}
.tsadra-nav-group:nth-of-type(2)::before{background:var(--rt-accent)!important}
.tsadra-nav-group:nth-of-type(3)::before{background:var(--rt-moss)!important}
.tsadra-nav-group:nth-of-type(4)::before{background:var(--rt-tea)!important}
.tsadra-nav-group:nth-of-type(5)::before{background:var(--rt-nezu)!important}
.tsadra-nav-group>h2{
  color:#7b746b!important;
  letter-spacing:.11em!important;
}
.tsadra-nav-group a,.tsadra-nav-group button{border-radius:0!important}
.tsadra-nav-group a:hover,.tsadra-nav-group button:hover{
  background:rgba(53,85,100,.055)!important;
}
.tsadra-nav-group .nav-link.font-bold,
.tsadra-nav-group .nav-link.active,
.tsadra-nav-group .nav-link.text-\[\#74283D\]{
  background:rgba(53,85,100,.07)!important;
  color:var(--rt-indigo-deep)!important;
}
.tsadra-nav-group .nav-link.font-bold::before,
.tsadra-nav-group .nav-link.active::before,
.tsadra-nav-group .nav-link.text-\[\#74283D\]::before{
  background:var(--rt-accent)!important;
}

/* Tibetan text gets a calm indigo treatment for legibility. */
.rtz-tibetan,
.tibetan-title,
.remote-library-title,
.empowerment-list-tibetan,
.empowerment-entry-tibetan,
.terton-detail-tibetan{
  color:var(--rt-indigo-deep)!important;
}
.rtz-masthead::after,.minimal-page-header::after{background:var(--rt-accent)!important}
.page-content a,.source-link{color:var(--rt-indigo)!important}
.page-content a:hover{color:var(--rt-accent-deep)!important}

/* Section architecture: continuous page, unmistakable divisions. */
.wiki-section,
.page-content>section{
  position:relative!important;
  margin-bottom:46px!important;
  padding-top:30px!important;
  border-top:1px solid var(--rt-line)!important;
  background:transparent!important;
}
.wiki-section::before,
.page-content>section::before{
  content:"";
  position:absolute;
  left:0;top:-1px;
  width:46px;height:2px;
  background:var(--rt-indigo);
}
.page-content>section:nth-of-type(4n+1)::before,
.wiki-section:nth-of-type(4n+1)::before{background:var(--rt-indigo)!important}
.page-content>section:nth-of-type(4n+2)::before,
.wiki-section:nth-of-type(4n+2)::before{background:var(--rt-accent)!important}
.page-content>section:nth-of-type(4n+3)::before,
.wiki-section:nth-of-type(4n+3)::before{background:var(--rt-moss)!important}
.page-content>section:nth-of-type(4n+4)::before,
.wiki-section:nth-of-type(4n+4)::before{background:var(--rt-tea)!important}
.wiki-section h2,.page-content h2{
  color:var(--rt-ink)!important;
  margin-bottom:14px!important;
}
.page-content h3{color:#3d3934!important}

/* Remove decorative card chrome. Information remains grouped by rules and spacing. */
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,
.protector-card,.lineage-node,.study-toc,.tsadra-reference-box,.study-note,
.stream-status{
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,.protector-card{
  padding:16px 0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:0!important;
}
.archive-card:last-child,.library-card:last-child,.tantra-card:last-child,
.terton-card:last-child,.soft-panel:last-child,.protector-card:last-child{
  border-bottom:1px solid var(--rt-line)!important;
}
.archive-card:hover,.library-card:hover,.tantra-card:hover,.terton-card:hover,
.soft-panel:hover,.protector-card:hover{
  background:rgba(53,85,100,.035)!important;
  box-shadow:none!important;
  transform:none!important;
}
.study-toc,.tsadra-reference-box,.study-note,.stream-status{
  padding:16px 0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:1px solid var(--rt-line)!important;
}
.tsadra-reference-box{border-left:3px solid var(--rt-tea)!important;padding-left:16px!important}
.study-toc{margin-top:26px!important}

/* Compact factual groupings read like a catalog, not a dashboard. */
.event-facts{
  gap:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:1px solid var(--rt-line)!important;
}
.event-facts>div{
  min-height:0!important;
  padding:14px 22px 14px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.event-facts>div+div{border-left:1px solid var(--rt-line)!important;padding-left:22px!important}
.status-grid{
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  border-top:1px solid var(--rt-line)!important;
  border-bottom:1px solid var(--rt-line)!important;
  background:transparent!important;
  box-shadow:none!important;
}
.status-cell{background:transparent!important}

/* Tables keep structure but adopt the paper palette. */
.classic-table,.lung-history-table,.volume-directory,.vocab-table{
  border-color:var(--rt-line)!important;
  border-radius:0!important;
  background:rgba(248,245,236,.55)!important;
}
.classic-table th,.lung-history-table th,.volume-directory th,.vocab-table th{
  background:#e9e3d7!important;
  color:#615a52!important;
}

/* Small controls can retain a boundary; make them quieter and more Japanese-editorial. */
.classic-action,.received-btn,.tab-button,.cycle-tab,.volume-tab,
.admin-actions button,.file-action{
  border-color:var(--rt-line-strong)!important;
  border-radius:2px!important;
  background:rgba(248,245,236,.72)!important;
  color:var(--rt-indigo-deep)!important;
  box-shadow:none!important;
}
.tab-button.active,.cycle-tab.active,.volume-tab.active,
.received-btn[data-received="true"]{
  border-color:var(--rt-indigo-deep)!important;
  background:var(--rt-indigo-deep)!important;
  color:#f7f3e9!important;
}
.tag-pill,.terton-chip,.volume-source-badge{
  border-radius:2px!important;
  background:#e9e3d7!important;
  border-color:#d2c8b8!important;
  color:#6d6258!important;
}

/* Trackers and lineage pages gain subtle section colors without colored boxes. */
.tracker-metrics{border-color:var(--rt-line)!important}
.tracker-metrics>div:nth-child(1) strong{color:var(--rt-indigo-deep)!important}
.tracker-metrics>div:nth-child(2) strong{color:var(--rt-accent-deep)!important}
.tracker-metrics>div:nth-child(3) strong{color:var(--rt-moss)!important}
.tracker-metrics>div:nth-child(4) strong{color:var(--rt-tea)!important}
.empowerment-sequence,#empowerment-entry-number{color:var(--rt-accent)!important}
.terton-inline-link{border-radius:2px!important;color:var(--rt-indigo-deep)!important}
.terton-detail-stats strong{color:var(--rt-indigo-deep)!important}

/* Modal is one of the few intentional surfaces. */
.day-modal-panel,.empowerment-entry-panel,.modal-backdrop>div,.modal-panel{
  background:#f7f3e9!important;
  border-color:#d7d0c3!important;
  border-radius:4px!important;
}
.modal-backdrop{background:rgba(39,35,31,.42)!important}

/* Footer closes the document in a quiet sumi band. */
footer{
  background:#e8e1d4!important;
  border-top-color:#cfc5b6!important;
  color:#6d665e!important;
}
.footer-inner p{color:#6d665e!important}
.footer-inner .tibetan-title{color:var(--rt-indigo-deep)!important}

@media(max-width:820px){
  .event-facts>div+div{border-left:0!important;border-top:1px solid var(--rt-line)!important;padding-left:0!important}
  .wiki-section,.page-content>section{padding-top:24px!important;margin-bottom:38px!important}
}

/* October 2026 — responsive desktop/mobile optimization. */
/* The desktop and mobile layouts are intentionally different compositions.
   Desktop uses a broad archival canvas; mobile prioritizes one-column reading,
   touch targets and a compact off-canvas navigation. */

:root{
  --rt-reading: 900px;
  --rt-wide: 1480px;
}

/* Keep long English passages readable even when the page itself is wide. */
.page-content p,
.page-content li,
.page-content dd,
.page-content td{
  font-size:.98rem!important;
  line-height:1.68!important;
}
.study-intro{max-width:820px!important;font-size:1.04rem!important}
.wiki-section>p,
.study-page .wiki-section>p,
.page-content>section>p{
  max-width:var(--rt-reading)!important;
}

/* Minimal heading hierarchy: Tibetan remains legible, English stays restrained. */
.rtz-masthead,
.minimal-page-header{
  margin-bottom:34px!important;
  padding-bottom:22px!important;
}
.rtz-masthead h1,
.page-content h1,
.minimal-page-header h1{
  font-size:clamp(1.9rem,2.3vw,2.55rem)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  font-weight:500!important;
}
.rtz-tibetan,
.minimal-page-header .tibetan-title{
  font-size:clamp(1.45rem,1.9vw,1.9rem)!important;
  line-height:1.65!important;
  margin-bottom:7px!important;
}
.wiki-section h2,
.page-content h2{
  font-size:clamp(1.22rem,1.45vw,1.48rem)!important;
  line-height:1.22!important;
  margin-bottom:12px!important;
}
.page-content h3{
  font-size:1.02rem!important;
  line-height:1.35!important;
}
.page-content h4{font-size:.92rem!important}

/* Desktop: use the canvas instead of leaving large empty margins. */
@media(min-width:1281px){
  :root{--rt-sidebar:272px}
  .tsadra-sidebar{
    width:var(--rt-sidebar)!important;
    padding-left:20px!important;
    padding-right:20px!important;
  }
  .page-content{
    max-width:var(--rt-wide)!important;
    padding:38px 54px 82px!important;
  }
  body[data-page="home"] .page-content.active{
    max-width:1620px!important;
    padding-left:42px!important;
    padding-right:42px!important;
  }
  .study-page{max-width:1260px!important}
  .classic-search-row{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:34px!important;
  }
  .event-facts{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    max-width:1120px!important;
  }
  .tracker-layout{
    grid-template-columns:218px minmax(0,1fr)!important;
    gap:34px!important;
  }
  .tracker-day-rail{
    position:sticky!important;
    top:28px!important;
    align-self:start!important;
  }
  .tracker-filter-grid{
    grid-template-columns:minmax(300px,1.7fr) repeat(3,minmax(155px,.72fr))!important;
    gap:10px!important;
  }
  .tracker-entry-list{min-width:0!important}
  .empowerment-list-entry{
    grid-template-columns:minmax(0,1fr) auto!important;
    column-gap:26px!important;
  }
  .streaming-grid,
  .attending-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:30px!important;
  }
  .terton-detail-grid,
  .day-context-grid,
  .empowerment-detail-grid{
    gap:34px!important;
  }
}

/* Standard laptop / smaller desktop. */
@media(min-width:901px) and (max-width:1280px){
  :root{--rt-sidebar:248px}
  .tsadra-sidebar{
    width:var(--rt-sidebar)!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .page-content{
    max-width:1320px!important;
    padding:36px 34px 72px!important;
  }
  body[data-page="home"] .page-content.active{
    padding-left:28px!important;
    padding-right:28px!important;
  }
  .tracker-layout{
    grid-template-columns:188px minmax(0,1fr)!important;
    gap:24px!important;
  }
  .tracker-filter-grid{
    grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(130px,.8fr))!important;
    gap:9px!important;
  }
}

/* Tablet: retain two-column structures only where they remain genuinely useful. */
@media(min-width:701px) and (max-width:900px){
  html{font-size:16px!important}
  body>main,
  body>section:not(.modal-backdrop),
  body>footer{margin-left:0!important}
  .page-content,
  body[data-page="home"] .page-content.active{
    max-width:none!important;
    padding:68px 30px 66px!important;
  }
  .classic-search-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .classic-search-row button:last-child{grid-column:1/-1!important}
  .tracker-filter-grid{grid-template-columns:1fr 1fr!important}
  .tracker-layout{display:block!important}
  .tracker-day-rail{
    position:static!important;
    padding:0 0 16px!important;
    margin:0 0 24px!important;
    border-right:0!important;
    border-bottom:1px solid var(--rt-line)!important;
  }
  #tracker-day-index{
    display:flex!important;
    gap:7px!important;
    overflow-x:auto!important;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    padding:2px 0 9px!important;
  }
  #tracker-day-index button{
    min-width:158px!important;
    scroll-snap-align:start;
  }
  .streaming-grid,.attending-grid{grid-template-columns:1fr 1fr!important}
}

/* Mobile navigation becomes an off-canvas reading menu. */
@media(max-width:900px){
  body{overflow-x:hidden!important}
  .nav-toggle{
    top:12px!important;
    left:12px!important;
    min-height:42px!important;
    padding:9px 12px!important;
    border-radius:2px!important;
    background:rgba(247,243,233,.96)!important;
    backdrop-filter:blur(10px);
  }
  .tsadra-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:min(86vw,326px)!important;
    max-width:326px!important;
    height:100dvh!important;
    padding:68px 18px calc(28px + env(safe-area-inset-bottom))!important;
    background:rgba(247,243,233,.985)!important;
    border-right:1px solid var(--rt-line-strong)!important;
    box-shadow:18px 0 48px rgba(39,35,31,.16)!important;
    overflow-y:auto!important;
    z-index:80!important;
  }
  body.nav-collapsed .tsadra-sidebar{
    display:block!important;
    transform:translateX(-106%)!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body:not(.nav-collapsed) .tsadra-sidebar{
    display:block!important;
    transform:translateX(0)!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  body:not(.nav-collapsed)::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:69;
    background:rgba(39,35,31,.22);
    pointer-events:none;
  }
  .tsadra-nav-group a,
  .tsadra-nav-group button{
    min-height:42px!important;
    display:flex!important;
    align-items:center!important;
    font-size:.9rem!important;
  }
}

/* Phone: one continuous document, generous Tibetan, compact English. */
@media(max-width:700px){
  html{font-size:16px!important}
  .page-content,
  body[data-page="home"] .page-content.active,
  body.nav-collapsed .page-content{
    max-width:none!important;
    padding:66px 16px 52px!important;
  }
  .wiki-breadcrumb{
    margin-bottom:22px!important;
    font-size:.68rem!important;
    white-space:normal!important;
  }
  .rtz-masthead,
  .minimal-page-header{
    margin-bottom:28px!important;
    padding-bottom:18px!important;
  }
  .rtz-masthead h1,
  .page-content h1,
  .minimal-page-header h1{
    font-size:1.68rem!important;
    line-height:1.12!important;
    letter-spacing:-.018em!important;
  }
  .rtz-tibetan,
  .minimal-page-header .tibetan-title,
  .tibetan-title,
  .remote-library-title,
  .empowerment-list-tibetan,
  .empowerment-entry-tibetan,
  .terton-detail-tibetan{
    font-size:1.22rem!important;
    line-height:1.75!important;
    overflow-wrap:anywhere;
  }
  .rtz-tibetan{font-size:1.42rem!important}
  .rtz-place,.rtz-english-title{
    font-size:.86rem!important;
    line-height:1.5!important;
  }
  .page-content p,
  .page-content li,
  .page-content dd,
  .page-content td,
  .study-intro{
    font-size:.98rem!important;
    line-height:1.7!important;
  }
  .wiki-section,
  .page-content>section{
    margin-bottom:32px!important;
    padding-top:22px!important;
  }
  .wiki-section h2,
  .page-content h2{
    font-size:1.18rem!important;
    margin-bottom:10px!important;
  }
  .page-content h3{font-size:1rem!important}

  /* Home and general navigation links become a compact vertical index. */
  .classic-search-row{
    display:block!important;
    margin-top:14px!important;
  }
  .classic-search-row button,
  body[data-page="home"] .classic-search-row button{
    width:100%!important;
    min-height:0!important;
    padding:13px 24px 14px 0!important;
    border-top:1px solid var(--rt-line)!important;
  }
  .classic-search-row button:last-child{border-bottom:1px solid var(--rt-line)!important}
  .section-directory{
    display:flex!important;
    gap:7px 0!important;
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    padding-bottom:7px!important;
  }
  .section-directory>*{flex:0 0 auto!important}

  /* Facts and status read as stacked ledger rows. */
  .event-facts,
  .status-grid{
    display:block!important;
    margin:16px 0 22px!important;
  }
  .event-facts>div,
  .status-cell{
    padding:12px 0!important;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
    border-bottom:1px solid var(--rt-line)!important;
  }
  .event-facts>div:last-child,
  .status-cell:last-child{border-bottom:0!important}
  .event-facts dt{margin-bottom:3px!important}
  .status-cell{min-height:0!important}

  /* Filters are full-width and touch-friendly. */
  .tracker-controls{margin:18px 0 22px!important}
  .tracker-filter-grid{grid-template-columns:1fr!important;gap:9px!important}
  input,select,textarea{
    width:100%!important;
    min-height:46px!important;
    font-size:16px!important; /* prevents iOS zoom */
  }
  button,.classic-action,.quiet-button,.received-btn,.volume-tab,.tab-button,.cycle-tab{
    min-height:42px;
  }
  .tracker-filter-footer{
    align-items:flex-start!important;
    gap:10px!important;
    flex-direction:column!important;
  }
  .tracker-filter-footer .quiet-button{width:auto!important}

  /* Calendar becomes a swipeable day strip; entries stay single-column. */
  .tracker-layout{display:block!important}
  .tracker-day-rail{
    position:static!important;
    margin:0 0 22px!important;
    padding:0 0 14px!important;
    border-right:0!important;
    border-bottom:1px solid var(--rt-line)!important;
  }
  .tracker-day-rail h2{font-size:.8rem!important;margin-bottom:8px!important}
  #tracker-day-index{
    display:flex!important;
    gap:7px!important;
    max-height:none!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
    padding:2px 0 9px!important;
  }
  #tracker-day-index button{
    flex:0 0 145px!important;
    min-width:145px!important;
    scroll-snap-align:start;
    padding:10px 11px!important;
  }
  .empowerment-list-entry{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding:15px 0!important;
  }
  .empowerment-main{min-width:0!important}
  .empowerment-open{
    width:100%!important;
    min-width:0!important;
    text-align:left!important;
  }
  .empowerment-copy strong{
    font-size:1rem!important;
    line-height:1.45!important;
  }
  .empowerment-date-line{font-size:.69rem!important;line-height:1.4!important}
  .empowerment-list-tags{
    display:flex!important;
    gap:5px!important;
    flex-wrap:wrap!important;
  }
  .empowerment-list-entry>.received-btn{
    margin-left:38px!important;
    justify-self:start!important;
  }

  /* Tertön and catalog records avoid squeezed grids. */
  .terton-detail-stats,
  .streaming-grid,
  .attending-grid,
  .day-context-grid,
  .empowerment-detail-grid,
  .day-editorial-grid{
    grid-template-columns:1fr!important;
  }
  .terton-lung-list>article{grid-template-columns:1fr!important;gap:5px!important}
  .terton-cycle-list{display:block!important}
  .terton-cycle-list span{
    display:block!important;
    margin:0!important;
    padding:7px 0!important;
    border-right:0!important;
    border-bottom:1px solid var(--rt-line)!important;
  }

  /* Tables scroll locally rather than forcing the whole page wider. */
  .classic-table,
  .lung-history-table,
  .volume-directory,
  .vocab-table{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
    font-size:.86rem!important;
  }
  .classic-table th,.classic-table td,
  .lung-history-table th,.lung-history-table td,
  .volume-directory th,.volume-directory td,
  .vocab-table th,.vocab-table td{
    padding:9px 10px!important;
    min-width:110px;
  }

  /* Volume selector becomes a horizontal scroller instead of a wrapped wall. */
  #library-volume-tabs{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    gap:6px!important;
    padding:2px 0 9px!important;
    scroll-snap-type:x proximity;
  }
  .volume-tab{
    flex:0 0 auto!important;
    scroll-snap-align:start;
    white-space:nowrap!important;
  }

  /* Overlays fit phones without making the underlying page horizontally scroll. */
  .modal-backdrop{
    padding:8px!important;
    align-items:flex-start!important;
    overflow-y:auto!important;
  }
  .day-modal-panel,
  .empowerment-entry-panel,
  .modal-panel,
  .modal-backdrop>div{
    width:100%!important;
    max-width:none!important;
    margin:8px 0!important;
    padding:20px 16px!important;
    border-radius:3px!important;
  }
  .empowerment-meta{grid-template-columns:1fr!important}
  .stream-player-placeholder{padding:24px 15px!important}

  body>section:not(.modal-backdrop),
  footer{
    margin-left:0!important;
    padding:28px 16px!important;
  }
}

/* Very small phones. */
@media(max-width:390px){
  .page-content,
  body[data-page="home"] .page-content.active,
  body.nav-collapsed .page-content{
    padding-left:13px!important;
    padding-right:13px!important;
  }
  .rtz-masthead h1,
  .page-content h1,
  .minimal-page-header h1{font-size:1.52rem!important}
  .rtz-tibetan{font-size:1.32rem!important}
  #tracker-day-index button{
    flex-basis:132px!important;
    min-width:132px!important;
  }
}

/* Mouse/trackpad desktop affordances without making touch depend on hover. */
@media(hover:hover) and (pointer:fine){
  .page-content a,
  .classic-search-row button,
  .empowerment-open,
  .terton-inline-link{
    transition:color .16s ease,border-color .16s ease,background-color .16s ease!important;
  }
  .empowerment-list-entry:hover{
    background:rgba(53,85,100,.025)!important;
  }
}

/* October 2026 — whole-site alignment and performance pass.
   Final layout layer: one spacing grid, predictable row alignment,
   and lighter rendering for the large archival pages. */
:root{
  --rt-grid-gap:28px;
  --rt-grid-gap-sm:18px;
  --rt-row-pad:15px;
  --rt-control-h:44px;
  --rt-copy-measure:900px;
}
*,*::before,*::after{box-sizing:border-box!important}
.page-content,.page-content *{min-width:0}
.page-content>section,.wiki-section{width:100%}

/* Shared grid rhythm. */
.classic-search-row,
.event-facts,
.archive-grid,
.streaming-grid,
.attending-grid,
.terton-detail-grid,
.day-context-grid,
.empowerment-detail-grid,
.day-editorial-grid,
.terton-detail-stats,
.tracker-filter-grid{align-items:stretch!important}
.classic-search-row,
.archive-grid,
.streaming-grid,
.attending-grid,
.terton-detail-grid,
.day-context-grid,
.empowerment-detail-grid,
.day-editorial-grid{
  gap:var(--rt-grid-gap)!important;
  grid-auto-rows:1fr;
}
.classic-search-row>button,
.archive-grid>article,
.streaming-grid>article,
.attending-grid>article,
.terton-detail-grid>*,
.day-context-grid>*,
.empowerment-detail-grid>*,
.day-editorial-grid>*{
  height:100%!important;
  min-width:0!important;
}
.classic-search-row>button{
  display:grid!important;
  grid-template-rows:auto 1fr!important;
  align-content:start!important;
}
.classic-search-row strong,.classic-search-row span{align-self:start!important}

/* Fact and status rows share baselines. */
.event-facts{grid-auto-rows:1fr!important}
.event-facts>div{
  display:grid!important;
  grid-template-rows:auto 1fr!important;
  align-content:start!important;
}
.event-facts dt{min-height:1.35em}
.event-facts dd{align-self:start!important}
.status-grid{align-items:stretch!important}
.status-cell{
  display:grid!important;
  grid-template-rows:auto auto 1fr!important;
  align-content:start!important;
}
.status-label{min-height:1.3em}
.status-title{align-self:start!important}

/* Forms and filter rows stop jumping vertically. */
.tracker-filter-grid{align-items:end!important}
.tracker-filter-grid>*,.tracker-controls>*{min-width:0!important}
.tracker-filter-grid label,
.admin-grid label{
  display:grid!important;
  grid-template-rows:auto var(--rt-control-h)!important;
  align-content:end!important;
  gap:6px!important;
}
input,select{
  height:var(--rt-control-h)!important;
  min-height:var(--rt-control-h)!important;
  line-height:1.2!important;
}
textarea{line-height:1.55!important}
.tracker-filter-footer{min-height:44px!important}

/* Empowerment index alignment. */
.empowerment-list-entry{
  grid-template-columns:minmax(0,1fr) 122px!important;
  align-items:start!important;
  column-gap:24px!important;
}
.empowerment-open{align-items:start!important}
.empowerment-list-entry>.received-btn{
  width:122px!important;
  min-width:122px!important;
  justify-content:center!important;
  text-align:center!important;
  margin-top:1px!important;
}
.empowerment-copy,.empowerment-main{min-width:0!important}
.empowerment-list-tibetan,
.empowerment-entry-tibetan,
.remote-library-title,
.terton-detail-tibetan{overflow-wrap:anywhere}

/* Tertön landing records use repeatable columns. */
.terton-lung-list{display:grid!important;gap:0!important}
.terton-lung-list>article{
  display:grid!important;
  grid-template-columns:minmax(110px,.65fr) minmax(0,2.35fr) minmax(150px,.9fr)!important;
  align-items:start!important;
  gap:18px!important;
  padding:var(--rt-row-pad) 0!important;
}
.terton-lung-list>article>*{min-width:0!important}
.terton-cycle-list{align-items:stretch!important}

/* Library entries align metadata and text blocks. */
.library-card{
  display:grid!important;
  align-content:start!important;
  gap:7px!important;
}
.library-card>h4,
.library-card>.remote-library-title,
.library-card>p{margin-top:0!important;margin-bottom:0!important}
.volume-source-badge{width:max-content;max-width:100%!important}

/* Tabular information shares one cell rhythm. */
.classic-table,
.lung-history-table,
.volume-directory,
.vocab-table{
  width:100%!important;
  border-collapse:collapse!important;
}
.classic-table th,.classic-table td,
.lung-history-table th,.lung-history-table td,
.volume-directory th,.volume-directory td,
.vocab-table th,.vocab-table td{
  padding:11px 12px!important;
  vertical-align:top!important;
  line-height:1.5!important;
  overflow-wrap:anywhere;
}
.volume-directory{table-layout:fixed!important}
.volume-directory th:nth-child(1),.volume-directory td:nth-child(1){width:18%}
.volume-directory th:nth-child(2),.volume-directory td:nth-child(2){width:25%}
.volume-directory th:nth-child(3),.volume-directory td:nth-child(3){width:57%}
.vocab-table{table-layout:fixed!important}
.vocab-table th:nth-child(1),.vocab-table td:nth-child(1){width:24%}
.vocab-table th:nth-child(2),.vocab-table td:nth-child(2){width:19%}
.vocab-table th:nth-child(3),.vocab-table td:nth-child(3){width:57%}

.wiki-section>p,
.study-page .wiki-section>p,
.page-content>section>p,
.study-intro{max-width:var(--rt-copy-measure)!important}

/* Rendering performance: less blur and transform work. */
.tsadra-sidebar,.nav-toggle{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.page-content.active{
  filter:none!important;
  transform:none!important;
  animation:rtQuickFade .16s ease-out both!important;
}
@keyframes rtQuickFade{from{opacity:.72}to{opacity:1}}
::view-transition-old(root){animation:rtVtOut .10s ease both!important}
::view-transition-new(root){animation:rtVtIn .18s ease both!important}
@keyframes rtVtOut{to{opacity:.88}}
@keyframes rtVtIn{from{opacity:.78}to{opacity:1}}
.soft-panel,.tantra-card,.terton-card,.lineage-node{animation-duration:.22s!important}
.archive-card,.library-card,.tantra-card,.terton-card,.soft-panel,.protector-card,
.classic-search-row button,.empowerment-list-entry{transition-duration:.12s!important}

/* Skip layout/paint below the fold on large archival pages. */
.wiki-section:not(:first-of-type),
.library-card,
.terton-card,
.empowerment-list-entry{
  content-visibility:auto;
  contain-intrinsic-size:auto 220px;
}
img{max-width:100%;height:auto}

/* Desktop alignment. */
@media(min-width:1281px){
  .classic-search-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .streaming-grid,.attending-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .archive-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important}
  .terton-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(min-width:901px) and (max-width:1280px){
  :root{--rt-grid-gap:22px}
  .classic-search-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .streaming-grid,.attending-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Tablet and mobile alignment. */
@media(max-width:900px){
  :root{--rt-grid-gap:18px}
  .classic-search-row,
  .archive-grid,
  .streaming-grid,
  .attending-grid,
  .terton-detail-grid,
  .day-context-grid,
  .empowerment-detail-grid,
  .day-editorial-grid,
  .terton-detail-stats{grid-template-columns:1fr!important}
  .tracker-filter-grid label,
  .admin-grid label{grid-template-rows:auto var(--rt-control-h)!important}
  .terton-lung-list>article{grid-template-columns:1fr!important;gap:5px!important}
}
@media(max-width:700px){
  :root{--rt-grid-gap:14px;--rt-row-pad:13px}
  .empowerment-list-entry{grid-template-columns:1fr!important;gap:8px!important}
  .empowerment-list-entry>.received-btn{
    width:auto!important;
    min-width:0!important;
    margin-left:38px!important;
  }
  .classic-table,.lung-history-table,.volume-directory,.vocab-table{table-layout:auto!important}
  .volume-directory th,.volume-directory td,
  .vocab-table th,.vocab-table td{width:auto!important}
  .wiki-section:not(:first-of-type),
  .library-card,.terton-card,.empowerment-list-entry{contain-intrinsic-size:auto 180px}
}


/* Home contact / preparation strip — deliberately left-aligned with the reading column. */
.home-contact-strip{
  margin-left:var(--rt-sidebar)!important;
  padding:38px 72px 46px!important;
  border-top:1px solid var(--rt-line)!important;
  background:#efede9!important;
  text-align:left!important;
}
.home-contact-grid{
  width:min(100%,1160px);
  margin:0 auto!important;
  display:grid;
  grid-template-columns:minmax(220px,.9fr) minmax(250px,1fr) minmax(280px,1.2fr);
  gap:clamp(34px,5vw,72px);
  align-items:start;
}
.home-contact-column{
  min-width:0;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
  background:transparent!important;
}
.home-contact-column h2{
  margin:0 0 16px!important;
  padding:0 0 9px!important;
  border:0!important;
  border-bottom:1px solid var(--rt-line-strong)!important;
  color:var(--rt-accent-deep)!important;
  font-size:.72rem!important;
  font-weight:600!important;
  letter-spacing:.11em!important;
  line-height:1.35!important;
  text-transform:uppercase!important;
  text-align:left!important;
}
.home-contact-column p,
.home-contact-column address,
.home-contact-column a{
  margin:0!important;
  color:#514c46!important;
  font-size:.82rem!important;
  line-height:1.65!important;
  text-align:left!important;
}
.home-contact-details{
  display:grid;
  gap:3px;
}
.home-contact-details address{
  margin-top:8px!important;
  font-style:normal!important;
}
.home-contact-details strong{
  color:var(--rt-ink)!important;
  font-weight:600!important;
}
.home-contact-email{
  color:var(--rt-accent)!important;
  font-weight:600!important;
  text-decoration:none!important;
  overflow-wrap:anywhere;
}
.home-contact-email:hover{text-decoration:underline!important}
.home-contact-links{
  display:grid;
  gap:8px;
  justify-items:start;
}
.home-contact-links a{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  color:#514c46!important;
  font-weight:600!important;
  text-decoration:none!important;
}
.home-contact-links a::after{
  content:"↗";
  margin-left:7px;
  color:var(--rt-accent)!important;
  font-size:.8em;
}
.home-contact-links a:hover{color:var(--rt-accent)!important}
.home-support-column p{max-width:36rem}

body.nav-collapsed .home-contact-strip{margin-left:0!important}

@media(max-width:1050px){
  .home-contact-strip{padding:34px 46px 42px!important}
  .home-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 44px}
  .home-support-column{grid-column:1/-1}
}
@media(max-width:900px){
  .home-contact-strip,
  body.nav-collapsed .home-contact-strip{margin-left:0!important;padding:30px 24px 38px!important}
}
@media(max-width:620px){
  .home-contact-strip{padding:28px 18px 34px!important}
  .home-contact-grid{grid-template-columns:1fr;gap:30px}
  .home-support-column{grid-column:auto}
}


/* Complete Tsadra-backed Tertön Atlas */
.atlas-header{max-width:980px;margin:0 0 26px;padding:0 0 20px;border-bottom:1px solid var(--rt-line)}
.atlas-kicker{margin:0 0 7px;color:var(--rt-accent);font-size:.69rem;letter-spacing:.12em;text-transform:uppercase}
.atlas-header h1{font-size:clamp(1.72rem,2.45vw,2.45rem)!important;letter-spacing:-.025em!important;line-height:1.08!important}
.atlas-header p{max-width:880px!important;margin:12px 0 0!important;font-size:.94rem!important;color:var(--rt-muted)!important}
.terton-source-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 26px;border-top:1px solid var(--rt-line);border-bottom:1px solid var(--rt-line)}
.terton-source-strip>a{display:flex;align-items:baseline;gap:10px;min-width:0;padding:13px 16px;border-right:1px solid var(--rt-line);text-decoration:none!important}
.terton-source-strip>a:first-child{padding-left:0}.terton-source-strip>a:last-child{border-right:0}
.terton-source-strip strong{font-size:1.1rem;font-weight:500}.terton-source-strip span{font-size:.72rem;color:var(--rt-muted)}
.terton-atlas-tools{display:grid;grid-template-columns:minmax(280px,1fr) minmax(230px,.48fr) auto;gap:12px;align-items:end;margin:0 0 10px}
.terton-atlas-tools label{display:grid;gap:5px}.terton-atlas-tools label>span{font-size:.65rem;letter-spacing:.09em;text-transform:uppercase;color:var(--rt-muted)}
.terton-atlas-tools input,.terton-atlas-tools select{width:100%;min-width:0}
.terton-clear{min-height:42px;padding:9px 14px;border:1px solid var(--rt-line-strong);border-radius:8px;background:transparent;color:var(--rt-accent)}
.terton-atlas-summary{padding:10px 0 7px;border-bottom:1px solid var(--rt-line);font-size:.8rem;color:var(--rt-muted)}
.terton-method-note{max-width:920px!important;margin:10px 0 24px!important;font-size:.78rem!important;color:var(--rt-muted)!important}
.terton-atlas-list{border-top:1px solid var(--rt-line)}
.terton-atlas-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.42fr) auto;gap:18px;align-items:center;padding:14px 0;border-bottom:1px solid var(--rt-line)}
.terton-atlas-main{display:grid;grid-template-columns:minmax(160px,.55fr) minmax(180px,.65fr) minmax(0,1fr) auto;gap:10px 16px;align-items:baseline;text-decoration:none!important;min-width:0}
.terton-atlas-name{font-size:1rem;color:var(--rt-ink);font-weight:520}
.terton-atlas-wylie{font-size:.76rem;color:var(--rt-muted);overflow-wrap:anywhere}
.terton-atlas-tibetan{font-size:.93rem;color:var(--rt-ink)}
.terton-atlas-dates{font-size:.72rem;color:var(--rt-muted);white-space:nowrap}
.terton-atlas-meta{display:flex;flex-wrap:wrap;gap:5px 12px;font-size:.68rem;color:var(--rt-muted)}
.terton-atlas-meta span{white-space:nowrap}.terton-atlas-actions{display:flex;gap:10px;justify-content:flex-end;white-space:nowrap}
.terton-atlas-actions a{font-size:.72rem;text-decoration:none!important;color:var(--rt-accent)}
.terton-detail-header{max-width:920px;padding-bottom:20px;border-bottom:1px solid var(--rt-line)}
.terton-detail-header h2{font-size:clamp(1.8rem,2.8vw,2.7rem)!important;border:0!important;margin-bottom:5px!important}
.terton-source-name{font-size:.78rem!important;color:var(--rt-muted)!important}.terton-source-name span{font-style:italic}
.terton-source-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px}.terton-source-links a{font-size:.76rem;text-decoration:none!important}
.terton-full-source{border-top:1px solid var(--rt-line);padding-top:20px!important}
.terton-source-tibetan{font-size:1.08rem;margin-bottom:8px}.terton-source-intro{max-width:850px!important;font-size:.9rem!important}
.terton-source-subsection{margin-top:18px}.terton-source-subsection h4{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;color:var(--rt-muted)}
.terton-source-actions{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:16px}.terton-source-actions a{font-size:.78rem;text-decoration:none!important}
.terton-source-count,.terton-source-note,.terton-loading,.terton-empty{font-size:.76rem!important;color:var(--rt-muted)!important}
.terton-cycle-list a{display:inline-block;margin:0 8px 8px 0;padding:4px 8px;border-bottom:1px solid var(--rt-line);text-decoration:none!important;font-size:.75rem}
@media(max-width:1050px){
  .terton-atlas-row{grid-template-columns:minmax(0,1fr) auto}.terton-atlas-meta{grid-column:1}.terton-atlas-actions{grid-column:2;grid-row:1/3}
  .terton-atlas-main{grid-template-columns:minmax(150px,.6fr) minmax(160px,.65fr) minmax(0,1fr)}
  .terton-atlas-dates{grid-column:1}
}
@media(max-width:700px){
  .terton-source-strip{grid-template-columns:1fr}.terton-source-strip>a,.terton-source-strip>a:first-child{padding:10px 0;border-right:0;border-bottom:1px solid var(--rt-line)}.terton-source-strip>a:last-child{border-bottom:0}
  .terton-atlas-tools{grid-template-columns:1fr}.terton-clear{justify-self:start}
  .terton-atlas-row{grid-template-columns:1fr;gap:8px;padding:15px 0}.terton-atlas-actions{grid-column:1;grid-row:auto;justify-content:flex-start}.terton-atlas-meta{grid-column:1}
  .terton-atlas-main{grid-template-columns:1fr}.terton-atlas-name{font-size:1.04rem}.terton-atlas-tibetan{font-size:1rem}.terton-atlas-dates{grid-column:auto}
}


/* Tertön Atlas — source-linked works on each landing page */
.terton-detail-stats{
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
}
.terton-source-work-list{
  margin-top:10px;
  border-top:1px solid var(--rt-line);
}
.terton-source-work-list>a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:12px;
  align-items:baseline;
  padding:11px 0;
  border-bottom:1px solid var(--rt-line);
  color:var(--rt-ink)!important;
  text-decoration:none!important;
}
.terton-source-work-list>a>span{
  color:var(--rt-muted);
  font-size:.68rem;
  font-variant-numeric:tabular-nums;
}
.terton-source-work-list>a>strong{
  min-width:0;
  color:var(--rt-ink)!important;
  font-size:.84rem;
  font-weight:520;
  overflow-wrap:anywhere;
}
.terton-source-work-list>a>em{
  color:var(--rt-accent);
  font-size:.68rem;
  font-style:normal;
  white-space:nowrap;
}
.terton-source-work-list>a:hover>strong,
.terton-source-work-list>a:hover>em{
  color:var(--rt-accent)!important;
}
@media(max-width:700px){
  .terton-source-work-list>a{
    grid-template-columns:28px minmax(0,1fr);
    gap:8px 10px;
  }
  .terton-source-work-list>a>em{
    grid-column:2;
    white-space:normal;
  }
}


/* Complete Tertön ↔ text network */
.terton-source-work-list{display:grid;gap:0;border-top:1px solid var(--rt-line,#d8d2ca)}
.terton-source-work{display:grid;grid-template-columns:2.25rem minmax(0,1fr);gap:.75rem;padding:14px 0;border-bottom:1px solid var(--rt-line,#d8d2ca);align-items:start}
.terton-work-number{color:var(--rt-muted,#777);font-variant-numeric:tabular-nums}
.terton-work-meta{font-size:.72rem;letter-spacing:.04em;color:var(--rt-muted,#777);margin-bottom:.3rem}
.terton-work-title{display:block;font-size:1.08rem;line-height:1.7;text-decoration:none!important;color:var(--rt-ink,#222)!important}
.terton-work-title:hover{text-decoration:underline!important;text-underline-offset:3px}
.terton-work-wylie{font-size:.84rem;color:var(--rt-muted,#666);margin-top:.15rem}
.terton-work-actions,.source-text-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:.5rem;font-size:.78rem}
.library-terton-link,.terton-inline-link{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.library-revealer{display:inline}
.source-text-detail{max-width:900px;padding:8px 0 28px;border-top:1px solid var(--rt-line,#d8d2ca)}
.source-text-tibetan{font-size:1.55rem!important;line-height:1.75!important;margin:.8rem 0 .35rem!important}
.source-text-wylie{font-size:.92rem;color:var(--rt-muted,#666);margin:0 0 1.25rem}
.source-text-detail>p{margin:.55rem 0}
@media(max-width:640px){
  .terton-source-work{grid-template-columns:1.65rem minmax(0,1fr);gap:.45rem;padding:12px 0}
  .terton-work-title{font-size:1rem}
  .source-text-tibetan{font-size:1.3rem!important}
}

/* Tertön/text relationship labels */
.terton-work-relation{margin:.18rem 0 .35rem;color:var(--rt-accent-deep,#4f1b28);font-size:.78rem;line-height:1.4}


/* Rinchen Terdzö companion landing page - November 2026 event */
:root{--rt-accent:#8a3540;--rt-accent-deep:#612833;--rt-tibetan-red:#a13842}
body .tsadra-brand-tibetan,body .rtz-tibetan,body .tibetan-title,body .bo,body .rtz-tibetan,body .remote-library-title,body .empowerment-list-tibetan,body .empowerment-entry-tibetan,body .terton-detail-tibetan,body .terton-atlas-tibetan,body .terton-source-tibetan,body .source-text-tibetan{color:var(--rt-tibetan-red)!important}
body .footer-inner .tibetan-title{color:var(--rt-tibetan-red)!important}
body[data-page="home"]{background:linear-gradient(145deg,#faf7f0 0%,#f7f2e9 53%,#eeece6 100%)!important}
body[data-page="home"] #page-home.page-content{max-width:1490px!important;padding:36px clamp(16px,3vw,54px) 82px!important}
#page-home .rth-home{max-width:1300px;margin:auto}
#page-home .rth-home>section{margin:0 0 66px!important;padding:0!important;border:0!important}
#page-home .rth-hero{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(260px,.83fr);min-height:540px;overflow:hidden;border:1px solid #e1d1c4;border-radius:19px;background:linear-gradient(120deg,#fffaf1,#f7eddf 60%,#e4e8e0);box-shadow:0 18px 55px #553d3211}
#page-home .rth-hero-content{display:flex;flex-direction:column;justify-content:center;padding:clamp(32px,4.5vw,64px)}
#page-home .rth-eyebrow,#page-home .rth-kicker{margin:0 0 14px!important;color:#97454a!important;font-size:.7rem!important;font-weight:700!important;letter-spacing:.16em!important}
#page-home .rth-tibetan{margin:0 0 12px!important;color:#a13842!important;font-family:"Jomolhari","Noto Serif Tibetan",serif!important;font-size:clamp(1.4rem,2.2vw,2rem)!important;line-height:1.8!important}
#page-home .rth-hero h1{margin:0!important;font-size:clamp(2.5rem,4.3vw,4.55rem)!important;line-height:1.08!important;letter-spacing:-.034em!important;color:#342a27!important;font-weight:600!important}
#page-home .rth-hero h1 em{display:block;color:#813741!important;font-weight:400}
#page-home .rth-intro{max-width:670px;margin:24px 0!important;font-size:1.01rem!important;color:#594e48!important;line-height:1.73!important}
#page-home .rth-event{display:flex;flex-wrap:wrap;gap:16px 25px;padding:16px 0;border-top:1px solid #deccba;border-bottom:1px solid #deccba}
#page-home .rth-event>span{display:flex;flex-direction:column;gap:3px}
#page-home .rth-event strong{font-size:.81rem;color:#4d3d38}
#page-home .rth-event small{font-size:.67rem;color:#867266}
#page-home .rth-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:25px}
#page-home .rth-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:12px 17px;min-height:48px;border-radius:9px;border:1px solid #9d736c;font-weight:650;font-size:.82rem;line-height:1.3;text-decoration:none!important}
#page-home .rth-primary{background:#813540!important;border-color:#813540;color:#fffaf3!important}
#page-home .rth-primary:hover{background:#632833!important}
#page-home .rth-outline{background:#fffbf0b8;color:#813540!important}
#page-home .rth-outline:hover{background:#fff!important}
#page-home .rth-hero-art{display:flex;padding:30px;background:radial-gradient(circle,#fff8e57d,transparent 65%),linear-gradient(155deg,#a9546340,#67897b24);border-left:1px solid #8b5a5040}
#page-home .rth-art-frame{flex:1;display:flex;align-items:center;justify-content:space-between;flex-direction:column;padding:23px 14px;border:1px solid #97534b64;border-radius:160px 160px 16px 16px;text-align:center;color:#8d6957}
#page-home .rth-art-frame>span{font-size:.58rem;letter-spacing:.16em;font-weight:650}
#page-home .rth-art-frame>small{max-width:220px;font-size:.53rem;line-height:1.7;letter-spacing:.12em}
#page-home .rth-art-round{width:min(100%,300px);aspect-ratio:1;border:1px solid #995a5680;outline:1px solid #995a5638;outline-offset:10px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff8eb42}
#page-home .rth-art-round span{color:#ae765a;font-size:1.7rem}
#page-home .rth-art-round>div{font-family:"Jomolhari","Noto Serif Tibetan",serif!important;color:#a13842;font-size:clamp(1.7rem,2.4vw,2.5rem);line-height:1.75}
#page-home .rth-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 22px}
#page-home .rth-section-head>p{max-width:300px;margin:0!important;font-size:.78rem!important;color:#80716a!important}
#page-home .rth-section-head h2,#page-home .rth-guide h2,#page-home .rth-foundation h2{margin:0!important;padding:0!important;border:0!important;font-size:clamp(1.65rem,2.5vw,2.65rem)!important;color:#352d2a!important;letter-spacing:-.02em!important;line-height:1.17!important}
#page-home .rth-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
#page-home .rth-resource{display:flex;flex-direction:column;min-height:268px;padding:25px 25px 22px;border:1px solid #e1d3c7;border-radius:13px;background:#fffdfa;color:#382e2b!important;text-decoration:none!important;box-shadow:0 10px 29px #5d332008;transition:transform .2s,box-shadow .2s,border-color .2s}
#page-home .rth-resource:hover{transform:translateY(-3px);border-color:#b48277;box-shadow:0 16px 34px #5a302015}
#page-home .rth-resource-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;color:#9d5950;font-size:.7rem;font-weight:700;letter-spacing:.12em}
#page-home .rth-resource-top b{font-size:2rem;color:#aa785e;font-weight:400}
#page-home .rth-resource>strong{margin-bottom:12px;font-size:1.42rem;line-height:1.2;color:#352b2b}
#page-home .rth-resource>span:nth-child(3){color:#6c5d55;font-size:.83rem;line-height:1.7}
#page-home .rth-resource>em{display:flex;justify-content:space-between;gap:15px;margin-top:auto;padding-top:25px;font-size:.81rem;font-style:normal;font-weight:700;color:#873542}
#page-home .rth-small-note{margin:14px 0 0!important;font-size:.75rem!important;color:#887970!important}
#page-home .rth-guide{display:grid;grid-template-columns:1fr .84fr;gap:clamp(25px,7vw,100px);padding-top:35px!important;border-top:1px solid #dac9be!important}
#page-home .rth-guide>div>p:not(.rth-kicker),#page-home .rth-foundation>div>p:not(.rth-kicker){margin:18px 0!important;color:#63564f!important;font-size:.9rem!important;line-height:1.78!important}
#page-home .rth-inline-link{display:inline-block;padding-bottom:4px;border-bottom:1px solid #c3a19a;color:#823642!important;text-decoration:none!important;font-size:.82rem;font-weight:700}
#page-home .rth-guide-panel{padding:25px 29px;border:1px solid #e8d8c9;border-radius:12px;background:#f6efe5}
#page-home .rth-guide-panel h3{margin:0 0 16px!important;font-size:.86rem!important;color:#7c4247!important}
#page-home .rth-guide-panel>div{display:flex;align-items:start;gap:20px;padding:13px 0;border-top:1px solid #e3d4c6}
#page-home .rth-guide-panel b{font-size:.72rem;color:#b07865}
#page-home .rth-guide-panel p{display:flex;flex-direction:column;gap:3px;margin:0!important}
#page-home .rth-guide-panel strong{color:#3c302d;font-size:.86rem}
#page-home .rth-guide-panel small{color:#817064;font-size:.75rem}
#page-home .rth-foundation{display:grid;grid-template-columns:minmax(190px,.5fr) 1fr;gap:clamp(25px,5vw,75px);align-items:center;padding:40px 42px!important;border:1px solid #dbc7ba!important;border-radius:14px;background:linear-gradient(110deg,#efe3db,#faf4ea 70%,#efece6)!important}
#page-home .rth-foundation-identity{display:flex;align-items:center;justify-content:center;min-height:200px;border-right:1px solid #deccbf}
#page-home .rth-foundation-wordmark{display:flex;align-items:center;gap:15px;color:#853741}
#page-home .rth-foundation-sigil{display:grid;place-items:center;width:65px;height:65px;border:1px solid #995958;border-radius:50%;font-size:2.6rem}
#page-home .rth-foundation-wordmark b{font-size:1.12rem;line-height:1.18;letter-spacing:.05em}
#page-home .rth-foundation-wordmark small{display:block;margin-top:6px;font-size:.64rem;letter-spacing:.15em}
#page-home .rth-sources{border-top:1px solid #e0d0c4;padding-top:20px!important;font-size:.75rem!important;color:#83766c!important}
#page-home .rth-sources a{color:#893840}
@media(max-width:1000px){#page-home .rth-hero{grid-template-columns:1fr}#page-home .rth-hero-art{display:none}#page-home .rth-resource-grid{grid-template-columns:1fr}#page-home .rth-resource{min-height:175px}#page-home .rth-resource-top{margin-bottom:12px}#page-home .rth-resource>em{padding-top:16px}#page-home .rth-guide{grid-template-columns:1fr}#page-home .rth-section-head{align-items:start;flex-direction:column}}
@media(max-width:620px){body[data-page="home"] #page-home.page-content{padding:16px 15px 44px!important}#page-home .rth-home>section{margin-bottom:42px!important}#page-home .rth-hero{border-radius:13px;min-height:0}#page-home .rth-hero-content{padding:30px 23px}#page-home .rth-hero h1{font-size:clamp(2.25rem,9vw,3.15rem)!important}#page-home .rth-intro{font-size:.94rem!important}#page-home .rth-actions{flex-direction:column;align-items:stretch}#page-home .rth-button{text-align:center}#page-home .rth-foundation{grid-template-columns:1fr;gap:22px;padding:28px 24px!important}#page-home .rth-foundation-identity{min-height:0;justify-content:flex-start;padding-bottom:25px;border-right:0;border-bottom:1px solid #deccbf}}
@media(prefers-reduced-motion:reduce){#page-home .rth-resource:hover{transform:none}}

/* Supplied Vajrayana Foundation emblem replaces the temporary star/wordmark. */
#page-home .rth-foundation-logo-circle{width:min(100%,240px);aspect-ratio:1;border:1px solid #995958;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fffaf1 0%,#f3e7dc 100%);padding:19px;margin:0 auto}
/* Optical centering: the supplied emblem carries more visual weight in its lower half. */
#page-home .rth-foundation-logo-circle img{display:block;width:100%;height:100%;object-fit:contain;object-position:center center;align-self:center;justify-self:center;transform:translate(1%,-4%);filter:none}
@media(max-width:620px){#page-home .rth-foundation-logo-circle{width:180px;margin:0 auto}}


/* Responsive ergonomics and cross-browser resizing audit · October 2026
   Shared across all document routes. Data/source IDs are unchanged. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0}
.page-content,.page-content>section,.tracker-layout,.tracker-entry-list,
.tracker-filter-grid,.rth-home,.rth-resource-grid,.rth-hero-content,
.terton-detail-grid,.day-context-grid,.empowerment-detail-grid{min-width:0;max-width:100%}
.page-content :is(p,li,dd,a,button,strong,em,h1,h2,h3,h4){overflow-wrap:break-word}
.page-content :is(.tibetan-title,.bo,.rtz-tibetan,.empowerment-list-tibetan,.remote-library-title){
  overflow-wrap:anywhere;line-break:auto
}
/* WCAG-friendly interactive regions; visual treatment stays unchanged. */
:where(.nav-toggle,.tsadra-nav-group a,.tsadra-nav-group button,.received-btn,
 .quiet-button,.volume-tab,.tab-button,.cycle-tab,.classic-action,
 .empowerment-open,#tracker-day-index button,.rth-button,.rth-resource){
  min-height:44px!important
}
#page-home .rth-resource{min-height:268px!important}
:where(button,a,input,select,textarea):focus-visible{
  outline:3px solid #a34b50!important;
  outline-offset:3px!important
}
:where(button,.received-btn,.nav-toggle,.rth-button){touch-action:manipulation}
input,select,textarea,button{max-width:100%}
@media(max-width:900px){
  :root{--rt-control-h:48px}
  .nav-toggle,.tsadra-nav-group a,.tsadra-nav-group button{min-height:46px!important}
  .tracker-filter-grid input,.tracker-filter-grid select,
  #library-search,#terton-search,input[type="search"]{
    font-size:16px!important;min-height:48px!important
  }
  .tracker-filter-grid{min-width:0}
  .tracker-filter-grid>*{min-width:0!important;width:100%!important}
  .tsadra-sidebar{height:100vh!important;height:100dvh!important}
}
@media(max-width:700px){
  .page-content,.wiki-section,.tracker-layout,.tracker-entry-list{min-width:0}
  .empowerment-list-entry>.received-btn{min-height:44px!important}
  #tracker-day-index button,.volume-tab{min-height:46px!important}
  .empowerment-date-line,.empowerment-sequence{font-size:max(.78rem,12px)!important}
  .rth-resource{min-height:185px!important}
  #page-home .rth-resource{min-height:185px!important}
  .rth-actions>*{min-width:0}
  .rth-button{white-space:normal!important}
  .day-modal-panel,.empowerment-entry-panel,.modal-panel{
    max-height:calc(100vh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    overflow-y:auto!important
  }
}
@media(max-width:390px){
  #page-home .rth-hero h1{font-size:clamp(2rem,9vw,2.55rem)!important}
  .tracker-filter-grid,.empowerment-list-entry{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){
  .page-content.active{animation:none!important}
  ::view-transition-old(root),::view-transition-new(root){animation:none!important}
  #page-home .rth-resource{transition:none!important}
}

/* Progressive tracker rendering avoids hundreds of result cards on initial mobile load. */
.tracker-more{display:flex;justify-content:center;padding:20px 10px 24px;border-top:1px solid var(--rt-line)}
.tracker-more .tracker-more-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px!important;max-width:100%;padding:11px 22px!important;white-space:normal;text-align:center}

/* Hide research-only lineage panels for empowerments with no verified tertön. */
.empowerment-detail-grid > section[hidden],.day-context-grid > section[hidden]{display:none!important}


/* Global index search */
.rtz-search-result h4 a,.rtz-search-result h4 a:visited{color:#813540;text-decoration:underline;text-underline-offset:3px}
.rtz-search-result{min-width:0}
.rtz-search-more{text-align:center;margin:25px auto}
.rtz-search-more button{min-height:48px;border-radius:9px;background:#813540;color:white;padding:12px 26px;font-weight:650}
.rtz-connected-list{padding-left:1.4em;list-style:disc}
.rtz-connected-list li{padding:5px 0;overflow-wrap:anywhere}

/* Scholarly library and tertön folios: clearer hierarchy and calmer spacing. */
#page-library .library-card{padding:clamp(20px,2.4vw,32px)!important;border:1px solid #e8ded4!important;border-radius:14px!important;background:#fffdf9!important;box-shadow:0 8px 28px rgba(65,43,35,.045)!important;margin-bottom:14px!important}
#page-library .library-card:hover{border-color:#cbaea2!important;box-shadow:0 13px 30px rgba(65,43,35,.085)!important}
#page-library .library-card .library-english-title{font-size:clamp(1.04rem,1.4vw,1.28rem)!important;line-height:1.5!important;margin:.65rem 0!important}
#page-library .library-card .library-english-title a,#page-library .library-card .remote-library-title a{color:#713a40!important;text-decoration:none!important}
#page-library .library-card .library-english-title a:hover,#page-library .library-card .remote-library-title a:hover{text-decoration:underline!important;text-underline-offset:4px}
#page-library .library-card .volume-source-badge{letter-spacing:.06em;color:#8c7064}
#page-tertons .terton-detail-view{max-width:1050px;margin:auto;padding:clamp(24px,3.2vw,46px)!important;border:1px solid #e7d9cc;border-radius:19px;background:#fffdf9;box-shadow:0 18px 44px rgba(78,51,40,.065)}
#page-tertons .terton-detail-header{padding:clamp(18px,3vw,36px)!important;background:linear-gradient(115deg,#f7ede4,#fffaf4 75%)!important;border:1px solid #e8d8c8!important;border-radius:13px!important}
#page-tertons .terton-detail-header h2{font-size:clamp(2rem,3.7vw,3.5rem)!important;line-height:1.15!important;margin:.4rem 0 .8rem!important}
#page-tertons .terton-detail-tibetan{font-size:clamp(1.3rem,2.2vw,1.85rem)!important;line-height:1.8!important}
#page-tertons .terton-detail-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;gap:12px!important;margin:22px 0 30px!important}
#page-tertons .terton-detail-stats>div{border:1px solid #e7dcd1!important;border-radius:10px!important;padding:18px!important;background:#faf6f0!important}
#page-tertons .terton-detail-section{margin:25px 0!important;padding-top:22px!important;border-top:1px solid #e6ddd2!important}
#page-tertons .terton-detail-section h3{font-size:1.3rem!important;color:#663d40!important;margin-bottom:14px!important}
#page-tertons .terton-catalog-list article{padding:18px 0!important;border-bottom:1px solid #eee4db!important}
@media(max-width:680px){#page-tertons .terton-detail-view{padding:18px!important}#page-tertons .terton-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* Same scholarly record structure for Volumes 1–10 and Volumes 11–43. */
#page-library .rtz-unified-text-card{
  display:block!important;
  padding:clamp(22px,2.7vw,35px)!important;
  border:1px solid #e5d9cd!important;
  border-radius:15px!important;
  background:#fffdfa!important;
}
#page-library .rtz-unified-text-card .volume-source-badge{
  display:block!important;
  font-size:.72rem!important;
  letter-spacing:.055em!important;
  margin-bottom:14px!important;
  color:#8b6d61!important;
}
#page-library .rtz-unified-text-card .remote-library-title{
  margin:0 0 10px!important;
  font-family:"Jomolhari","Noto Serif Tibetan",serif!important;
  font-size:clamp(1.18rem,1.65vw,1.5rem)!important;
  line-height:1.95!important;
  overflow-wrap:anywhere!important;
}
#page-library .rtz-unified-text-card .library-english-title{
  font-size:clamp(1.08rem,1.6vw,1.34rem)!important;
  line-height:1.48!important;
  margin:9px 0 17px!important;
  letter-spacing:-.01em!important;
}
#page-library .rtz-unified-text-card .library-bibliography{
  border-top:1px solid #ece3da!important;
  padding-top:13px!important;
  display:grid!important;
  gap:7px!important;
}
#page-library .rtz-unified-text-card .bib-field{
  display:grid!important;
  grid-template-columns:minmax(106px,145px) minmax(0,1fr)!important;
  align-items:baseline!important;
  gap:5px 17px!important;
  margin:0!important;
  font-size:.86rem!important;
  line-height:1.75!important;
  color:#514944!important;
}
#page-library .rtz-unified-text-card .bib-field>strong{
  color:#786258!important;
  font-weight:650!important;
  white-space:nowrap!important;
}
#page-library .rtz-unified-text-card .bib-field a{
  color:#823e48!important;
  text-decoration:underline!important;
  text-decoration-color:#bd9da2!important;
  text-underline-offset:3px!important;
}
#page-library .rtz-unified-text-card .bib-field a:hover{text-decoration-color:currentColor!important}
#page-library .rtz-unified-text-card .bib-field .tibetan-title{line-height:1.7!important}
@media(max-width:620px){
  #page-library .rtz-unified-text-card .bib-field{display:block!important}
  #page-library .rtz-unified-text-card .bib-field>strong{display:block!important;margin-bottom:2px!important}
}

/* Editorial folio: clean hierarchy for large people/cycle/text networks. */
#page-tertons .terton-folio-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 26px}
#page-tertons .terton-folio-nav a{padding:10px 16px;border:1px solid #e3d4c7;border-radius:40px;background:#f8f2eb;color:#773e4a;font-weight:650;text-decoration:none;font-size:.87rem}
#page-tertons .terton-folio-nav a:hover{background:#eadfd5}
#page-tertons .terton-section-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.15em;color:#a16b50;font-weight:700;margin:0 0 10px}
#page-tertons .terton-folio-cycles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px;margin:20px 0 30px}
#page-tertons .terton-folio-cycles>a{display:block;padding:16px 20px;text-decoration:none;border:1px solid #e8dcd1;border-radius:12px;background:#fbf7f2;line-height:1.7;color:#713d47}
#page-tertons .terton-folio-cycles>a:hover{background:#f4eae0;border-color:#bd9d8b}
#page-tertons .terton-folio-cycles>a small{display:block;color:#917367;font-size:.72rem;letter-spacing:.04em;margin-bottom:4px}
#page-tertons .terton-folio-works{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;margin:26px 0}
#page-tertons .terton-folio-works>div{min-width:0}
#page-tertons .terton-folio-works h4{margin:0 0 14px;font-size:1.05rem;color:#633d42}
#page-tertons .terton-volume-group{border:1px solid #e5d9cc;border-radius:10px;margin-bottom:9px;overflow:hidden;background:white}
#page-tertons .terton-volume-group summary{cursor:pointer;display:flex;justify-content:space-between;gap:15px;padding:13px 17px;font-weight:650;color:#6d4346;background:#faf5ef;list-style:none}
#page-tertons .terton-volume-group summary:after{content:"+";margin-left:auto}
#page-tertons .terton-volume-group[open] summary:after{content:"−"}
#page-tertons .terton-volume-group summary span{color:#87756c;font-weight:400;font-size:.78rem}
#page-tertons .terton-volume-group ul{padding:13px 18px 16px 34px;margin:0;max-height:440px;overflow-y:auto}
#page-tertons .terton-volume-group li{margin-bottom:8px;line-height:1.55}
#page-tertons .terton-legacy-index{margin-top:24px;padding:14px 0;border-top:1px solid #ebdfd4}
#page-tertons .terton-legacy-index>summary{cursor:pointer;color:#784d4b;font-weight:650}
#page-tertons .terton-section-label[id]{scroll-margin-top:95px}
#page-tertons .terton-folio-section[id]{scroll-margin-top:95px}

/* Two-column volume directory and navigable Cycle Atlas relations. */
#page-library .volume-directory th:first-child,#page-library .volume-directory td:first-child{width:70%!important}
#page-library .volume-directory th:nth-child(2),#page-library .volume-directory td:nth-child(2){width:30%!important;text-align:right!important}
#page-library .volume-directory th:nth-child(n+3),#page-library .volume-directory td:nth-child(n+3){display:none!important}
#page-library .library-cycle-link{color:#77404a!important;text-decoration:underline!important;text-decoration-color:#bc9da0!important;text-underline-offset:3px;overflow-wrap:anywhere}
#page-library .library-cycle-link:hover{color:#562c3a!important;text-decoration-color:currentColor!important}
#page-library .library-cycle-link:focus-visible{outline:2px solid #925462;outline-offset:4px}


/* Text Library: stable search controls and independently expandable volume index. */
#page-library button.library-search-submit,
#page-library button.library-search-submit:hover,
#page-library button.library-search-submit:focus,
#page-library button.library-search-submit:active {
  background:#74283D!important;color:#fff!important;opacity:1!important;
  box-shadow:none!important;transform:none!important;filter:none!important;
  border-color:#74283D!important;transition:none!important;
}
#page-library .library-volumes-title{margin:32px 0 14px;color:#513438;font-size:1.25rem;font-weight:650}
#page-library .library-volume-accordion{margin-bottom:10px;border:1px solid #ddd2c7;border-radius:10px;background:#fffdfa;overflow:hidden}
#page-library .library-volume-accordion>summary{cursor:pointer;padding:16px 20px;font-weight:650;color:#60363b;display:list-item;list-style-position:inside}
#page-library .library-volume-accordion>summary:hover{background:#fffdfa}
#page-library .library-volume-count{font-weight:400;color:#806d63;font-size:.85rem;margin-left:10px}
#page-library .library-volume-content{padding:8px 20px 22px}
#page-library #library-results:not(:empty){margin-bottom:26px}
#page-library .library-volume-content .library-card{margin-bottom:14px}

/* Tertön atlas editorial layout: continuous paper, no white cards */
#page-tertons .terton-detail-view,
#page-tertons .terton-detail-header,
#page-tertons .terton-detail-section,
#page-tertons .terton-folio-cycles>a,
#page-tertons .terton-folio-works>div,
#page-tertons .terton-volume-group,
#page-tertons .terton-volume-group summary,
#page-tertons .terton-atlas-row,
#page-tertons .terton-source-strip,
#page-tertons .terton-source-strip>a,
#page-tertons .terton-detail-stats,
#page-tertons .terton-folio-nav,
#page-tertons .terton-folio-nav a,
#page-tertons .archive-card,
#page-tertons .terton-card {
 background:transparent!important;
 box-shadow:none!important;
 border-radius:0!important;
}
#page-tertons .terton-folio-cycles>a,
#page-tertons .terton-volume-group,
#page-tertons .terton-folio-nav a,
#page-tertons .terton-atlas-row,
#page-tertons .terton-card {
 border-left:0!important;border-right:0!important;border-top:0!important;
 border-bottom:1px solid var(--rt-line,#d7cdc0)!important;
}
#page-tertons .terton-folio-cycles>a:hover,
#page-tertons .terton-folio-nav a:hover,
#page-tertons .terton-volume-group summary:hover {background:transparent!important}
#page-tertons .terton-folio-nav a{padding:9px 0!important;margin-right:22px!important}
#page-tertons .terton-folio-section[id],
#page-tertons #terton-profile-lungs{scroll-margin-top:105px}
html{scroll-behavior:auto!important}

/* Revised edition: one bilingual catalogue line, then consistent narrative credits. */
#page-library .library-entry-title{font-size:clamp(1.04rem,1.35vw,1.27rem);font-weight:550;line-height:1.7;margin:.65rem 0 .85rem;overflow-wrap:anywhere}
#page-library .library-entry-title a{color:#713a40;text-decoration:none}
#page-library .library-entry-title a:hover{text-decoration:underline;text-underline-offset:4px}
#page-library .library-entry-title .remote-library-title{font-weight:530;font-size:1.12em}
#page-library .library-entry-title .library-english-title{font-size:1em!important;line-height:inherit!important;display:inline;margin:0!important}
#page-library .library-title-separator{color:#967b69;margin:0 .15em}
#page-library .library-entry-credit{display:block;margin:.25rem 0;line-height:1.85}
#page-library .library-credit-label{font-weight:450;color:#705b4b;font-style:italic}
#page-library .library-credit-tibetan{font-size:1.12em}
#page-library .library-entry-credit a{color:#713a40;text-underline-offset:3px}
#page-library .library-entry-credit .cycle-tibetan{font-size:1.08em}
#page-cycles .cycle-browser-tools{grid-template-columns:minmax(220px,1fr) minmax(140px,.27fr) auto}
#page-cycles .cycle-browser-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 14px}
#page-cycles .cycle-browser-actions button{border:1px solid var(--rt-line-strong,#cfbaa8);border-radius:8px;padding:9px 13px;color:var(--rt-accent,#74283D);background:transparent;cursor:pointer;font-size:.78rem}
#page-cycles .cycle-volume-directory{display:grid;gap:12px;margin-top:15px}
#page-cycles .cycle-volume-accordion{border:1px solid var(--rt-line-strong,#cfbaa8);border-radius:12px;background:#fffdf9;overflow:hidden}
#page-cycles .cycle-volume-accordion>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;font-weight:650;color:#74283D}
#page-cycles .cycle-volume-accordion>summary::-webkit-details-marker{display:none}
#page-cycles .cycle-volume-accordion>summary:before{content:'+';font-size:1.25rem;font-weight:400;line-height:1}
#page-cycles .cycle-volume-accordion[open]>summary:before{content:'−'}
#page-cycles .cycle-volume-accordion>summary span:first-child{margin-right:auto}
#page-cycles .cycle-volume-count{font-size:.77rem;font-weight:500;color:#776357;white-space:nowrap}
#page-cycles .cycle-volume-accordion>.terton-atlas-list{padding:0 18px 7px;border-top:1px solid var(--rt-line,#e1d5cb)}
#page-cycles .cycle-volume-accordion .terton-atlas-main{display:block;min-width:0}
#page-cycles .cycle-volume-accordion .terton-atlas-name{display:block;overflow-wrap:anywhere}
@media(max-width:760px){
 #page-cycles .cycle-browser-tools{grid-template-columns:1fr}
 #page-cycles .terton-atlas-row{grid-template-columns:minmax(0,1fr)}
 #page-cycles .cycle-volume-accordion>summary{padding:13px}
 #page-cycles .cycle-volume-accordion>.terton-atlas-list{padding:0 13px}
}

/* Tertön Atlas — uncomplicated directory and readable scholarly profiles. */
#page-tertons .terton-atlas-intro{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 20px!important;margin:0 0 22px!important}
#page-tertons .terton-atlas-intro h1{margin:0!important}
#page-tertons .terton-atlas-intro p{max-width:760px!important}
#page-tertons [hidden]{display:none!important}
#page-tertons .terton-directory-controls{grid-template-columns:minmax(240px,1fr) minmax(160px,210px) auto!important;margin:0 0 16px!important}
#page-tertons .terton-directory-list{border:0!important}
#page-tertons .terton-directory-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.55fr) auto;align-items:center;gap:18px;border-bottom:1px solid var(--rt-line);padding:18px 0}
#page-tertons .terton-directory-link{display:grid;gap:3px;min-width:0;text-decoration:none!important}
#page-tertons .terton-directory-name{font-weight:650;font-size:1.08rem;color:var(--rt-accent)}
#page-tertons .terton-directory-tibetan{font-size:1.07rem;color:var(--rt-ink)}
#page-tertons .terton-directory-bio{font-size:.78rem;color:var(--rt-muted);line-height:1.6;max-width:670px}
#page-tertons .terton-directory-counts{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:.72rem;color:var(--rt-muted)}
#page-tertons .terton-directory-open{white-space:nowrap;text-decoration:none!important;font-size:.78rem}
#page-tertons .terton-profile-simple{max-width:990px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#page-tertons .terton-profile-header{max-width:840px;border:0!important;margin:0 0 20px;padding:0!important;background:transparent!important}
#page-tertons .terton-profile-header h2{font-size:clamp(1.9rem,3vw,3rem)!important;margin:2px 0 6px!important}
#page-tertons .terton-profile-header .terton-detail-tibetan{margin:0!important;font-size:1.55rem!important}
#page-tertons .terton-profile-bio{font-size:.96rem!important;line-height:1.8!important;max-width:760px;margin:18px 0!important}
#page-tertons .terton-profile-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 40px;padding:0 0 22px;border-bottom:1px solid var(--rt-line)}
#page-tertons .terton-profile-shortcuts a{display:inline-flex;align-items:center;gap:10px;text-decoration:none!important;border:1px solid var(--rt-line-strong);background:transparent;border-radius:999px;padding:10px 16px;font-size:.8rem}
#page-tertons .terton-profile-shortcuts a:hover{background:#f6eee7}
#page-tertons .terton-profile-shortcuts strong{font-weight:700;color:var(--rt-accent)}
#page-tertons .terton-profile-section{margin:0 0 48px!important;padding:0!important;background:transparent!important;scroll-margin-top:30px}
#page-tertons .terton-profile-section-heading{display:flex;align-items:baseline;gap:14px;border-bottom:1px solid var(--rt-line);padding-bottom:10px}
#page-tertons .terton-profile-section-heading h3{font-size:1.35rem!important;margin:0!important}
#page-tertons .terton-profile-section-heading>span{font-size:.9rem;color:var(--rt-muted)}
#page-tertons .terton-section-intro{font-size:.81rem!important;color:var(--rt-muted)!important;margin:12px 0 20px!important}
#page-tertons .terton-revealed-cycles{list-style:none;padding:0;margin:0}
#page-tertons .terton-revealed-cycles li{border-bottom:1px solid var(--rt-line);margin:0!important}
#page-tertons .terton-revealed-cycles a{display:flex;justify-content:space-between;gap:18px;align-items:baseline;padding:15px 2px;text-decoration:none!important}
#page-tertons .terton-cycle-name{font-weight:550;min-width:0;overflow-wrap:anywhere}
#page-tertons .terton-cycle-name .cycle-tibetan{font-size:1.12em}
#page-tertons .terton-cycle-meta{font-size:.73rem;color:var(--rt-muted);white-space:nowrap}
#page-tertons .terton-volume-group{background:transparent;border:0;border-bottom:1px solid var(--rt-line);border-radius:0;margin:0}
#page-tertons .terton-volume-group summary{background:transparent!important;border:0;padding:14px 4px;align-items:center}
#page-tertons .terton-volume-group .terton-work-list{list-style:none;margin:0!important;padding:0 2px 12px!important;max-height:none;overflow:visible}
#page-tertons .terton-work-list li{border-top:1px solid var(--rt-line);margin:0!important}
#page-tertons .terton-work-list a{display:grid;gap:3px;padding:13px 3px;text-decoration:none!important}
#page-tertons .terton-work-number{font-size:.72rem;color:var(--rt-muted)}
#page-tertons .terton-work-tibetan{font-size:1.07rem;line-height:1.7}
#page-tertons .terton-work-english{font-size:.86rem;line-height:1.6;color:var(--rt-ink)}
#page-tertons .terton-empty{font-size:.84rem;color:var(--rt-muted);padding:14px 0}
@media(max-width:800px){
 #page-tertons .terton-directory-controls{grid-template-columns:1fr!important}
 #page-tertons .terton-directory-row{grid-template-columns:minmax(0,1fr);gap:8px}
 #page-tertons .terton-directory-open{justify-self:start}
 #page-tertons .terton-revealed-cycles a{display:grid;gap:3px}
 #page-tertons .terton-cycle-meta{white-space:normal}
}
