@font-face{font-family:Lexend Deca;src:url(assets/LexendDeca-Regular.ttf)}@font-face{font-family:Lexend Deca;src:url(assets/LexendDeca-Bold.ttf);font-weight:700}
:root{font-family:"Lexend Deca",sans-serif;color:#112445;background:#eef5f4;line-height:1.55}
*{box-sizing:border-box}body{margin:0}.shell{width:min(1140px,94vw);margin:auto}header{padding:1.4rem 0 0}.brand{display:flex;align-items:center;gap:.65rem;color:#175651;font-weight:700}.brand img{width:38px;height:38px;object-fit:contain}
h1,h2,h3,p{margin:0 0 .7rem}h1{font-size:clamp(2rem,5vw,3rem)}h2{font-size:clamp(1.4rem,4vw,2.1rem)}nav{margin:0 0 .75rem}
button,select,input{font:inherit;color:inherit}button,select,input:not([type=file]){border:1px solid #677f8b;border-radius:.55rem;padding:.5rem .7rem;background:white}button{cursor:pointer;font-weight:700}button:disabled{cursor:default;opacity:.55}.primary{background:#086b65;color:white;border-color:#086b65}:focus-visible{outline:3px solid #194cbe;outline-offset:3px}
.tools,.navigation,.actions,.math-tiles{display:flex;flex-wrap:wrap;gap:.55rem}.navigation{justify-content:space-between;margin:1rem 0 2rem}
article{background:white;border:1px solid #c4d9d6;border-radius:1rem;padding:clamp(.9rem,3vw,2rem)}.work{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}.work img,.visuals img{width:100%;height:auto;border:1px solid #d5e2e1;border-radius:.55rem}.visuals{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-bottom:1rem}
.panel{background:#f1f8f7;padding:.85rem;border-radius:.65rem;margin:.6rem 0 1rem}figure{margin:0}.grid{width:100%;table-layout:fixed;border-spacing:.35rem;margin-bottom:1rem;text-align:center}.grid th,.grid td{padding:.32rem;border-radius:.55rem}.grid td{background:#e6f3f1;border:1px solid #82aaa5}.grid select{width:100%;padding:.38rem .2rem}.gamete-label{font-size:.85rem;line-height:1.25}.gamete{display:flex;align-items:center;justify-content:center;position:relative;margin:.25rem auto;max-width:6rem;min-height:3rem}.gamete select{width:3.8rem;z-index:1;background:#e9ffff;border:2px solid #287a75;border-radius:50%;text-align:center}.egg select,.ovule select{background:#ffe8e2;border-color:#9b4b43}.sperm::after,.pollen::after{content:"";position:absolute;left:64%;right:0;border-bottom:3px solid #287a75;border-radius:50%;height:.6rem;transform:rotate(-12deg)}.pollen::after{border-bottom-style:dashed}
fieldset{padding:.85rem;margin:.75rem 0;border:1px solid #c4d9d6;border-radius:.7rem;min-width:0}legend{font-weight:700}.fields{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.fields label{display:flex;align-items:center;gap:.35rem}.fields input{width:5rem}.stack{display:grid;gap:.75rem}.picture-options{display:flex;gap:.7rem;flex-wrap:wrap;margin:.65rem 0}.picture-options button{width:min(180px,45%);display:grid;gap:.25rem}.picture-options img{width:100%;aspect-ratio:1.6;object-fit:contain}.picture-options button[aria-pressed=true],.math-tiles button[aria-pressed=true]{background:#dbf2ee;border:2px solid #086b65}.math-tiles button{min-width:4.6rem;min-height:3.5rem}.correct{color:#235a45}.retry{color:#8f3627}#feedback,#notice{min-height:1.55em}.report-list{display:grid;gap:.35rem}.read-aloud{padding:.18rem .45rem;font-size:1rem;margin-left:.35rem}.review td,.review th{text-align:left;padding:.3rem .6rem}.review{border-collapse:collapse}.review tr+tr{border-top:1px solid #c4d9d6}
@media(max-width:740px){.work,.visuals{grid-template-columns:1fr}.work figure{max-width:36rem}}@media print{header .tools,nav,.navigation,button{display:none}article{border:none}}

article p, article fieldset, #sign-in {font-size:2rem;line-height:1.45}
article .sentence {margin-bottom:.75em}
.read-aloud {display:inline-block;font-size:1rem;vertical-align:middle}
article fieldset input,article fieldset select {font-size:1.25rem;max-width:100%}
article fieldset legend {overflow-wrap:anywhere}
#sign-in {max-width:36rem}
#sign-in label {display:grid;gap:.25rem}
#sign-in input {width:100%;font-size:1.5rem}
#sign-in button {justify-self:start;font-size:1.15rem}
.grid {font-size:1.2rem}
.grid .edge-label {text-align:left;vertical-align:middle;color:#793e36;overflow-wrap:anywhere}
.grid thead td {background:none;border:0}
.grid .egg-example {background:#ffe8e2}
.example-square {max-width:36rem}
.example-square tbody td button {width:100%;border-color:transparent}
.example-square button[aria-pressed=true] {background:#bfe8e1;border:2px solid #086b65}
.parent-captions {display:grid;grid-template-columns:1fr 1fr;gap:.55rem;text-align:center;margin-top:.5rem}
.parent-captions>div {padding:.5rem;background:#e6f3f1;border-radius:.5rem}
@media(max-width:440px){.grid select{font-size:1rem}.grid .edge-label{font-size:.78rem}.grid th,.grid td{padding:.2rem}.gamete select{width:100%}}

.cross-work figure {margin-bottom:.4rem}
.cross-work .grid {margin-top:.15rem}
.cross-work .panel {margin-top:0;font-size:1.35rem}
.blue-guide {background:#eaf3ff;border-left:.3rem solid #28609b;padding:1rem;margin:0 0 .9rem;border-radius:.5rem}
.blue-guide h3 {color:#173d6a}
.blue-guide .sentence:last-child {margin-bottom:0}
.percent-calculator {font-size:1.25rem}
.percent-calculator #calc-result {font-size:1.25rem;margin:.4rem 0 0}
.cross-side,.cross-work>div{min-width:0}
.cross-directions{margin-top:1rem}
.grid .edge-label{text-align:right;padding-right:.35rem;line-height:1.25}

.allele-task{margin:1rem 0 2rem;max-width:42rem}
.allele-bank{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}
.allele-bank button,.allele-slot{min-width:2.75rem;min-height:2.75rem}
.allele-bank button[aria-pressed=true]{background:#bfe8e1;border-color:#086b65}
.allele-slot{border-style:dashed;background:#f1f8f7}
.allele-diagram tbody td{height:3.1rem}


.grid .label-column {width:20%}
.grid .allele-column {width:18%}
.grid .gamete select {max-width:100%}
.example-square tbody td button {padding-inline:.15rem}

:root {--bmd-purple:#6f3f91}
.grid .gamete-label,.grid .edge-label {color:var(--bmd-purple)}
.allele-task {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start;gap:1.5rem;max-width:none;margin:1.5rem 0 2rem}
.allele-instructions h3 {font-size:1.75rem;line-height:1.25;margin-bottom:.75rem}
article .allele-intro, article .allele-instructions p {font-size:1.35rem;line-height:1.5}
.allele-workspace {min-width:0;border:1px solid #ab91bf;border-radius:.85rem;padding:clamp(.65rem,2vw,1rem);background:#fdfaff}
.allele-workspace .grid {margin-bottom:0}
.allele-workspace .gamete-label,.allele-workspace .edge-label {font-size:1rem}
.allele-bank {justify-content:center;flex-wrap:wrap}
@media(max-width:740px){.allele-task{grid-template-columns:minmax(0,1fr);gap:.7rem}}


.brand {font-size:clamp(1.1rem,2.3vw,1.35rem)}
header h1 {font-size:clamp(1.65rem,3.6vw,2.4rem);line-height:1.17}
.cross-work {align-items:end}
.cross-side {background:#fdfaff;border:1px solid #ab91bf;border-radius:1rem;padding:clamp(.65rem,2vw,1rem)}
.cross-side .panel {background:#f0e8f7;margin-bottom:.5rem}
.cross-side .grid {margin-bottom:0}

article .combine-key {font-size:1.35rem}
.combine-work {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:1.5rem}
.combine-directions {margin:0;padding-left:1.75rem}
article .combine-directions p {font-size:1.35rem}
.combine-grid [data-source] {color:var(--bmd-purple);min-width:2.5rem;cursor:grab}
.combine-grid [data-source][aria-pressed=true] {background:#f0e8f7;border-color:var(--bmd-purple)}
.combine-slots {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem}
.combine-slots button {display:grid;justify-items:center;min-width:0;padding:.3rem .12rem;font-size:.9rem}
.combine-slots b {font-size:1.3rem}
@media(max-width:800px){.combine-work{grid-template-columns:minmax(0,1fr)}}
@media(max-width:440px){.combine-slots button{font-size:.7rem}}

.order-practice{margin-top:1.25rem;padding:1rem;border:1px solid #ab91bf;border-radius:.85rem;background:#fdfaff}
article .order-practice p{font-size:1.35rem}
.order-practice #order-status{margin:.55rem 0 0}
.combine-grid .ordered-box{height:6.4rem;vertical-align:middle}
.ordered-pair,.swap-caption{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.12rem}
.ordered-pair{font-weight:700;font-size:1.7rem}
.uppercase-allele{color:#623585;background:#f2e6fa;border-radius:.3rem;padding:0 .12em}
.lowercase-allele{color:#075f5b;background:#def3ef;border-radius:.3rem;padding:0 .12em}
.combine-grid .reordered-box{background:#fff3d1;border:2px solid #946300;box-shadow:inset 0 0 0 2px #fffdf6}
.swap-caption{font-size:.9rem;font-weight:700;margin-top:.25rem}
.swap-caption>span[aria-hidden]{color:#795400;margin:0 .15rem}
