/* Immortal Math Lab: the same glass, with a quieter work surface. */
.math-section{scroll-margin-top:28px;padding-top:80px;padding-bottom:80px}
.math-section .section-heading h2{font-size:clamp(26px,7vw,36px);text-wrap:balance}
.math-local-badge{display:inline-flex;align-items:center;gap:9px;flex-shrink:0;font-size:12px;line-height:1.8;color:var(--muted);padding:8px 13px;border-radius:999px;border:1px solid #ffffffc9;background:#ffffff4d}
.math-local-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#6b94b4}
.math-tabs{display:grid;grid-template-columns:1fr 1fr 1.45fr;gap:14px;margin-bottom:34px}
.math-tabs>button{display:flex;align-items:center;gap:16px;text-align:left;min-height:96px;padding:20px 24px;color:#465a7f;background:linear-gradient(135deg,#ffffff70,#ffffff29);border:1px solid #ffffffd9;border-radius:20px;box-shadow:inset 0 1px 0 #fff,0 7px 22px #667ba40a}
.math-tabs>button>span:first-child{display:grid;place-items:center;font:italic 36px/1 Georgia,serif;width:42px;height:48px;color:#7386be;flex-shrink:0}
.math-tabs>button>span:last-child{font-size:17px;font-weight:600;line-height:1.7}
.math-tabs small{display:block;font:9px/1.8 "Segoe UI",sans-serif;letter-spacing:1.1px;color:#61759d;margin-top:3px}
.math-tabs>button[aria-selected="true"]{background:linear-gradient(125deg,#eef9ffdd,#e1e2ffbf);border-color:#a1b4e1;box-shadow:0 9px 28px #6077b21a,inset 0 1px 0 #fff;color:#304c92}
.math-tabs>button[aria-selected="true"]>span:first-child{color:#5e70c5}
.math-tabs>button:hover{background-color:#ffffffa1;border-color:#9eafe0}
.math-stage{position:relative;isolation:isolate;margin-right:12px;margin-top:26px;perspective:1400px}
.math-backing{position:absolute;inset:0;pointer-events:none;border:1px solid #ffffffe8;border-radius:26px;transform-origin:center top;background:linear-gradient(135deg,#e0f3ff99,#e5dcff77);box-shadow:0 8px 22px #526b9910}
.math-backing-far{z-index:0;transform:translate(12px,-18px) scale(.98)}
.math-backing-near{z-index:1;transform:translate(6px,-9px) scale(.99)}
.math-panel{position:relative;z-index:3;padding:36px;border:1px solid #fffffff2;border-radius:26px;background:linear-gradient(130deg,#fbfdffc9,#f2f2ff91);box-shadow:0 18px 50px #536da615,inset 0 1px 0 #fff;transform-origin:center top;backface-visibility:hidden}
.math-panel[hidden]{display:none}
.math-stage.is-turning>.math-panel:not([hidden]){will-change:transform,opacity}
.math-panel.math-ghost{position:absolute;inset:0 0 auto;z-index:4;max-height:650px;overflow:hidden;pointer-events:none;background:linear-gradient(130deg,#f4fafff2,#eeeaffde);will-change:transform,opacity}
.math-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px;padding-bottom:27px;border-bottom:1px solid var(--line)}
.math-kicker,.math-result-kicker{font-size:11px;letter-spacing:1.2px;line-height:1.8;color:#5a70a1}
.math-panel-heading h3{font-size:29px;line-height:1.5;font-weight:600;letter-spacing:-.6px;margin:7px 0 9px;color:#293e69}
.math-panel-heading p{font-size:15px;color:var(--muted);line-height:1.9;margin:0;max-width:34em}
.math-formula{font:italic 25px/1.7 Georgia,"Times New Roman",serif;color:#6b79ac;text-align:right;flex-shrink:0;max-width:40%;overflow-wrap:anywhere}
.math-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}
.math-workbench-secondary{margin-top:34px;padding-top:34px;border-top:1px solid var(--line)}
.math-workbench form{min-width:0}
.math-workbench h4{font-size:18px;font-weight:600;margin:0 0 23px;line-height:1.6;color:#2b416d}
.math-workbench label{display:block;font-size:14px;font-weight:500;color:#3f557c;margin:16px 0 8px;line-height:1.7}
.math-workbench :is(input,textarea){display:block;width:100%;max-width:100%;min-width:0;min-height:48px;font:16px/1.7 "Segoe UI","Microsoft YaHei",sans-serif;padding:11px 13px;background:#ffffff85;color:#263e69;border:1px solid #8c9fc4;border-radius:12px;box-shadow:inset 0 1px 0 #fff}
.math-workbench textarea{resize:vertical;min-height:94px;max-height:300px;font-family:Consolas,"Microsoft YaHei",monospace}
.math-workbench [aria-invalid="true"]{border-color:#a13f50;outline-color:#a13f50}
.math-hint{font-size:12px;line-height:1.9;color:var(--muted);margin:9px 0 12px;overflow-wrap:anywhere}
.math-input-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.math-form-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:24px}
.math-form-actions>.button{min-height:46px;font-size:14px;padding:11px 24px;line-height:1.7}
.math-reset{font-size:13px;min-height:44px;color:#4e6596;padding:8px 12px;border:1px solid #ffffffba;background:#ffffff30;border-radius:12px}
.math-reset:hover{background:#ffffffbf}
.math-error{margin:16px 0 0;padding:12px 14px;background:#fff3f4c9;border:1px solid #d3a3ac;border-radius:12px;color:#8a3448;font-size:13px;line-height:1.8}
.math-result{min-height:250px;padding:23px 25px;border:1px solid #ffffffeb;border-radius:20px;background:linear-gradient(140deg,#dfeeff70,#e9e3ff5e);box-shadow:inset 0 1px 0 #fff;overflow-wrap:anywhere}
.math-result-list{margin:10px 0 0}
.math-result-row{padding:14px 0;border-bottom:1px solid #91a4c82e}
.math-result-row:last-child{border-bottom:0;padding-bottom:0}
.math-result dt{font-size:12px;line-height:1.8;color:#52688d}
.math-result dd{font-size:16px;line-height:1.8;color:#2c4377;margin:5px 0 0;font-variant-numeric:tabular-nums}
.math-result-primary dd{font-size:23px;line-height:1.65;color:#3a51a5;font-weight:550}
.math-result-matrix dd{font:15px/1.85 Consolas,monospace;white-space:pre-wrap}
.math-empty-result{font-size:14px;line-height:1.9;color:#52688d;margin:0}
.math-precision-note{font-size:13px;color:#795825;line-height:1.8;border-bottom:1px solid #c8b38c66;padding-bottom:12px}
.math-footnote{font-size:12px;line-height:1.95;margin:28px 0 0;color:var(--muted);padding-top:20px;border-top:1px solid var(--line)}
@media(max-width:1100px){.math-tabs>button{padding:18px;gap:10px}.math-tabs>button>span:last-child{font-size:16px}.math-tabs>button>span:first-child{width:32px}.math-panel{padding:28px}.math-workbench{gap:24px}.math-formula{font-size:22px}}
@media(max-width:760px){.math-section{padding-block:54px;scroll-margin-top:78px}.math-tabs{gap:9px;grid-template-columns:1fr 1fr 1.4fr;margin-bottom:30px}.math-tabs>button{flex-direction:column;align-items:flex-start;gap:9px;padding:15px 12px;border-radius:16px;min-height:118px}.math-tabs>button>span:first-child{font-size:30px;height:33px;width:32px;justify-items:start}.math-tabs>button>span:last-child{font-size:14px;line-height:1.6}.math-tabs small{font-size:8px;letter-spacing:.4px}.math-panel{padding:23px;border-radius:22px}.math-panel-heading{display:block;padding-bottom:23px;margin-bottom:25px}.math-panel-heading h3{font-size:26px}.math-panel-heading p{font-size:15px}.math-formula{display:block;max-width:none;text-align:left;font-size:22px;margin-top:15px}.math-workbench{grid-template-columns:minmax(0,1fr);gap:24px}.math-result{min-height:180px;padding:20px}.math-panel.math-ghost{max-height:850px}.math-local-badge{margin-top:2px}.math-section .section-heading{flex-wrap:wrap;align-items:start;gap:18px}.math-stage{margin-right:8px}.math-backing-far{transform:translate(8px,-16px) scale(.98)}.math-backing-near{transform:translate(4px,-8px) scale(.99)}.math-workbench h4{font-size:18px}.math-footnote{margin-top:25px}}
@media(max-width:560px){.header nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}.header nav a{font-size:13px;padding-inline:0}.math-tabs small{display:none}.math-tabs>button{min-height:110px}.math-panel{padding:20px}.math-kicker{font-size:10px;letter-spacing:.8px}}
@media(max-width:390px){.header nav a{font-size:12px}.math-tabs{gap:7px}.math-tabs>button{padding:13px 10px}.math-tabs>button>span:last-child{font-size:13px}.math-panel{padding:18px}.math-panel-heading h3{font-size:24px}.math-input-row{gap:10px}.math-workbench :is(input,textarea){padding-inline:10px}.math-result-primary dd{font-size:21px}}
@media(prefers-reduced-transparency:reduce){.math-panel,.math-result{background:#f1f5ff}}
.reduce-motion .math-ghost{display:none}

/* Tool links and the same glass stack across subject changes. */
.math-utility{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.math-share{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 13px;border:1px solid #ffffffeb;border-radius:13px;background:#ffffff70;color:#415789;font-size:13px;line-height:1.6}.math-share .ui-icon{width:17px;height:17px}.math-share:hover{background:#ffffffb3;border-color:#a6b5df}.math-share:disabled{opacity:.65;cursor:wait}.math-share-fallback{width:100%;padding:12px 15px;margin:0 0 22px;color:#334b78;border:1px solid #a6b5df;border-radius:12px;background:#ffffffa6;font-size:14px}.math-backing{transition:transform .46s cubic-bezier(.2,.7,.2,1)}.math-stage.is-turning .math-backing-near{transform:translate3d(9px,-13px,-10px) scale(.98)}.math-stage.is-turning .math-backing-far{transform:translate3d(15px,-22px,-20px) scale(.96)}.math-panel,.math-ghost{transform-style:preserve-3d}@media(max-width:760px){.math-utility{justify-content:flex-start}.math-share{font-size:12px}.math-stage.is-turning .math-backing-near{transform:translate3d(5px,-10px,-10px) scale(.98)}.math-stage.is-turning .math-backing-far{transform:translate3d(9px,-18px,-20px) scale(.96)}}

/* Subject resource libraries: quiet glass, clear information hierarchy. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.math-manage{display:inline-flex;align-items:center;gap:15px;min-height:44px;padding:10px 14px;color:#405491;font-size:13px;border:1px solid #ffffffeb;border-radius:13px;background:#ffffff70}.math-manage:hover{background:#fff9}
.math-section .section-description{max-width:630px}.math-stage>.resource-panel{padding:0;overflow:hidden;background:linear-gradient(130deg,#ffffffbf,#f1f4ff96)}
.resource-hero{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:35px;align-items:center;padding:37px 38px 30px;background:linear-gradient(125deg,#f3fbff80,#eae8ff70);border-bottom:1px solid #ffffffb3}.resource-eyebrow{font-size:10px;letter-spacing:1.4px;color:#5b6fa0;margin:0 0 13px;line-height:1.8}.resource-hero h3{font-size:30px;font-weight:600;line-height:1.5;letter-spacing:-.7px;margin:0 0 13px;color:#2c436e;text-wrap:balance}.resource-tagline{font-size:18px;line-height:1.7;margin:0 0 9px;color:#405989}.resource-description{font-size:14px;line-height:1.95;color:#5a6d91;max-width:570px;margin:0}.resource-journey{display:flex;flex-wrap:wrap;gap:9px 17px;margin-top:23px}.resource-journey>span{display:inline-flex;align-items:center;gap:7px;color:#50648e;font-size:11px;line-height:1.8}.resource-journey i{font-style:normal;font-size:9px;color:#6b76ad;border:1px solid #b1bcdf7d;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;background:#ffffff50}
.resource-art{padding:20px;border:1px solid #fffffff0;border-radius:21px;background:linear-gradient(125deg,#ffffff70,#e6e9ff66);box-shadow:inset 0 1px 0 #fff,0 12px 35px #6e81b00a;transform:rotate(-2deg)}.resource-art-label{font-size:8px;letter-spacing:1px;color:#6476a3}.resource-art svg{display:block;width:100%;height:auto;margin-block:10px 5px}.curve-grid{fill:none;stroke:#aebcdf55;stroke-width:1}.curve-area{fill:#8295df20}.curve-line{fill:none;stroke:#7587ca;stroke-width:2.7;stroke-linecap:round}.curve-marker{fill:none;stroke:#8295bf88;stroke-width:1;stroke-dasharray:3 5}.resource-art-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#687aaa;font-size:7px;letter-spacing:.8px}.resource-art-caption>span:first-child{font:italic 15px Georgia,serif;letter-spacing:0}.resource-calculus .curve-line{stroke:#5e99bd}.resource-linear .curve-line{stroke:#9a7cc6}
.resource-summary{display:flex;align-items:center;gap:26px;flex-wrap:wrap;padding:17px 38px;color:#5d6f91;font-size:12px;border-bottom:1px solid #cfdaed80;background:#ffffff40}.resource-summary strong{font-size:18px;font-weight:550;color:#3b5286;margin-right:5px;font-variant-numeric:tabular-nums}.resource-curated{margin-left:auto;display:inline-flex;align-items:center;gap:8px}.resource-curated i{width:5px;height:5px;border-radius:50%;background:#719996}
.resource-layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:480px}.resource-sidebar{padding:28px 20px 25px;border-right:1px solid #cfdaed80;background:#e7edfc33}.resource-sidebar-label{display:block;font-size:11px;letter-spacing:.4px;color:#607395;padding:0 10px 16px}.resource-topics{display:grid;gap:6px}.resource-topic{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:11px 12px;background:none;border:1px solid transparent;border-radius:12px;text-align:left;color:#4c6188;font-size:12px;line-height:1.6}.resource-topic:hover{background:#ffffff70}.resource-topic[aria-pressed=true]{color:#3f55a1;background:linear-gradient(120deg,#ffffffb3,#e2e8ffb3);border-color:#b1bee38c;box-shadow:inset 0 1px 0 #fff}.resource-topic-count{font-size:10px;font-variant-numeric:tabular-nums;color:#687ca2;min-width:19px;text-align:right}.resource-sidebar-note{padding:28px 10px 0;margin-top:23px;border-top:1px solid #c5d2ea80}.resource-sidebar-note>span{color:#7d88bd;font-size:25px}.resource-sidebar-note p{font-size:12px;line-height:1.9;color:#647799;margin:12px 0}.resource-sidebar-note a{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:11px;color:#4e63a3}
.resource-main{min-width:0;padding:28px}.resource-toolbar{display:flex;gap:12px;align-items:center}.resource-search{display:flex;align-items:center;gap:10px;min-width:0;flex:1;min-height:46px;padding:0 13px;border:1px solid #a3b3d17d;border-radius:13px;background:#ffffff88}.resource-search:focus-within{outline:2px solid #6679bf;outline-offset:2px}.resource-search>.ui-icon{width:17px;height:17px;color:#7186ab;flex-shrink:0}.resource-search input{min-width:0;width:100%;height:46px;padding:0;font-family:inherit;font-size:14px;line-height:1.7;color:#30496f;border:0;background:none;outline:none}.resource-search input::placeholder{color:#7182a1}.resource-search input::-webkit-search-cancel-button{display:none}.resource-search button{display:grid;place-items:center;min-width:32px;min-height:44px;padding:0;border:0;background:none;color:#6b7d9b}.resource-search button[hidden]{display:none}.resource-search button .ui-icon{width:16px;height:16px}.resource-format-filter select{min-height:46px;max-width:138px;padding:10px 30px 10px 12px;border:1px solid #a3b3d17d;border-radius:13px;background:#ffffff80;color:#4c608b;font-size:12px}.resource-results-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:27px 0 16px}.resource-results-heading h4{font-size:15px;font-weight:550;color:#3b527d;margin:0;letter-spacing:0;line-height:1.7}.resource-results-heading>span{font-size:11px;color:#697d9f;line-height:1.8}.resource-list{list-style:none;margin:0;padding:0;display:grid;gap:13px}.resource-loading{padding:55px 20px;text-align:center;font-size:14px;color:#65799c}
.resource-file{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:start;gap:16px;padding:21px;border:1px solid #ffffffed;border-radius:18px;background:linear-gradient(125deg,#ffffffa6,#f6f8ff60);box-shadow:0 5px 20px #6b7eaa08;transition:border-color .2s,box-shadow .2s}.resource-file:hover{border-color:#b2bfe2;box-shadow:0 9px 25px #6077b014}.resource-file-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:52px;min-height:63px;border:1px solid #b7c2e380;border-radius:12px;background:#e7edff80;color:#6d7fc0;font-size:8px;font-weight:600;letter-spacing:.6px}.resource-file-badge .ui-icon{width:23px;height:23px}.file-pdf{color:#a2708d;background:#f5eaf280;border-color:#d6bdce88}.file-text{color:#638c8e;background:#e5f1ef80;border-color:#abcac788}.file-image{color:#967dba;background:#eee8f780}.file-zip{color:#9c8763;background:#f3eee280}.resource-file-copy{min-width:0}.resource-file-topic{display:block;font-size:10px;color:#677ca6;margin-bottom:6px;line-height:1.6}.resource-file h5{font-size:16px;font-weight:550;line-height:1.8;letter-spacing:0;color:#2f4878;margin:0;overflow-wrap:anywhere}.resource-file-description{font-size:12px;line-height:1.9;color:#647594;margin:7px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.resource-file-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:10px;color:#6b7e9c;margin-top:10px;line-height:1.8}.resource-file-actions{display:flex;align-items:center;gap:6px;align-self:center;flex-wrap:wrap;justify-content:flex-end}.resource-file-actions a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:44px;padding:9px 10px;font-size:11px;color:#526aa5;border-radius:10px}.resource-download{border:1px solid #b3c0e1;background:#e8eeff80}.resource-download .ui-icon{width:14px;height:14px}.resource-preview:hover{background:#ffffffa6}.resource-download:hover{background:#e1e9ff}
.resource-empty{min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 24px;border:1px dashed #afbddb;border-radius:19px;background:#ffffff3b}.resource-empty-stamp{display:grid;place-items:center;width:60px;height:67px;margin-bottom:20px;border:1px solid #fff;border-radius:15px;background:linear-gradient(135deg,#ffffffbf,#dde5ff66);box-shadow:0 7px 22px #5a75a710;color:#7a8cbe}.resource-empty-stamp .ui-icon{width:25px;height:25px}.resource-empty h5{font-size:18px;font-weight:500;line-height:1.8;letter-spacing:0;color:#405783;margin:0 0 9px}.resource-empty p{font-size:12px;line-height:1.9;color:#687b9e;max-width:340px;margin:0}.resource-empty-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:21px;padding:10px 17px;border:1px solid #b0bfe1;border-radius:11px;background:#ffffff80;color:#4e65a1;font-size:12px}.resource-more{display:block;width:100%;min-height:46px;margin-top:18px;border:1px solid #b0bfe1;border-radius:12px;background:#ffffff4d;color:#50669e;font-size:12px}.resource-more[hidden]{display:none}
@media(max-width:1050px){.resource-hero{grid-template-columns:minmax(0,1fr) 230px;gap:22px;padding:30px}.resource-hero h3{font-size:27px}.resource-layout{grid-template-columns:190px minmax(0,1fr)}.resource-main{padding:24px}.resource-sidebar{padding-inline:13px}.resource-file{grid-template-columns:46px minmax(0,1fr);gap:12px;padding:18px}.resource-file-badge{width:44px;grid-row:1/span 2}.resource-file-actions{grid-column:2;justify-content:flex-start}.resource-summary{padding-inline:30px}}
@media(max-width:760px){.resource-hero{display:block;padding:25px 23px}.resource-hero h3{font-size:25px;letter-spacing:-.4px}.resource-tagline{font-size:16px}.resource-description{font-size:14px}.resource-art{display:none}.resource-journey{gap:10px 14px;margin-top:20px}.resource-summary{padding:16px 23px;gap:13px 23px}.resource-summary strong{font-size:17px}.resource-curated{margin-left:0;font-size:11px}.resource-layout{display:block}.resource-sidebar{padding:20px 20px 16px;border-right:0;border-bottom:1px solid #cfdaed80}.resource-sidebar-label{padding:0 0 12px}.resource-topics{display:flex;flex-wrap:wrap;gap:7px}.resource-topic{padding:10px 12px;gap:9px;font-size:11px;border-color:#b4c2df6b;background:#ffffff3d}.resource-topic-count{min-width:12px}.resource-sidebar-note{display:none}.resource-main{padding:21px 20px 25px}.resource-toolbar{gap:8px}.resource-format-filter select{max-width:113px;font-size:11px;padding-left:9px}.resource-search{padding-inline:10px;gap:7px}.resource-search input{font-size:13px}.resource-search input::placeholder{font-size:11px}.resource-results-heading{margin-top:22px}.resource-file{padding:17px 15px}.resource-file h5{font-size:15px}.resource-empty{min-height:300px;padding:30px 18px}.resource-empty h5{font-size:17px}.resource-empty p{font-size:12px}.resource-eyebrow{font-size:8px;letter-spacing:.9px}.math-section .section-heading{gap:19px}.math-utility{gap:9px}.math-tabs{margin-bottom:28px}}
@media(max-width:390px){.resource-hero{padding:23px 18px}.resource-hero h3{font-size:23px}.resource-tagline{font-size:15px}.resource-summary{padding-inline:18px;font-size:11px}.resource-sidebar{padding-inline:15px}.resource-main{padding-inline:15px}.resource-toolbar{align-items:stretch;flex-wrap:wrap}.resource-search{flex-basis:100%}.resource-format-filter{width:100%}.resource-format-filter select{width:100%;max-width:none}.resource-topic{font-size:10px;padding-inline:9px}.resource-file{grid-template-columns:38px minmax(0,1fr);padding:15px 12px;gap:10px}.resource-file-badge{width:36px;min-height:51px;font-size:7px}.resource-file-badge .ui-icon{width:20px;height:20px}.resource-file-meta{gap:5px 9px}.resource-journey{gap:8px 10px}.resource-journey>span{font-size:10px}.resource-journey i{width:19px;height:19px}.math-manage{font-size:12px}}


/* Subject-specific vector illustrations, separate from the probability curve. */
.subject-art{transform:rotate(-1.5deg);background:linear-gradient(135deg,#ffffffa6,#e6edff66)}
.subject-art .resource-art-label{font-size:8px;letter-spacing:1.1px;color:#566d97}
.subject-art svg{margin-block:12px 7px;overflow:visible}
.subject-grid{fill:none;stroke:#9aafd2;stroke-opacity:.18;stroke-width:1}
.subject-axis{fill:none;stroke:#859bbb;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.subject-guide{fill:none;stroke:#8c9cbc;stroke-width:1;stroke-dasharray:3 4}
.subject-symbol{font:italic 12px Georgia,serif;fill:#4e648c}
.subject-equation{font:italic 13px Georgia,serif;fill:#5c6d9e}
.calculus-function{fill:none;stroke:#4f93ad;stroke-width:3;stroke-linecap:round}
.calculus-tangent{fill:none;stroke:#8d74bc;stroke-width:1.9;stroke-dasharray:5 4;stroke-linecap:round}
.calculus-slices{fill:none;stroke:#729cbc;stroke-opacity:.3;stroke-width:1}
.calculus-point{fill:#f6fbff;stroke:#4f93ad;stroke-width:2.5}
.linear-original{fill:#ffffff24;stroke:#a4afc9;stroke-width:1.2;stroke-dasharray:4 4}
.linear-plane{stroke:#9b87c4;stroke-width:1.2;stroke-linejoin:round}
.linear-mesh{fill:none;stroke:#a18bc5;stroke-opacity:.45;stroke-width:1}
.linear-basis{fill:none;stroke:#9aa9c4;stroke-width:1.6;stroke-dasharray:3 4}
.linear-vector-u,.linear-vector-v{fill:none;stroke-width:2.8;stroke-linecap:round}
.linear-vector-u{stroke:#518da8}.linear-vector-v{stroke:#8265b7}
.linear-origin{fill:#5d7297;stroke:#f7fbff;stroke-width:1.5}
.subject-art .resource-art-caption{border-top:1px solid #ffffffa6;padding-top:11px;color:#596e99}
.subject-art .resource-art-caption>span:last-child{font-size:9px;letter-spacing:1.5px}

/* Keep subject artwork as a compact masthead above the file controls. */
.math-section .section-heading { margin-bottom: 20px; }
.math-tabs { margin-bottom: 22px; }
.math-tabs > button { min-height: 68px; padding: 8px 20px; border-radius: var(--card-radius); }
.resource-hero {
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 24px;
  padding: 16px 28px;
}
.resource-hero h3 { margin: 0 0 4px; font-size: 24px; }
.resource-description { color: var(--text-secondary); line-height: 1.65; }
.resource-art { padding: 8px 12px; border-radius: var(--control-radius); }
.resource-art svg { height: 80px; margin: 0; }
.resource-art-label, .resource-art-caption { display: none; }
.resource-layout { display: block; min-height: 0; }
.resource-main { padding: 20px 28px 24px; }
.resource-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 190px) minmax(110px, 140px); gap: 8px; }
.resource-format-filter select { width: 100%; max-width: none; font: inherit; font-size: 14px; border-radius: var(--control-radius); }
.resource-results-heading { margin: 16px 0 10px; }
.resource-results-heading > span, .resource-file-topic, .resource-file-meta, .resource-file-description { color: var(--text-secondary); font-size: 13px; }
.resource-file-actions a { font-size: 14px; }
.resource-search input::placeholder { color: var(--text-secondary); font-size: 14px; }
.resource-empty { min-height: 180px; padding: 20px; }
.resource-empty-stamp { display: none; }
@media (max-width: 760px) {
  .math-section .section-heading { gap: 8px; }
  .math-tabs { gap: 6px; margin-bottom: 16px; }
  .math-tabs > button { justify-content: center; align-items: center; text-align: center; min-height: 48px; padding: 6px 4px; border-radius: var(--control-radius); }
  .math-tabs small, .math-tabs > button > span:first-child { display: none; }
  .resource-hero { padding: 12px 16px; }
  .resource-hero h3 { font-size: 19px; line-height: 1.4; }
  .resource-description { font-size: 14px; }
  .resource-main { padding: 12px 14px 16px; }
  .resource-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-search { grid-column: 1 / -1; }
  .resource-results-heading { margin: 12px 0 8px; }
  .resource-format-filter select { font-size: 14px; }
  .resource-search input { font-size: 16px; }
}
