.math-page{max-width:1440px}.math-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.math-heading h1{margin-bottom:8px}.math-heading p{margin:0}.math-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.math-topic{display:block;text-align:left;padding:24px;border:1px solid #ccd8e6;background:#fff;border-radius:14px;color:#172c45;cursor:pointer;font:inherit}.math-topic strong{display:block;font-size:20px;margin:12px 0}.math-topic small{font-size:14px;color:#596b7d;line-height:1.7}.math-topic-symbol{font-family:Georgia,serif;font-size:32px;color:#9c5d0c}.math-topic:hover,.math-topic[aria-pressed=true]{border-color:#b67320;background:#fff8ec;box-shadow:inset 0 3px #cc862e}.math-search{display:grid;gap:8px;margin-top:24px;max-width:640px}.math-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.math-cards .learn-card{display:flex;flex-direction:column;margin:0!important}.math-cards p{font-size:15px}.math-cards .learn-formula{font-size:1.2rem;margin:4px 0 12px}.math-cards .learn-actions{margin-top:auto;padding-top:16px}.math-count{margin:18px 0 0;font-size:14px;color:#556b80}.math-lab{margin-top:24px}.math-lab-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.math-graph-panel{border-radius:16px;background:#0b192b;padding:20px;color:#d9e9f7;min-width:0}.math-graph-panel svg{width:100%;height:auto;display:block;overflow:hidden}.math-graph-panel .learn-formula{background:#132a40;color:#fcda9b;margin-bottom:8px}.math-graph-panel math{margin:0;font-size:1.35rem}.math-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;line-height:1.6;color:#c7daeb;padding:10px 0 0}.math-legend span:before{content:'';display:inline-block;width:20px;height:3px;background:#71e3e5;vertical-align:middle;margin-right:8px}.math-legend .secondary:before{background:#ffbf70}.math-control{margin-bottom:22px}.math-control-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}.math-control input[type=number]{width:98px;padding:9px!important;font-size:16px}.math-control input[type=range]{margin-top:14px}.math-control-limits{display:flex;justify-content:space-between;font-size:14px;color:#637589}.math-control-error{font-size:14px;color:#a93426;min-height:24px;line-height:1.6}.math-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.math-value{background:#132a40;border:1px solid #284158;border-radius:9px;padding:15px;min-width:0;overflow-wrap:anywhere}.math-value span{display:block;font-size:14px;color:#a9c2d9}.math-value strong{display:block;font-size:21px;font-weight:500;color:#fff;margin-top:8px;line-height:1.5}.math-lab-note{padding:20px 0 0}.math-lab-note p{font-size:15px;line-height:1.8;color:#b8cede}.math-lab-note a{color:#a8eff0}.math-lab-note h3{margin:0}.math-plot-caption{font-size:14px;color:#a9c2d9;margin:10px 0}.math-formula-symbols{font-size:14px;line-height:1.8}.math-source{font-size:14px;margin-top:28px;color:#587087}.math-source a{color:#286178}.math-model-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.math-model-tabs .learn-button[aria-pressed=true]{background:#183f55;border-color:#183f55;color:#fff}.math-reset{width:100%}.math-model-summary{min-height:2em}.math-no-results{grid-column:1/-1}.math-course-selector{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.math-course-selector a{font-size:14px}.math-ui-tabs .learn-button{font-size:16px}
@media(max-width:1000px){.math-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.math-lab-layout{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:720px){.math-lab-layout{grid-template-columns:1fr}.math-cards{grid-template-columns:1fr}.math-graph-panel{padding:12px}.math-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.math-control{margin-bottom:0}.math-controls h2,.math-controls .learn-muted,.math-control-error,.math-reset{grid-column:1/-1}.math-control-head{flex-wrap:wrap}.math-values{gap:8px}.math-value{padding:12px}.math-value strong{font-size:18px}}
@media(max-width:420px){.math-topic-grid{grid-template-columns:1fr}.math-controls{grid-template-columns:1fr}}
