html{scroll-padding-top:106px}body{font-size:19px}.book-header{height:84px;position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #dce5ed;padding:18px 32px;gap:24px}.book-header img{width:128px;height:auto;display:block}.book-header>a{margin:0}.book-header strong{font-size:17px}.book-header span{font-weight:400;color:#52637a}.book-header button{display:none}.book-layout{max-width:1510px;margin:auto;display:grid;grid-template-columns:280px minmax(0,1fr);gap:48px;padding:0 32px}.book-nav{position:sticky;top:84px;align-self:start;height:calc(100dvh - 84px);overflow-y:auto;padding:26px 18px 32px 0;scrollbar-width:thin;font-size:14px;line-height:1.45;border-right:1px solid #e5ebf2}.nav-title{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#52637a;margin:0 0 18px}.nav-group{border:0;border-bottom:1px solid #e5ebf2;border-radius:0;padding:10px 0;background:none;margin:0}.nav-group summary{cursor:pointer;font-size:14px;font-weight:700;padding:5px 0}.chapter-link{display:block;padding:7px 10px;margin:3px 0;color:#52637a;text-decoration:none;border-left:2px solid transparent;border-radius:0 6px 6px 0}.chapter-link:hover{background:#f0f5fc;color:#155fb1}.chapter-link[aria-current]{color:#145bba;background:#eaf2fe;border-left-color:#1671f4;font-weight:650}.nav-top{display:block;font-size:13px;margin-top:22px}#book{max-width:1060px;width:100%;min-width:0;padding:52px 0 80px;margin:0}.book-intro{padding-bottom:44px;border-bottom:1px solid #dce5ed}.book-label{font-size:13px;line-height:1.6;color:#52637a;max-width:650px;margin:0 0 22px}.book-intro h1{font-size:48px;line-height:1.13;letter-spacing:-1.5px;margin-bottom:24px}.book-intro>p:not(.book-label){max-width:720px}.book-intro .reading-hint{font-size:15px;color:#52637a;margin-top:24px}.chapter{padding-top:56px;margin-top:40px;border-top:1px solid #dce5ed}.chapter:first-of-type{border:0;margin-top:0}.chapter>h2{font-size:36px;line-height:1.2;letter-spacing:-.8px;margin:0 0 30px}.chapter>h3{font-size:28px;line-height:1.3;margin:52px 0 22px}section.chapter>p:first-of-type{font-size:20px;line-height:1.75}#book footer{font-size:14px;border-top:1px solid #dce5ed;margin-top:70px;padding-top:30px;color:#52637a}#book footer a{display:block;margin-top:10px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #1671f4;outline-offset:3px}.skip{position:fixed;z-index:30;top:-100px;left:20px;background:white;padding:12px}.skip:focus{top:10px}
@media(min-width:1001px) and (max-width:1250px){.book-layout{grid-template-columns:240px minmax(0,1fr);gap:30px;padding:0 24px}.book-nav{font-size:13px}figure{padding:24px}.result-scene{grid-template-columns:1fr}.result-scene .query{max-width:400px}.book-intro h1{font-size:43px}}
@media(max-width:1000px){html{scroll-padding-top:100px}.book-header{padding:16px 20px;height:76px;gap:16px}.book-header img{width:108px}.book-header button{display:block;margin-left:auto;border:1px solid #bfd1e5;background:#eff5fc;border-radius:8px;padding:9px 12px;color:#173b6a;font:600 14px system-ui}.book-layout{display:block;padding:0 24px}.book-nav{display:none;position:fixed;top:76px;left:0;width:min(380px,100%);height:calc(100dvh - 76px);z-index:9;background:white;padding:24px;box-shadow:20px 0 40px #132b4a26}.book-nav.is-open{display:block}#book{padding-top:36px;margin:auto}.book-intro h1{font-size:42px}.chapter>h2{font-size:32px}.chapter>h3{font-size:26px}}
@media(max-width:600px){.book-header span{display:none}.book-header strong{font-size:16px}.book-layout{padding:0 20px}.book-intro h1{font-size:36px}.book-intro{padding-bottom:26px}.book-label{font-size:12px}.chapter{padding-top:36px;margin-top:32px}.chapter>h2{font-size:29px}.chapter>h3{font-size:25px}section.chapter>p:first-of-type{font-size:19px}.book-intro>p:not(.book-label):not(.reading-hint){font-size:19px}figure{max-width:100%}}

.chapter-tasks{padding:22px 26px;background:#eef4fb;border-radius:16px;margin:22px 0 32px;font-size:16px;line-height:1.5}.chapter-tasks strong{font-size:14px;color:#52637a}.chapter-tasks ul{display:grid;grid-template-columns:1fr 1fr;gap:12px 26px;margin:16px 0 0;padding-left:19px}.chapter-tasks li{margin:0}h2:focus{outline:2px solid #1671f4;outline-offset:8px}@media(max-width:700px){.chapter-tasks ul{grid-template-columns:1fr}.chapter-tasks{padding:20px}}

/* Keep the contents control inside the fixed header on narrow phones. */
@media(max-width:380px){.book-header{padding:16px 12px;gap:10px;flex-wrap:nowrap}.book-header img{width:84px}.book-header strong{font-size:14px}.book-header button{padding:9px 10px;font-size:13px;flex-shrink:0}}

@media(max-width:700px){
 #book .stacked-mobile-table{display:block;min-width:0;width:100%}
 .stacked-mobile-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .stacked-mobile-table tbody{display:block}
 .stacked-mobile-table tr{display:block;background:#f0f5fa;border:1px solid #dce5ed;border-radius:14px;padding:18px;margin:0 0 20px}
 #book .stacked-mobile-table td{display:block;width:auto;min-width:0;border:0;padding:12px 0;overflow-wrap:anywhere}
 .stacked-mobile-table td:before{content:attr(data-label);display:block;font-size:14px;line-height:1.5;font-weight:700;color:#52637a;margin-bottom:6px}
 .stacked-mobile-table td:first-child{font-weight:700}
}
/* Sidebar reduces available space before the page reaches the mobile breakpoint. */
@media(min-width:1001px) and (max-width:1400px){
 .wizard-layer,.wizard-threshold{display:block}
 .wizard-ui{max-width:545px}
 .wizard-meaning{margin:22px 0 0 12%;padding:25px}
 .wizard-threshold{max-width:550px;margin:24px 0 0 auto}
 .wizard-threshold p{margin-bottom:22px}
}
