/* Scoped to the photo-first pixel lesson; other experiments keep their layout. */
body[data-current-lesson="pixel"] .nav-index{display:none}
body[data-current-lesson="pixel"] .side-bottom{display:none}
.pixel-discovery .lesson-heading{padding-bottom:28px}
.pixel-discovery .eyebrow span{font-family:var(--sans);font-size:12px;letter-spacing:1px}
.pixel-discovery .intro{font-size:16px;line-height:1.9;max-width:670px}
.photo-lab{background:var(--white);border:1px solid #d4dace;border-radius:12px;overflow:hidden}
.photo-lab .bench-header h2{font-size:16px}
.photo-story{font-size:15px;line-height:1.85;padding:18px 22px;color:var(--ink);background:#f0f3e8}
.photo-workspace{display:grid;grid-template-columns:minmax(0,1fr) 226px;align-items:start}
.photo-main{padding:20px;min-width:0}
.photo-canvas-wrap{position:relative;background:#e6e9dc;border-radius:7px;overflow:hidden;line-height:0;aspect-ratio:4/3}
#photo-canvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:pan-y}
#photo-loading{position:absolute;inset:0;display:grid;place-content:center;font-size:14px;line-height:1.7}
.photo-view-label{position:absolute;left:12px;top:12px;font-size:10px;line-height:1.5;background:#20382edb;color:white;padding:5px 9px;border-radius:4px;pointer-events:none}
.photo-zoom-controls{display:flex;align-items:center;gap:10px;padding-top:14px}
.photo-zoom-controls button{width:38px;height:38px;border:1px solid #ced6c1;background:#f3f6ec;border-radius:6px;font-size:21px;flex-shrink:0}
.photo-zoom-controls button:disabled{opacity:.35}
.photo-zoom-controls input{min-width:20px}
.photo-zoom-controls output{font-family:var(--sans);font-size:12px;min-width:76px;text-align:right;white-space:nowrap}
.photo-caption{display:flex;gap:15px;justify-content:space-between;align-items:start;padding-top:8px}
.photo-caption>span{font-size:10px;color:var(--muted);line-height:1.7}
.photo-caption button{font-size:12px;white-space:nowrap;color:var(--green);padding:0;text-decoration:underline;text-underline-offset:3px}
.photo-tools{padding:20px 18px;border-left:1px solid #e0e5d6;background:#fafbf6;align-self:stretch}
.photo-overview-box .tiny-label{font-size:10px;letter-spacing:.3px;margin-bottom:8px}
#photo-overview{width:100%;height:auto;display:block;border-radius:4px}
.primary-action{display:block;width:100%;padding:12px 10px;border-radius:6px;background:var(--green);color:white;margin-top:20px;font-size:13px;line-height:1.6}
.primary-action:hover{background:#1a402f}
.primary-action:disabled{opacity:.45}
#photo-editor{outline:none;margin-top:20px}
#photo-editor h3{font-size:15px;line-height:1.65}
#photo-editor>p{font-size:13px;margin-top:8px;color:var(--muted);line-height:1.8}
.photo-swatch-pair{display:flex;gap:12px;align-items:center;justify-content:center;margin:18px 0 14px}
.photo-swatch-pair>div{display:flex;flex-direction:column;align-items:center;gap:4px}
.photo-swatch-pair>div>span{width:43px;height:43px;border-radius:5px;display:block;border:1px solid #20382e30}
.photo-swatch-pair small{font-size:11px;color:var(--muted)}
.photo-palette{display:flex;gap:6px;flex-wrap:wrap}
.photo-palette button{padding:8px 7px;border:1px solid #d1d9c7;border-radius:5px;background:white;display:flex;flex:1;gap:5px;justify-content:center;align-items:center;font-size:12px}
.photo-palette button:hover{background:#eaf0df;border-color:var(--green)}
.photo-palette i{display:block;width:11px;height:11px;flex-shrink:0;border:1px solid #7777;border-radius:3px}
.photo-restore{font-size:12px;text-decoration:underline;text-underline-offset:3px;display:block;margin:12px auto 0;color:var(--muted)}
.photo-change-count{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}
.photo-change-count>span{font-size:11px;color:var(--muted)}
.photo-change-count strong{font-size:22px;font-weight:550;white-space:nowrap}
#photo-comparison{width:100%;margin-top:12px;font-size:12px}
#photo-editor>.keyboard-hint{font-size:10px;line-height:1.7;margin-top:10px}
.photo-status{background:#f1f4e8;border-top:1px solid var(--line);padding:12px 20px;font-size:13px;line-height:1.8;margin:0;min-height:48px}
.photo-inspect{margin:0;padding:16px 20px;border-top:1px solid var(--line)}
.photo-inspect summary{font-size:14px;font-weight:500}
.photo-inspect-grid{display:grid;grid-template-columns:.8fr 1.3fr;gap:28px;padding:15px 0}
.photo-inspect-grid strong{display:block;font-size:15px;font-weight:500;margin-top:8px;line-height:1.8}
.photo-inspect-grid p{font-size:13px;line-height:1.9;color:var(--muted)}
#photo-rgb-original{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.photo-static{width:100%;height:auto}
.explanation-shortcut{display:flex;justify-content:space-between;gap:18px;padding:17px 0;font-size:12px;color:var(--muted)}
.explanation-shortcut button{color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:3px;text-align:right;padding:0}
.pixel-reveal{margin-top:22px;border-top:1px solid var(--line);padding:34px 0 20px;outline:none}
.pixel-reveal>.tiny-label{font-size:12px;letter-spacing:.5px}
.pixel-reveal>h2{font-size:32px;line-height:1.5;font-weight:600;letter-spacing:-1px;margin-top:12px}
.pixel-reveal>p{font-size:16px;line-height:1.95;margin-top:22px}
.pixel-takeaways{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0}
.pixel-takeaways>div{border:1px solid #d8dfcf;border-radius:7px;padding:20px;background:#edf2e4}
.pixel-takeaways>div>span{font-size:22px;color:var(--green)}
.pixel-takeaways h3{font-size:17px;font-weight:600;margin:8px 0}
.pixel-takeaways p{font-size:14px;color:#526351;line-height:1.9}
.pixel-reveal details{margin:18px 0 26px;padding-top:18px}
.pixel-reveal summary{font-size:14px}
.pixel-reveal details p{font-size:14px;line-height:1.9}
.pixel-research{border-left:3px solid #a7b39a;padding:3px 0 3px 19px}
.pixel-research p{font-size:15px;line-height:1.9;margin-top:8px;max-width:720px}
.pixel-concept-section{margin:22px 0 32px;padding:28px;border:1px solid #d7ddce;border-radius:10px;background:#f0f3e8}
.section-intro h2{font-size:25px;letter-spacing:-.8px;margin:10px 0 12px}
.section-intro p{font-size:15px;color:var(--muted)}
#pixel-concept-tree>.concept-description{font-size:12px;color:var(--muted);line-height:1.9;margin:15px 0 22px}
.concept-tree,.concept-branch{list-style:none;padding:0;margin:0}
.concept-node{border:1px solid #d1dac6;border-radius:7px;background:#fffefa;margin:0;padding:0}
.concept-node summary{width:100%;display:block;position:relative;padding:12px 40px 12px 16px;cursor:pointer;list-style:none;font-weight:400}
.concept-node summary::-webkit-details-marker{display:none}
.concept-node summary:after{content:'＋';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:17px;color:var(--green)}
.concept-node[open]>summary:after{content:'−'}
.concept-node[open]>summary{margin-bottom:0}
.concept-node summary .relation-label{display:block;font-size:10px;font-weight:400;color:#6a7b60;line-height:1.6;margin-bottom:3px}
.concept-node summary strong{display:block;font-size:15px;font-weight:550;line-height:1.75}
.concept-root>summary{background:#e6edda;border-radius:7px 7px 0 0}
.concept-root>summary strong{font-size:20px}
.concept-node .concept-description{font-size:14px;line-height:1.95;color:#53624e;margin:0;padding:4px 16px 16px}
.concept-node .concept-followup{font-size:12px;display:block;margin:0 16px 16px;line-height:1.8;color:var(--green);text-underline-offset:3px}
.concept-node>.concept-branch{margin:0 16px 18px 30px;border-left:1px solid #b6c6a7;padding:0 0 0 22px}
.concept-branch>li{position:relative;padding-top:12px}
.concept-branch>li:before{content:'';position:absolute;left:-22px;top:42px;width:22px;height:1px;background:#b6c6a7}
.pixel-discovery .reflection-prompt{font-size:14px;color:var(--muted);margin-top:12px}
.pixel-discovery .teachback h2{font-size:21px}
.pixel-discovery .teachback textarea{font-size:14px;line-height:1.85}
.pixel-discovery .teachback details p{font-size:14px;line-height:1.9}
@media(max-width:1100px){.photo-workspace{grid-template-columns:minmax(0,1fr) 210px}.photo-main{padding:16px}.photo-tools{padding:16px 14px}.photo-palette{gap:4px}.photo-palette button{padding:8px 5px;font-size:11px}.photo-caption{display:block}.photo-caption button{margin-top:9px}}
@media(max-width:850px){.photo-workspace{grid-template-columns:1fr}.photo-tools{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:145px 1fr;gap:20px;align-items:start}.photo-overview-box{margin:0}.primary-action{margin-top:26px}#photo-editor{margin-top:0}.photo-swatch-pair{margin:10px 0}.photo-change-count{margin-top:12px;padding-top:9px}.photo-overview-box .tiny-label{font-size:9px}#photo-editor h3{font-size:15px}.photo-palette button{font-size:12px}.photo-caption{display:flex}.photo-caption button{margin-top:0}.photo-zoom-controls output{min-width:75px}.photo-inspect-grid{gap:20px}.pixel-reveal>h2{font-size:29px}}
@media(max-width:600px){.pixel-discovery h1{font-size:31px;line-height:1.5}.pixel-discovery .intro{font-size:15px}.pixel-discovery .intro br{display:none}.photo-lab .bench-header h2{font-size:15px}.photo-story{font-size:14px;padding:14px 16px}.photo-main{padding:12px}.photo-view-label{top:8px;left:8px;font-size:9px}.photo-tools{grid-template-columns:105px 1fr;gap:12px;padding:15px 12px}.photo-overview-box .tiny-label{font-size:9px;line-height:1.7}.photo-zoom-controls{gap:8px}.photo-zoom-controls button{width:34px;height:34px}.photo-zoom-controls output{font-size:11px;min-width:69px}.photo-caption{display:block}.photo-caption>span{font-size:10px}.photo-caption button{margin-top:7px;font-size:12px}.primary-action{font-size:13px;line-height:1.8;padding:11px 8px;margin-top:14px}#photo-editor h3{font-size:14px}#photo-editor>p{font-size:13px}#photo-editor>p br{display:none}.photo-swatch-pair{gap:9px}.photo-swatch-pair>div>span{width:34px;height:34px}.photo-palette{gap:5px}.photo-palette button{font-size:12px;flex-basis:100%;justify-content:flex-start;padding:7px 10px}.photo-restore{font-size:11px}.photo-change-count{display:block}.photo-change-count>span{font-size:10px}.photo-change-count strong{display:block;font-size:20px}.photo-status{font-size:13px;padding:13px 15px;line-height:1.9}.photo-inspect{padding:14px}.photo-inspect summary{font-size:13px}.photo-inspect-grid{grid-template-columns:1fr;gap:20px;padding:12px 0}.explanation-shortcut{font-size:11px;gap:12px}.explanation-shortcut>span{max-width:45%}.explanation-shortcut button{font-size:11px}.pixel-reveal{padding-top:24px}.pixel-reveal>h2{font-size:26px}.pixel-reveal>p{font-size:15px}.pixel-reveal>p br{display:none}.pixel-takeaways{grid-template-columns:1fr;gap:12px;margin-top:22px}.pixel-takeaways>div{padding:16px}.pixel-reveal details p{font-size:14px}.pixel-research p{font-size:14px}.pixel-concept-section{padding:19px 14px}.section-intro h2{font-size:23px}.section-intro p{font-size:14px}.concept-node summary{padding:11px 33px 11px 12px}.concept-node summary strong{font-size:14px}.concept-node summary .relation-label{font-size:9px}.concept-node summary:after{right:10px}.concept-node .concept-description{font-size:13px;padding:4px 12px 13px}.concept-node>.concept-branch{margin:0 9px 14px 13px;padding-left:12px}.concept-branch>li:before{left:-12px;width:12px}.concept-node .concept-followup{margin-left:12px;font-size:12px}.concept-root>summary strong{font-size:18px}}
