:root{font-size:14px}
@media(min-width:701px){.topbar nav.topnav>button{flex:none;max-width:none;white-space:nowrap;justify-content:flex-start;gap:6px}.topbar nav.topnav>button>span{flex:none;text-align:left}}
.language-grid .language-option.selected{background:color-mix(in srgb,var(--green) 32%,var(--sheet))}
.topbar{height:auto;min-height:64px}.topbar .topnav button{font-size:12px;line-height:1.5}.topbar .search-trigger{font-size:12px;max-width:240px;min-width:34px}.topbar .language-trigger{display:inline-flex;gap:6px;width:auto;min-width:76px;padding:0 9px;height:34px;font-size:12px}
.header-credit{display:flex;align-items:center;gap:8px;flex:none;line-height:1.4}.header-credit small,.creator-credit small{display:block;font-size:10px;color:var(--muted)}.header-credit .designer-name,.creator-credit .designer-name{display:inline;text-decoration:none;font-size:12px;line-height:1.6}.designer-name strong{background:linear-gradient(transparent 65%,var(--green) 65%);font-size:inherit}.header-credit .creator-github{background:var(--ink);border-color:var(--ink);width:30px;height:30px;border-radius:6px}.header-credit .github-brand-icon{filter:invert(1)}[data-theme=dark] .header-credit .github-brand-icon{filter:none}.creator-credit{justify-content:flex-start}
.body{grid-template-columns:280px minmax(0,1fr)}.course-tree summary{font-size:12px;min-height:42px}.course-tree summary small,.tree-root span{font-size:10px}.lesson-link{font-size:12px;line-height:1.7;padding-top:8px;padding-bottom:8px}.crumb,.eyebrow{font-size:11px;line-height:1.7}.badges>span{font-size:11px}.lesson-head>p{font-size:14px;line-height:1.8}.lesson-modes{flex-wrap:wrap}.lesson-modes button{font-size:12px;min-height:36px}.title-row h1{font-size:26px;line-height:1.4;overflow-wrap:anywhere}
.explorer-layout{grid-template-columns:minmax(0,1fr) minmax(300px,350px)}.guide-scroll h2{font-size:21px;line-height:1.5}.guide-scroll>p,.callout>p,.goals>p{font-size:14px;line-height:1.85}.callout>strong,.goals>a,.guide-bottom button{font-size:12px;line-height:1.7}.guide-bottom>small,.evidence p{font-size:11px;line-height:1.7}.evidence pre{font-size:12px;line-height:1.8}.guide-scroll{overflow:auto}.timeline button{font-size:11px;line-height:1.6;overflow-wrap:anywhere}.timeline button i{font-size:11px}.timeline{flex:none}.legend{font-size:10px;line-height:1.6;flex-wrap:wrap}.metric>span{font-size:10px}.metric>strong{font-size:12px}.scene-controls button{font-size:11px}.interactive-scene .scene-caption{font-size:11px;line-height:1.6}.scene-scale output,.scene-connections summary{font-size:11px}.stage{min-height:430px}
.chapter-reader,.chapter-reader p,.chapter-reader li,.engineering-reading p,.github-lab p,.github-lab li,.source-page>p,.inline-reader .source-page>p,.workshop p,.workshop li,.design-review p,.design-review li,.lead{font-size:15px;line-height:1.85}.chapter-reader h2,.engineering-reading>h2,.workshop>h2{font-size:24px;line-height:1.5}.chapter-reader h3,.engineering-guide h3,.github-lab h3{font-size:19px;line-height:1.6}.engineering-guide h4{font-size:16px}.chapter-reader pre,.engineering-guide pre,.source-page pre,.board-exercises pre,.workshop pre{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.reading-toc>a,.reading-toc button,.engineering-guide a,.github-lab a{font-size:12px;line-height:1.8}.reading-toc>strong,.book-sections>strong{font-size:11px}.source-note,.engineering-guide .source-note,.book-reader-head>p,.textbook-book header p{font-size:12px;line-height:1.8}.source-attribution{font-size:12px!important}.source-page>header,.book-reader-stats,.book-tools label,.book-formats button,.book-sections>button,.book-sections small{font-size:12px;line-height:1.7}.reading-layout{grid-template-columns:minmax(0,1fr) 210px}.chapter-reader{min-width:0;max-width:900px}.source-page>p{max-width:78ch}.field-label,.design-grid .field-label,.design-inputs legend{font-size:13px;line-height:1.7}.design-grid select,.design-grid input,.budget-values>div,.design-status,.design-sources a{font-size:13px;line-height:1.7}.cheat-table pre,.cheat-table p,.cheat-table a,.cheat-table small,.command-effect{font-size:12px;line-height:1.8}.textbook-book li strong{font-size:15px}.textbook-book li small,.textbook-book li a>span{font-size:12px}.answer,.curriculum-section>a{font-size:14px;line-height:1.8}.curriculum-section p,.course-outcomes{font-size:13px;line-height:1.8}
#language-menu{position:fixed;inset:auto;margin:0;width:560px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;padding:14px 10px 10px;background:var(--sheet);color:var(--ink);border:1px solid var(--edge);border-radius:14px;box-shadow:3px 4px 0 var(--ink);direction:ltr;scrollbar-width:thin}#language-menu::backdrop{background:transparent}#language-menu h2{font-size:11px;line-height:1.6;margin:0 6px 8px;padding-bottom:8px;border-bottom:1px solid var(--line)}.language-grid{display:grid;grid-template-rows:repeat(11,auto);grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px}.language-option{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:47px;text-align:left;background:none;border:1px solid transparent;padding:6px 8px;border-radius:8px;box-shadow:none;width:100%;min-width:0}.language-option.selected{background:var(--mint);border-color:var(--ink);box-shadow:1px 2px 0 var(--ink)}.language-badge{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px solid var(--edge);border-radius:6px;background:var(--sheet);font-size:11px;flex:none}.selected .language-badge{background:var(--green)}.language-option>span:last-child{min-width:0}.language-option strong{display:block;font-size:12px;line-height:1.45;text-transform:uppercase;overflow-wrap:anywhere}.language-option small{display:block;font-size:11px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}#language-status{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 6px 0;padding-top:10px;border-top:1px solid var(--line)}
@media(max-width:1300px){.topbar .search-trigger{flex:none;width:34px;padding:0;justify-content:center}.topbar .search-trigger span,.topbar .search-trigger kbd{display:none}.topbar .topnav{margin-left:0;gap:3px}.topbar .topnav button{padding:6px;font-size:11px}.body{grid-template-columns:245px minmax(0,1fr)}.explorer-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1100px){.explorer-layout{grid-template-columns:minmax(0,1fr)}.body{grid-template-columns:235px minmax(0,1fr)}.rail{display:block}.guide{min-height:0}.guide-scroll{max-height:none}.goals{margin-top:12px}.reading-layout{display:block}.reading-toc{position:static}.stage{height:510px}}
@media(max-width:700px){.body{display:block}.topbar .brand{font-size:17px}.topbar .header-credit{order:5;justify-content:flex-end;width:100%;padding-top:3px}.topbar .topnav button{font-size:11px;line-height:1.5;min-height:38px;max-width:none}.topbar .language-trigger{min-width:64px;height:30px;padding:0 5px}.topbar .language-trigger .icon:last-child{display:none}.topbar .search-trigger{width:27px;min-width:27px}.title-row h1{font-size:24px}.stage{height:480px;min-height:430px}.scene-controls button{font-size:10px}.timeline button{font-size:10px}.metric>span{font-size:9px}.metric>strong{font-size:11px}.interactive-scene .scene-caption{font-size:10px}.chapter-reader h2,.engineering-reading>h2{font-size:22px}.design-inputs fieldset{grid-template-columns:minmax(0,1fr)}.textbook-book li a>span{white-space:normal}.book-formats{flex-wrap:wrap}.scene-bottom{flex-wrap:wrap}.source-page>header{flex-wrap:wrap}.language-option{gap:7px;padding:6px 4px;min-height:49px}.language-option strong{font-size:11px}.language-option small{font-size:10px}.language-badge{width:26px;height:28px;font-size:10px}#language-menu{max-height:calc(100dvh - 70px)}}
@media(max-width:360px){.topbar .brand{font-size:15px;min-width:0}.topbar .language-trigger{min-width:58px;padding:0 4px}.topbar{gap:5px}.topbar .brand-mark{display:none}}
