﻿@import url('book-reader-content.css');
html{scroll-behavior:smooth;scroll-padding-top:24px}
.chapter-reader .evidence-card>summary{display:block;padding:16px 22px;border:1px solid #d9c9b138;border-radius:10px;background:#fffaf1;color:var(--ink);letter-spacing:normal;font-family:var(--sans);box-shadow:0 4px 18px #4934230c;transition:box-shadow .2s ease,background .2s ease}
.chapter-reader .evidence-card>summary::before{display:none}
.chapter-reader .evidence-card>summary:hover{background:#7229320d;border-left-color:#a5535b66;box-shadow:-5px 0 14px -6px #9b344b80,0 5px 18px #7229320c}
.chapter-reader .evidence-card>summary:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.chapter-reader .evidence-copy{display:grid;gap:4px;min-width:0}
.chapter-reader .evidence-title{font:500 16px/1.5 var(--sans);color:var(--red)}
.chapter-reader .evidence-hint{font:400 13px/1.6 var(--sans);color:var(--muted)}
@media(max-width:600px){.chapter-reader .evidence-card>summary{padding:14px 16px}}
@media(prefers-reduced-motion:reduce){.chapter-reader .evidence-card>summary{transition:none}}
.cover h1{font-size:clamp(48px,6.1vw,88px);white-space:nowrap}
@media(min-width:761px) and (max-width:1050px){.cover h1{font-size:clamp(43px,5.6vw,59px)}}
@media(max-width:480px){.cover h1{font-size:clamp(43px,12vw,57px)}}
.cover .intro{max-width:none;width:100%;font:400 14px/1.8 var(--sans);margin-bottom:14px}
.cover .hero-direction{color:var(--muted);max-width:none;width:100%;font:400 14px/1.8 var(--sans);margin:0 0 24px}
/* The original cover and two-column spread retain demo.css unchanged. */
.book-path-index .index-head h2{font-size:28px}
.book-path-index .index-note{font-size:10px;margin-bottom:20px}
.book-path-index{--path-stamp-width:120px;--path-stamp-height:92px}
.book-path-index{position:relative;overflow:hidden}
.book-path-plane{position:absolute;display:block;height:auto;max-width:none;object-fit:contain;pointer-events:none;user-select:none;z-index:1;filter:drop-shadow(3px 6px 4px #49342322) drop-shadow(10px 15px 12px #49342316)}
.book-path-plane{width:112px;left:8px;top:16px;transform:rotate(-17deg);transform-origin:center}
.book-path-window{position:absolute;left:2px;top:18px;width:130px;height:auto;pointer-events:none;object-fit:contain;object-position:left top}
.book-path-index .index-head,.book-path-index .index-note{margin-left:105px}
.book-path-index .index-head{align-items:flex-start;flex-wrap:wrap;gap:6px 14px}
.book-path-index .index-head h2{font-size:25px}
.book-path-index .route{height:744px;position:relative;isolation:isolate}
.book-path-index .route:before{display:none}
.book-path-index .route li{position:absolute;width:38%;height:144px;z-index:2}
.book-path-index .route li:nth-child(1){left:52%;top:0}
.book-path-index .route li:nth-child(2){left:4%;top:148px}
.book-path-index .route li:nth-child(3){left:60%;top:296px}
.book-path-index .route li:nth-child(4){left:8%;top:444px}
.book-path-index .route li:nth-child(5){left:60%;top:592px}
.book-path-index .route a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:0;border:0;text-align:center;height:100%}
.book-path-index .route img{width:var(--path-stamp-width);height:var(--path-stamp-height);object-fit:contain;flex-shrink:0}
.book-path-index .route img[src*="stamps-no-text"],.chapter-reader img[src*="stamps-no-text"]{mix-blend-mode:normal}
.book-path-index .route h3{font-size:17px;line-height:1.2;margin:0;max-width:160px;background:var(--paper);padding:2px 4px}
.book-path-index .route .num{position:absolute;top:-4px;left:calc(50% + var(--path-stamp-width)/2 - 10px);width:23px;height:23px;font-size:10px;z-index:2}
.book-path-index .book-career-line{position:absolute;pointer-events:none;overflow:visible;color:var(--red)}
.book-career-line path{stroke:currentColor;stroke-width:1.25;stroke-dasharray:7 6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.book-path-index .route-foot{font-size:8px;margin-top:10px}
.chapter-reader{padding:46px 0 20px;min-width:0;--surface:#f8f0df;--raised:#fbf5e9;--ink-soft:#6b584e;--ink-faint:#9a8672;--line-soft:#e4d6bd;--perf:#8a2822;--perf-deep:#5e1b16;--perf-soft:#f0ded9;--craft:#8a2822;--craft-deep:#5e1b16;--craft-soft:#f0ded9;--focus:#8a2822;--shadow:0 3px 15px #49342312}
.book-detail-heading{font:400 35px/1.2 var(--serif);color:var(--red);margin:0 0 35px}
.chapter-reader .reader-chapter{position:relative;display:grid!important;grid-template-columns:190px minmax(0,1fr);gap:36px;align-items:start;margin:0 0 58px;padding:0 0 82px;border:0;opacity:1;transform:none}
.chapter-reader .reader-chapter:not(:first-child){margin-top:8px}
.chapter-reader .reader-chapter::marker{content:""}
.chapter-reader .reader-chapter>.content{position:relative}
.chapter-reader .reader-chapter>.content::before,.chapter-reader .reader-chapter>.content::after{display:none}
.chapter-reader .reader-chapter::after{content:"";position:absolute;left:50%;right:auto;bottom:14px;width:min(720px,94%);height:44px;transform:translateX(-50%);background:url("assets/chapter-divider-line2.png") center/contain no-repeat;opacity:.78;pointer-events:none}
.chapter-reader .reader-chapter::before{display:none}
.chapter-reader .reader-chapter:last-child{margin-bottom:0}
.chapter-reader .reader-chapter:last-child::before,.chapter-reader .reader-chapter:last-child::after{display:none}
.chapter-reader .content{min-width:0}
.chapter-reader .headline-row{display:flex;align-items:flex-start;gap:23px}
.chapter-reader .headline-row h3{font:500 38px/1.18 var(--serif);color:var(--ink);scroll-margin-top:30px;letter-spacing:-.02em}
.chapter-reader .rail-stamp{width:104px;flex:0 0 104px;margin-top:0}
.chapter-reader .reader-chapter>.rail{position:static;border:0;padding:0;font:12px/1.8 var(--mono);color:var(--muted);min-width:0}
@media(min-width:761px){.chapter-reader .reader-chapter>.rail{position:sticky;top:24px;align-self:start}}
.chapter-reader .rail .track{display:flex;align-items:center;gap:8px;color:var(--red);font:500 11px/1.6 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.chapter-reader .rail .track:before{content:'';width:8px;height:8px;background:var(--red);border-radius:2px;flex-shrink:0}
.chapter-reader .railmeta{margin-top:18px;font:12px/1.85 var(--mono);color:var(--muted);overflow-wrap:anywhere}
.chapter-reader .chapter-kicker{margin-bottom:25px;padding-bottom:14px;align-items:center;flex-wrap:wrap;gap:10px 14px;font:600 16px/1.5 var(--sans);letter-spacing:0;text-transform:none;color:var(--ink)}
.chapter-reader .chapter-kicker .chnum{padding:0;border-radius:0;background:none;color:var(--red);font:400 13px/1.5 var(--sans);letter-spacing:.02em;text-transform:none}
.chapter-reader .chapter-kicker>span:not(.chnum){transition:transform .6s ease-out}
@media(prefers-reduced-motion:reduce){.chapter-reader .chapter-kicker>span:not(.chnum){transition:none}}
.chapter-reader .section-label{font:700 18px/1.45 var(--sans);letter-spacing:0;text-transform:none;color:var(--red);margin:28px 0 10px;padding-top:20px;border-top:1px solid var(--line)}
.chapter-reader .section-label:first-of-type{border-top:0;padding-top:0;margin-top:4px}
.chapter-reader .chapter-carry .carry-label{font:700 17px/1.5 var(--sans);letter-spacing:0;text-transform:none;color:var(--red)}
.chapter-reader .chapter-subtitle{font-size:16px;line-height:1.7;margin:18px 0 22px;color:var(--muted)}
.chapter-reader img,.chapter-reader video{max-width:100%;height:auto}
.chapter-reader .body,.chapter-reader dd,.chapter-reader .chapter-carry{font-size:17px;line-height:1.8}
.chapter-reader .pipe{max-width:100%;overflow-x:auto}
.chapter-reader .pipe-svg{min-width:550px}
.chapter-reader .result{flex-wrap:wrap}
.chapter-reader .sitegrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.chapter-reader .chapter-page{display:none}
@media(min-width:761px) and (max-width:1050px){.book-path-index .route h3{font-size:15px}.book-path-index{--path-stamp-width:100px;--path-stamp-height:77px}.book-path-index .index-head{display:block}.book-path-index .index-head h2{font-size:25px;margin-bottom:8px}}
@media(max-width:760px){.book-path-index .route{max-width:520px;margin-inline:auto}.chapter-reader .headline-row h3{font-size:28px}.chapter-reader .body,.chapter-reader dd,.chapter-reader .chapter-carry{font-size:14px}}
@media(max-width:480px){.book-path-index{overflow:hidden}.book-path-index .book-career-line{max-width:100%;overflow:hidden}.book-path-index .route h3{font-size:16px}.book-path-index .route li{width:42%}.book-path-index .route li:nth-child(3),.book-path-index .route li:nth-child(5){left:56%}.book-path-index .index-head{display:block}.book-path-index .index-head h2{margin-bottom:9px}.chapter-reader .headline-row{align-items:flex-start;gap:12px}.chapter-reader .headline-row h3{font-size:25px}.chapter-reader .rail-stamp{width:50px;flex-basis:50px}.chapter-reader .sitegrid,.chapter-reader .tvcase-breakdown{grid-template-columns:1fr}.book-detail-heading{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.book-path-index.path-reveal-ready .route li{opacity:0}
@media(prefers-reduced-motion:reduce){.book-path-index.path-reveal-ready .route li{opacity:1!important;transform:none!important}.book-career-line>path{mask:none!important}}

@media(max-width:480px){.book-path-index{--path-stamp-width:104px;--path-stamp-height:80px}}
@media(min-width:761px) and (max-width:1050px){
 .book-path-index .route li{width:46%}
 .book-path-index .route li:nth-child(odd){left:52%}
 .book-path-index .route li:nth-child(even){left:0}
 .book-path-index .route a{gap:5px}
 .book-path-index .index-note{margin-bottom:12px}
}
@media(min-width:761px) and (max-width:900px){.book-path-index .index-note{display:none}.book-path-index .index-head{margin-bottom:12px}.book-path-index .index-head h2{font-size:22px}}
@media(min-width:761px) and (max-width:1050px){.chapter-reader .reader-chapter{grid-template-columns:145px minmax(0,1fr);gap:25px}.chapter-reader .headline-row h3{font-size:31px}.chapter-reader .rail-stamp{width:85px;flex-basis:85px}.chapter-reader .body,.chapter-reader dd,.chapter-reader .chapter-carry{font-size:16px}}
@media(max-width:760px){.chapter-reader .reader-chapter{grid-template-columns:minmax(0,1fr);gap:20px}.chapter-reader .reader-chapter>.rail{padding-bottom:15px;border-bottom:1px solid var(--line)}.chapter-reader .railmeta{margin-top:8px;font-size:11px}.chapter-reader .railmeta br{display:none}.chapter-reader .railmeta br:after{content:' · '}.chapter-reader .headline-row h3{font-size:29px}.chapter-reader .rail-stamp{width:80px;flex-basis:80px}.chapter-reader .body,.chapter-reader dd,.chapter-reader .chapter-carry{font-size:15px}}
@media(max-width:480px){.chapter-reader .headline-row{gap:14px}.chapter-reader .headline-row h3{font-size:26px}.chapter-reader .rail-stamp{width:68px;flex-basis:68px}.chapter-reader .chapter-subtitle{font-size:14px}.chapter-reader .railmeta br{display:initial}}
.chapter-reader .headline-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;align-items:center;margin-bottom:22px}
.chapter-reader .headline-row .rail-stamp{width:100%;margin:0;align-self:center}
.chapter-reader .headline-copy{min-width:0}
.chapter-reader .headline-copy h3{margin:0;font:500 clamp(26px,2.3vw,32px)/1.18 var(--serif);letter-spacing:-.02em;text-wrap:balance}
.chapter-reader .headline-copy .chapter-subtitle{margin:8px 0 0;font-size:15px;font-weight:400;line-height:1.5;font-style:italic}
@media(min-width:761px) and (max-width:1050px){.chapter-reader .headline-row{grid-template-columns:120px minmax(0,1fr);gap:17px}}
@media(min-width:481px) and (max-width:760px){.chapter-reader .headline-row{grid-template-columns:120px minmax(0,1fr);gap:17px}}
@media(max-width:480px){.chapter-reader .headline-row{grid-template-columns:96px minmax(0,1fr);gap:12px 14px}.chapter-reader .headline-copy{display:block}.chapter-reader .headline-copy .chapter-subtitle{font-size:14px}}
@media(min-width:761px) and (max-width:1050px){.book-path-window{width:85px;top:25px}.book-path-index .index-head,.book-path-index .index-note{margin-left:65px}.book-path-index .index-head h2{font-size:20px}}
@media(max-width:760px){.book-path-window{width:105px;top:20px}.book-path-index .index-head,.book-path-index .index-note{margin-left:115px}}
@media(max-width:480px){.book-path-window{width:85px}.book-path-index .index-head,.book-path-index .index-note{margin-left:95px}.book-path-index .index-head h2{font-size:23px}}
/* The window overlaps the page seam like a raised paper illustration. */
.book-path-window{width:220px;max-width:none;left:-75px;top:-15px;z-index:3;transform:perspective(800px) rotateY(-9deg) rotateZ(-3deg);transform-origin:55% 65%;filter:drop-shadow(3px 6px 3px #49342323) drop-shadow(12px 18px 12px #49342319)}
.book-path-index .route li:nth-child(2){left:22%}
@media(min-width:761px) and (max-width:1050px){.book-path-window{width:170px;left:-62px;top:-8px}.book-path-index .route li:nth-child(2){left:22%}}
@media(max-width:760px){.book-path-window{width:180px;left:-20px;top:-12px}.book-path-index{padding-top:35px}.book-path-index .route li:nth-child(2){left:12%}}
@media(max-width:480px){.book-path-window{width:145px;left:-19px;top:-8px}.book-path-index .route li:nth-child(2){left:7%}}

@media(min-width:761px) and (max-width:1050px){.book-path-plane{width:92px;left:4px;top:18px}}
@media(max-width:760px){.book-path-plane{width:86px;left:6px;top:26px}}
@media(max-width:480px){.book-path-plane{width:68px;left:3px;top:36px}.book-path-index .book-career-line{z-index:1}.book-path-index .route li{z-index:2}}
