/* Original map layout lives in reference-scoped.css; these are compatibility/brand adaptations. */
@import url('./reference-scoped.css');
.mc{--ink:#edf2f6;--ink-soft:#d3dfe8;--paper:#080b10;--paper-2:#182431;--line:#3d5262;--muted:#b7c7d2;--white:#101923;--aqua:#76d5c8;--aqua-strong:#76d5c8;--lime:#e6b961;color:#edf2f6;min-width:0;font-size:1rem}
.mc-heading{padding:60px 0 25px}.mc h1{font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.1;max-width:1000px}.mc h2{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.2}.mc h3{font-size:1.3rem;line-height:1.35}.mc a{color:inherit}.mc .section-kicker,.mc .family-label,.mc .kernel-badge,.mc .priority,.mc small,.mc .system-list span,.mc .progress-copy span{font-size:.875rem;letter-spacing:normal}.mc .card-short,.mc .section-heading>p,.mc .kernel-stage-card p,.mc .detail-block p{font-size:1rem;line-height:1.65;color:#c0ced8}.mc .section-heading{gap:32px}.mc .explorer{padding:64px 0}.mc .theory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mc .theory-card{min-width:0;overflow-wrap:anywhere;background:#101923;border-color:#3d5262}.mc .theory-card.is-done{border-color:#76d5c8}.mc .card-topline{gap:12px;flex-wrap:wrap;font-size:.875rem}.mc .formula{background:#080b10;color:#e6b961;font-size:1.1rem;overflow-wrap:anywhere;white-space:normal}.mc .theory-card h3{margin:12px 0}.mc .mc-title{font:inherit;text-align:left;background:none;border:0;padding:0;min-height:44px;color:inherit;cursor:pointer}.mc .card-actions{gap:10px;flex-wrap:wrap}.mc button,.mc select,.mc input{font:inherit;min-height:44px;max-width:100%}.mc button{cursor:pointer}.mc .text-button,.mc .done-button{font-size:.95rem;color:#edf2f6}.mc .done-button[aria-pressed=true]{background:#244237;color:#c9fff1}.mc .priority{color:#e6b961;background:#26303a}.mc .system-list span{color:#c0ced8;background:#182431}.mc .filter-shell{background:#101923;border:1px solid #3d5262}.mc .search-control{display:grid;gap:8px;padding:18px}.mc .search-control input,.mc .filter-control select{color:#edf2f6;background:#080b10;border:1px solid #617785;border-radius:6px;min-width:0;width:100%;padding:12px}.mc .filter-control span{color:#c0ced8;font-size:.95rem}.mc .filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mc .result-line{gap:16px;flex-wrap:wrap}.mc .result-line button{color:#76d5c8}.mc .mc-intro-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px}.mc .hero-orbit{width:100%;max-width:540px;min-height:420px}.mc .orbit-node{border:0;background:#101923;min-height:44px;padding:6px 8px;border-radius:8px;max-width:140px;text-align:left;text-decoration:none;font-size:.875rem;color:#d8e4ed}.mc .orbit-node strong{font-weight:500}.mc .kernel span{font-size:.7rem;letter-spacing:normal}.mc .kernel strong{font-size:1.3rem;color:#edf2f6}.mc .orbit-two{animation:none}.mc .kernel-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:30px 0}.mc .kernel-stage-card{color:#edf2f6;background:#101923;text-decoration:none;min-width:0;display:block}.mc .kernel-stage-card strong{font-size:1.2rem}.mc .kernel-stage-card p{margin:12px 0}.mc .kernel-stage-card[aria-pressed=true],.mc .orbit-node[aria-pressed=true]{border:2px solid #e6b961;background:#182431}.mc :is(a,button,input,select,summary):focus-visible{outline:3px solid #76d5c8;outline-offset:4px}.mc .mc-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.mc .mc-progress{margin:48px 0;padding:24px;background:#101923;border:1px solid #3d5262;border-radius:14px}.mc progress{width:100%;accent-color:#76d5c8}.mc .mc-days{padding-left:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.mc .mc-days li{padding:18px;background:#101923;border-radius:12px;list-style:none}.mc .mc-days button{padding:10px;border:1px solid #617785;border-radius:6px;background:#182431;color:#edf2f6;margin:5px}.mc .mc-days button[aria-pressed=true]{border-color:#76d5c8;background:#244237}.mc-note{color:#b7c7d2;font-size:.875rem}.mc-dialog{color:#edf2f6;background:#101923;margin:0 0 0 auto;width:min(640px,100%);max-width:100%;height:100%;max-height:100%;border:1px solid #617785;padding:clamp(18px,4vw,38px);overflow-y:auto;overflow-wrap:anywhere;inset:0}.mc-dialog::backdrop{background:#000b}.mc-dialog .drawer-head{position:sticky;top:0;background:#101923;padding:10px 0;z-index:2}.mc-dialog .drawer-head button{color:#edf2f6;background:#182431}.mc-dialog .drawer-formula{background:#080b10;color:#e6b961}.mc-dialog .drawer-formula strong{font-size:1.25rem;white-space:normal;overflow-wrap:anywhere}.mc-dialog .bibliography-card,.mc-dialog .practice-block,.mc-dialog .kernel-context-card{background:#182431;color:#d3dfe8;border-color:#3d5262}.mc-dialog .bibliography-card p,.mc-dialog .drawer-lead,.mc-dialog .family-label{color:#c0ced8}.mc-dialog .drawer-complete{font-size:1rem;color:#080b10;background:#76d5c8}.mc-dialog .detail-block{margin:28px 0}.mc-dialog details{margin:24px 0}.mc-method-introduction{padding-top:48px}.mc [hidden]{display:none!important}
@media(max-width:1000px){.mc .theory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mc .kernel-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mc .mc-intro-grid{grid-template-columns:1fr}.mc .hero-orbit{width:min(100%,540px);justify-self:center}.mc .filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mc .theory-grid,.mc .filters,.mc .mc-days{grid-template-columns:1fr}.mc .hero-orbit{display:none}.mc .kernel-stage-grid{grid-template-columns:1fr}.mc .section-heading{grid-template-columns:1fr;gap:12px;margin-bottom:28px}.mc .explorer{padding-top:40px}.mc .filter-shell{padding:12px}.mc .search-control{padding:0;margin-bottom:18px}.mc .mc-days{padding:0}.mc .kernel-stage-card{padding:20px}.mc-heading{padding-top:36px}.mc .mc-progress{padding:18px}.mc-dialog{width:100%}}
@media(prefers-reduced-motion:reduce){.mc *,.mc *::before,.mc *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.mc .search-control{height:auto;min-height:100px}.mc .search-control>span:not(.sr-only){transform:none;font:inherit;color:#c0ced8;letter-spacing:normal}
.mc .explorer{background:#080b10}.mc .kernel-stage-card:hover,.mc .kernel-stage-card.active{background:#182431;border-color:#76d5c8;color:#edf2f6}.mc .kernel-stage-card:hover p{color:#c0ced8}

.mc .search-control>span{position:static;transform:none;font:inherit;color:#c0ced8;letter-spacing:normal}.mc .kernel-context-card{display:block;padding:20px;font-size:1rem;line-height:1.65}.mc .filter-shell{position:static;backdrop-filter:none}.mc .kernel-stage-card>span,.mc .kernel-stage-card small,.mc .section-kicker{color:#76d5c8}.mc .orbit-node.node-c{right:0}.mc .orbit-node.node-g{left:0}

/* r2: source-map proportions, measured by actual available content width. */
[data-mathematical-core]{container:math-core / inline-size}
[data-mathematical-core] .theory-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:16px}
@container math-core (min-width:38rem){[data-mathematical-core] .theory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container math-core (min-width:58rem){[data-mathematical-core] .theory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.mc .theory-card{height:auto;min-height:0;padding:20px;gap:12px;align-self:start}
.mc .theory-card h3{font:400 1.45rem/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.02em;margin:0}
.mc .theory-card p{margin:0}
.mc .theory-card .card-short{font-size:1rem;line-height:1.5}
.mc .theory-card .family-label{font-size:.8125rem;font-weight:500;line-height:1.35;color:#aebfcb;letter-spacing:.04em}
.mc .theory-card .priority{font-size:.8125rem;font-weight:500;padding:4px 7px;letter-spacing:normal}
.mc .theory-card .card-topline>span:last-child{font-size:.8125rem;color:#aebfcb;font-weight:400}
.mc .theory-card .kernel-badge{font-size:.875rem;font-weight:500;line-height:1.35;padding:4px 7px;color:#9ce6d8;background:#16332f;letter-spacing:normal}
.mc .theory-card .system-list{gap:4px}
.mc .theory-card .system-list span{font-size:.8125rem;font-weight:400;line-height:1.35;padding:3px 6px;color:#b7c7d2;border-color:#344957}
.mc .theory-card .formula{margin:0;min-height:0;padding:12px;font-size:1rem;line-height:1.4}
.mc .theory-card .card-actions{gap:8px;justify-content:space-between;margin:0;padding-top:2px}
.mc .theory-card .text-button,.mc .theory-card .done-button{font-size:.9375rem;font-weight:500;line-height:1.35;min-height:44px;padding:8px 4px;max-width:100%}
.mc .theory-card .text-button{color:#76d5c8}
.mc .theory-card .done-button{color:#b7c7d2;font-weight:400}
.mc .theory-card .done-button[aria-pressed=true]{color:#c9fff1;background:#244237;border-radius:6px}
.mc .kernel-stage-card{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:20px;min-height:0}
.mc .kernel-stage-card>span{display:block;font:500 .875rem/1.2 system-ui,sans-serif;letter-spacing:.08em;margin:0 0 12px;color:#76d5c8}
.mc .kernel-stage-card>strong{display:block;margin:0;font:400 1.375rem/1.2 Georgia,serif}
.mc .kernel-stage-card>p{margin:12px 0;font-size:1rem;line-height:1.5}
.mc .kernel-stage-card>small{padding-top:8px;font-size:.8125rem;font-weight:500;line-height:1.35;color:#9ce6d8}
.mc .explorer{padding-top:40px}
.mc .mc-results-heading{margin-bottom:8px}
.mc #core-selection-heading{margin:0 0 8px;font:400 clamp(1.5rem,3vw,2rem)/1.2 Georgia,serif}
.mc #core-selection-heading:focus{outline:2px solid #76d5c8;outline-offset:5px}
.mc #core-selection-description{font-size:.9375rem;line-height:1.45;margin:8px 0;max-width:85ch;color:#c0ced8}
.mc .mc-results-heading .result-line{border:0;padding:0;justify-content:space-between;gap:8px}
.mc #core-result-count{font-size:.9375rem;margin:0}
.mc #core-clear{font-size:.875rem;font-weight:500;min-height:44px;padding:8px;color:#76d5c8}
.mc .mc-refine{margin:0 0 20px;border:1px solid #344957;border-radius:8px;background:#101923}
.mc .mc-refine>summary{display:list-item;cursor:pointer;padding:12px 16px;min-height:44px;font-size:.9375rem}
.mc #core-active-filters{display:inline-block;margin-inline-start:14px;font-size:.8125rem;color:#b7c7d2;font-weight:400}
.mc .mc-refine .filter-shell{border:0;border-top:1px solid #344957;border-radius:0;padding:16px;margin:0}
.mc .mc-refine .filters{padding:0;gap:14px}
.mc .mc-refine .filter-control{padding:0;border:0}
@media(max-width:600px){.mc .theory-card{padding:18px}.mc .kernel-stage-card{padding:18px}.mc .mc-refine>summary{padding:10px 12px}.mc #core-active-filters{margin-inline-start:8px}}
