.math9-shell{--ink:#132e43;--navy:#14384e;--teal:#006d77;--paper:#f6f4ef;--accent:#dfb265}.math9-shell *{box-sizing:border-box}.math9-shell{margin:0;background:var(--paper);color:var(--ink);font:18px/1.85 "DejaVu Sans",Arial,sans-serif}.math9-shell>.math9-header,.math9-shell>.math9-footer{padding:22px max(5vw,20px);background:var(--navy);color:white}.math9-shell>.math9-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px}.math9-shell>.math9-header a{color:white}.math9-shell .math9-content{max-width:1120px;margin:auto;padding:42px 24px}.math9-shell a{color:var(--teal);text-underline-offset:5px}.math9-shell h1{font-size:2.35rem;line-height:1.4;margin:.3em 0 .65em}.math9-shell h2{font-size:1.35rem}.math9-shell h3{font-size:1.18rem}.math9-shell .lead{font-size:1.2rem;max-width:850px}.math9-shell .eyebrow{color:var(--teal);font-weight:bold}.math9-shell .badge{font-size:.8rem;border:1px solid #aec7d1;border-radius:30px;padding:3px 12px}.math9-shell .catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.math9-shell .catalog article,.math9-shell .question,.math9-shell .explanations section,.math9-shell .workspace{background:white;border:1px solid #d3dde0;border-radius:15px;padding:24px;margin:20px 0}.math9-shell .catalog article{margin:0}.math9-shell aside{border-right:5px solid var(--accent);background:#fff9e9;padding:16px 22px;margin:28px 0}.math9-shell button,.math9-shell .button{display:inline-block;min-height:46px;padding:10px 20px;border:0;border-radius:8px;background:var(--teal);color:white;font:inherit;cursor:pointer;margin:8px 0 8px 8px;text-decoration:none}.math9-shell button[data-reset],.math9-shell button.secondary{background:#e8eff1;color:var(--ink)}.math9-shell label{display:block;font-weight:bold;margin-top:12px}.math9-shell input,.math9-shell select,.math9-shell textarea{font:inherit;color:var(--ink);background:white;max-width:100%;width:100%;border:2px solid #a4b9c1;border-radius:7px;padding:10px;min-height:48px}.math9-shell input{direction:ltr;text-align:left}.math9-shell .field{max-width:520px}.math9-shell .controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}.math9-shell textarea{resize:vertical}.math9-shell .math-inline,.math9-shell .equation{direction:ltr;unicode-bidi:isolate;font-family:"DejaVu Sans",Arial,sans-serif}.math9-shell .equation{text-align:center;background:#edf4f6;padding:9px;overflow-wrap:anywhere;font-size:1.13rem}.math9-shell svg{width:100%;max-width:580px;height:auto;display:block;margin:20px auto;background:#fbfcfd;border:1px solid #afc6d0}.math9-shell svg text{font:12px "DejaVu Sans",sans-serif;direction:ltr;unicode-bidi:isolate}.math9-shell table{border-collapse:collapse;width:100%;margin:14px 0}.math9-shell th,.math9-shell td{padding:9px;border:1px solid #bccdd2;overflow-wrap:anywhere}.math9-shell th{background:#edf4f6}.math9-shell td bdi{direction:ltr}.math9-shell .solution,.math9-shell .evidence{border-right:4px solid var(--teal);padding:14px 20px;background:#eef7f5}.math9-shell .skip{position:absolute;top:-100px}.math9-shell .skip:focus{top:8px;background:white;padding:12px;z-index:5}.math9-shell :focus-visible{outline:3px solid #b96300;outline-offset:4px}.math9-shell [hidden]{display:none!important}.math9-shell [role=status]{min-height:30px;color:#643e00}.math9-shell>.math9-footer{font-size:.9rem;margin-top:40px}.math9-shell .model{overflow-wrap:anywhere}.math9-shell .table-wrap{overflow-x:auto}.math9-shell .numeric-fields{margin-bottom:16px}@media(max-width:620px){.math9-shell{font-size:16px}.math9-shell .math9-content{padding:24px 14px}.math9-shell h1{font-size:1.9rem}.math9-shell .catalog,.math9-shell .controls{grid-template-columns:1fr}.math9-shell .question,.math9-shell .workspace,.math9-shell .explanations section{padding:16px}.math9-shell button{width:100%;margin-left:0}.math9-shell>.math9-header{padding:18px}.math9-shell th,.math9-shell td{padding:6px}}@media(max-width:620px){.math9-shell table{font-size:.82rem}.math9-shell th,.math9-shell td{padding:5px;overflow-wrap:normal}.math9-shell td{min-width:2.5em}}

.math9-shell{font-family:inherit}.math9-shell .math9-header{padding:.7rem 1rem;background:#eaf2f4;color:#183d49}.math9-shell .math9-header a{color:#07515e}.math9-shell .math9-content{padding-top:1rem}.math9-shell .eyebrow{margin-block:.3rem}.math9-shell h1{margin-block:.3rem}.math9-shell .lead{font-size:1.05rem;margin-block:.5rem}.math9-shell .inline-investigation>h2{margin-block:.3rem}.math9-shell .inline-investigation>p{margin-block:.4rem}.math9-shell .lesson-nav{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}.math9-shell th,.math9-shell td{white-space:normal;word-break:normal}.math9-shell summary{cursor:pointer;font-weight:bold}.math9-shell .lesson-explanation{margin-block:1.5rem}

/* Keep focused controls and native scroll targets clear of the existing fixed navigation. */
html:has(.math9-shell){scroll-padding-top:110px;scroll-padding-bottom:110px}
.math9-shell input,.math9-shell select,.math9-shell textarea,.math9-shell button,.math9-shell [tabindex]{scroll-margin-top:110px;scroll-margin-bottom:110px}
