/* Shared ending cards; scene-specific styles are loaded with each chapter. */
.li-end-card{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;min-height:275px;padding:27px 32px;overflow:hidden;text-align:left;border:1px solid #c7a97188;background:#172e23;box-shadow:0 12px 35px #06190d50;color:#ebd6a4;transition:border-color .3s,transform .3s}
.li-end-card:before{content:'';position:absolute;inset:0;z-index:-2;background-size:cover;background-position:65% center;opacity:.64;transition:transform .8s}
.li-end-card:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0e241ce8,#10271b77 70%,#10271b22),linear-gradient(0deg,#0a201ce8,transparent 65%);border:1px solid #d0b27b28;outline:1px solid #d0b27b22;outline-offset:-8px}
.li-end-label{font-size:9px;letter-spacing:2px;color:#d8c89e}
.li-end-card b{font-family:KaiTi,STKaiti,serif;font-size:66px;font-weight:400;line-height:1.2;margin-top:22px;color:#edce8f;text-shadow:0 2px 12px #102519}
.li-end-card h2{font-family:KaiTi,STKaiti,serif;font-size:26px;font-weight:400;letter-spacing:5px;margin:10px 0 25px;color:#f0deb8}
.li-end-action{width:100%;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d4b77555;padding-top:15px;font-size:11px;letter-spacing:2px}.li-end-action i{font-style:normal;font-size:21px}
.li-end-card:hover,.li-end-card:focus-visible{border-color:#ebd09a;transform:translateY(-4px)}.li-end-card:hover:before{transform:scale(1.07)}
@media(max-width:760px){.li-end-card{min-height:174px;padding:21px 24px}.li-end-card b{position:absolute;right:22px;top:25px;margin:0;font-size:74px;opacity:.75}.li-end-card h2{font-size:24px;margin:21px 0 23px}.li-end-label{font-size:8px}.li-end-action{font-size:10px;padding-top:11px}}
@media(max-height:650px){.li-end-card{min-height:166px}}
@media(prefers-reduced-motion:reduce){.li-end-card,.li-end-card:before{transition:none}}

/* Keep the established compact header independent of the first chapter visited. */
.site-header,.is-li-flat .site-header{height:52px}
.site-header .brand{font-size:18px;gap:10px}
.site-header .brand small{margin-top:4px}
.site-header .brand-seal{width:25px;height:33px;font-size:13px}
.site-header .main-nav a{padding-block:8px}
@media(max-width:760px){.site-header,.is-li-flat .site-header{height:48px}.site-header .brand{font-size:16px;gap:8px}.site-header .brand-seal{width:22px;height:29px;font-size:12px}.site-header .brand small{font-size:5px;letter-spacing:.7px}.site-header .main-nav a{padding-block:10px}}

/* Captions shared by the rite and folk-life transitions. */
.chapter-bridge-copy[hidden]{display:none!important}
.chapter-bridge-copy{position:absolute;z-index:7;left:8%;bottom:17%;max-width:80%;margin:0;padding:12px 18px;border-left:1px solid #d3b77a88;background:linear-gradient(90deg,#10251bd9,#10251b00);font-family:SimSun,serif;font-size:18px;line-height:1.9;letter-spacing:2px;color:#f0dfbd;text-shadow:0 2px 12px #071b15;pointer-events:none}
@media(max-width:760px){.chapter-bridge-copy{left:7%;bottom:18%;font-size:15px;letter-spacing:1px;max-width:86%;padding:10px 12px}}
@media(max-width:760px) and (max-height:700px){.chapter-bridge-copy{bottom:14%;font-size:14px}}
