/* Result-only book view. Entry form, reading data, and purchase logic are untouched. */
body.reading-open{overflow:hidden}
body.reading-open .footer{display:none}
#reading.book-results{width:min(100% - 28px,920px);height:calc(100dvh - 76px);margin:0 auto;padding:0;max-width:none;overflow:hidden}
.book-reader{height:100%;min-height:0;display:flex;flex-direction:column;gap:0}
.book-toolbar{flex:none;min-height:57px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 3px}
.book-reader-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8d4f53;font:600 13px/1.5 var(--serif);letter-spacing:-.035em}
.book-toolbar-actions{display:flex;align-items:center;gap:5px;flex:none}
.book-toolbar-actions button,.book-dialog-head button{border:0;background:none;color:#795f5e;font-size:12px;font-weight:600;white-space:nowrap;padding:9px 8px;border-radius:3px}
.book-toolbar-actions button:hover,.book-dialog-head button:hover{background:#f2e8e4}
.book-toolbar button:focus-visible,.book-dialog button:focus-visible,.book-arrow:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.book-toolbar-actions button[hidden],.book-navigation[hidden]{display:none!important}
.book-stage{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:#fffdfa;border:1px solid #e7dcd4;border-radius:5px;box-shadow:0 13px 36px rgba(76,51,40,.09);-webkit-overflow-scrolling:touch;touch-action:pan-y}
.book-library{min-height:100%;padding:clamp(24px,4vw,42px) clamp(22px,5vw,56px);background:linear-gradient(150deg,#fffdfa 0%,#f9f2ed 100%)}
.book-library-intro{text-align:center;padding:10px 0 24px}
.book-library-intro h1{margin:9px 0 8px;font:600 clamp(25px,3.5vw,34px)/1.4 var(--serif);letter-spacing:-.045em}
.book-library-intro>p:last-child{margin:0;color:#806e68;font-size:13px}
.book-tier-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:520px;margin:0 auto 28px}
.book-tier-tabs button{min-height:47px;padding:10px 14px;border:1px solid #e4d5cd;border-radius:4px;background:#fffdfa;color:#7d6661;font-size:13px;font-weight:700}
.book-tier-tabs button[aria-selected="true"]{border-color:#b96e70;background:#f2e5e0;color:#773f43;box-shadow:inset 0 -2px #b96e70}
.book-tier-tabs button span{margin-left:4px;font:700 11px 'DM Sans',var(--sans)}
.book-tier-tabs button:focus-visible,.book-library-card:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.book-library-panel{max-width:740px;margin:auto}
.book-library-section-head{display:flex;align-items:baseline;gap:13px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #e4d5cd}
.book-library-section-head span{font:700 10px 'DM Sans',var(--sans);color:#a27070;letter-spacing:.11em}
.book-library-section-head h2{margin:0;font:600 19px var(--serif)}
.book-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.book-library-card{min-height:126px;padding:19px 21px;text-align:left;border:1px solid #e8dcd5;border-radius:4px;background:#fffdfa;color:#3d302e;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 5px 15px rgba(80,51,42,.03);transition:background .2s,border-color .2s,transform .2s}
.book-library-card:hover{background:#fbefea;border-color:#c99c98;transform:translateY(-2px)}
.book-library-card>span{font:700 10px 'DM Sans',var(--sans);color:#a15e63;letter-spacing:.13em}
.book-library-card strong{align-self:stretch;min-width:0;margin:9px 0 10px;font:600 16px/1.45 var(--serif);letter-spacing:-.045em;white-space:nowrap}
.book-library-card small{margin-top:auto;color:#806c66;font-size:12px}
.book-library-card small span{font-size:16px;vertical-align:-1px;margin-left:3px}
.book-sheet{min-height:100%;display:flex;flex-direction:column;position:relative;isolation:isolate;padding:26px clamp(27px,6vw,70px) 18px;overflow:hidden}
.book-sheet::before{content:'';position:absolute;inset:13px;z-index:-1;border:1px solid rgba(185,110,112,.12);pointer-events:none}
.book-cover{justify-content:center;align-items:center;text-align:center;background:radial-gradient(circle at 50% 36%,#fffaf3 0,#f7eee8 58%,#f1e3dc 100%)}
.book-cover-decoration{width:112px;height:112px;margin:auto auto 17px;border:1px solid #dcb9ad;border-radius:50%;display:grid;place-items:center;color:#a6696b;background:rgba(255,253,250,.42);box-shadow:0 0 0 9px rgba(255,253,250,.35),0 0 0 10px rgba(185,110,112,.13)}
.book-cover-decoration span{font:500 45px var(--serif);transform:translateY(-2px)}
.book-cover-copy{max-width:610px;margin:0 auto auto}
.book-overline{margin:0;color:var(--rose-dark);font:700 11px/1.5 'DM Sans',var(--sans);letter-spacing:.16em;text-transform:uppercase}
.book-cover h1{margin:22px auto 22px;font:600 clamp(25px,4.5vw,38px)/1.52 var(--serif);letter-spacing:-.045em;white-space:nowrap}
.book-cover-rule{display:block;width:52px;height:1px;margin:0 auto;background:#c79791}
.book-cover-hint{margin:25px 0 0;color:#8a7670;font-size:12px}
.book-cover-edition{font-size:10px;letter-spacing:.1em;color:#987f79;margin:0 auto 3px}
.book-content{background:linear-gradient(155deg,#fffdfa 0%,#fbf7f2 100%)}
.book-content>.book-overline{flex:none}
.book-question{flex:none;margin:7px 0 12px;padding-bottom:12px;border-bottom:1px solid #e8dcd4;font:600 15px/1.45 var(--serif);letter-spacing:-.045em;color:#79645f;white-space:nowrap}
.book-content-core{width:min(100%,600px);margin:22px auto auto;position:relative;padding:0 0 12px}
.book-ornament{display:block;width:36px;height:2px;background:var(--rose);font-size:0;line-height:0;margin-bottom:13px}
.book-section-label{margin:0 0 10px;color:#91585a;font-size:12px;font-weight:700;letter-spacing:.045em}
.book-content h2{margin:0 0 19px;font:600 clamp(21px,2.6vw,27px)/1.45 var(--serif);letter-spacing:-.045em;color:#463433;word-break:keep-all}
.book-content h2[tabindex="-1"]:focus{outline:none}
.book-main-claim{font-size:clamp(21px,2.7vw,27px)!important;line-height:1.48!important;color:#693f42!important}
.book-answer .book-main-claim{margin-bottom:0;padding:15px 20px;border-left:3px solid #bc8581;background:#faf1ec}
.book-lead{margin:0 0 20px;color:#684749;font:600 clamp(17px,2vw,20px)/1.6 var(--serif);letter-spacing:-.025em;word-break:keep-all}
.book-body{margin:0;color:#342e2b;font-size:clamp(15.5px,1.85vw,17px);line-height:1.76;word-break:keep-all;overflow-wrap:anywhere}
.book-body p{margin:0 0 .95em}
.book-body p:last-child{margin-bottom:0}
.book-answer .book-body{margin-top:16px;padding-top:14px;border-top:1px solid #eadbd4}
.book-takeaway .book-main-claim{max-width:510px}
.book-highlight .book-body{font:600 clamp(20px,3vw,30px)/1.6 var(--serif);color:#8d4f53}
.book-support{display:grid;gap:15px;margin-top:28px;padding-top:24px;border-top:1px solid #e9dcd5}
.book-answer .book-support{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-top:19px;padding-top:17px}
.book-support-item{border-left:2px solid #c8928b;padding-left:15px}
.book-support-item h3{margin:0 0 6px;color:#86565a;font-size:12px;line-height:1.5}
.book-support-item p{margin:0;color:#574b45;font-size:16px;line-height:1.7;word-break:keep-all;white-space:pre-line;overflow-wrap:anywhere}
.book-answer .book-support-item:only-child{grid-column:1/-1}
.book-page-mark{align-self:flex-end;flex:none;margin-top:8px;color:#b0a09a;font:600 9px 'DM Sans',var(--sans);letter-spacing:.14em}
.book-enter-next{animation:bookSlideNext .25s ease-out both}
.book-enter-previous{animation:bookSlidePrevious .25s ease-out both}
@keyframes bookSlideNext{from{opacity:.55;transform:translateX(22px)}to{opacity:1;transform:translateX(0)}}
@keyframes bookSlidePrevious{from{opacity:.55;transform:translateX(-22px)}to{opacity:1;transform:translateX(0)}}
.book-navigation{flex:none;min-height:72px;display:grid;grid-template-columns:minmax(87px,1fr) minmax(130px,2fr) minmax(87px,1fr);align-items:center;gap:12px;padding:7px 2px 10px}
.book-arrow{min-height:44px;border:1px solid #e3d8d0;border-radius:4px;background:#fffdfa;color:#604847;font:600 19px/1 var(--sans);display:flex;align-items:center;justify-content:center;gap:8px}
.book-arrow span{font-size:12px}
.book-arrow:not(:disabled):hover{border-color:#ca9c97;background:#f8eeea}
.book-arrow:disabled{opacity:.38;cursor:default}
.book-location{display:grid;gap:8px;justify-items:center;min-width:0}
.book-position{font-size:10px;color:#806c66;white-space:nowrap;letter-spacing:.025em}
.book-progress{width:100%;max-width:245px;height:3px;border-radius:999px;background:#e9dbd4;overflow:hidden}
.book-progress span{display:block;height:100%;width:0;background:var(--rose);border-radius:inherit;transition:width .25s ease-out}
.book-dialog{width:min(100% - 28px,640px);max-height:min(84dvh,740px);padding:0 24px 25px;border:1px solid #e3d3ca;border-radius:5px;background:#fffdfa;color:var(--ink);box-shadow:0 22px 70px rgba(54,35,30,.18);overflow-y:auto}
.book-dialog::backdrop{background:rgba(37,26,24,.48)}
.book-dialog-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 -24px 15px;padding:15px 24px;border-bottom:1px solid var(--line);background:#fffdfa}
.book-dialog-head h2{margin:0;font:600 20px var(--serif)}
.book-profile{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 14px}
.book-profile span{padding:5px 8px;border:1px solid #e8dbd3;border-radius:999px;color:#695550;font-size:11px}
.book-correction,.book-disclaimer{font-size:12px;line-height:1.7;color:#756660;word-break:keep-all}
.book-info-dialog .chart-evidence{margin:10px 0}
.book-info-dialog .source-details{font-size:11px;line-height:1.7;color:#746660}
@media(max-width:600px){
  #reading.book-results{width:100%;height:calc(100dvh - 76px)}
  .book-reader{padding:0 12px}
  .book-toolbar{min-height:52px;padding:5px 1px}
  .book-reader-title{font-size:12px;flex:1}
  .book-toolbar-actions{gap:0}
  .book-toolbar-actions button{padding:8px 5px;font-size:11px}
  .book-library{padding:22px 21px 27px}
  .book-library-intro{padding:4px 0 19px}
  .book-library-intro h1{font-size:25px}
  .book-library-intro>p:last-child{font-size:12px}
  .book-tier-tabs{gap:6px;margin-bottom:20px}
  .book-tier-tabs button{min-height:44px;padding:8px 5px;font-size:12px}
  .book-library-section-head{margin-bottom:10px}
  .book-library-section-head h2{font-size:17px}
  .book-library-grid{grid-template-columns:1fr;gap:8px}
  .book-library-card{min-height:96px;padding:14px 16px}
  .book-library-card strong{font-size:15px;line-height:1.4;margin:6px 0 6px}
  .book-library-card small{font-size:11px}
  .book-sheet{padding:19px 20px 14px}
  .book-sheet::before{inset:8px}
  .book-cover-decoration{width:85px;height:85px;margin-bottom:17px}
  .book-cover-decoration span{font-size:36px}
  .book-cover h1{font-size:18px;line-height:1.45;margin:19px auto;min-height:1.45em}
  .book-content .book-question{font-size:14px;line-height:1.45;margin:6px 0 8px;padding-bottom:9px;min-height:calc(1.45em + 10px)}
  .book-content-core{margin-top:15px;padding:0 0 12px}
  .book-ornament{width:28px;margin-bottom:12px}
  .book-content h2{font-size:20px;margin-bottom:16px}
  .book-main-claim{font-size:20px!important}
  .book-answer .book-main-claim{padding:14px 15px}
  .book-section-label{font-size:11px;margin-bottom:9px}
  .book-lead{font-size:16.5px;line-height:1.6;margin-bottom:17px}
  .book-body{font-size:15.5px;line-height:1.72}
  .book-answer .book-body{margin-top:15px;padding-top:14px}
  .book-highlight .book-body{font-size:21px}
  .book-support{gap:12px;margin-top:20px;padding-top:18px}
  .book-answer .book-support{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px;padding-top:13px}
  .book-support-item{padding-left:12px}
  .book-support-item p{font-size:14px;line-height:1.65}
  .book-answer .book-support-item{padding-left:9px}
  .book-answer .book-support-item p{font-size:13px;line-height:1.55}
  .book-navigation{min-height:65px;gap:7px;grid-template-columns:75px minmax(0,1fr) 75px;padding:6px 0 8px}
  .book-arrow{min-height:44px;font-size:18px;gap:4px}
  .book-arrow span{font-size:11px}
  .book-position{font-size:9px}
  .book-dialog{padding:0 17px 20px}
  .book-dialog-head{margin:0 -17px 14px;padding:13px 17px}
}
@media(max-width:360px){
  .book-toolbar{display:grid;grid-template-columns:1fr;justify-items:stretch;gap:1px;padding:4px 1px 5px}
  .book-reader-title{overflow:visible;text-overflow:clip}
  .book-toolbar-actions{justify-self:end}
  .book-library{padding-left:15px;padding-right:15px}
  .book-sheet{padding-left:16px;padding-right:16px}
}
@media(max-height:650px){.book-cover-decoration{width:69px;height:69px}.book-cover-decoration span{font-size:30px}.book-cover h1{margin:13px auto}.book-cover-hint{margin-top:15px}.book-sheet{padding-top:18px;padding-bottom:14px}}
@media(prefers-reduced-motion:reduce){.book-enter-next,.book-enter-previous{animation:none}.book-progress span{transition:none}}

/* Shared typography for free customer slides; paid pages are unchanged. */
.book-scroll h1{margin:12px 0 24px;font:600 26px/1.45 var(--serif);color:#463433;word-break:keep-all;overflow-wrap:anywhere}
.book-scroll h1:focus{outline:none}
.book-scroll-section{margin-top:30px;padding-top:24px;border-top:1px solid #e8dcd4}
.book-scroll-section h2{margin:0 0 16px;font-size:21px;line-height:1.5}
.book-scroll-section .book-lead{margin-bottom:12px}
.book-scroll-back{align-self:center;margin:32px 0 16px;padding:12px 22px;border:1px solid #d2b8b1;border-radius:5px;background:#faf1ec;color:#693f42;font:600 15px/1.5 var(--sans);cursor:pointer}

/* The same content role has the same size on every free question. */
.book-scroll{width:100%;box-sizing:border-box}
.book-scroll .book-lead{font-size:19px;line-height:1.7;margin-bottom:18px;overflow-wrap:anywhere}
.book-scroll .book-body{font-size:17px;line-height:1.85}
.book-scroll .book-body p{margin:0 0 1em}
.book-scroll .book-body p:last-child{margin-bottom:0}
.book-scroll>h1+.book-scroll-section{margin-top:0;padding-top:0;border-top:0}
@media(max-width:640px){
  .book-scroll h1{font-size:24px;line-height:1.5;margin-bottom:22px}
  .book-scroll-section h2{font-size:20px}
  .book-scroll .book-lead{font-size:18px;line-height:1.7}
  .book-scroll .book-body{font-size:16px;line-height:1.85}
}
