/* Presley's College Python Bakery: accessibility-first, uses existing reading settings. */
.pb-body,.pb-body *{box-sizing:border-box}
.pb-body .pb-main{max-width:1270px;padding-left:22px;padding-right:22px}
.pb-hero{margin-bottom:20px;padding:clamp(24px,4vw,38px);border:1px solid #c7d8bd;border-radius:25px;background:linear-gradient(110deg,#eff6e9,#fffef8 55%,#fff1e9);display:flex;justify-content:space-between;gap:20px;align-items:center}
.pb-hero h1{font-size:clamp(32px,4.5vw,49px);margin:9px 0 13px;color:#254335}
.pb-lede{font-size:20px;line-height:1.62;max-width:760px;color:#394f44}
.pb-hero-mark{display:grid;place-items:center;flex-shrink:0;width:148px;height:148px;border-radius:25px;background:#dbe9d5;color:#2a5040;font-size:25px;font-family:ui-monospace,Consolas,monospace;font-weight:800}
.pb-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.pb-meta span{background:#fff;border:1px solid #d8e3d2;border-radius:22px;color:#385441;font-size:14px;font-weight:750;padding:7px 12px}
.pb-note{padding:24px 27px;margin-bottom:20px;background:#fffcf7;border:1px solid #e6dfd1;border-radius:19px}
.pb-note h2{font-size:26px;margin:0 0 12px}.pb-note p{font-size:17px;line-height:1.75;margin:8px 0;color:#354d3f}
.pb-layout{display:grid;grid-template-columns:minmax(220px,285px) minmax(0,1fr);align-items:start;gap:19px;margin-bottom:24px}
.pb-sidebar{border:1px solid #d8e1d0;border-radius:18px;padding:19px;background:#fffefb;position:sticky;top:10px}
.pb-sidebar h2{font-size:22px;margin:4px 0 12px}.pb-sidebar-head label{display:block;font-size:15px;font-weight:700;margin-bottom:8px}
.pb-sidebar progress{width:100%;height:15px;accent-color:#4d805a}.pb-modules{display:grid;gap:7px;margin-top:17px}
.pb-module{display:flex;align-items:flex-start;text-align:left;gap:12px;width:100%;padding:11px 8px;min-height:65px;border:1px solid transparent;border-radius:10px;background:#f7f8f3;color:#294337;font:inherit;cursor:pointer}
.pb-module.active{background:#e5f0e3;border-color:#79a58a;box-shadow:inset 3px 0 #4b805a}.pb-module:hover{border-color:#9abb9e}.pb-module:focus-visible,.pb-btn:focus-visible{outline:3px solid #256b75;outline-offset:2px}
.pb-module .pb-check{flex-shrink:0;display:grid;place-items:center;border:1px solid #b3cbb0;background:#fffefa;border-radius:8px;width:31px;height:31px;font-size:13px;font-weight:850}
.pb-module .pb-mod-copy{min-width:0;display:grid;gap:5px}.pb-module .pb-title{font-weight:790;font-size:15px;line-height:1.36}.pb-module .pb-topic{font-size:13px;color:#4b6553;line-height:1.37}
.pb-private{font-size:14px;color:#536654;margin:20px 0 0;line-height:1.6}
.pb-center{min-width:0}.pb-card{padding:clamp(18px,3vw,28px);border:1px solid #d9e0d5;border-radius:19px;background:#fffefa;margin-bottom:17px;box-shadow:0 6px 20px #2b433509}
.pb-card h2{font-size:clamp(24px,3vw,30px);margin:8px 0 13px;color:#2e4f3e}.pb-card h3{font-size:19px;margin:0 0 7px;color:#294836}
.pb-card p{font-size:17px;line-height:1.7;color:#344c3d;margin:0 0 10px;max-width:none}
.pb-lesson .pb-summary{font-size:18px;font-weight:650;color:#325342;margin-bottom:16px}
.pb-lesson-group{border-top:1px solid #e3e8df;padding:17px 0 10px}
.pb-analogy{background:#f1f7ec;border-left:4px solid #8dae8b;border-radius:8px;padding:16px 18px;margin:12px 0}
.pb-analogy strong{color:#294d35}.pb-analogy p{margin:7px 0 0}
.pb-example{white-space:pre-wrap;overflow-wrap:anywhere;padding:15px;background:#f5f1e9;border:1px solid #e3dbd0;border-radius:9px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:16px;color:#263b2f;line-height:1.7}
.pb-two{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:17px 0}.pb-two>div{border:1px solid #e3e8da;border-radius:9px;padding:16px;background:#fafcf8}.pb-two p{font-size:16px}
.pb-lesson-actions,.pb-controls,.pb-lesson-nav{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.pb-lesson-nav{justify-content:space-between}
.pb-btn{padding:11px 16px;min-height:44px;border:2px solid #456e54;background:#3d7150;color:#fff;border-radius:10px;font-size:16px;font-weight:750;line-height:1.4;cursor:pointer}
.pb-btn.secondary{background:#e8f2e5;color:#284a34;border-color:#7ea58a}.pb-btn.tertiary{background:#fffaf1;color:#40553f;border-color:#bdbfad}
.pb-btn.pb-primary{background:#275e42;border-color:#275e42}.pb-btn.pb-stop{background:#a14534;border-color:#a14534}.pb-btn:disabled,.pb-module:disabled{opacity:.55;cursor:not-allowed}
.pb-editor-top{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.pb-font-toggle{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:700}
.pb-font-toggle input{width:19px;height:19px}.pb-code-label{font-weight:750;display:block;margin:12px 0 8px;font-size:16px}
#pb-code{width:100%;min-height:330px;display:block;resize:vertical;border-radius:12px;border:2px solid #93a995;background:#f9faf7;color:#173726;font:16px/1.65 ui-monospace,"Cascadia Code",Consolas,"Courier New",monospace!important;tab-size:4;padding:17px;white-space:pre;overflow:auto;letter-spacing:0}
#pb-code.pb-code-large{font-size:20px!important}#pb-code:focus{outline:3px solid #82ac8f;outline-offset:2px}
.pb-small{font-size:14px!important;line-height:1.65!important;color:#516153!important;margin:10px 0 13px!important}
.pb-controls{margin:13px 0}.pb-state{min-height:43px;padding:10px 15px;background:#edf5e9;border-radius:9px;border:1px solid #cbdcc8;font-size:16px;line-height:1.5;font-weight:650;color:#314b3b}
.pb-output-box{margin-top:15px}.pb-output-box h3{margin-bottom:8px}#pb-output{min-height:96px;max-height:330px;overflow:auto;padding:15px;border-radius:10px;border:1px solid #cad7c7;background:#213c31;color:#fafdf8;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,Consolas,monospace}
.pb-tests{list-style:none;padding:0;margin:10px 0;display:grid;gap:8px}.pb-tests li{font-size:16px;line-height:1.5;padding:10px 12px;border-radius:8px;border:1px solid #d2dfd1;background:#edf8eb}
.pb-tests .pb-fail{background:#fff1ea;border-color:#e3b6a6;color:#713c28}
.pb-body :is(.pb-btn,.pb-module,#pb-code):focus-visible{outline:3px solid #1b6778;outline-offset:3px}
.pb-body [hidden]{display:none!important}
@media(max-width:930px){.pb-layout{grid-template-columns:1fr}.pb-sidebar{position:static}.pb-modules{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.pb-hero-mark{display:none}}
@media(max-width:550px){.pb-body .pb-main{padding:16px 13px 45px}.pb-meta span{font-size:12px}.pb-hero{padding:23px 17px}.pb-sidebar,.pb-card{padding:17px}.pb-two{grid-template-columns:1fr}.pb-modules{grid-template-columns:1fr}.pb-lesson-nav .pb-btn{flex:1}.pb-controls .pb-btn{flex:1 1 43%}#pb-code{min-height:290px}}
@media(prefers-reduced-motion:reduce){.pb-body *{scroll-behavior:auto!important;transition:none!important}}
