:root{--green:#1f7a45;--dark:#155b33;--soft:#eaf6ef;--ink:#1f2933;--muted:#607269;--line:#d4e4db;--purple:#8364cd;--yellow:#efb94e}*{box-sizing:border-box}body{margin:0;padding:24px 0;background:#edf1ee;color:var(--ink);font:16px/1.5 Inter,system-ui,-apple-system,sans-serif}button,select,input{font:inherit}button{padding:10px 16px;border:1px solid #bed5c6;border-radius:11px;background:white;color:var(--dark);cursor:pointer;min-height:44px}button:hover:not(:disabled){background:#eaf6ef;border-color:var(--green)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:var(--green);color:white;font-weight:700}.primary:hover:not(:disabled){background:var(--dark)}button[aria-pressed=true],button.selected{background:#e2f2e7;border:2px solid var(--green)}:focus-visible{outline:3px solid #ce992d;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:25px;margin-bottom:0}h2{font-size:26px;line-height:1.2;margin-bottom:12px}h3{font-size:19px;margin-bottom:10px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.6px;color:var(--dark);margin-bottom:5px}.muted,.small{color:var(--muted)}.small{font-size:13px}.module-shell{max-width:1440px;margin:auto;background:#f1f8f4;border:1px solid var(--line);border-radius:22px;overflow:hidden;min-height:calc(100vh - 48px);display:flex;flex-direction:column}.module-topbar{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--line);gap:16px}.module-brand{display:flex;gap:18px;align-items:center}.module-brand img{width:38px;height:46px;object-fit:contain}.tools,.navigation{display:flex;align-items:center;gap:10px}.badge{border:1px solid var(--line);border-radius:30px;padding:7px 12px;font-weight:700}#steps{display:flex;gap:8px;padding:18px 24px 0;flex-wrap:wrap}#steps button{font-size:13px;border-radius:30px;padding:8px 14px;min-height:36px}#steps button[aria-current=step]{background:var(--green);color:white}.workspace{padding:24px;display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;flex:1;align-items:start}#scene{min-width:0}#guide{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 15px 35px #183e2910;overflow:hidden;position:sticky;top:20px}#guide .guide-top{background:var(--soft);padding:18px 20px;border-bottom:1px solid var(--line)}#guide .guide-body{padding:20px}#guide p{font-size:15px}.goal{background:#f1f7f3;border-radius:12px;padding:14px;margin-top:20px}.card{padding:22px;background:white;border:1px solid var(--line);border-radius:18px;margin-bottom:16px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.actions,.choices,.tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.choices{flex-direction:column}.choices button{text-align:left}.question{padding-top:16px;border-top:1px solid var(--line);margin-top:18px}.question legend{font-weight:700;margin-bottom:8px}.question fieldset{border:0;padding:0;margin:0}.feedback{min-height:25px;font-weight:650;color:var(--dark);margin:12px 0 0}.feedback.wrong{color:#9b4523}.info{background:#edf5f0;border-radius:12px;padding:16px;min-height:104px}.timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-bottom:16px}.timeline button{padding:10px 5px;font-size:13px}.timeline small{display:block}.scene-svg{display:block;width:100%;height:auto;max-height:340px;background:#f4f8f6;border-radius:16px}.figure-caption{text-align:center;font-size:13px;color:var(--muted);margin:8px 0}.original-phage{width:100%;height:260px;object-fit:contain}.part-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.virus-choice{padding:12px;display:flex;flex-direction:column;gap:8px;align-items:center}.virus-choice svg{width:100%;height:100px}.facts{display:grid;grid-template-columns:100px 1fr;gap:7px 12px;margin:14px 0}.facts dt{font-weight:700}.facts dd{margin:0}.cycle-stages{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.cycle-stages button{font-size:13px}.cycle-caption{min-height:95px;padding:16px;background:#edf5f0;border-radius:12px}.legend{display:flex;gap:18px;justify-content:center;font-size:13px;margin-top:8px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.range-row{display:flex;gap:12px;align-items:center}input[type=range]{accent-color:var(--green);flex:1;min-width:80px}.match-row{display:grid;grid-template-columns:1fr 190px;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}select{width:100%;background:white;border:1px solid #afc9ba;border-radius:8px;padding:10px;color:var(--ink)}footer{padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border-top:1px solid var(--line)}#progress{font-size:14px;color:var(--dark);font-weight:650}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:4px;z-index:10;background:white;padding:10px}dialog{max-width:540px;border:1px solid var(--line);border-radius:18px;padding:28px}dialog::backdrop{background:#132e2380}.moving{animation:appear .65s ease-out}.release{animation:release 1.4s ease-out both}.pulse{animation:pulse 1.2s ease-in-out 2}@keyframes appear{from{opacity:.2;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}@keyframes release{from{opacity:.2;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{50%{opacity:.4}}@media(max-width:1000px){.workspace{grid-template-columns:1fr 250px;padding:18px;gap:16px}.two{grid-template-columns:1fr}.scene-svg{max-height:300px}}@media(max-width:760px){body{padding:0}.module-shell{border-radius:0;min-height:100vh}.workspace{grid-template-columns:1fr}#guide{position:static;order:-1}#guide .guide-body{padding:14px 18px}#guide .goal{margin-top:8px}#guide .guide-top{padding:10px 18px}#guide h3{display:none}.module-topbar{padding:12px}.tools{gap:5px}#fullscreen{font-size:0}#fullscreen::after{content:'⛶';font-size:20px}#steps{padding:12px 12px 0}.card{padding:16px}.three{grid-template-columns:1fr}.virus-choice{flex-direction:row}.virus-choice svg{width:90px;height:75px}.timeline{grid-template-columns:repeat(3,1fr)}footer{padding:12px;flex-wrap:wrap}#progress{order:3;width:100%;text-align:center}.match-row{grid-template-columns:1fr;gap:8px}.two{grid-template-columns:1fr}h2{font-size:23px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Step 1: three sequential screens and an expandable, connected timeline. */
.history-flow{display:flex;align-items:center;gap:8px;margin:18px 0 22px;flex-wrap:wrap}.history-flow button{font-size:14px;border-radius:25px}.history-flow [aria-current=step]{background:var(--green);color:#fff;border-color:var(--green)}.history-flow>span{color:#779780}.history-card{padding:24px}.timeline-scroll{overflow-x:auto;padding:16px 8px 6px}.history-line{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;position:relative;min-width:620px;isolation:isolate}.history-line:before{content:'';position:absolute;height:4px;background:#74a786;left:10%;right:10%;top:198px;z-index:-1}.history-event{border:0;background:transparent;padding:0 5px 8px;display:flex;align-items:center;flex-direction:column;border-radius:12px;position:relative;color:var(--ink);transition:background .2s}.history-event:hover:not(:disabled){border:0;background:#f0f7f2}.timeline-photo{width:86px;height:78px;border-radius:50% 50% 18px 18px;background:#e4eee7;border:1px dashed #a9bdae;display:grid;place-items:center;margin:8px 0 15px;transition:transform .25s,background .25s}.timeline-photo svg,.event-photo-placeholder svg{width:34px;stroke:#799583;stroke-width:1.5}.history-event strong{font-size:17px;color:var(--dark);white-space:nowrap}.event-name{font-size:12px;line-height:1.35;height:55px;display:flex;align-items:center;text-align:center;max-width:120px}.event-node{width:17px;height:17px;background:white;border:4px solid #6b9d7d;border-radius:50%;margin-top:8px;position:relative}.event-node:before{content:'';position:absolute;bottom:13px;left:3px;height:17px;border-left:1px dashed #91ae9b}.event-visited{font-size:11px;margin-top:12px;color:#64796b}.history-event[aria-expanded=true] .timeline-photo{transform:scale(1.12);background:#d4eadb;border-style:solid;border-color:var(--green)}.history-event[aria-expanded=true] .event-node{background:var(--green);border-color:var(--green);box-shadow:0 0 0 5px #e0eee5}.history-event[aria-expanded=true] strong{color:#155b33}.expanded-event{display:grid;grid-template-columns:minmax(160px,.8fr) 1.3fr;margin-top:18px;border:1px solid #c6daca;border-radius:16px;overflow:hidden;animation:event-expand .25s ease-out;background:#f7faf8}.event-photo-placeholder{min-height:215px;background:#e7eeea;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;color:#617b69;padding:20px;text-align:center}.event-photo-placeholder svg{width:54px;margin-bottom:4px}.event-photo-placeholder span{font-size:14px}.event-photo-placeholder small{font-size:12px}.event-story{padding:25px}.event-story .eyebrow{font-size:16px;letter-spacing:.6px}.event-story h3{font-size:23px}.event-story p:last-child{margin-bottom:0}.timeline-intro{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f6f9f7;border:1px dashed var(--line);border-radius:15px;color:var(--muted);margin-top:18px;text-align:center;padding:20px}.timeline-intro>span{font-size:30px;color:#669475}.history-quiz .question{margin:0;border:0;padding:0}@keyframes event-expand{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:760px){.history-card{padding:14px}.expanded-event{grid-template-columns:1fr}.event-photo-placeholder{min-height:160px}.event-story{padding:20px}.history-flow{gap:5px}.history-flow button{font-size:12px;padding:8px 10px}.timeline-scroll{margin:0 -5px}.history-line{min-width:640px}.history-flow>span{font-size:12px}}

/* Supplied timeline photographs and Step 2 specimen gallery. */
.timeline-photo{overflow:hidden;width:100%;max-width:125px;border-radius:12px;border-style:solid}.timeline-photo img{width:100%;height:100%;object-fit:cover}.event-history-photo{background:#e7eeea;display:flex;align-items:center;justify-content:center;min-height:275px;padding:12px}.event-history-photo img{width:100%;max-height:350px;object-fit:contain;display:block}.expanded-event{grid-template-columns:1.1fr 1fr}.virus-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;padding:12px 0}.specimen-card{grid-column:span 2;display:flex;flex-direction:column;align-items:center;gap:9px;padding:16px 10px;background:#f7faf8;border:1px solid var(--line);min-width:0;transition:transform .2s,box-shadow .2s}.specimen-card:nth-child(4){grid-column:2/span 2}.specimen-card:nth-child(5){grid-column:4/span 2}.specimen-card:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 10px 22px #193f2814}.specimen-card img{width:100%;height:160px;object-fit:contain;display:block}.specimen-card.specimen-lambda img{height:160px;width:85%}.specimen-card strong{font-size:15px;line-height:1.3}.explored{font-size:12px;color:var(--green)}.gallery-status{text-align:center;color:var(--dark);font-size:14px;margin:20px 0}.specimen-detail{padding:20px;background:#fff;border:1px solid var(--line);border-radius:18px;animation:event-expand .35s ease-out}.specimen-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:center;margin-top:18px}.specimen-art{min-width:0;text-align:center}.specimen-art img{width:100%;height:340px;object-fit:contain;display:block}.specimen-art.specimen-lambda img{height:365px}.specimen-art .small{font-size:11px;line-height:1.4;margin:12px 0 0}.specimen-info h3{font-size:27px;line-height:1.15}.specimen-info dt{font-size:12px;text-transform:uppercase;letter-spacing:.7px;color:var(--green);font-weight:750;margin-top:15px}.specimen-info dd{margin:4px 0 0;font-size:14px;line-height:1.5}::view-transition-group(*){animation-duration:.4s}::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}@media(max-width:1000px){.specimen-layout{grid-template-columns:1fr}.specimen-art img,.specimen-art.specimen-lambda img{height:280px}.specimen-card img{height:140px}}@media(max-width:760px){.virus-gallery{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.specimen-card,.specimen-card:nth-child(4),.specimen-card:nth-child(5){grid-column:auto}.specimen-card:nth-child(5){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}.specimen-card img,.specimen-card.specimen-lambda img{height:145px}.expanded-event{grid-template-columns:1fr}.event-history-photo{min-height:220px}.event-history-photo img{max-height:280px}.specimen-detail{padding:16px}.specimen-layout{gap:12px}.specimen-info h3{font-size:25px}}@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* Step 1 structure only: preserve the surrounding lesson shell. */
.structure-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:center}.structure-figure{min-width:0;align-self:center}.structure-svg{display:block;width:100%;height:auto;overflow:visible}.structure-caption{font-size:11px;line-height:1.45;text-align:center;color:var(--muted);margin:4px 10px 0}.structure-card .part-buttons{grid-template-columns:1fr}.structure-card .part-buttons button{text-align:left;font-size:14px}.structure-card .info{font-size:14px;min-height:145px}.structure-svg .virus-layer{transition:opacity 300ms ease,filter 300ms ease;opacity:.56}.structure-svg[data-selected=genome] #virus-genome,.structure-svg[data-selected=capsid] #virus-capsid,.structure-svg[data-selected=envelope] #virus-envelope,.structure-svg[data-selected=attachment] #virus-attachment-proteins{opacity:1;filter:url(#vs-shadow)}.structure-svg[data-selected=genome] #virus-capsid{opacity:.42}.structure-svg[data-selected=genome] #virus-envelope{opacity:.35}.structure-svg[data-selected=capsid] #virus-genome{opacity:.7}.structure-svg[data-selected=attachment] #virus-envelope{opacity:.65}@media(max-width:1050px){.structure-layout{grid-template-columns:1fr}.structure-figure{max-width:520px;width:100%;margin:auto}.structure-card .part-buttons{grid-template-columns:1fr 1fr}.structure-card .info{min-height:100px}}@media(max-width:480px){.structure-layout{gap:12px}.structure-card{padding:12px}.structure-card .part-buttons{gap:7px}.structure-card .part-buttons button{font-size:13px;padding:10px}.structure-caption{font-size:10px}}@media(prefers-reduced-motion:reduce){.structure-svg .virus-layer{transition:none}}
.structure-svg .virus-layer{opacity:.7}.structure-svg[data-selected=genome] #virus-capsid{opacity:.62}.structure-svg[data-selected=genome] #virus-envelope{opacity:.55}

.footer-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#module-sound{display:flex;align-items:center;gap:8px}.sound-status{font-size:12px;max-width:180px}.sound-status:empty{display:none}#soundButton.sound-active{background:var(--soft);border-color:var(--green)}

.specimen-card .lambda-specimen{width:85%;height:160px;display:block}.specimen-art .lambda-specimen{height:365px;width:100%;display:block}

/* Align the module with the top edge at every viewport size. */
body{padding:0}.module-shell{min-height:100vh;border-top-left-radius:0;border-top-right-radius:0}
