@font-face{font-family:Scaling Book Roboto;src:url(/scaling-book-assets/fonts/roboto-latin.woff2)format("woff2");font-style:normal;font-weight:300 700;unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-display:swap}@font-face{font-family:Scaling Book Roboto;src:url(/scaling-book-assets/fonts/roboto-latin-ext.woff2)format("woff2");font-style:normal;font-weight:300 700;font-display:swap;unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}.scaling-book{--book-bg:#fff;--book-text:#000;--book-accent:#b509ac;--book-muted:#828282;--book-divider:#0000001a;--book-code:#b509ac0d;--book-algorithm:#fffaf2;--book-takeaway:#d2e7fd;--book-announce:#fdf8d2;--book-width:704px;background:var(--book-bg);color:var(--book-text);font-synthesis-style:auto;flex:1;font:300 16px/1.5 Scaling Book Roboto,sans-serif;position:relative}:root[data-theme=dark] .scaling-book{--book-bg:#1c1c1d;--book-text:#e5e5e5;--book-accent:#2698ba;--book-muted:#c7c7c7;--book-divider:#424246;--book-code:#2c3237;--book-algorithm:#322121;--book-takeaway:#4b4b4b;--book-announce:#4b4b4b}.scaling-book a{color:var(--book-accent)}.scaling-book a:hover{text-decoration:underline}.scaling-book :is([id],.bilingual-anchor-alias){scroll-margin-top:75px}.scaling-book [lang|=zh],.scaling-book blockquote *{font-style:normal}.scaling-book :is(p,li)[lang=en],.scaling-book [lang=en] :is(p,li),.scaling-book .book-article[lang=en] :is(p,li){hyphens:auto}.scaling-book [lang|=zh]:not(.book-article),.scaling-book .book-article .translator-note{font-family:var(--font-bilingual-zh);font-synthesis-style:none}.scaling-book .book-chapter-nav{width:min(calc(100% - 32px), var(--book-width));border-bottom:1px solid var(--book-divider);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.25em 1em;margin-inline:auto;padding-block:.75em;display:flex}.scaling-book .book-chapter-nav>div{flex-wrap:wrap;align-items:baseline;gap:.25em 1em;margin-inline-start:auto;display:flex}.scaling-book .book-menu{position:relative}.scaling-book .book-menu summary{cursor:pointer;white-space:nowrap;list-style:none}.scaling-book .book-menu summary:after{content:"";vertical-align:middle;border:.28em solid #0000;border-top-color:currentColor;margin-left:.45em;display:inline-block;transform:translateY(25%)}.scaling-book .book-menu ul{background:var(--book-bg);border-radius:3px;min-width:min(290px,85vw);max-height:75vh;padding:.35em 0;font-size:.9em;position:absolute;top:calc(100% + 10px);right:0;overflow:auto;box-shadow:0 4px 12px #0000002e}.scaling-book .book-menu a{padding:.35em 1.25em;display:block}.scaling-book .book-menu [aria-current=page]{color:var(--book-accent)}.scaling-book .book-title,.scaling-book .book-byline>div,.scaling-book .book-article{width:min(calc(100% - 32px), var(--book-width));margin-inline:auto}.scaling-book .book-title{padding-block:4em 1.5em}.scaling-book .book-title h1{overflow-wrap:anywhere;margin:0 0 .16em;font-size:50px;font-weight:700;line-height:1.1}.scaling-book .book-title p{margin:0 0 .8333em;font-size:1.2em;line-height:1.55}.scaling-book .book-byline{border-top:1px solid var(--book-divider);padding-block:24px;font-size:.8em;line-height:1.8}.scaling-book .book-byline>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;display:grid}.scaling-book .book-byline h2{text-transform:uppercase;font-size:.8em;font-weight:400;line-height:2.25}.scaling-book .book-authors{grid-column:span 2;grid-auto-flow:column;grid-template:auto repeat(var(--author-rows), auto) / repeat(2, minmax(0, 1fr));align-content:start;column-gap:32px;display:grid}.scaling-book .book-authors h2{grid-column:1/-1}.scaling-book .book-authors a{color:inherit;font-weight:500}.scaling-book .book-body{grid-template-columns:minmax(0, 1fr) minmax(0, var(--book-width)) minmax(0, 1fr);border-top:1px solid var(--book-divider);column-gap:32px;padding-top:32px;display:grid;position:relative}.scaling-book .book-contents{border-right:1px solid var(--book-divider);grid-column:1;place-self:start end;width:min(100%,250px);max-height:calc(100vh - 100px);padding:0 33.92px 0 16.96px;font-size:13px;line-height:1.4;position:sticky;top:85px;overflow:auto}.scaling-book .book-contents h2{margin-block:20px;font-size:20px;font-weight:700;line-height:1.4}.scaling-book .book-toc-section{margin-block:.4em;font-weight:700;display:block}.scaling-book .book-contents ul{margin:0 0 6px;padding-left:1em}.scaling-book .book-contents li{margin-block-end:.4em}.scaling-book .book-contents [lang=zh-CN]{display:block}.scaling-book .book-article{overflow-wrap:break-word;grid-column:2;width:100%;min-width:0;font-size:1.06em;line-height:1.7}.scaling-book .book-article :is(p,li){text-align:justify;text-align-last:start}.scaling-book .book-article p{margin-block:0 1em}.scaling-book .book-article strong,.scaling-book .book-article b,.scaling-book .book-article :is(h2,h3,h4,h5,h6){font-weight:700}.scaling-book .book-article h2{border-bottom:1px solid var(--book-divider);margin-block:1.35em .667em;padding-bottom:.44em;font-size:36px;font-weight:600;line-height:1.25}.scaling-book .book-article h2:first-of-type{margin-top:0}.scaling-book .book-article h3{margin-block:1em;font-size:20px;line-height:1.4}.scaling-book .book-article h4{margin-block:1em}.scaling-book .book-article ul{list-style-type:disc}.scaling-book .book-article ol{list-style-type:decimal}.scaling-book .book-article :is(ul,ol){margin-block:0 1em;padding-inline-start:2em}.scaling-book .book-article li{margin-block-end:5px}.scaling-book .book-article blockquote{border-inline-start:2px solid var(--book-accent);margin-block:1em;padding-inline-start:1em;font-style:normal}.scaling-book .book-article figure{margin-block:0 1em}.scaling-book .book-article img{max-width:100%;height:auto}.scaling-book .book-article img.img-small{width:min(100%,500px);margin-inline:auto}.scaling-book .book-article figcaption{margin-top:12px;font-size:14px;line-height:1.5}.scaling-book .plotly-embed{margin-block:1.5rem 2rem}.scaling-book .plotly-embed iframe{aspect-ratio:16/10;border:0;width:100%;min-height:380px;max-height:540px}.scaling-book .book-article table{border-collapse:collapse;width:max-content;max-width:100%;margin-block:1em;display:block;overflow-x:auto}.scaling-book .book-article :is(th,td){border-bottom:1px solid var(--book-divider);vertical-align:top;padding:.4em .65em}.scaling-book .book-article hr{border-color:var(--book-divider);margin-block:1.5em}.scaling-book .book-article details{background:var(--book-code);border-radius:6px;margin-bottom:20px;padding:8px 12px}.scaling-book .book-article summary{cursor:pointer;color:var(--book-accent);display:list-item}.scaling-book .book-article summary [lang=zh-CN]{margin-inline-start:1em;display:block}.scaling-book .book-article details p{margin-block:.5rem}.scaling-book .book-article :is(pre,:not(pre)>code){font:300 14px / inherit SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;background:var(--book-code);color:var(--book-accent);border-radius:6px}.scaling-book .book-article pre{margin-block:0 20px;padding:6px 12px;overflow-x:auto}.scaling-book .book-article :not(pre)>code{padding:1px 4px}.scaling-book .book-article pre code{color:inherit;font-size:14px}.scaling-book .book-article .katex-display{padding-block:3px;overflow-x:auto}.scaling-book .book-article .katex-display>.katex{width:max-content;min-width:100%}.scaling-book .algorithm{background:var(--book-algorithm);border:1px dashed;margin-block:5px 15px;padding:10px}.scaling-book .takeaway{background:var(--book-takeaway);border-radius:5px;margin-block:1em;padding:10px}.scaling-book .announce{background:var(--book-announce);border-radius:5px;margin-block:1em;padding:10px;font-weight:400}.scaling-book .book-article .next-section{border:1px dashed;border-radius:5px;padding:15px}.scaling-book .book-article :is(.algorithm,.takeaway,.announce,.next-section)>:last-child{margin-bottom:0}.scaling-book .book-article .bilingual-caption{margin-block:0}.scaling-book .book-article .source-note{border-block:1px solid var(--book-divider);margin:0 0 2em;padding:.6em 0;font-size:.8em}.scaling-book .book-article .source-note ul{margin:0;padding:0;list-style:none}.scaling-book .book-article .source-note li{text-align:start;margin:0}.scaling-book .book-article .footnotes{border-top:1px solid var(--book-divider);color:var(--book-muted);margin-top:60px;padding-block:24px;font-size:.8em}.scaling-book .book-article .footnotes h2{font-size:20px}.scaling-book .book-footer{text-align:center;border-top:1px solid var(--book-divider);margin-top:60px;padding:12px 16px;font-size:.8em}@media (width<=999px){.scaling-book{--book-width:100%}.scaling-book .book-body{display:block}.scaling-book .book-contents{display:none}.scaling-book .book-article{width:calc(100% - 32px)}}@media (width<=575px){.scaling-book{font-size:14px}.scaling-book .book-title{padding-block:2em 1.5em}.scaling-book .book-title h1{font-size:40px}.scaling-book .book-body{padding-top:28px}.scaling-book .book-article{font-size:1em;line-height:1.5}.scaling-book .book-article h2{font-size:24px}.scaling-book .book-article h3{font-size:18px}.scaling-book .book-byline{padding-block:21px}.scaling-book .book-byline>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px}.scaling-book .book-authors{column-gap:8px}}.scaling-book .book-article figure img{width:100%}.scaling-book .book-appendix{border-top:1px solid var(--book-divider);color:var(--book-muted);margin-top:60px;padding-block:60px 48px;font-size:.8em;line-height:1.7}.scaling-book .book-appendix section{width:min(calc(100% - 32px), var(--book-width));margin-inline:auto;margin-bottom:1.2em}.scaling-book .book-appendix h2{font-size:1.25em;font-weight:700}.scaling-book .book-appendix p,.scaling-book .book-appendix pre{margin-top:.75em}.scaling-book .book-appendix pre{white-space:pre-wrap;overflow-wrap:anywhere}.scaling-book .book-article h3[id] .heading-zh{margin-block-start:.2em;display:block}.scaling-book :is(h1,h2,h3,h4,h5,h6,strong,th){color:var(--book-text)}.scaling-book .book-article .astro-code,.scaling-book .book-article .astro-code span{color:var(--shiki-light,var(--book-text))}:root[data-theme=dark] .scaling-book .book-article .astro-code,:root[data-theme=dark] .scaling-book .book-article .astro-code span{color:var(--shiki-dark,var(--book-text))}.scaling-book .book-code{position:relative}.scaling-book .book-code button{border:1px solid var(--book-divider);background:var(--book-bg);cursor:pointer;opacity:0;border-radius:3px;padding:.1rem .4rem;font-size:.75rem;position:absolute;top:.35rem;right:.35rem}.scaling-book .book-code:hover button,.scaling-book .book-code:focus-within button{opacity:1}.scaling-book .book-footnote-popup{background:var(--book-bg);width:min(360px,100vw - 32px);max-height:50vh;color:var(--book-text);border:1px solid var(--book-divider);border-radius:4px;margin:0;padding:.75rem 1rem;font-size:.85rem;line-height:1.55;inset:auto;overflow:auto;box-shadow:0 4px 16px #00000026}.scaling-book .book-footnote-popup>:first-child{margin-top:0}.scaling-book .book-footnote-popup>:last-child{margin-bottom:0}@media (hover:none){.scaling-book .book-code button{opacity:1}}.scaling-book .book-note-settings{z-index:2;color:var(--book-muted);display:none;position:absolute;top:12px;right:26px}.scaling-book .book-note-settings summary{cursor:pointer;text-align:right;font-size:18px;list-style:none}.scaling-book .book-note-settings label{background:var(--book-bg);border:1px solid var(--book-divider);color:var(--book-text);border-radius:3px;align-items:center;gap:.4em;padding:.5em .8em;font-size:.8em;display:flex}.scaling-book .book-sidenotes[hidden]{display:none}@media (width>=1000px){.scaling-book .book-note-settings{display:block}.scaling-book.book-with-sidenotes{--book-inset:max(24px, calc((100vw - 1040px) * .37))}.scaling-book.book-with-sidenotes .book-body{grid-template-columns:var(--book-width) minmax(0, 1fr);padding-inline:var(--book-inset) 24px}.scaling-book.book-with-sidenotes :is(.book-title,.book-byline>div,.book-appendix section){margin-inline-start:var(--book-inset)}.scaling-book.book-with-sidenotes .book-contents{display:none}.scaling-book.book-with-sidenotes .book-article{grid-column:1}.scaling-book .book-sidenotes{grid-column:2;min-width:0;position:relative}.scaling-book .book-sidenote{overflow-wrap:anywhere;max-width:380px;color:var(--book-muted);font-size:.8em;line-height:1.5;position:absolute;inset-inline:0}.scaling-book .book-sidenote>sup{color:var(--book-accent)}.scaling-book .book-sidenote :is(pre,.katex-display){overflow-x:auto}}nav[data-astro-cid-3tbazgeo]{--toc-edge:1rem;width:calc((100% - var(--container-app)) / 2 - var(--toc-edge));inset-inline-end:var(--toc-edge)}
