/* Shared introduction and base surfaces; no global button or form overrides. */
.mq-learning-dialog{box-sizing:border-box;width:min(1060px,calc(100vw - 24px));max-width:1060px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #ac955b;border-radius:22px;background:#102d35;color:#f8f1df;overflow:auto;box-shadow:0 24px 100px #0009;scrollbar-gutter:stable}
.mq-learning-dialog::backdrop{background:#031318c9;backdrop-filter:blur(5px)}
.mq-learning-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:linear-gradient(90deg,#132c35e8,#102633bb),url('../../learning/base.webp') center 36%/cover;border-bottom:1px solid #6ca6a444}
.mq-learning-dialog h2,.mq-learning-dialog h3,.mq-learning-dialog h4{color:#fff1c5;line-height:1.25;margin:10px 0 16px}.mq-learning-dialog p{line-height:1.7;color:inherit;overflow-wrap:anywhere}.mq-learning-dialog label{color:#f8f1df}.mq-learning-dialog button{min-height:44px;white-space:normal;line-height:1.35;max-width:100%}.mq-learning-dialog>header>button{flex:0 0 auto;background:#183b43;color:#fff1c5;border:1px solid #a79864}
.mq-learning-dialog [data-learning-body]{padding:20px 24px}.mq-learning-dialog [data-status]{margin:0;padding:0 24px}.mq-learning-dialog [data-status]:empty{display:none}
.mq-learning-dialog [data-learning-progress]{padding:18px 24px 0}.learning-progress-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.mq-learning-dialog progress{width:100%;height:12px;accent-color:#68d4bd}.mq-learning-dialog [data-learning-progress] p{margin:8px 0 0;font-size:.88rem}
.learning-step-nav{display:flex;gap:8px;overflow-x:auto;padding:0 0 14px;overscroll-behavior-x:contain}.learning-step-nav button{flex:0 0 auto;background:#1b4149;color:#edf9f4;border:1px solid #618c89;padding:9px 14px}.learning-step-nav button[aria-current]{background:#e9c16a;color:#17313a;border-color:#efce84}
.learning-step{padding:clamp(15px,3vw,30px);background:#f6f1e5;color:#19313c;border-radius:18px;border:1px solid #c8bba0}.mq-learning-dialog .learning-step h3,.mq-learning-dialog .learning-step h4{color:#19313c}.learning-prose{max-width:76ch}.learning-prose p{margin:0 0 14px}.learning-rule,.learning-example{padding:14px 18px;margin:16px 0;border-left:4px solid #168379;border-radius:0 12px 12px 0;background:#e1f0e7}.learning-example{border-color:#c0922c;background:#f5e7c5}.learning-rule p,.learning-example p{margin:8px 0 0}
.learning-check{padding:20px 0;border-top:1px solid #c7d3ce}.learning-check form{display:grid;gap:15px;margin-top:18px}.learning-check form>button{justify-self:start}.learning-check input,.learning-check select,.learning-check textarea{box-sizing:border-box;max-width:100%;color:#17333c;background:#fffef9;border:1px solid #748c85}.learning-check label{color:#17333c}.learning-check [data-check-result]{padding:0;margin:12px 0}.learning-check [data-check-result]:empty{display:none}.learning-step-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:20px}.learning-hub-filters{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.learning-hub-filters input,.learning-hub-filters select{width:100%;box-sizing:border-box}
[data-learning-gates]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.learning-gate{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;padding:20px;background:#1b3b43;border:1px solid #658989;border-radius:18px}.learning-gate h3{font-size:1.15rem;margin:7px 0}.learning-gate p{font-size:.87rem;margin:10px 0}.learning-gate-art{background:url('../../learning/base.webp') 41% 44%/auto 230%;border-radius:45px 45px 8px 8px;border:2px solid #ab8c4c;box-shadow:inset 0 0 20px #0008}.learning-gate.is-unlocked{border-color:#63c6a8;box-shadow:0 0 18px #5ac19a11}.learning-module-status{padding:10px 12px;border-radius:12px;background:#e7f0e9;color:#153c34;font-size:.9rem}
.mq-learning-base{margin-bottom:28px;border:1px solid #948052;border-radius:24px;overflow:hidden;background:#132d36;box-shadow:0 18px 50px #07191d35}.learning-base-scene{position:relative;isolation:isolate;aspect-ratio:3/2;max-height:530px;overflow:hidden}.learning-base-visual{position:absolute;inset:0;background:url('../../learning/base.webp') center/100% 100%}.learning-base-copy{position:absolute;z-index:2;left:4%;top:5%;max-width:49%;padding:clamp(15px,3vw,28px);border:1px solid #a98e5866;border-radius:18px;background:#071f2be8;color:#f7eedb;box-shadow:0 10px 35px #0005}.learning-base-copy h2{font-size:clamp(1.35rem,3vw,2.3rem);color:#fff0bf;margin:10px 0}.learning-base-copy p{line-height:1.6;font-size:clamp(.86rem,1.4vw,1rem)}.learning-base-parking{position:absolute;right:9%;bottom:19.2%;width:19%;aspect-ratio:1.5;z-index:1}.learning-base-parking .exp-cart{position:absolute;inset:0;width:100%;height:auto;animation:none!important}.learning-base-parking .exp-cart-body{animation:none!important}.learning-base-parking .cart-spokes{animation-play-state:paused!important}.learning-base-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 28% 38%,#ffcf5312,transparent 35%);animation:learning-lantern 7s ease-in-out infinite alternate}.learning-base-links{display:flex;flex-wrap:wrap;gap:12px;padding:18px;background:#102d35}.learning-base-links button{flex:1 1 200px;background:#25454b;color:#fff0c8;border:1px solid #9d935f;min-height:46px;white-space:normal}.library-book.is-locked{border-color:#77827b}.library-book.is-locked .library-book-art{filter:saturate(.4) brightness(.75)}.mq-learning-dialog.is-unlocked{border-color:#7fe2b8;box-shadow:0 0 60px #70efb422,0 24px 100px #0009}
@keyframes learning-lantern{to{opacity:.3}}
@media(max-width:700px){.mq-learning-dialog>header,.mq-learning-dialog [data-learning-body],.mq-learning-dialog [data-learning-progress]{padding:16px}.mq-learning-dialog>header{align-items:flex-start}.mq-learning-dialog>header h2{font-size:1.35rem}.learning-hub-filters,[data-learning-gates]{grid-template-columns:1fr}.learning-gate{grid-template-columns:60px minmax(0,1fr);padding:16px}.learning-base-scene{aspect-ratio:3/2;overflow:visible;margin-bottom:0}.learning-base-copy{position:relative;left:auto;top:auto;max-width:none;padding:20px;border:0;border-radius:0;background:linear-gradient(#081e25e8,#081e25c9);height:100%;box-sizing:border-box;padding-right:26%}.learning-base-copy h2{font-size:1.35rem}.learning-base-copy p{font-size:.85rem}.learning-base-parking{bottom:19%;right:7%;width:22%;z-index:3}.learning-base-links{padding:12px;gap:10px}.learning-base-links button{flex-basis:100%;font-size:.88rem}.learning-step-footer button{flex:1 1 130px}.learning-step-nav button{font-size:.85rem}}
@media(max-width:380px){.learning-base-scene{aspect-ratio:auto;min-height:350px}.learning-base-copy{padding-right:20px;padding-bottom:85px}.learning-base-parking{bottom:4%;right:6%;width:30%}}
@media(prefers-reduced-motion:reduce){.learning-base-glow{animation:none}.mq-learning-dialog *{scroll-behavior:auto}}

.mq-book-spread{position:relative;perspective:1500px}.mq-page-turn{position:absolute;inset:0 0 0 50%;z-index:10;transform-style:preserve-3d;transform-origin:left center;pointer-events:none}.mq-page-turn.turn-backward{inset:0 50% 0 0;transform-origin:right center}.mq-page-turn .mq-turn-front,.mq-turn-back{position:absolute;inset:0;box-sizing:border-box;backface-visibility:hidden;overflow:hidden;background:#faf0d9;box-shadow:0 10px 26px #0005}.mq-turn-back{transform:rotateY(180deg);background:linear-gradient(90deg,#d7c5a5,#fff5df 30%,#f3e5c7)}
@media(max-width:999px){.mq-page-turn,.mq-page-turn.turn-backward{inset:0;transform-origin:left center}.mq-page-turn.turn-backward{transform-origin:right center}}

.learning-teacher-table{overflow-x:auto;max-width:100%}.learning-teacher-table table{width:100%;border-collapse:collapse}.learning-teacher-table th,.learning-teacher-table td{padding:14px;text-align:left;vertical-align:top;border-bottom:1px solid #859f8c55}.command-learning-progress{padding:22px;margin:22px 0;background:#15383deb;border:1px solid #8b9862;border-radius:18px;color:#fcf1d7}.command-learning-progress h2{color:inherit}@media(max-width:700px){.learning-base-scene{background-image:url('../../learning/base-small.webp')}}

/* The small-screen scene and reading panel have separate layout boxes. */
@media(max-width:700px){.learning-base-scene{display:flex;flex-direction:column;aspect-ratio:auto;min-height:0;max-height:none;overflow:hidden;background:none}.learning-base-visual{position:relative;inset:auto;aspect-ratio:3/2;background-image:url('../../learning/base-small.webp');flex:none}.learning-base-copy{height:auto;max-width:none;padding:20px;background:#102c35}.learning-base-parking{bottom:19.2%;right:9%;width:19%}.learning-base-copy p{font-size:.95rem}.learning-base-copy h2{font-size:1.5rem}}
.learning-base-parking .cart-spokes{animation-play-state:paused!important}

.learning-gate-art{position:relative;width:100%;aspect-ratio:1;background:transparent!important;overflow:hidden}.learning-gate-art::before,.learning-gate-art::after{content:'';position:absolute;inset:0;background:url('../../learning/gates.webp') 0 center/200% 100% no-repeat;transition:opacity .7s ease,filter .7s ease}.learning-gate-art::after{background-position:100% center;opacity:0}.learning-gate.is-unlocked .learning-gate-art::before{opacity:0}.learning-gate.is-unlocked .learning-gate-art::after{opacity:1}.learning-gate-art::before{filter:brightness(.75)}.learning-gate.is-unlocked .learning-gate-art{animation:learning-access-open .8s ease both}@keyframes learning-access-open{from{transform:scale(.97);filter:brightness(.6)}to{transform:scale(1);filter:brightness(1)}}@media(prefers-reduced-motion:reduce){.learning-gate-art,.learning-gate-art::before,.learning-gate-art::after{animation:none!important;transition:none!important}}

.learning-objectives{padding:14px 18px;background:#e1efeb;border-radius:12px;margin:16px 0}.learning-objectives li{margin:8px 0;line-height:1.6}.learning-sources{border-top:1px solid #c7d3ce;margin-top:24px;padding-top:16px;font-size:.88rem}.learning-sources summary{min-height:44px;cursor:pointer}.learning-sources a{color:#155c62;text-decoration:underline}

.learning-lab-entry{padding:18px;margin:20px 0;border:1px solid #7d9b90;border-radius:14px;background:#dfede8}.learning-lab-entry button{background:#173f46;color:#fff1cb;border:1px solid #819982}.mq-learning-laboratory{width:min(1280px,calc(100vw - 24px))}.mq-learning-laboratory>header{position:sticky;top:0;z-index:1}.mq-learning-laboratory iframe{display:block;width:100%;height:65dvh;min-height:260px;border:0;background:#081d1d}.learning-lab-instructions{padding:16px 24px;color:#f8f1df}.learning-lab-instructions summary{cursor:pointer;min-height:44px}.learning-lab-instructions li{margin:8px 0;line-height:1.6}@media(max-width:700px){.mq-learning-laboratory>header{flex-wrap:wrap;gap:8px}.mq-learning-laboratory>header>button{flex:1 1 100%}.learning-lab-instructions{padding:12px 16px}.mq-learning-laboratory iframe{height:60dvh}}

.learning-illustration{margin:16px 0;max-width:100%;border:1px solid #938561;border-radius:14px;overflow:hidden;background:#153238}.learning-illustration img{display:block;max-width:100%;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.learning-illustration figcaption{padding:10px 14px;color:#f7efd9;line-height:1.5;font-size:.82rem}.mq-book-page .learning-illustration{max-width:100%;margin:0 0 12px}.mq-book-page .learning-illustration img{max-height:240px;object-fit:contain;background:#102b30}

.learning-editor-section{margin:24px 0;padding:clamp(16px,3vw,26px);background:#102e35;border:1px solid #919063;border-radius:18px;color:#f8f1de}.learning-editor-section>header{background:linear-gradient(90deg,#112e35e8,#112e35cc),url('../../learning/base.webp') center/cover;border-radius:12px;padding:18px;margin-bottom:20px}.learning-editor-section h3,.learning-editor-section label,.learning-editor-section p{color:inherit}.learning-editor-section fieldset{min-width:0;margin:20px 0;padding:18px;border:1px solid #789284;border-radius:14px}.learning-editor-section [data-intro-check]{background:#1c4046}.learning-editor-section [data-check-item]{padding:16px;margin:14px 0;background:#102d33;border-radius:12px}.learning-editor-section input,.learning-editor-section textarea,.learning-editor-section select{box-sizing:border-box;width:100%;max-width:100%;background:#fcf9ee;color:#17323b;border:1px solid #9aae9c}.learning-editor-section label{display:block;margin:14px 0 8px}.learning-editor-section details{margin:16px 0}.learning-editor-section summary{min-height:44px;cursor:pointer}.learning-editor-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.learning-editor-actions button{min-height:44px;margin:0;white-space:normal}.learning-editor-preview .learning-step{margin:18px 0}.learning-editor-preview .learning-rule,.learning-editor-preview .learning-example{color:#18323b}
.mq-learning-dialog>header .eyebrow{color:#efd28c;text-shadow:0 1px 4px #000;margin:0 0 8px;font-size:.75rem;line-height:1.5}.mq-learning-dialog .learning-step>.eyebrow{color:#36635f}.mq-learning-dialog>header{position:sticky;top:0;z-index:12}.mq-learning-dialog>header>div{min-width:0}.mq-learning-dialog>header h2{margin:4px 0 0}@media(max-width:700px){.mq-learning-dialog>header{gap:12px;padding:12px 16px}.mq-learning-dialog>header .eyebrow{font-size:.65rem;letter-spacing:.08em}}

.mq-learning-dialog.mq-learning-laboratory .learning-lab-instructions{background:#1b3c43;color:#f8f1df;border-bottom:1px solid #8a9670}.mq-learning-dialog.mq-learning-laboratory .learning-lab-instructions p,.mq-learning-dialog.mq-learning-laboratory .learning-lab-instructions li,.mq-learning-dialog.mq-learning-laboratory .learning-lab-instructions summary{color:#f8f1df}

.learning-editor-section>header{display:block;position:static;top:auto;z-index:auto}

.learning-close>span[aria-hidden]{display:none}.learning-close{flex:none}
@media(max-width:480px){.learning-close>span:first-child{display:none}.learning-close>span[aria-hidden]{display:block;font-size:1.65rem;line-height:1}.practice-dialog>header .learning-close,.mq-learning-dialog>header .learning-close{width:44px;min-width:44px;min-height:44px;height:44px;padding:0!important;display:grid;place-items:center}.practice-dialog>header h2,.mq-learning-dialog>header h2{font-size:1.15rem;line-height:1.35;margin:0;min-width:0}.practice-dialog>header,.mq-learning-dialog>header{gap:12px;align-items:center}}
/* Educational figures keep their own geometry in introductions as well as books. */
.learning-illustration.learning-diagram img{aspect-ratio:auto;height:auto;object-fit:contain}

.learning-spelling-option{display:flex!important;align-items:flex-start;gap:.7rem;margin:.9rem 0;line-height:1.5}.learning-spelling-option input[type=checkbox]{flex:0 0 auto;width:1.2rem!important;height:1.2rem;margin:.18rem 0 0}

.learning-spelling-label{min-width:0;flex:1;overflow-wrap:anywhere}.subject-dialog .learning-editor-section label.learning-spelling-option{color:#f8f1de}.learning-spelling-option{min-width:0;max-width:100%;box-sizing:border-box}@media(max-width:600px){.learning-editor-section{padding:10px}.learning-editor-section fieldset{padding:8px}.learning-editor-section [data-check-item]{padding:8px}.learning-editor-section>header{padding:12px}.learning-editor-actions{gap:8px}}

/* Two truth-value choices must wrap instead of imposing their combined intrinsic width. */
.learning-check .tf{flex-wrap:wrap;gap:12px}.learning-check .tf .option{flex:1 1 140px;min-width:0;max-width:100%;box-sizing:border-box}.learning-check .tf .option span{min-width:0;overflow-wrap:anywhere}

/* Keep independently authored objectives readable at narrow viewport widths. */
.learning-objectives{min-width:0;max-width:100%;box-sizing:border-box}.learning-objectives li{min-width:0;overflow-wrap:anywhere}.learning-objectives ul{padding-inline-start:1.35em}

/* Readable gate cards and filters that fit inside the actual dialog width. */
body[data-surface=student] .mq-learning-dialog.learning-hub {
 width:min(1060px,calc(100% - 24px));
 min-width:0;
}
body[data-surface=student] .learning-hub [data-learning-body] {
 min-width:0;
 container-type:inline-size;
}
body[data-surface=student] .learning-hub-filters {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));
 gap:12px;
}
body[data-surface=student] .learning-hub-filters label {min-width:0}
body[data-surface=student] .learning-hub-filters :is(select,input) {
 min-inline-size:0;
 max-inline-size:100%;
}
body[data-surface=student] .learning-hub [data-learning-gates] {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));
 gap:14px;
}
body[data-surface=student] .learning-hub .learning-gate {
 grid-template-columns:clamp(46px,10cqi,72px) minmax(0,1fr);
 align-items:start;
 min-inline-size:0;
 gap:clamp(10px,2cqi,16px);
 padding:clamp(12px,2.5cqi,20px);
 background:#193940;
 color:#fff2d7;
 border-color:#658983;
}
body[data-surface=student] .learning-gate-copy {
 display:grid;
 grid-template-rows:auto auto 1fr auto;
 align-self:stretch;
 min-inline-size:0;
 gap:8px;
}
body[data-surface=student] .learning-gate-copy :is(p,h3,button) {
 margin:0;
 overflow-wrap:anywhere;
}
body[data-surface=student] .learning-gate-copy .learning-gate-meta {
 color:#e5c992;
 font-size:.82rem;
 line-height:1.4;
}
body[data-surface=student] .learning-gate-copy .learning-gate-status {
 color:#c7e0dc;
 font-size:.875rem;
 line-height:1.45;
}
body[data-surface=student] .learning-gate-copy button {justify-self:start}
@container(max-width:285px) {
 body[data-surface=student] .learning-hub .learning-gate {
  grid-template-columns:minmax(0,1fr);
 }
 body[data-surface=student] .learning-hub .learning-gate-art {width:48px}
}
body[data-surface=student] .learning-hub .learning-hub-filters label {
 color:#24463d;
 font-weight:650;
}
body[data-surface=student] .learning-hub .learning-hub-filters input::placeholder {
 color:#536b62;
 opacity:1;
}

body[data-surface=student] .learning-hub .learning-gate {
 background:linear-gradient(135deg,#243f42f2,#11282def),url('../../interface/command-wall.webp') center / cover;
 border-color:#89a39a;
}
body[data-surface=student] .learning-hub .learning-gate-copy :is(h3,button) {
 max-inline-size:100%;
 line-height:1.35;
}
body[data-surface=student] .learning-hub .learning-gate-copy button {min-block-size:44px}
body[data-surface=student] .learning-hub-filters :is(input,select) {min-block-size:44px}
@media(max-width:430px) {
 body[data-surface=student] .mq-learning-dialog.learning-hub {
  max-block-size:calc(100dvh - 20px);
 }
 body[data-surface=student] .learning-hub .learning-gate {
  grid-template-columns:42px minmax(0,1fr);
  gap:8px;
 }
 body[data-surface=student] .learning-hub .learning-gate-art {width:100%}
}
.mq-learning-dialog .learning-check label.option {
 min-inline-size:0;
 color:#17333c;
 background:#f7faf4;
 border-color:#9aafa3;
 overflow-wrap:anywhere;
}
.mq-learning-dialog .learning-check label.option:has(input:checked) {
 color:#102e32;
 background:#e3f3e8;
 border-color:#4a7f70;
}
.mq-learning-dialog .learning-check label.option input:is([type=radio],[type=checkbox]) {
 flex:none;
 inline-size:1.25rem;
 block-size:1.25rem;
}
