/* MERIDIAN is scoped to the mathematics world; no global theme or mascot override. */
.math-world-page .mw-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;max-width:360px}
.math-world-page .meridian-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 17px;border:1px solid #a88b58;border-radius:7px;background:#263e42;color:#f1ead8;font:750 .87rem/1.5 system-ui;cursor:pointer;text-decoration:none}
.math-world-page .meridian-button:hover{background:#36544e}.math-world-page .meridian-button:disabled{background:#d8d8cd;color:#586361;border-color:#aeb4a6;cursor:default}
.math-world-page .meridian-button.primary{background:#203b3e;color:#f3eedf}
.math-world-page .meridian-intro{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:28px;align-items:center;margin:4px 0 42px;padding:clamp(22px,3vw,40px);border:1px solid #887958;border-radius:16px;background:linear-gradient(120deg,#203a40,#162c34);box-shadow:0 17px 45px #0003}
.math-world-page .meridian-intro h2{font:700 clamp(1.6rem,3vw,2.5rem)/1.15 Georgia,serif;margin:10px 0 18px;max-width:20ch}
.math-world-page .meridian-intro p{max-width:64ch;color:#ccd4c8;font-size:.95rem;line-height:1.8}.math-world-page .meridian-intro .mw-eyebrow{font-size:.68rem;color:#c5ac7b}
.math-world-page .meridian-intro .actions{align-items:center}.math-world-page [data-meridian-count]{font-size:.78rem;color:#d3bd8b}
.math-world-page .meridian-diagram{display:block;width:100%;height:auto;color:#bfa477;background:#173239;border-radius:10px}
.math-world-page .meridian-frame{fill:none;stroke:#6a8b89;stroke-width:3;stroke-dasharray:5 5}
.math-world-page .meridian-module{color:#688582}.math-world-page .meridian-module.is-found{color:#d2b57b}
.math-world-page .module-ground{fill:#193239;stroke:currentColor;stroke-width:1}.math-world-page .module-drawing{fill:#1c383d;stroke:currentColor;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
.math-world-page .meridian-module.is-missing .module-drawing{stroke-dasharray:4 5;opacity:.6}.math-world-page .meridian-module text{fill:currentColor;font:650 13px ui-monospace,monospace}
.math-world-page .meridian-diagram .diagram-caption{fill:#b5c6b8;font:600 12px ui-monospace,monospace;letter-spacing:2px}.math-world-page .meridian-diagram.is-running .meridian-frame{stroke:#aac5aa;stroke-dasharray:none}
.math-world-page .meridian-diagram.compact .meridian-module text{font-size:15px}.math-world-page .meridian-intro-drawing{max-width:440px;justify-self:end;width:100%}
.math-world-page .meridian-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 26px;padding:14px 20px;background:#27463f;border:1px solid #a28e5d;border-radius:9px;color:#efe9d5}
.math-world-page .meridian-notice p{margin:0;font-size:.88rem}.math-world-page .meridian-notice .meridian-button{flex-shrink:0}
.math-world-page .meridian-book{margin-bottom:36px}.math-world-page .meridian-book-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0 30px}
.math-world-page .meridian-book-head h2{font:700 clamp(2rem,4vw,3.5rem)/1.15 Georgia,serif;margin:5px 0 13px}.math-world-page .meridian-book-head p:last-child{color:#bacdc3;margin:0}
.math-world-page .meridian-book-binding{display:grid;grid-template-columns:185px minmax(0,1fr);align-items:stretch;border:1px solid #a68c5d;border-radius:12px;overflow:clip;background:#152d34;box-shadow:0 24px 60px #0005}
.math-world-page .meridian-book-nav{padding:25px 12px;background:linear-gradient(90deg,#142930,#1c343b);border-right:5px double #a98e62;display:flex;flex-direction:column;gap:5px}
.math-world-page .meridian-book-nav button{min-height:48px;padding:13px 12px;border:1px solid transparent;background:transparent;border-radius:5px;color:#cbd2c4;text-align:left;font:750 .83rem system-ui;cursor:pointer}
.math-world-page .meridian-book-nav button[aria-current]{border-color:#ad9465;background:#314847;color:#f6ebd0}.math-world-page .meridian-book-nav p{margin:25px 12px;color:#b8a477;font:.7rem ui-monospace,monospace}
.math-world-page .meridian-book-page{min-width:0;min-height:660px;padding:clamp(22px,3.5vw,48px);background:linear-gradient(90deg,#d8d5c2,transparent 20px),repeating-linear-gradient(0deg,transparent,transparent 31px,#53665a08 32px),#efeddf;color:#253d3d}
.math-world-page .meridian-book-page>.mw-eyebrow{color:#73603e}.math-world-page .meridian-book-page h3{font:700 clamp(1.8rem,3vw,2.7rem)/1.12 Georgia,serif;letter-spacing:-.03em;margin:4px 0 20px}
.math-world-page .meridian-book-page h4{font:700 1.45rem/1.35 Georgia,serif;margin:10px 0 17px}.math-world-page .meridian-book-page h5{font:800 1rem/1.5 system-ui;margin:17px 0 10px}
.math-world-page .meridian-book-page p{line-height:1.8;font-size:.94rem}.math-world-page .meridian-book-page .meridian-lead{color:#53625a;max-width:76ch;margin-bottom:28px}
.math-world-page .meridian-drawing-sheet{padding:16px;background:#173239;border:1px solid #99865e;border-radius:8px;box-shadow:5px 6px 0 #263e3f16}.math-world-page .meridian-drawing-sheet p{color:#b6c8bc;font-size:.77rem;margin:12px 8px 0}
.math-world-page .meridian-project-controls{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
.math-world-page .meridian-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.math-world-page .meridian-plan-card{position:relative;display:flex;flex-direction:column;gap:13px;min-height:195px;padding:20px;text-align:left;background:#e7e7d8;border:1px dashed #8b9b8d;border-radius:6px;color:#435750;cursor:pointer}
.math-world-page .meridian-plan-card.is-found{background:#1c383e;border:1px solid #ad9567;color:#eee6ce;box-shadow:3px 4px 0 #13373518}.math-world-page .meridian-plan-card strong{font:700 1.17rem/1.3 Georgia,serif}.math-world-page .meridian-plan-card small{font-size:.7rem;line-height:1.5;color:inherit}.math-world-page .meridian-plan-card>span:last-child{font-size:.7rem;color:inherit}
.math-world-page .meridian-plate{font:700 .85rem ui-monospace,monospace;letter-spacing:.15em;color:#b8a16d}.math-world-page .meridian-plan-card.is-missing .meridian-plate{color:#69796c}
.math-world-page .meridian-blueprint-detail{margin-top:30px;padding:25px;border:1px solid #afab8c;background:#f5f2e5;border-radius:7px;display:flow-root}.math-world-page .meridian-blueprint-detail .meridian-button{margin:7px 8px 0 0}
.math-world-page .meridian-detail-drawing{width:260px;float:right;margin:0 0 20px 25px}.math-world-page .meridian-principle{border-left:3px solid #998552;padding:10px 17px;background:#e6ead8}.math-world-page .meridian-marked{font-size:.8rem!important;color:#526951}
.math-world-page .meridian-story-note{font:italic 1.07rem/1.8 Georgia,serif!important}.math-world-page .meridian-chapter-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:30px}
.math-world-page .meridian-chapter-list button{display:flex;flex-direction:column;align-items:start;gap:8px;min-height:125px;background:#e2e3d3;border:1px solid #b4b79e;border-radius:6px;padding:16px;text-align:left;color:#3c5048;cursor:pointer}.math-world-page .meridian-chapter-list .is-selected{background:#203c40;color:#f0e7cd;border-color:#a98d5b}
.math-world-page .meridian-chapter-list button>span{font:700 1.2rem Georgia,serif;color:#b49b62}.math-world-page .meridian-chapter-list strong{font:.82rem/1.3 system-ui;font-weight:750}.math-world-page .meridian-chapter-list small{font-size:.69rem}
.math-world-page .meridian-chapter{max-width:76ch;padding:20px 0}.math-world-page .meridian-chapter>p:not(.mw-eyebrow){font:1.05rem/1.9 Georgia,serif}.math-world-page .meridian-chapter .meridian-chapter-lead{font-size:1.25rem!important;color:#263f3e}.math-world-page .meridian-chapter .meridian-button{margin:8px 8px 0 0}
.math-world-page .meridian-progress-grid,.math-world-page .meridian-mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.math-world-page .meridian-progress-grid article,.math-world-page .meridian-mission-grid article{border:1px solid #b2b59b;border-radius:6px;background:#f5f3e8;padding:24px}
.math-world-page .meridian-progress-grid .mw-eyebrow,.math-world-page .meridian-mission-grid .mw-eyebrow{color:#6d6849;font-size:.65rem}.math-world-page .meridian-progress-grid ul{padding-left:18px;list-style-type:circle;margin-bottom:20px}.math-world-page .meridian-progress-grid li{font-size:.85rem;line-height:1.6;margin:12px 0}.math-world-page .meridian-progress-grid li span{display:block;color:#62725c;font-size:.73rem}
.math-world-page .meridian-mission{padding:25px;border:1px solid #a1ac92;background:#f8f7ee;border-radius:8px}.math-world-page .meridian-mission h4{font:750 1.12rem/1.8 system-ui}.math-world-page .meridian-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.math-world-page .meridian-mission label,.math-world-page .meridian-import{display:block;min-width:0;font:750 .86rem/1.6 system-ui}.math-world-page .meridian-mission input:not([type=radio]),.math-world-page .meridian-import input{display:block;width:100%;min-width:0;margin-top:8px;padding:12px;font:1rem/1.5 system-ui;color:#233e39;background:#fff;border:1px solid #8fa48d;border-radius:6px}
.math-world-page .meridian-choice{display:flex!important;align-items:center;gap:12px;min-height:50px;padding:12px;border:1px solid #bcc1aa;background:#fff;margin:10px 0;border-radius:5px}.math-world-page .meridian-choice input{width:22px;height:22px;flex:0 0 22px;accent-color:#3c6053}.math-world-page .meridian-mission fieldset{min-width:0;border:1px solid #b7bba6;border-radius:6px}
.math-world-page .meridian-helps,.math-world-page .meridian-term-keys,.math-world-page .meridian-mission-bottom{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.math-world-page .meridian-helps .meridian-button{font-size:.76rem;background:#eee7cc;color:#4b513c;border-color:#b5ad86}
.math-world-page .meridian-term-keys .meridian-button{min-width:46px;background:#e9eddf;color:#2b413c}.math-world-page .meridian-mission-bottom{border-top:1px solid #c4c7b0;padding-top:20px;margin-top:28px}.math-world-page .meridian-callout{margin:24px 0;padding:20px;border:1px solid #9cae8c;border-radius:7px;background:#e5ebd8;color:#2a493c}
.math-world-page .meridian-model-note{padding:14px 18px;background:#f1e8ce;border-left:3px solid #aa8e54}.math-world-page [data-meridian-save-warning]{padding:14px;border:1px solid #a97f4d;background:#f4e8cf;color:#58432b}
.math-world-page .meridian-import{margin:28px 0 15px;max-width:620px}.math-world-page .meridian-small{font-size:.78rem!important;color:#5c6b5b}
.math-world-page .meridian-numberline{width:100%;height:auto;max-height:160px;display:block;fill:none;stroke:#24423e;stroke-width:2;background:#eef2e7;border-radius:6px;margin:20px 0}.math-world-page .meridian-numberline text{fill:#24423e;stroke:none;font:750 16px system-ui}.math-world-page .meridian-line-mark{stroke:#c49932;stroke-width:8}
.math-world-page[data-q-theme="math-steampunk"] .q-companion{background:#e7ebdb;border-color:#aab497;color:#2b433c}.math-world-page[data-q-theme="math-steampunk"] .q-companion .q-name{color:#775d31}.math-world-page[data-q-theme="math-steampunk"] .q-companion[data-q-size="medium"]{--q-size:96px}
.math-world-page .meridian-intro .q-companion{background:transparent;color:#d5ddc7;border:0;margin:22px 0 0;padding:0}.math-world-page .meridian-intro .q-name{color:#c3aa74}.math-world-page .meridian-project-q .q-companion,.math-world-page [data-meridian-chapter-q] .q-companion{margin:26px 0}
.math-world-page .meridian-book-page .feedback{color:#2a433a}.math-world-page .meridian-book-page button:focus-visible,.math-world-page .meridian-book-page input:focus-visible{outline:3px solid #426955;outline-offset:3px}
@media(max-width:1100px){.math-world-page .meridian-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-world-page .meridian-intro{grid-template-columns:minmax(0,1.3fr) minmax(230px,.8fr)}.math-world-page .meridian-chapter-list{grid-template-columns:repeat(2,minmax(0,1fr))}.math-world-page .mw-hero-actions{justify-content:start;max-width:none}}
@media(max-width:800px){.math-world-page .meridian-intro{grid-template-columns:1fr}.math-world-page .meridian-intro-drawing{max-width:470px;justify-self:center}.math-world-page .meridian-book-binding{grid-template-columns:145px minmax(0,1fr)}.math-world-page .meridian-book-nav{padding:17px 7px}.math-world-page .meridian-book-nav button{font-size:.75rem}.math-world-page .meridian-progress-grid,.math-world-page .meridian-mission-grid{grid-template-columns:1fr}.math-world-page .meridian-detail-drawing{float:none;width:100%;max-width:350px;margin:15px 0 20px}.math-world-page .meridian-notice{align-items:start;flex-direction:column}}
@media(max-width:600px){.math-world-page .meridian-book-head{display:block}.math-world-page .meridian-book-head>.meridian-button{margin-top:20px}.math-world-page .meridian-book-binding{display:block;border-radius:8px}.math-world-page .meridian-book-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:6px;border-right:0;border-bottom:4px double #a98e62}.math-world-page .meridian-book-nav button{padding:8px;text-align:center;font-size:.69rem;line-height:1.5}.math-world-page .meridian-book-nav p{display:none}.math-world-page .meridian-book-page{padding:23px 17px;min-height:550px;background:#efeddf}.math-world-page .meridian-plan-grid{grid-template-columns:1fr}.math-world-page .meridian-plan-card{min-height:145px}.math-world-page .meridian-fields{grid-template-columns:1fr}.math-world-page .meridian-mission{padding:18px 13px}.math-world-page .meridian-drawing-sheet{padding:5px}.math-world-page .meridian-drawing-sheet p{margin:10px;font-size:.7rem}.math-world-page .meridian-intro{padding:23px 19px;gap:18px}.math-world-page .meridian-chapter-list button{padding:13px;min-height:125px}.math-world-page .meridian-blueprint-detail{padding:20px 16px}.math-world-page .meridian-helps .meridian-button{flex:1}.math-world-page .meridian-notice{padding:15px}.math-world-page .meridian-notice .meridian-button{flex-shrink:1}.math-world-page .meridian-intro-drawing{max-width:400px}}

.math-world-page .meridian-room-note{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 22px;background:#203c3e;border-left:3px solid #b39865;border-radius:6px;margin:0 0 25px}.math-world-page .meridian-room-note p{margin:6px 0 0;color:#becfc2;font-size:.85rem;line-height:1.7}.math-world-page .meridian-room-note strong{color:#d6c292;font:.85rem ui-monospace,monospace}.math-world-page .meridian-room-note .meridian-button{flex-shrink:0}@media(max-width:700px){.math-world-page .meridian-room-note{display:block}.math-world-page .meridian-room-note .meridian-button{margin-top:15px}}

.math-world-page .meridian-module-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:18px 0}.math-world-page .meridian-module-list .meridian-button{width:100%;text-align:left;justify-content:start;padding:10px 12px;font-size:.7rem;min-height:46px;background:#e0e4d5;color:#2d473e;border-color:#b1b79d}@media(max-width:800px){.math-world-page .meridian-module-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.math-world-page[data-q-theme="math-steampunk"] .q-enhanced>.q-companion{background:transparent;border:0}.math-world-page .meridian-mission input[aria-invalid="true"]{border:2px solid #a67b46;background:#fff8e9}
