/* MathsRead visual system — November 2026.
   Presentation only. Never change question data, grading, or interaction state here.
   This sheet intentionally loads last to isolate old global CSS from page layouts. */
:root {
  --ui-bg: #f6f8f9;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f1f5f5;
  --ui-text: #172e3b;
  --ui-muted: #526575;
  --ui-border: #dce5e7;
  --ui-border-strong: #b9c9cc;
  --ui-primary: #11685f;
  --ui-primary-strong: #0b514a;
  --ui-primary-soft: #e9f4f1;
  --ui-success: #167247;
  --ui-radius: 14px;
  --ui-shadow: 0 6px 26px rgba(19, 45, 55, .04);
  --nav-border: #dce5e7;
  --nav-muted: #60717e;
  --nav-surface: #fff;
  --nav-shadow: 0 18px 48px rgba(19,45,55,.12);
}
html { scroll-padding-top: 88px; }
body.platform-body {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
.platform-body h1,.platform-body h2,.platform-body h3,.platform-body h4 { color: var(--ui-text); line-height: 1.22; letter-spacing: -.035em; }
.platform-body h1 { font-weight: 760; }
.platform-body h2,.platform-body h3 { font-weight: 720; }
.platform-body a { color: var(--ui-primary); text-underline-offset: 3px; }
.platform-body a:hover { color: var(--ui-primary-strong); }
.platform-body :focus-visible { outline: 3px solid #0f8276; outline-offset: 3px; }
.platform-body input:focus,.platform-body select:focus,.platform-body textarea:focus { border-color: #418e84; box-shadow: 0 0 0 3px rgba(17,104,95,.12); }
.platform-body input[type=checkbox],.platform-body input[type=radio] { accent-color: var(--ui-primary); }
.platform-body p { line-height: 1.66; }
.platform-body .btn { min-height: 44px; border-radius: 9px; font-size: .9rem; font-weight: 680; text-decoration: none; box-shadow: none; }
.platform-body .btn-primary,.platform-body .form-card form button[type=submit]:not(.link) { background: var(--ui-primary); border-color: var(--ui-primary); color: #fff; }
.platform-body .btn-primary:hover,.platform-body .form-card form button[type=submit]:not(.link):hover { background: var(--ui-primary-strong); border-color: var(--ui-primary-strong); color: #fff; }
.platform-body .btn-outline-primary { color: var(--ui-primary); border-color: #b9ceca; background: white; }
.platform-body .btn-outline-primary:hover { background: var(--ui-primary-soft); color: var(--ui-primary-strong); border-color: #83b1a8; }
.platform-body .btn-outline-secondary { border-color: var(--ui-border-strong); background: #fff; color: #354a57; }
.platform-body .btn-outline-secondary:hover { background: #f2f6f5; }
.platform-main { display:block; padding: 38px 0 74px; min-width: 0; }
.platform-container,.footer-inner,.platform-header-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.platform-body .platform-surface { min-width:0; width:100%; }
.eyebrow-label { font-size: .72rem; letter-spacing: .11em; color: #177468; text-transform:uppercase; font-weight: 750; }
/* Navigation: a deliberate, quiet visual hierarchy instead of competing pills. */
.platform-header-shell { position:relative; z-index:100; background:#fff; border-bottom:1px solid var(--ui-border); box-shadow:none; padding:0; }
.platform-header-inner { min-height:74px; max-width:1160px; gap:26px; }
.brand-link { text-decoration:none; }
.brand-lockup { gap:12px; }
.brand-lockup .brand-logo { width:38px; height:38px; border-radius:9px; box-shadow:none; }
.brand-lockup .brand-name { color:#17333c; font-size:1.18rem; letter-spacing:-.045em; line-height:1.04; }
.brand-lockup .brand-name small { margin-top:5px; font-size:.63rem; letter-spacing:.005em; color:#657a7d; font-weight:500; }
.modern-desktop-nav { justify-content:center; gap:3px; }
.modern-desktop-nav>a,.nav-explore-menu>summary { color:#405864; font-weight:590; font-size:.88rem; padding:10px 14px; border-radius:8px; }
.platform-body .modern-desktop-nav>a:hover,.platform-body .modern-desktop-nav>a.active,.nav-explore-menu>summary:hover,.nav-explore-menu[open]>summary { background:#edf5f2; color:#10584f; }
.platform-body .modern-desktop-nav>a.active { box-shadow:inset 0 -2px #197569; }
.modern-header-tools { gap:9px; }
.guest-signin { color:#344c58; font-weight:650; }
.guest-join { min-height:42px; padding:9px 17px; }
.header-icon-button { border-color: var(--ui-border); border-radius:10px; background:white; color:#3a525f; }
.header-icon-button:hover,.site-menu[open]>.header-icon-button { border-color:#a8cdc5; background:#eef7f4; color:#105d54; }
.account-trigger { border-color:var(--ui-border); }
.account-trigger:hover,.account-dropdown[open]>.account-trigger { border-color:#a8cdc5; background:#eff7f4; }
.site-menu-panel { border-color:var(--ui-border); border-radius:13px; box-shadow:var(--nav-shadow); }
.nav-explore-panel a:hover,.account-panel>a:hover,.mobile-menu-panel a:hover { background:var(--ui-primary-soft); color:var(--ui-primary-strong); }
.notification-panel-footer { color:var(--ui-primary); background:#f5f8f8; }
.notification-panel-footer:hover { background:var(--ui-primary-soft); }
.notification-read-all { color:var(--ui-primary); }
.platform-body .platform-footer { padding:28px 0; background:#fff; border-top:1px solid var(--ui-border); color:#5a707a; }
.platform-footer strong { color:var(--ui-text); }
.footer-inner { align-items:center; flex-wrap:wrap; gap:20px; }
.footer-inner nav { gap:22px; }
.footer-inner nav a { color:#4a6270; text-decoration:none; font-weight:550; }
.footer-inner nav a:hover { color:var(--ui-primary); }
/* Homepage: one strong decision, calm illustration, easy scan paths. */
.landing-hero { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); align-items:center; gap:clamp(32px,4.5vw,64px); padding:clamp(36px,5.4vw,72px); background:#fff; border:1px solid var(--ui-border); border-radius:18px; box-shadow:none; }
.landing-hero .eyebrow-label { margin:0; }
.landing-hero h1 { max-width:650px; margin:16px 0 20px; font-size:clamp(2.5rem,4.1vw,3.5rem); font-weight:770; line-height:1.08; letter-spacing:-.055em; }
.landing-hero h1 span { color:#147a6b; }
.landing-hero .hero-description { color:#526a76; font-size:clamp(1.02rem,1.4vw,1.16rem); line-height:1.74; max-width:480px; }
.landing-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px 24px; margin-top:30px; }
.landing-actions .btn { min-height:50px; padding:12px 23px; font-size:.96rem; gap:15px; }
.hero-secondary-action,.landing-text-link { color:var(--ui-primary); font-weight:680; font-size:.92rem; text-decoration:none; }
.hero-secondary-action:hover,.landing-text-link:hover { text-decoration:underline; }
.hero-reassurance { margin-top:15px; color:#697d86; font-size:.82rem; }
.hero-visual { min-width:0; border:1px solid #d8e5e3; border-radius:13px; box-shadow:0 12px 34px rgba(24,56,60,.07); overflow:hidden; background:#fff; }
.graph-visual-top,.hero-visual-bottom { padding:12px 15px; border-color:#e6eff0; color:#667b84; }
.graph-math-pill { background:#edf6f2; color:#126960; }
.visual-live-dot { background:#199377; }
.landing-hero .hero-graph { background:#fcfefe; }
/* The SEO-safe descriptive phrase is kept in the accessible source, but is
   visually hidden because the hero already conveys this information. */
.landing-highlights-compact { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.landing-section { margin-top:65px; }
.landing-section-heading { margin-bottom:22px; }
.landing-section-heading h2 { font-size:clamp(1.7rem,2.8vw,2.25rem); margin:8px 0 0; }
.math-paths-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.landing-feature-grid .feature-card { min-width:0; padding:25px; background:#fff; border:1px solid var(--ui-border); border-radius:13px; box-shadow:none; transition:border-color .15s, transform .15s; }
.landing-feature-grid .feature-card:hover { border-color:#a5c9c2; transform:translateY(-2px); box-shadow:0 6px 20px rgba(24,56,60,.04); }
.feature-symbol { display:grid; place-items:center; width:38px; height:38px; margin-bottom:22px; background:#edf5f2; color:#196c60; border-radius:8px; font-size:.8rem; font-weight:700; }
.landing-feature-grid h3 { font-size:1.09rem; margin:0 0 9px; }
.landing-feature-grid p { min-height:4.3em; margin:0; color:#61757d; font-size:.88rem; line-height:1.65; }
.landing-feature-grid .feature-card a { display:inline-block; margin-top:19px; color:var(--ui-primary); font-size:.89rem; font-weight:660; text-decoration:none; }
.landing-feature-grid .feature-card a:hover { text-decoration:underline; }
.landing-how { display:flex; justify-content:space-between; align-items:center; gap:24px; border-block:1px solid var(--ui-border); margin-top:54px; padding:35px 0; }
.landing-how h2 { margin:5px 0 8px; font-size:1.7rem; }
.landing-how p:last-child { max-width:680px; margin:0; color:#5d707b; }
.brahmagupta-tribute { display:flex; gap:23px; align-items:center; margin-top:32px; padding:30px 34px; border:1px solid #e7e4d9; border-radius:13px; background:#faf9f5; box-shadow:none; }
.tribute-mark { display:grid; place-items:center; flex:0 0 72px; width:72px; height:72px; border:1px solid #e6e0d0; border-radius:11px; background:#f1ede2; color:#8a6d42; font:normal 2.9rem/1 Georgia,serif; }
.brahmagupta-tribute .eyebrow-label { color:#8b714a; margin-bottom:5px; }
.brahmagupta-tribute h2 { font-size:1.48rem; margin:0 0 7px; }
.brahmagupta-tribute p:not(.eyebrow-label) { color:#5e6868; font-size:.91rem; line-height:1.68; margin:0; max-width:840px; }
.brahmagupta-tribute a { display:inline-block; color:var(--ui-primary); text-decoration:none; margin-top:12px; font-size:.88rem; font-weight:670; }
.brahmagupta-tribute a:hover { text-decoration:underline; }
.about-tribute { scroll-margin-top:92px; margin:22px 0; }
/* Public catalogue fix: old global `header` was display:flex, the precise cause
   of the screenshot's compressed, overlapping three-column title. */
body.platform-body .public-problems { max-width:1120px; width:100%; padding:0; margin:0 auto; }
body.platform-body .public-problems .compute-breadcrumb { display:flex; align-items:center; justify-content:flex-start; gap:8px; margin:0 0 30px; padding:0; min-height:24px; border:0; color:#829299; font-size:.84rem; }
body.platform-body .public-problems .compute-breadcrumb a { margin:0; padding:0; color:#52746f; font-weight:590; text-decoration:none; }
body.platform-body .public-problems .compute-breadcrumb a:hover { text-decoration:underline; }
body.platform-body .public-problems .compute-breadcrumb>*+*::before { content:"/"; margin-right:8px; color:#aab8bd; font-weight:400; }
body.platform-body .public-problem-intro {
  display:block; width:100%; max-width:none; min-width:0; margin:0 0 34px;
  padding:0 0 28px; border:0; border-bottom:1px solid var(--ui-border);
  border-radius:0; background:transparent; box-shadow:none; text-align:left;
}
body.platform-body .public-problem-intro .eyebrow-label { display:block; margin:0 0 13px; font-size:.73rem; line-height:1.5; }
body.platform-body .public-problem-intro h1 { display:block; width:auto; max-width:800px; margin:0 0 12px; padding:0; border:0; color:#172e3b; cursor:default; font-size:clamp(2.05rem,4.2vw,3.05rem); font-weight:760; letter-spacing:-.052em; line-height:1.12; overflow-wrap:normal; }
body.platform-body .public-problem-intro p:not(.eyebrow-label) { display:block; max-width:760px; margin:0; padding:0; color:#536c76; font-size:1rem; line-height:1.7; }
body.platform-body .public-problem-intro p + p { margin-top:12px; }
body.platform-body .public-problem-module { display:block; margin:0 0 46px; padding:24px 26px 28px; border:1px solid var(--ui-border); border-radius:14px; background:white; box-shadow:none; min-width:0; }
body.platform-body .public-problem-module h2 { margin:0 0 6px; font-size:1.35rem; line-height:1.3; }
body.platform-body .public-problem-module h2 a { text-decoration:none; color:#1e3540; }
body.platform-body .public-problem-module h2 a:hover { color:var(--ui-primary); text-decoration:underline; }
body.platform-body .public-problem-module>p { color:#63777f; font-size:.91rem; margin:0; max-width:790px; }
body.platform-body .public-problem-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:20px 0 0; padding:0; }
body.platform-body .public-problem-tile { min-width:0; }
body.platform-body .public-problem-tile-link { display:flex; flex-direction:column; min-width:0; gap:10px; height:100%; padding:20px; border:1px solid #e1e8ea; border-radius:10px; background:#fbfcfc; color:#213943; text-decoration:none; box-shadow:none; transition:border-color .15s,background .15s,box-shadow .15s; }
body.platform-body .public-problem-tile-link:hover,body.platform-body .public-problem-tile-link:focus-visible { background:#fff; border-color:#8fbdb1; box-shadow:0 5px 20px rgba(18,67,60,.07); }
body.platform-body .public-problem-tile-link strong { color:#18323e; font-size:1.02rem; font-weight:720; line-height:1.4; }
body.platform-body .public-problem-tile-meta { color:#5c737f; font-size:.79rem; }
body.platform-body .public-problem-tile-summary { color:#637780; font-size:.88rem; line-height:1.6; }
body.platform-body .public-problem-tile-action { margin-top:auto; padding-top:9px; font-size:.86rem; font-weight:700; color:var(--ui-primary); }
/* Individual question pages: touch only the framing, never the actual question. */
body.platform-body .public-problem-detail { max-width:1120px; }
body.platform-body .public-problem-detail .public-problem-article { display:block; margin:0 0 34px; padding:clamp(20px,3.7vw,40px); background:white; border:1px solid var(--ui-border); border-radius:14px; box-shadow:none; }
body.platform-body .public-problem-detail .public-problem-article>header { display:block; padding:0 0 23px; border:0; border-bottom:1px solid var(--ui-border); background:transparent; }
body.platform-body .public-problem-detail .public-problem-article>header h1 { margin:8px 0 15px; font-size:clamp(1.75rem,3vw,2.4rem); color:var(--ui-text); }
body.platform-body .public-workspace-heading h2 { color:var(--ui-text); font-size:1.35rem; }
body.platform-body .public-workspace-eyebrow { color:#247668; }
body.platform-body .public-workspace-expand { border-color:#b9ceca; color:var(--ui-primary); border-radius:8px; text-decoration:none; }
body.platform-body .public-workspace-expand:hover { background:var(--ui-primary-soft); }
body.platform-body .public-solver-frame-box { border-color:var(--ui-border); border-radius:10px; background:#f7faf9; box-shadow:none; }
body.platform-body .public-problem-text-alternative { border-color:var(--ui-border); background:#f7faf9; }
body.platform-body .public-problem-text-alternative summary { color:#245d57; }
body.platform-body .public-problem-detail .public-problem-article section { scroll-margin-top:90px; }
body.platform-body .public-problem-cta { border-color:var(--ui-border); }
body.platform-body .public-related-problems { border-top:1px solid var(--ui-border); padding-top:24px; }
body.platform-body .public-computation-related { border-color:var(--ui-border); border-radius:12px; box-shadow:none; }
body.platform-body .public-computation-related a { background:#edf5f2; color:var(--ui-primary); }
/* Learner dashboard: typography, structure, and restrained state colours. */
body.platform-body .curriculum-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,245px); padding:32px 36px; border:1px solid var(--ui-border); border-radius:14px; background:white; box-shadow:none; }
body.platform-body .curriculum-hero h1 { font-size:clamp(1.9rem,3.5vw,2.7rem); letter-spacing:-.045em; }
body.platform-body .curriculum-hero p:last-child { color:#61747c; line-height:1.7; }
body.platform-body .progress-summary { background:#ebf5f2; border-radius:11px; }
body.platform-body .progress-numbers strong,body.platform-body .progress-numbers strong span,body.platform-body .progress-numbers>span { color:#155f55; }
body.platform-body .progress-track { background:#c6e0d8; }
body.platform-body .progress-track>span { background:#15766a; }
body.platform-body .challenge-category-nav { gap:9px!important; }
body.platform-body .challenge-category-nav a { min-height:40px; font-size:.86rem; padding:8px 14px; }
body.platform-body .module-section { border-color:var(--ui-border); border-radius:12px; background:#fff; }
body.platform-body .module-heading { background:#fff; }
body.platform-body .module-heading:hover { background:#f7faf9; }
body.platform-body .module-number { background:var(--ui-primary-soft); color:var(--ui-primary); }
body.platform-body .challenge-card { border-color:var(--ui-border); background:#fafcfc; border-radius:10px; }
body.platform-body .challenge-card:hover { border-color:#a3cac0; background:white; }
/* Content & utility pages. */
body.platform-body .info-page { display:block; max-width:940px; padding:clamp(28px,4.8vw,56px); border:1px solid var(--ui-border); border-radius:14px; background:#fff; box-shadow:none; }
body.platform-body .info-page h1 { font-size:clamp(2rem,4vw,3.2rem); }
body.platform-body .info-page h2,body.platform-body .about-details h2 { color:var(--ui-text); }
body.platform-body .info-page p { color:#586f79; }
body.platform-body .about-details { gap:14px; }
body.platform-body .about-details article { padding:24px; border:1px solid var(--ui-border); border-radius:12px; background:#fff; box-shadow:none; }
body.platform-body .about-details p { color:#5b727d; }
body.platform-body .contact-email { color:var(--ui-primary)!important; background:#e9f4f1; }
body.platform-body .form-card { max-width:490px; padding:clamp(24px,4.5vw,38px); border:1px solid var(--ui-border); border-radius:14px; background:#fff; box-shadow:none; }
body.platform-body .form-card h1,body.platform-body .form-card h2 { color:var(--ui-text); text-align:left; }
body.platform-body .form-card h1 { font-size:2rem; margin-bottom:8px; }
body.platform-body .form-card .form-intro { color:#62747d; }
body.platform-body .form-card label { color:#2c4752; font-size:.91rem; font-weight:600; }
body.platform-body .form-card input:not([type=checkbox]) { border-color:#bfcfd1; border-radius:8px; }
body.platform-body .form-card .switch a,body.platform-body .form-card .auth-secondary-link a,body.platform-body .auth-guest-option a { color:var(--ui-primary); }
body.platform-body .login-captcha,body.platform-body .extra-profile-fields { background:#f5f9f8; border-color:var(--ui-border); }
body.platform-body .graph-examples-page h1 { font-size:clamp(2rem,3.8vw,3rem); }
body.platform-body .graph-examples-page>p { color:#5d717b; }
body.platform-body .graph-examples-page .plotted-example { border:1px solid var(--ui-border); border-radius:11px; box-shadow:none; }
body.platform-body .graph-examples-page .plotted-example:hover { border-color:#a3c9bf; box-shadow:0 6px 20px rgba(17,76,67,.06); }
body.platform-body .graph-examples-page .plotted-example span { color:var(--ui-primary); }
body.platform-body .graph-examples-page .plotted-example code { background:#eff6f4; color:#27564e; }
body.platform-body .graph-examples-page .plotted-example img { background:#f7faf9; }
body.platform-body .network-grid>section,body.platform-body .people-search-panel,body.platform-body .profile-summary-card,body.platform-body .profile-settings-card { border-color:var(--ui-border); box-shadow:none; border-radius:12px; }
body.platform-body .people-search-panel,body.platform-body .network-list>a,body.platform-body .network-list article { background:#f6f9f8; }
body.platform-body .profile-avatar { background:#e8f5f1; color:var(--ui-primary); }
body.platform-body .compute-card { border-color:var(--ui-border); border-radius:14px; box-shadow:none; }
body.platform-body .compute-statement { border-left-color:#198071; background:#f4faf8; }
body.platform-body .compute-chip { border-color:#b7d7cf; color:#145c53; background:#e9f4f1; }
body.platform-body .compute-topic { color:#60747d; }
body.platform-body .staff-hero,body.platform-body .staff-card { border-color:var(--ui-border); box-shadow:none; }
body.platform-body .staff-hero { background:#f8fbfa; }
/* Responsive: never split a heading into columns at narrow viewport widths. */
@media(max-width:1050px) { .math-paths-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } body.platform-body .public-problem-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:920px) { .landing-hero { grid-template-columns:1fr; } .hero-visual { width:min(100%,620px); } }
@media(max-width:760px) {
  .platform-container,.footer-inner,.platform-header-inner { width:calc(100% - 32px); }
  .platform-main { padding:24px 0 54px; }
  .landing-hero { padding:32px 28px; }
  .landing-section { margin-top:46px; }
  .landing-how { align-items:flex-start; flex-direction:column; }
  body.platform-body .public-problem-intro { margin-bottom:22px; padding-bottom:22px; }
  body.platform-body .public-problem-intro h1 { font-size:clamp(1.9rem,6vw,2.6rem); }
  body.platform-body .public-problem-module { padding:20px; }
  body.platform-body .curriculum-hero { grid-template-columns:1fr; padding:26px; }
  body.platform-body .about-details { grid-template-columns:1fr; }
  .footer-inner { align-items:flex-start; }
}
@media(max-width:560px) {
  .platform-container,.footer-inner,.platform-header-inner { width:calc(100% - 28px); }
  .platform-header-inner { min-height:64px; }
  .brand-lockup .brand-name { font-size:1.08rem; }
  .guest-header-actions { gap:2px; }
  .guest-signin { display:none; } /* Sign-in remains in the mobile menu */
  .guest-join { display:inline-flex; padding:8px 12px; font-size:.78rem; }
  .landing-hero { padding:27px 22px; gap:27px; border-radius:13px; }
  .landing-hero h1 { font-size:clamp(2.2rem,9.5vw,3.2rem); }
  .landing-actions { align-items:stretch; flex-direction:column; gap:14px; }
  .landing-actions .btn { width:100%; }
  .hero-secondary-action { text-align:center; }
  .math-paths-grid { grid-template-columns:1fr; }
  .landing-feature-grid .feature-card { padding:22px; }
  .landing-feature-grid p { min-height:0; }
  .brahmagupta-tribute { gap:15px; padding:22px; align-items:flex-start; }
  .tribute-mark { flex-basis:52px; width:52px; height:52px; font-size:2.2rem; }
  body.platform-body .public-problem-grid { grid-template-columns:1fr; }
  body.platform-body .public-problem-module { padding:18px; margin-bottom:24px; }
  body.platform-body .public-problem-tile-link { padding:18px; }
  body.platform-body .public-problem-intro h1 { font-size:clamp(1.9rem,8vw,2.3rem); }
  body.platform-body .public-problem-intro p:not(.eyebrow-label) { font-size:.94rem; }
  .footer-inner nav { flex-wrap:wrap; gap:12px 17px; }
}
@media(max-width:385px) {
  .brahmagupta-tribute .tribute-mark { display:none; }
  .platform-container,.footer-inner,.platform-header-inner { width:calc(100% - 24px); }
}
@media(prefers-reduced-motion:reduce) { .platform-body *, .platform-body *::before, .platform-body *::after { transition-duration:.01ms!important; scroll-behavior:auto!important; } }
