/* EDGE6: scoped AlphaFold layout. Keep normal article width and all other labs unchanged. */
#dna-protein-lab{--protein-width:min(1240px,calc(100vw - 2rem));--protein-stage-height:clamp(360px,62vh,620px);--protein-stage-height:clamp(360px,62dvh,620px);}
#dna-protein-lab:not(.is-full):not(:fullscreen){width:var(--protein-width);max-width:none;margin-inline:calc((100% - var(--protein-width))/2);}
html.mtn-bio-embed #dna-protein-lab:not(.is-full):not(:fullscreen){width:100%;margin-inline:0;}
#dna-protein-lab.is-full,#dna-protein-lab:fullscreen{width:100%;max-width:none;margin:0;}
#dna-protein-lab .biolab-panel{min-width:0;min-height:0;gap:0;}
#dna-protein-lab .biolab-panel-content{display:flex;flex-direction:column;gap:.75rem;min-width:0;min-height:0;overflow-wrap:anywhere;}
#dna-protein-lab .biolab-panel-content>*{flex-shrink:0;}
#dna-protein-lab .biolab-panel-content:focus-visible{outline:2px solid var(--bl-gold);outline-offset:-2px;}
#dna-protein-lab .biolab-nav{flex:none;margin-top:0;padding-top:.75rem;border-top:1px solid var(--bl-line);background:#0c1724;}
#dna-protein-lab .biolab-dna [hidden]{display:none!important;}
#dna-protein-lab .biolab-seg .lbl{min-width:0;flex-basis:100%;}
#dna-protein-lab .biolab-chip{font:600 .82rem/1.35 var(--sans,system-ui,sans-serif);white-space:normal;max-width:100%;}
#dna-protein-lab .biolab-seq{max-height:7.5rem;}
#dna-protein-lab .biolab-stage{position:relative;align-self:start;top:auto;height:clamp(280px,56vh,440px);min-height:0;}
@media (min-width: 900px) and (min-height: 500px){
  #dna-protein-lab .biolab-body{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;}
  #dna-protein-lab .biolab-stage,#dna-protein-lab .biolab-panel{height:var(--protein-stage-height);min-height:0;}
  #dna-protein-lab .biolab-panel{padding:1rem 1rem .8rem;}
  #dna-protein-lab .biolab-panel-content{flex:1;overflow:auto;overscroll-behavior-y:contain;padding:0 .5rem .6rem 0;scrollbar-gutter:stable;}
  #dna-protein-lab .biolab-lead{max-width:100ch;}
  #dna-protein-lab.is-full,#dna-protein-lab:fullscreen{display:flex;flex-direction:column;}
  #dna-protein-lab.is-full>.biolab-body,#dna-protein-lab:fullscreen>.biolab-body{flex:1 0 300px;min-height:300px;align-items:stretch;}
  #dna-protein-lab.is-full .biolab-stage,#dna-protein-lab.is-full .biolab-panel,#dna-protein-lab:fullscreen .biolab-stage,#dna-protein-lab:fullscreen .biolab-panel{height:auto;align-self:stretch;min-height:0;}
  #dna-protein-lab.is-full>.biolab-alt,#dna-protein-lab:fullscreen>.biolab-alt{display:none;}
  #dna-protein-lab.is-full>.biolab-head,#dna-protein-lab.is-full>.biolab-steps,#dna-protein-lab.is-full>.biolab-foot,#dna-protein-lab:fullscreen>.biolab-head,#dna-protein-lab:fullscreen>.biolab-steps,#dna-protein-lab:fullscreen>.biolab-foot{flex:none;}
}
@media (max-width:899px), (max-height:499px){
  #dna-protein-lab .biolab-body{grid-template-columns:minmax(0,1fr);}
  #dna-protein-lab .biolab-panel-content{overflow:visible;}
  #dna-protein-lab .biolab-panel{gap:.6rem;}
}
@media(max-width:520px){#dna-protein-lab{--protein-width:calc(100vw - 1rem);}#dna-protein-lab .biolab-stage{height:clamp(260px,48dvh,360px);}#dna-protein-lab .biolab-tools{right:.35rem;bottom:.35rem;gap:.25rem;}#dna-protein-lab .biolab-tools button{padding:.3rem;}}
