/* The overview is a single viewport; the navigation owns the catalog links. */
html.overview-fixed,html.overview-fixed body{height:100%;overflow:hidden;overscroll-behavior:none}
.overview-page .shell{height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding-block:22px max(12px,env(safe-area-inset-bottom))}
.overview-page .site-header{margin-bottom:20px}
.overview-page .site-top{padding-bottom:16px}
.overview-page main,.overview-page #app{min-height:0;height:100%}
.overview-page #app{animation:none}
.overview-page .hero{height:100%;min-height:0;margin:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:clamp(24px,4vw,64px);align-items:stretch}
.overview-page .hero-copy{align-self:center;min-width:0}
.overview-page .hero h1{font-size:clamp(36px,4.5vw,64px);line-height:1.08;letter-spacing:-.045em;margin:0 0 22px}
.overview-page .hero .lede{font-size:clamp(14px,1.3vw,17px);max-width:40ch;line-height:1.7}
.overview-page .hero .actions{margin-top:26px;gap:16px}
.overview-page .hero-lab{display:flex;flex-direction:column;min-height:0;border-radius:12px}
.overview-page .hero-lab .wave-view{display:flex;flex-direction:column;flex:1;min-height:0}
.overview-page .hero-lab .lab-top{flex:none;min-height:48px;padding:2px 12px 2px 18px;align-items:center;gap:10px}
.overview-page .hero-lab .lab-top strong{min-width:0;flex:1}
.overview-page .hero-lab .lab-top>span{display:none}
.overview-page .hero-lab .wigner-presets{flex:none;padding:8px 14px}
.overview-page .hero-lab .wave-stage{flex:1;min-height:0;overflow:hidden}
.overview-page .hero-lab .wave-stage canvas{height:100%;width:100%;position:absolute;inset:0}
.overview-page .hero-lab .wave-equations,.overview-page .hero-lab .wigner-options,.overview-page .hero-lab .hero-note,.overview-page .hero-lab .wave-hint,.overview-page .hero-lab .wigner-model,.overview-page .hero-lab .hero-controls{display:none}
.overview-page .hero-lab .wave-open{display:inline-flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;background:transparent;color:var(--mut);border:0;border-radius:8px}
.overview-page .hero-lab .wave-open:hover{background:var(--soft);color:var(--ink)}
.overview-page .hero-lab .wave-open svg{width:19px;height:19px}
/* The scale and transport share a row in both the card and expanded viewer. */
.wigner-view .wigner-playback{display:flex;flex:none;align-items:center;justify-content:space-between;gap:14px;padding:8px 14px;direction:ltr}
.wigner-playback .wigner-legend{flex:1;min-width:0;max-width:320px;padding:0;gap:7px;justify-content:flex-start}
.wigner-playback .wigner-legend i{flex:1;min-width:36px;width:auto;max-width:170px}
.wigner-playback .wigner-legend span{flex:none}
.wigner-playback .wigner-legend>span:last-child{margin-left:2px}
.wigner-playback [data-play]{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:8px;min-width:88px;min-height:44px;padding:10px 12px;border-radius:8px;font-size:12px;color:var(--ink);background:var(--soft);border:1px solid var(--line)}
.wigner-playback [data-play] svg{width:18px;height:18px;flex:none}
.wigner-dialog .wave-open{display:none}
.wigner-dialog .wigner-playback{padding-inline:0}
.overview-page .foot{margin-top:18px;padding:12px 0 0;gap:12px;font-size:11px;align-items:center;flex-wrap:nowrap}
.overview-page .foot>span:nth-child(2){display:none}
/* Full controls and the physical model remain in the expanded laboratory. */
.wigner-dialog .wigner-model{display:block;flex:none;max-height:32dvh;overflow:auto;margin:5px 0 0;padding:10px 0;scrollbar-width:thin}
.wigner-dialog .wigner-model>summary{min-height:24px}
.wigner-dialog .wave-view{overflow-y:auto}
.wigner-dialog .lab-top{position:sticky;top:0;z-index:3;background:var(--panel);flex:none}
.wigner-dialog .wave-stage{flex-shrink:0}
@media(max-width:850px){
 .overview-page .shell{padding:14px 18px max(10px,env(safe-area-inset-bottom))}
 .overview-page .site-header{margin-bottom:16px}
 .overview-page .site-top{padding-bottom:12px}
 .overview-page .hero{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:18px}
 .overview-page .hero h1{font-size:clamp(28px,6vw,40px);margin-bottom:10px}
 .overview-page .hero .lede{display:none}
 .overview-page .hero .actions{margin:0;gap:12px;align-items:center}
 .overview-page .hero .actions a{font-size:12px}
 .overview-page .hero .actions .button{min-height:38px;padding:9px 12px}
 .overview-page .hero-lab .lab-top{padding:0 6px 0 12px;min-height:44px}
 .overview-page .hero-lab .lab-top>span{display:none}
 .overview-page .hero-lab .wigner-presets{padding:7px 8px 0;justify-content:center}
 .overview-page .hero-lab .wigner-presets button{min-height:36px;padding:7px 10px}
 .wigner-view .wigner-playback{padding:5px 10px;gap:12px}
 .wigner-playback .wigner-legend{font-size:10px;gap:6px}
 .wigner-playback [data-play]{min-width:44px;width:44px;padding:10px}
 .wigner-playback [data-play]>span{display:none}
 .overview-page .foot{margin-top:12px;padding-top:10px;font-size:10px}
}
@media(max-width:850px) and (max-height:650px){
 .overview-page .site-header{margin-bottom:10px}
 .overview-page .hero{gap:10px}
 .overview-page .hero h1{font-size:25px;margin-bottom:8px}
 .overview-page .hero-lab .wigner-presets{padding-top:0}
 .overview-page .hero-lab .lab-top{padding-top:0}
 .overview-page .foot{margin-top:8px;padding-top:8px}
}
@media(max-height:500px) and (min-width:500px){
 .overview-page .shell{padding-block:10px}
 .overview-page .site-header{margin-bottom:10px}
 .overview-page .site-top{padding-bottom:8px}
 .overview-page .hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr);gap:22px}
 .overview-page .hero h1{font-size:30px}
 .overview-page .hero .lede{display:none}
 .overview-page .hero .actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:14px}
 .overview-page .hero-lab .wave-view{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto minmax(0,1fr) auto}
 .overview-page .hero-lab .lab-top{display:contents}
 .overview-page .hero-lab .lab-top strong{display:none}
 .overview-page .hero-lab .wave-open{grid-column:2;grid-row:1}
 .overview-page .hero-lab .wigner-presets{grid-column:1;grid-row:1;align-items:center;justify-content:center;padding:3px 6px}
 .overview-page .hero-lab .wigner-presets button{min-width:0}
 .overview-page .hero-lab .wave-stage{grid-column:1/-1;grid-row:2}
 .overview-page .hero-lab .wigner-playback{grid-column:1/-1;grid-row:3}
 .overview-page .foot{margin-top:8px;padding-top:8px}
}
@media print{html.overview-fixed,html.overview-fixed body{height:auto;overflow:visible}.overview-page .shell{height:auto;display:block}.overview-page .hero{height:650px}.mobile-nav-toggle{display:none}}
/* The molecule shares the page background: no laboratory card or panel. */
.overview-page .hero-lab.molecule-hero{position:relative;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:6px}
.overview-page .molecule-canvas{display:block;width:100%;height:100%;min-height:0;touch-action:none;cursor:grab;background:transparent;border:0;border-radius:0}
.molecule-canvas.dragging{cursor:grabbing}.molecule-canvas:focus-visible{outline:1px solid var(--classical);outline-offset:-6px}
.molecule-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px}
.molecule-caption>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}
.molecule-caption strong{font-size:14px;font-weight:500}.molecule-caption span,.molecule-hint{font-size:11px;color:var(--mut)}
.molecule-actions{display:flex;gap:2px;flex:none}.molecule-actions button{border:0;background:transparent;color:var(--mut);width:40px;height:40px;padding:10px;display:grid;place-items:center;border-radius:50%;cursor:pointer}
.molecule-actions button:hover{color:var(--ink);background:var(--soft)}.molecule-actions svg{width:19px;height:19px}.molecule-hint{margin:0;padding:0 12px 8px}.molecule-status{position:absolute;top:45%;left:0;right:0;text-align:center;font-size:12px;color:var(--mut)}
.molecule-dialog{position:fixed;inset:0;max-width:540px;width:calc(100% - 40px);max-height:82dvh;margin:auto;padding:32px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);overflow:auto;font-size:14px;line-height:1.65}
.molecule-dialog::backdrop{background:#0007;backdrop-filter:blur(6px)}.molecule-dialog h2{font-size:26px;letter-spacing:-.03em;font-weight:500;margin:0 24px 20px 0}.molecule-dialog p{color:var(--mut)}.molecule-dismiss{position:absolute;top:14px;right:14px;font-size:24px;background:transparent;border:0;color:var(--ink);width:32px;height:32px;cursor:pointer}.molecule-sources{display:flex;flex-direction:column;gap:10px;font-size:13px}.molecule-dialog .eq{overflow:auto}
@media(max-width:850px){.overview-page .hero{gap:0}.molecule-caption{padding:0 2px}.molecule-caption>div:first-child{display:block}.molecule-caption strong{display:block;font-size:13px}.molecule-caption span{font-size:10px}.molecule-hint{font-size:10px;padding:0 2px 2px}.molecule-actions button{width:44px;height:44px}.molecule-dialog{padding:26px 22px}}
@media(max-height:500px) and (min-width:500px){.molecule-hint{display:none}.molecule-caption span{display:none}}

/* Keep the scientific object central, with comfortable reading and actions. */
.overview-page .hero h1{letter-spacing:-.035em;text-wrap:balance}
.overview-page .hero .actions a{min-height:44px;display:inline-flex;align-items:center}
.molecule-caption strong{font-weight:550}
.molecule-caption span,.molecule-hint{font-size:12px}
@media(max-width:850px){
 .overview-page .hero-copy{padding:12px 0 16px}
 .overview-page .hero h1{font-size:30px;line-height:1.12;margin-bottom:16px}
 .overview-page .hero .actions{gap:12px}
 .overview-page .hero .actions .button{min-height:44px;padding:11px 13px}
 .molecule-caption span,.molecule-hint{font-size:11px}
}
