/* Approved home and scalable topic catalog; course layout is in pysteps-theme.css. */
@keyframes traceMove{from{transform:translateY(-20vh)}to{transform:translateY(150vh)}}
.pysteps-home .hero{display:grid;grid-template-columns:1.02fr 1fr;align-items:center;gap:28px;padding:65px 0 55px}
.pysteps-home .hero h1{font-size:clamp(45px,4.85vw,72px);letter-spacing:-2.5px;line-height:1.04;font-weight:700}
.pysteps-home .hero h1>span{color:var(--accent)}
.pysteps-home .desktop-break{display:none}
.pysteps-home .hero-description{color:var(--muted);font-size:16px;line-height:1.75;margin:25px 0 30px}
.pysteps-home .hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.pysteps-home .primary-btn,.pysteps-home .quiet-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:22px;padding:12px 18px;border-radius:6px;font-size:13px;font-weight:650;transition:transform .18s,background .18s,border-color .18s;line-height:1.5}
.pysteps-home .primary-btn{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent)}
.pysteps-home .primary-btn:hover{transform:translateY(-2px);box-shadow:0 6px 22px var(--glow)}
.pysteps-home .primary-btn>span:last-child{font-size:19px;line-height:1}
.pysteps-home .quiet-btn{padding-inline:10px;background:transparent;color:var(--muted)}
.pysteps-home .quiet-btn:hover{color:var(--text);background:var(--surface-high)}
.pysteps-home .resume-line{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;margin-top:24px}
.pysteps-home .resume-line strong{font-family:var(--mono);font-weight:400;color:var(--text)}
.pysteps-home .hero-lab{min-width:0;padding:0 6px;position:relative;perspective:900px}
.pysteps-home .lab-topline{display:flex;align-items:center;justify-content:space-between;font:9px var(--mono);letter-spacing:1.3px;color:var(--muted);padding:4px 16px}
.pysteps-home .lab-topline>span:first-child{display:flex;gap:8px;align-items:center}
.pysteps-home .tiny-square{display:inline-block;width:5px;height:5px;background:var(--accent)}
.pysteps-home .lab-index{color:var(--faint)}
.pysteps-home .data-scene{width:100%;display:block;overflow:visible;transform:rotateY(var(--tilt-x,0deg)) rotateX(var(--tilt-y,0deg));transition:transform .2s}
.pysteps-home .main-glyph{font:700 36px var(--mono);fill:var(--accent);letter-spacing:-3px}
.pysteps-home .node-caption{font:9px var(--mono);fill:var(--muted);letter-spacing:1px}
.pysteps-home .node-code{font:12px var(--mono);fill:var(--text)}
.pysteps-home .syntax-string{fill:var(--accent)}
.pysteps-home .memory-text{font:12px var(--mono);fill:var(--muted)}
.pysteps-home .variable-value{font:11px var(--mono);fill:var(--accent)}
.pysteps-home .ghost-code{fill:var(--art-line);font:26px var(--mono)}
.pysteps-home .data-stack{animation:levitate 7s ease-in-out infinite;transform-origin:319px 230px}
.pysteps-home .input-node{animation:levitate 7s ease-in-out infinite;animation-delay:-3s}
.pysteps-home .output-node{animation:levitate 8s ease-in-out infinite;animation-delay:-1s}
.pysteps-home .traveller{offset-path:path('M120 200 L120 296 L270 383 L454 276 L454 180');animation:travel 7s linear infinite;opacity:.8}
.pysteps-home .orbit-point{animation:nodeGlow 4s ease-in-out infinite}
.pysteps-home .hero-lab.running .signal-path{stroke:var(--accent);stroke-width:3}
.pysteps-home .hero-lab.running .traveller{animation-duration:1.2s}
.pysteps-home .hero-lab.running .output-node rect{stroke:var(--accent)}
@keyframes levitate{50%{transform:translateY(-7px)}}
@keyframes travel{0%{offset-distance:0%;opacity:0}8%,85%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes nodeGlow{50%{opacity:.25}}
.pysteps-home .lab-control{display:flex;border:1px solid var(--line);border-radius:6px;background:var(--surface);width:min(400px,100%);margin:-5px auto 0;overflow:hidden;position:relative}
.pysteps-home .lab-control label{display:flex;align-items:center;flex:1;min-width:0;gap:14px;padding-left:15px}
.pysteps-home .input-prefix{font:11px var(--mono);color:var(--accent)}
.pysteps-home .lab-control input{min-width:0;width:100%;border:0;background:transparent;color:var(--text);font:13px var(--mono);padding:13px 6px;outline-offset:-3px}
.pysteps-home .lab-control button{font:11px var(--mono);display:flex;align-items:center;gap:10px;background:var(--surface-high);padding:10px 18px;border-left:1px solid var(--line);color:var(--text)}
.pysteps-home .lab-control button:hover{background:var(--accent);color:var(--accent-ink)}
.pysteps-home .lab-output{display:flex;align-items:center;gap:8px;font:11px var(--mono);color:var(--accent);width:min(400px,100%);margin:12px auto 0;min-height:20px}
.pysteps-home .lab-output small{margin-left:auto;font:10px var(--body);color:var(--faint)}
@keyframes caret{50%{opacity:0}}
@media(min-width:1450px){.pysteps-home .hero h1{font-size:76px}
.pysteps-home .hero{padding-top:75px;padding-bottom:65px}}
@media(max-width:1100px){.pysteps-home .hero h1{font-size:52px}
.pysteps-home .hero{gap:8px;padding-top:45px}
.pysteps-home .hero-description{font-size:14px}
.pysteps-home .wide-break{display:none}
.pysteps-home .hero-actions{gap:4px}
.pysteps-home .hero-actions .primary-btn{font-size:12px;gap:14px}
.pysteps-home .hero-actions .quiet-btn{font-size:12px}}
@media(max-width:820px){.pysteps-home .hero{grid-template-columns:1fr 1fr;padding-top:38px}
.pysteps-home .hero h1{font-size:44px;letter-spacing:-1.5px}
.pysteps-home .hero-description{font-size:13px}
.pysteps-home .hero-actions{align-items:flex-start;flex-direction:column}
.pysteps-home .lab-topline{font-size:8px;letter-spacing:.5px}
.pysteps-home .lab-index{display:none}
.pysteps-home .lab-output small{display:none}
.pysteps-home .lab-control{margin-top:4px}
.pysteps-home .lab-control button{padding:10px 12px}
.pysteps-home .lab-control label{gap:8px;padding-left:10px}
.pysteps-home .hero-lab{padding:0}
.pysteps-home .resume-line{font-size:10px;flex-wrap:wrap}}
@media(max-width:580px){.pysteps-home .hero{grid-template-columns:1fr;padding:32px 0 28px;gap:30px}
.pysteps-home .hero h1{font-size:clamp(39px,10.5vw,57px);letter-spacing:-1.8px}
.pysteps-home .hero-description{font-size:14px;margin:20px 0 24px}
.pysteps-home .hero-actions{gap:5px;flex-direction:row;align-items:center}
.pysteps-home .hero-actions .primary-btn{font-size:11px;padding:12px 13px;gap:12px}
.pysteps-home .hero-actions .quiet-btn{font-size:11px;padding-inline:8px;gap:10px}
.pysteps-home .resume-line{margin-top:17px}
.pysteps-home .hero-lab{max-width:450px;width:100%;margin:auto}
.pysteps-home .lab-topline{font-size:8px}
.pysteps-home .lab-index{display:inline}
.pysteps-home .lab-control{margin-top:-5px}
.pysteps-home .lab-control input{font-size:16px;padding-block:10px}
.pysteps-home .lab-control button{padding-inline:20px}
.pysteps-home .lab-output{font-size:11px}}
@media(prefers-reduced-motion:reduce){.pysteps-home .data-scene{transform:none!important}
.pysteps-home .traveller{display:none}}
.pysteps-home .primary-btn,.pysteps-home .quiet-btn{text-decoration:none}
.pysteps-home .hero-shell{min-height:calc(100vh - var(--header-height));min-height:calc(100svh - var(--header-height));display:flex;flex-direction:column}
.pysteps-home .hero{flex:1;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);width:100%;padding:clamp(24px,5vh,64px) 0 26px}
.pysteps-home .hero h1{font-size:clamp(42px,4.7vw,72px)}
.pysteps-home .hero-description{font-size:18px;line-height:1.65;max-width:540px;color:var(--muted)}
.pysteps-home .hero-actions .primary-btn,.pysteps-home .hero-actions .quiet-btn{font-size:15px;min-height:48px}
.pysteps-home .hero-actions .quiet-btn{color:var(--text);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px}
.pysteps-home .hero-lab{max-width:580px;width:100%;justify-self:end}
.pysteps-home .data-scene{max-height:calc(100svh - var(--header-height) - 220px)}
.pysteps-home .resume-line{background:transparent;padding:8px 0;text-align:left;gap:13px;min-height:64px;margin-top:22px;color:var(--text);max-width:100%;border-radius:5px}
.pysteps-home .resume-line:hover strong{text-decoration:underline;text-underline-offset:4px}
.pysteps-home .resume-marker{display:grid;place-items:center;width:37px;height:37px;border:1px solid var(--line);background:var(--surface);font:13px var(--mono);color:var(--accent);flex-shrink:0}
.pysteps-home .resume-label{display:block;font:13px var(--body);color:var(--muted);margin-bottom:5px}
.pysteps-home .resume-line strong{font:600 16px var(--body)}
.pysteps-home .resume-code{font:13px var(--mono);font-weight:400}
.pysteps-home .resume-arrow{font-size:20px;color:var(--muted)}
.pysteps-home .hero-jumps{display:flex;align-items:center;justify-content:flex-end;gap:30px;padding:16px 0 22px;min-height:70px;border-top:1px solid var(--line)}
.pysteps-home .hero-jumps a{display:flex;align-items:center;gap:20px;min-height:44px;color:var(--text);font-size:14px;font-weight:600;text-decoration:none}
.pysteps-home .hero-jumps a span{color:var(--accent);font-size:22px}
.pysteps-home .hero-jumps a:hover{text-decoration:underline;text-underline-offset:5px}
.pysteps-home .hero-shell{scroll-margin-top:var(--header-height)}
.pysteps-home .node-caption{font-size:10px;fill:var(--text)}
.pysteps-home .node-code{font-weight:600}
.pysteps-home .lab-topline{font-size:10px}
.pysteps-home .lab-control input{font-size:14px}
.pysteps-home .lab-control button{font-size:13px;min-height:44px}
.pysteps-home .lab-output{font-size:13px;min-height:22px;flex-wrap:wrap}
.pysteps-home .lab-output small{font-size:12px;color:var(--muted)}
@media(min-width:1101px) and (max-height:760px){.pysteps-home .hero{padding-block:22px;gap:24px}
.pysteps-home .hero h1{font-size:clamp(40px,4vw,60px)}
.pysteps-home .hero-description{margin:18px 0 22px;font-size:17px}
.pysteps-home .resume-line{margin-top:12px}
.pysteps-home .hero-jumps{padding-block:10px;min-height:64px}
.pysteps-home .data-scene{max-height:calc(100svh - var(--header-height) - 195px)}}
@media(max-width:1100px){.pysteps-home .hero{gap:24px}
.pysteps-home .hero-description{font-size:17px}
.pysteps-home .hero-actions{gap:6px}
.pysteps-home .hero-actions .primary-btn,.pysteps-home .hero-actions .quiet-btn{font-size:14px}
.pysteps-home .hero h1{font-size:clamp(40px,5vw,52px)}}
@media(max-width:820px){.pysteps-home .hero{gap:20px}
.pysteps-home .hero h1{font-size:clamp(34px,5.1vw,44px);letter-spacing:-1.5px}
.pysteps-home .hero-description{font-size:16px}
.pysteps-home .hero-actions{flex-direction:column;align-items:flex-start}
.pysteps-home .hero-actions .primary-btn{font-size:14px}
.pysteps-home .resume-line strong{font-size:14px}
.pysteps-home .resume-code{font-size:12px}
.pysteps-home .hero-jumps{gap:22px}
.pysteps-home .hero-jumps{justify-content:space-between}
.pysteps-home .hero-jumps a{font-size:13px}
.pysteps-home .lab-output small{display:block;width:100%;margin-left:0}}
@media(max-width:580px){.pysteps-home .hero{grid-template-columns:1fr;padding:28px 0 22px;gap:24px}
.pysteps-home .hero h1{font-size:clamp(36px,9.8vw,50px)}
.pysteps-home .hero-description{margin:18px 0 20px;font-size:16px}
.pysteps-home .hero-actions{flex-direction:row;align-items:center;gap:6px}
.pysteps-home .hero-actions .primary-btn{padding-inline:13px;font-size:13px;gap:12px}
.pysteps-home .hero-actions .quiet-btn{font-size:13px;padding-inline:7px;gap:8px}
.pysteps-home .resume-line{margin-top:12px}
.pysteps-home .resume-line strong{font-size:15px}
.pysteps-home .resume-label{font-size:12px}
.pysteps-home .hero-lab{justify-self:center;max-width:390px}
.pysteps-home .data-scene{max-height:230px}
.pysteps-home .lab-topline{font-size:9px}
.pysteps-home .lab-control{margin-top:0}
.pysteps-home .lab-output{margin-top:10px}
.pysteps-home .lab-output small{display:none}
.pysteps-home .hero-jumps{gap:12px;padding:12px 0;flex-wrap:wrap}
.pysteps-home .hero-jumps a{font-size:12px;gap:10px}
.pysteps-home .hero-jumps a:last-child{max-width:190px}}
@media(max-height:500px) and (min-width:581px){.pysteps-home .hero{padding-block:22px}
.pysteps-home .hero h1{font-size:36px}
.pysteps-home .hero-description{font-size:16px;margin-block:16px}
.pysteps-home .data-scene{max-height:240px}
.pysteps-home .hero-jumps{min-height:64px}
.pysteps-home .resume-line{margin-top:10px}}
.pysteps-home .hero-shell:focus{outline:none}
@media(max-width:580px){.pysteps-home .hero{padding:22px 0 16px;gap:16px}
.pysteps-home .hero h1{font-size:32px;letter-spacing:-1px}
.pysteps-home .hero-description{margin:14px 0 16px}
.pysteps-home .resume-line{min-height:56px;margin-top:8px}
.pysteps-home .data-scene{max-height:180px}
.pysteps-home .lab-topline{display:none}
.pysteps-home .lab-control input{font-size:16px}}
@media(max-width:580px) and (max-height:740px){.pysteps-home .hero{padding-top:14px;padding-bottom:10px;gap:12px}
.pysteps-home .data-scene{display:none}
.pysteps-home .hero-jumps{padding:8px 0;min-height:62px}}
.topics-view{padding:36px 0 48px}
.catalog-layout{display:grid;grid-template-columns:274px minmax(0,1fr);gap:48px;align-items:start}
.topic-sidebar{min-width:0;position:sticky;top:24px;max-height:calc(100svh - var(--header-height) - 84px);display:flex;flex-direction:column;border-right:1px solid var(--line);padding-right:24px}
.topic-sidebar h2{font-size:23px;letter-spacing:-.5px;margin-bottom:22px}
.topic-search{display:flex;align-items:center;gap:10px;border:1px solid var(--control-line);border-radius:8px;background:var(--surface);padding:0 12px;min-height:46px;flex-shrink:0;margin-bottom:16px}
.topic-search:focus-within{border-color:var(--accent)}
.topic-search svg{width:17px;height:17px;flex-shrink:0;stroke:var(--muted);fill:none;stroke-width:1.7}
.topic-search input{width:100%;min-width:0;background:none;border:0;color:var(--text);font-size:15px;line-height:1.5;padding:11px 0;outline:none}
.topic-search input::placeholder{color:var(--muted);opacity:1}
.topic-search input::-webkit-search-cancel-button{display:none}
.topic-search button{flex-shrink:0;width:28px;height:34px;font-size:24px;line-height:1;background:none;color:var(--muted)}
.topic-list{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-right:8px;padding-bottom:8px}
.topic-group+.topic-group{margin-top:24px}
.topic-group-title{display:flex;align-items:center;gap:12px;font:800 14px/1.5 var(--body);color:var(--accent);margin:0 0 9px 11px;letter-spacing:.15px}
.topic-group-title::after{content:"";height:1px;min-width:16px;flex:1;background:var(--line)}
.topic-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px;text-align:left;color:var(--muted);background:none;border-left:2px solid transparent;border-radius:0 5px 5px 0;font-size:15px;line-height:1.4}
.topic-choice:hover{background:var(--surface-high);color:var(--text)}
.topic-choice.selected{background:var(--surface-high);border-left-color:var(--accent);color:var(--text)}
.topic-choice:focus-visible{outline-offset:-2px}
.topic-number{font:11px var(--mono);color:var(--faint);min-width:19px}
.topic-choice.selected .topic-number{color:var(--accent)}
.topic-empty{font-size:15px;line-height:1.7;color:var(--muted);padding:16px 0}
.topic-detail{min-width:0;padding-top:2px}
.topic-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.topic-title-row h1{font-size:clamp(30px,3vw,44px);letter-spacing:-1px;line-height:1.12;outline:none}
.topic-description{color:var(--muted);font-size:17px;line-height:1.65;max-width:760px;margin:17px 0 24px}
.topic-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);align-items:center;min-height:360px;gap:24px;padding:26px 0 18px;border-block:1px solid var(--line)}
.topic-art{min-width:0;display:grid;place-items:center;isolation:isolate;min-height:280px;background:radial-gradient(ellipse at center,var(--glow),transparent 72%)}
.topic-art svg{width:100%;height:auto;display:block;overflow:hidden;max-height:380px}
.topic-code-wrap{min-width:0;padding:18px 0;border-left:1px solid var(--line);align-self:center}
.code-file{display:block;color:var(--faint);font:11px var(--mono);margin:0 0 20px 24px}
.topic-code{font:13px/1.8 var(--mono);white-space:pre;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-bottom:8px}
.scene-code-line{display:flex;gap:14px;padding:4px 16px 4px 12px;border-left:2px solid transparent;min-width:max-content;color:var(--muted);transition:background .25s,color .25s}
.scene-code-line code{white-space:pre;font:inherit}
.scene-code-line.is-current{background:var(--surface-high);border-left-color:var(--accent);color:var(--text)}
.scene-line-number{display:inline-block;min-width:14px;text-align:right;color:var(--faint);font-size:11px;user-select:none}
.scene-caption{font-size:16px;color:var(--text);line-height:1.7;min-height:58px;padding:15px 0;margin:0;max-width:850px}
.topic-open{margin-top:8px;min-height:46px;font-size:14px}
.mobile-topic-picker{display:none}
.topic-dialog{max-width:420px;width:calc(100% - 24px);max-height:calc(100svh - 32px);padding:30px 20px 20px;border-radius:10px}
.topic-dialog::backdrop{background:#03070bc9;backdrop-filter:blur(4px)}
.topic-dialog-close{position:absolute;right:12px;top:10px;width:40px;height:40px;background:transparent;font-size:28px;color:var(--muted)}
.topic-dialog .topic-sidebar{position:static;max-height:calc(100svh - 100px);border:0;padding:0}
.topic-dialog .topic-sidebar h2{padding-right:30px}
.topic-dialog .topic-list{max-height:calc(100svh - 230px)}
.topic-lesson-view{max-width:1160px;margin:0 auto;padding:24px 0 50px}
.topic-lesson-view>.back-btn{margin-bottom:24px;font-size:14px}
@media(min-width:1450px){.topic-art{min-height:320px}}
@media(max-width:1100px){.catalog-layout{grid-template-columns:230px minmax(0,1fr);gap:28px}
.topic-sidebar{padding-right:18px}
.topic-scene{grid-template-columns:1fr;gap:12px;padding-top:12px}
.topic-art{min-height:220px;max-width:620px;width:100%;margin:0 auto}
.topic-art svg{max-height:280px}
.topic-code-wrap{border-left:0;border-top:1px solid var(--line);padding-top:18px}
.topic-code{font-size:14px}
.code-file{margin-left:14px;margin-bottom:12px}}
@media(max-width:760px){.topics-view{padding-top:20px}
.catalog-layout{display:block}
.catalog-layout>.topic-sidebar{display:none}
.mobile-topic-picker{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);font-size:15px;margin-bottom:28px;text-align:left}
.mobile-topic-picker>span:first-child::before{content:'Тема: ';color:var(--muted)}
.mobile-topic-picker>span:last-child{font-size:22px;color:var(--accent)}
.topic-title-row h1{font-size:34px}
.topic-description{font-size:16px;margin-top:14px}
.topic-scene{min-height:0}
.topic-art{min-height:190px}
.topic-art svg{max-height:240px}
.topic-code-wrap{padding-bottom:6px}
.scene-caption{font-size:16px;min-height:80px}
.topic-open{margin-top:0}
.topic-lesson-view{padding-top:18px}
.topic-dialog .topic-choice{min-height:48px;font-size:16px}
.topic-dialog .topic-search input{font-size:16px}}
@media(max-width:580px){.topic-title-row h1{font-size:30px}
.topic-art{min-height:155px}
.topic-art svg{max-height:205px}
.topic-code{font-size:13px}
.scene-code-line{gap:12px;padding-inline:8px}
.topic-scene{padding-bottom:12px}
.scene-caption{padding-block:14px}
.topic-lesson-view>.back-btn{margin-bottom:18px}
.topic-sidebar h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.topic-art svg{animation:none}
.scene-code-line{transition:none}}
@media(min-width:1101px){.topic-code{font-size:14px}}
body:has(.topic-dialog[open]){overflow:hidden}
.topic-dialog-close{width:44px;height:44px}

:root{--header-height:var(--site-header-height);--session-strip-height:0px}
body:has(> .session-strip:not([hidden])){--session-strip-height:36px}
.site-header{height:var(--site-header-height);display:flex;align-items:center;gap:40px;padding:0 max(24px,calc((100% - 1320px)/2));border-bottom:1px solid var(--line);background:var(--bg);position:relative;z-index:20}
.site-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font:500 26px/1 var(--mono);letter-spacing:-1.5px;flex-shrink:0}
.site-brand:hover{color:var(--text)}.site-brand svg{width:30px;height:30px;fill:none;stroke:var(--accent);stroke-width:4}.site-brand strong{font-weight:750}.site-brand b{color:var(--accent)}
.site-nav{align-self:stretch;display:flex}.site-nav a{display:flex;align-items:center;font-size:14px;font-weight:600;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}.site-nav a.active{color:var(--text);border-bottom-color:var(--accent)}
.site-controls{display:flex;align-items:center;gap:8px;margin-left:auto}.site-controls button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;font-size:13px;border:0;border-radius:6px;color:var(--text);background:transparent;cursor:pointer}.site-controls button:hover{background:var(--surface-high)}.site-controls svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}#site-help{font:600 17px var(--mono);min-width:40px}
.main,.practice-mode .main{max-width:1368px;padding-inline:24px}
body[data-page="home"] .main,body[data-page="topics"] .main{padding-top:0;padding-bottom:0}
body[data-page="home"]{background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:80px 80px;background-blend-mode:soft-light}
.pysteps-home .hero{background:transparent;border:0;box-shadow:none;border-radius:0;margin:0;min-height:0;max-width:none;overflow:visible;display:grid;align-items:center}
.pysteps-home .hero-shell{justify-content:center;min-height:calc(100svh - var(--site-header-height) - var(--session-strip-height));display:flex;flex-direction:column}
.pysteps-home .hero-copy{padding:0;min-width:0}.pysteps-home h1{margin:0;white-space:normal;font-family:var(--display)}
.pysteps-home .hero-description{max-width:540px}.pysteps-home .hero-actions{margin-top:0}.pysteps-home .hero-actions .quiet-btn{text-decoration:none}
.pysteps-home .hero-lab{align-self:center}.pysteps-home .hero h1>span{display:inline}
.pysteps-home .data-scene{height:auto}.pysteps-home .lab-control{padding:0}.pysteps-home .lab-control button{border:0;border-left:1px solid var(--line);cursor:pointer}.pysteps-home .lab-control input{border:0;border-radius:0;background:none;box-shadow:none;line-height:1.5;height:auto}
.pysteps-home .lab-output{white-space:normal}.pysteps-home .resume-line:hover strong{text-decoration:none}.pysteps-home .hero-actions .primary-btn{font-family:var(--body);cursor:pointer}
.primary-btn,.quiet-btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:12px 18px;border-radius:6px;font:600 14px/1.5 var(--body);text-decoration:none;cursor:pointer}
.primary-btn{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent)}.primary-btn:hover{background:var(--accent-hover);color:var(--accent-ink)}.primary-btn:disabled{opacity:.6;cursor:default}.quiet-btn{background:transparent;color:var(--text);border:0}
.topic-search button,.topic-dialog-close{border:0;cursor:pointer}.topic-choice{text-decoration:none}.topic-choice.selected{font-weight:600}.topic-detail h1,.topic-sidebar h2{margin:0}.topic-sidebar h2{margin-bottom:22px}
.topic-code{margin:0;border:0;border-radius:0;background:transparent}.scene-code-line code{padding:0;background:none;color:inherit;box-shadow:none;border:0}.topic-code-wrap{overflow:hidden}
.topic-group-title{margin:0 0 9px 11px}.drawer-group-title{margin:24px 0 8px 10px;display:flex;align-items:center;gap:12px;font:800 14px/1.5 var(--body);color:var(--accent)}.drawer-group-title:first-child{margin-top:8px}.drawer-group-title::after{content:"";height:1px;min-width:16px;flex:1;background:var(--line)}
.topic-dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-up)}.topic-progress{font-size:13px;color:var(--muted);margin:12px 0 0}.topics-view{padding-top:36px}.topic-description{margin-top:17px}
.practice-utilities{display:none}.topbar-right{margin-left:auto}body:has(.sidebar.open){overflow:hidden}
.pysteps-home .data-stack,.pysteps-home .input-node{animation-duration:10s}.pysteps-home .output-node{animation-duration:11.4286s}.pysteps-home .traveller{animation-duration:10s}.pysteps-home .orbit-point{animation-duration:5.7143s}
@media(max-width:760px){.site-header{padding-inline:18px;gap:22px}.site-controls{gap:2px}.site-controls button{padding-inline:9px}#site-help{display:none}#theme-label{display:none}.main,.practice-mode .main{padding-inline:18px}.topic-sidebar h2{margin-bottom:22px}.topics-view{padding-top:20px}}
@media(max-width:580px){.site-header{gap:16px}.site-brand{font-size:22px;gap:6px}.site-brand svg{width:24px;height:24px}.site-nav a{font-size:13px}.site-controls #site-progress{display:none}.pysteps-home .hero{padding:22px 0 16px;gap:16px;grid-template-columns:1fr}.pysteps-home .hero h1{font-size:32px;letter-spacing:-1px}.pysteps-home .hero-lab{justify-self:center}.pysteps-home .hero-actions{flex-direction:row}.pysteps-home .resume-line{margin-top:8px}.pysteps-home .data-scene{max-height:180px}.pysteps-home .lab-topline{display:none}.practice-utilities{display:flex}.practice-utilities #quick-help{display:none}.topbar-right{gap:4px}.runtime-status{display:none}}
@media(max-width:580px) and (max-height:740px){.pysteps-home .data-scene{display:none}.pysteps-home .hero{gap:12px;padding-block:14px}}
@media(prefers-reduced-motion:reduce){.pysteps-home *{animation:none!important;transition:none!important}.pysteps-home .data-scene{transform:none!important}}
.pysteps-home .hero-copy{margin:0}.pysteps-home .lab-control label{margin:0;font-weight:400}
.practice-utilities,.practice-mode .practice-utilities{display:none}
@media(max-width:580px){.site-controls #site-progress{display:flex;min-width:44px}.site-controls #site-progress span{display:none}.site-header{gap:12px}.site-controls{gap:0}}
@media(max-width:380px){.site-brand svg{display:none}.site-header{padding-inline:14px;gap:12px}}
.future-label{font:600 12px var(--body);color:var(--muted);padding:5px 9px;border:1px solid var(--line);border-radius:6px}
