/* Horizontal scrolling for code blocks and prompt / example blocks in the book */
.chapter-content pre, pre, .chapter-content .highlight, .chapter-content .codehilite, .prompt, .example {
	white-space: pre;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	padding: 0.9rem 1rem;
	background: var(--bg-code);
	border-radius: 6px;
}

.chapter-content pre code, pre code {
	white-space: pre;
}

/* Keep inline code wrapping as usual */
.chapter-content code:not(pre code){
	white-space: pre-wrap;
}
@media (max-width:420px){:root{--content-padding:.5rem}.container{padding:.4rem;margin:.5rem}.chapter-content{padding:.5rem;padding-top:.6rem}.toolbar{top:.6rem;right:.6rem;gap:.5rem}.toolbar .home-button,.toolbar .theme-toggle{padding:.3rem .45rem;min-height:28px}.toolbar.chapter-toolbar .home-button,.toolbar.chapter-toolbar .theme-toggle{padding:.35rem;min-width:36px}body{line-height:1.55}}
@media (max-width:420px){.theme-toggle .theme-label{display:none}}
@media (max-width:720px){.container{padding:.9rem;margin:1rem}h1{font-size:clamp(1.4rem,2.4vw,1.9rem)}}
:root{--page-max-width:72ch;--content-padding:1.25rem;--page-gutter:2rem;--serif:Georgia,"Times New Roman",Times,serif;--system-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial;--mono:Menlo,Monaco,"Courier New",monospace;--crio-void:var(--void, #0a0a0a);--crio-emergence:var(--emergence, #f0f0f0);--crio-trace:var(--trace, #6b7280);--accent:var(--crio-accent, #0b3d91);--muted:var(--crio-trace, #6b7280);--bg-code:var(--crio-code-bg, rgba(255,255,255,0.06))}:root{--base-font-size:clamp(16px, 1.2vw + 12px, 20px)}body,html{height:100%;box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{font-family:var(--serif);margin:0;color:var(--crio-emergence);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--crio-void);font-size:var(--base-font-size)}a,blockquote,code,h1,h2,h3,li,p{overflow-wrap:anywhere;word-break:break-word;hyphens:auto}.chapter-content,.container{box-sizing:border-box;width:100%}.container{max-width:min(var(--page-max-width),92vw);margin:calc(var(--page-gutter) * 1.5) auto;padding:var(--content-padding)}@media (max-width:720px){:root{--content-padding:0.85rem;--page-gutter:1rem}.container{padding:var(--content-padding);margin:1rem auto}body{line-height:1.65}}.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:active,.skip-link:focus{position:absolute;left:1rem;top:1rem;width:auto;height:auto;padding:.5rem .75rem;background:var(--crio-void);color:var(--crio-emergence);z-index:9999;border-radius:4px;text-decoration:none}.toolbar{position:fixed;top:1rem;right:1rem;display:flex;gap:1rem;align-items:center;z-index:10001}.theme-toggle{position:relative;--glass-bg:rgba(255,255,255,0.04);--glass-border:rgba(255,255,255,0.08);background:var(--glass-bg);color:var(--crio-emergence);border:1px solid var(--glass-border);padding:.4rem .6rem;border-radius:6px;cursor:pointer}.theme-toggle:focus{outline:2px solid var(--accent)}.theme-toggle{font-size:1rem;box-shadow:0 2px 8px rgba(0,0,0,.25),0 0 0 3px rgba(255,235,59,.12);transition:background 240ms ease,color 240ms ease,transform 180ms ease,box-shadow 240ms ease;background:var(--accent,var(--crio-accent,#0b3d91));color:#fff}@supports ((-webkit-backdrop-filter:blur(0)) or (backdrop-filter:blur(0))){.home-button,.theme-toggle{-webkit-backdrop-filter:blur(6px) saturate(120%);backdrop-filter:blur(6px) saturate(120%)}}.toolbar .home-button{background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));border:1px solid rgba(255,255,255,.06);color:var(--crio-emergence);box-shadow:0 6px 18px rgba(0,0,0,.2)}.toolbar .theme-toggle{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.005));border:1px solid rgba(255,255,255,.05);box-shadow:0 6px 18px rgba(0,0,0,.12)}.home-button,.nav-button,button,input[type=button]{--glass-bg:rgba(255,255,255,0.03);--glass-border:rgba(255,255,255,0.06);background:var(--glass-bg);color:var(--crio-emergence);border:1px solid var(--glass-border);border-radius:8px;padding:.45rem .65rem;cursor:pointer;transition:transform 120ms ease,box-shadow 160ms ease,background 160ms ease;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem}@supports ((-webkit-backdrop-filter:blur(0)) or (backdrop-filter:blur(0))){.home-button,.nav-button,button,input[type=button]{-webkit-backdrop-filter:blur(6px) saturate(110%);backdrop-filter:blur(6px) saturate(110%)}}.home-button:hover,.nav-button:hover,button:hover,input[type=button]:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.14);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.01))}.home-button:active,button:active,input[type=button]:active{transform:translateY(0)}.home-button:focus-visible,button:focus-visible,input[type=button]:focus-visible{outline:2px solid rgba(11,61,145,.9);outline-offset:2px}.toolbar.chapter-toolbar .home-button,.toolbar.chapter-toolbar button{padding:.35rem;min-width:36px;border-radius:6px}.theme-toggle .theme-label{margin-left:.5rem;font-weight:600;font-size:.95rem}@media (max-width:420px){.theme-toggle .theme-label{display:none}}.theme-toggle:active{transform:translateY(1px)}.home-button{background:rgba(255,255,255,.06);color:var(--crio-emergence);border:1px solid rgba(255,255,255,.06);padding:.4rem .6rem;border-radius:6px;text-decoration:none;display:inline-flex;align-items:center;gap:.45rem;transition:background 180ms ease,transform 120ms ease;min-height:36px;line-height:1}.home-button:active{transform:translateY(1px)}.toolbar .home-button{background:var(--accent,var(--crio-accent,#0b3d91));color:#fff;border:none;border-radius:6px 0 0 6px}.toolbar .theme-toggle{border-radius:0 6px 6px 0}.toolbar .home-button,.toolbar .theme-toggle{padding:.4rem .6rem;min-height:36px;display:inline-flex;align-items:center}.toolbar.chapter-toolbar .home-label,.toolbar.chapter-toolbar .theme-label{display:none}.toolbar.chapter-toolbar .home-button,.toolbar.chapter-toolbar .theme-toggle{padding:.45rem;min-width:40px;justify-content:center}.crio-menu-panel{position:fixed;right:1rem;top:4rem;z-index:1200;width:320px;max-height:70vh;overflow:auto;background:var(--bg,#fff);color:var(--fg,#111);border:1px solid rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(0,0,0,.12);border-radius:6px}.crio-menu-panel.hidden{display:none}.crio-menu-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;border-bottom:1px solid rgba(0,0,0,.06)}.crio-menu-body{padding:.5rem .75rem}.crio-menu-body nav[aria-label=Chapters] ul{list-style:none;padding-left:0}.crio-menu-body a{color:inherit;text-decoration:none}.crio-menu-error,.crio-menu-loading{color:#666;font-size:.95rem}@media (min-width:1024px){.toolbar .home-button,.toolbar .theme-toggle{padding:.25rem .45rem;min-height:30px;font-size:.95rem}.theme-toggle .theme-label{font-size:.9rem;margin-left:.35rem}}.chapter-content{padding:1rem;padding-top:.75rem;padding-bottom:2rem;max-width:900px;margin:0 auto}.chapter-content>h1:first-child,.chapter-content>h2:first-child{padding-top:2.5rem;margin-top:0}.chapter-content{text-align:justify;text-justify:inter-word}.chapter-content blockquote,.chapter-content ol,.chapter-content p,.chapter-content ul{text-align:justify}.chapter-content h1,.chapter-content h2,.chapter-content h3{text-align:left}h1,h2,h3{color:var(--accent);margin-top:1.6rem;margin-bottom:.6rem;line-height:1.15}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.25rem}p{margin:.7rem 0}a{color:var(--accent);text-decoration:none}a:focus,a:hover{text-decoration:underline}code{font-family:var(--mono);background:var(--bg-code);padding:.08rem .33rem;border-radius:4px;font-size:.95em}blockquote{border-left:4px solid rgba(255,255,255,.06);padding-left:1rem;color:var(--muted);margin:1rem 0}ol,ul{margin:.7rem 0 .7rem 1.25rem}figure{margin:.75rem 0}table{border-collapse:collapse;margin:1rem 0;width:100%}td,th{border:1px solid rgba(255,255,255,.04);padding:.6rem;text-align:left}th{background:rgba(255,255,255,.02)}nav[role=navigation]{border:1px dashed #e6eef6;padding:.75rem;margin-bottom:1rem;border-radius:6px;background:#fbfdff}nav[aria-label=Chapters] ul{list-style:none;padding-left:0;margin-left:0;display:flex;flex-direction:column;align-items:center}nav[aria-label=Chapters] li{margin:.4rem 0}nav[aria-label=Chapters] a{display:inline-block;text-align:center}@media print{body{color:#000;background:0 0;font-size:12pt}.container{margin:0;padding:0;max-width:none}.no-print,nav{display:none!important}}@media (max-width:720px){.container{padding:.9rem;margin:1rem}h1{font-size:clamp(1.4rem,2.4vw,1.9rem)}}@media (max-width:420px){:root{--content-padding:.5rem}.container{padding:.4rem;margin:.5rem}.chapter-content{padding:.5rem;padding-top:.6rem}.toolbar{top:.6rem;right:.6rem;gap:.5rem}.toolbar .home-button,.toolbar .theme-toggle{padding:.3rem .45rem;min-height:28px}.toolbar.chapter-toolbar .home-button,.toolbar.chapter-toolbar .theme-toggle{padding:.35rem;min-width:36px}body{line-height:1.55}}