/* Printed folio, five chapter slips and an optional classroom exercise. */
.unit-main .quiz[hidden]{display:none!important}
[data-page="ritual"]{background:#f4f0e4}
[data-page="ritual"] .unit-main{max-width:1270px}
.album-index{display:flex;gap:clamp(4px,1vw,14px);align-items:end;margin-bottom:14px;border-bottom:1px solid #c5b897}
.album-index button{position:relative;flex:1;display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:transparent;padding:10px 4px 14px;border-bottom:3px solid transparent;color:#5e6857;font:700 clamp(16px,1.65vw,22px)/1.25 "KaiTi","SimSun",serif}
.album-index button[aria-pressed=true]{color:#863f2c;border-color:#a35339}
.album-index small{color:#956c4e;font-size:13px;font-weight:500}
.album-index i{font:600 12px/1 system-ui;color:#39705a;align-self:center}
.heritage-leaf{padding:clamp(18px,2.5vw,36px);background:#fffaf0;border:1px solid #d2c3a2;box-shadow:0 5px 18px #554b2b0c;display:grid;grid-template-columns:minmax(0,0.92fr) minmax(0,1.12fr);gap:clamp(22px,3.2vw,48px);align-items:center}
.heritage-plate{margin:0;min-width:0}
.heritage-plate img{width:100%;height:auto;display:block}
.heritage-plate figcaption{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;padding:10px 3px 0;font:14px/1.5 "SimSun",serif;color:#675c43}
.heritage-plate figcaption span{color:#726c5a}
.heritage-type header{border-bottom:1px solid #d8caaa;margin-bottom:17px}
.heritage-type .folk-seal{display:inline-block;padding:2px 8px;border:1px solid #a45744;color:#963f2e;font:700 16px/1.45 "KaiTi",serif;margin-right:10px}
.heritage-type header small{font-size:14px;color:#786f55}
.heritage-type header h2{font:700 clamp(25px,2.35vw,36px)/1.4 "STKaiti","KaiTi","SimSun",serif;margin:10px 0 16px}
.heritage-notes{margin:0}
.heritage-notes>div{display:grid;grid-template-columns:3em 1fr;column-gap:12px;padding:12px 0;border-bottom:1px solid #e6ddc8}
.heritage-notes>div:first-child{padding-top:0}
.heritage-notes>div:last-child{border-bottom:0;padding-bottom:0}
.heritage-notes dt{color:#406557;letter-spacing:.12em;font:700 16px/1.6 "KaiTi","SimSun",serif}
.heritage-notes dd{margin:0}
.heritage-notes strong{color:#543e2d;font-size:17px;line-height:1.55}
.heritage-notes p{margin:3px 0 0;color:#37463d;font-size:clamp(16px,1.1vw,18px);line-height:1.75}
.heritage-sources{margin-top:10px;color:#665e4e;font-size:14px;line-height:1.6}
.heritage-sources summary{width:fit-content;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.heritage-sources p{margin:5px 0 0}
.heritage-type .meaning-path{border-top:1px solid #ddd3b9;margin-top:16px;padding:12px 0 0;font-size:15px}
.album-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:12px 0;color:#706b59;font-size:14px}
.album-footer>div{display:flex;gap:8px}
.album-footer button,.practice-entry{padding:9px 16px;border:1px solid #ac9272;border-radius:5px;color:#4d4e3b;background:#fffbf1;font-size:15px;font-weight:650;cursor:pointer}
.album-footer button.primary-button{background:#803f31;color:#fff7e5;border-color:#803f31}
.practice-entry{margin:8px 0;color:#235447;background:#e8eee4;border-color:#a2bba6}
.unit-main .practice-entry:focus-visible,.album-footer button:focus-visible,.album-index button:focus-visible{outline:3px solid #377665;outline-offset:2px}
@media(max-width:760px){.heritage-leaf{grid-template-columns:1fr;gap:16px}.heritage-plate{max-width:420px;width:100%;margin:auto}.album-footer{flex-wrap:wrap}.album-index button{flex-direction:column;gap:3px}.album-index small{font-size:12px}.album-index i{position:absolute;right:6%;top:10px}.heritage-notes>div{grid-template-columns:2.4em 1fr;column-gap:8px}}

