/* Shared shell: mathematics is the visual reference for both subjects. */
:root { --bg:#f7f8fc; --ink:#172039; --muted:#77819a; --line:#e9ebf2; --blue:#4266ec; --light:#eef1ff; --lightblue:#eef1ff; }
body { color:var(--ink); background:var(--bg); font-family:Montserrat,"Segoe UI",sans-serif; }
.sidebar { width:255px; padding:29px 18px; }
.main-shell { margin-left:255px; }
.content { max-width:1420px; padding:38px 46px 80px; }
.sidebar .nav-icon { display:none; }
.brand { align-items:flex-start; gap:11px; padding:0 12px 37px; }
.brand strong { display:block; font-size:17px; line-height:1.25; letter-spacing:-.45px; }
.brand small { font-size:11px; }
.logo { display:grid; place-items:center; flex:none; width:38px; height:38px; border-radius:12px; background:#4266ec; color:#fff; }
.logo svg { display:block; width:21px; height:21px; }
.sidebar nav>a { margin-bottom:3px; border-radius:11px; padding:12px 13px; font-size:13px; font-weight:600; }
.sidebar nav>a.active { background:#eff2ff; color:#3b5fe3; }
.side-label { font-size:10px; letter-spacing:1.5px; margin:10px 14px; }
.topbar { min-height:74px; height:auto; padding:14px 32px; gap:16px; }
.top-right { display:flex; align-items:center; justify-content:flex-end; gap:18px; flex-wrap:wrap; }
.top-link,.math-board-link,.math-account-link { font-size:14px; line-height:1.5; color:#536079; }
.breadcrumbs { font-size:13px; }
.subject-menu { position:relative; font-size:15px; z-index:40; }
.subject-menu .subject-chip { display:flex; align-items:center; min-height:44px; padding:10px 15px; border:1px solid var(--line); border-radius:11px; background:#fff; color:#35435f; font-size:15px; font-weight:600; cursor:pointer; list-style:none; white-space:nowrap; }
.subject-menu summary::-webkit-details-marker { display:none; }
.subject-menu>.subject-options { position:absolute; right:0; top:calc(100% + 7px); min-width:215px; padding:8px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 35px #25345516; }
.subject-menu .subject-options a { display:block; padding:12px 14px; border-radius:8px; color:#35435f; font-size:15px; font-weight:500; text-decoration:none; }
.subject-menu .subject-options a:hover,.subject-menu .subject-options a[aria-current="page"] { background:#eef1ff; color:#4266ec; }
.hero { background:linear-gradient(115deg,#3154d7,#687de5); padding:38px 43px; border-radius:22px; min-height:0; box-shadow:0 20px 35px #4361db12; }
.hero-copy { max-width:none; padding:0; }
.hero h1 { font-size:34px; letter-spacing:-1.25px; line-height:1.2; }
.hero p { font-size:14px; line-height:1.65; }
.hero-bottom small,.hero-art,.hero:after { display:none; }
.exam-grid { gap:20px; }
.exam-card { padding:26px; border-radius:16px; box-shadow:0 15px 45px #15224209; }
.exam-card h3 { font-size:20px; }
.exam-card p { font-size:14px; min-height:0; }
.exam-card .exam-foot { font-size:12px; margin-top:22px; }
.home-exam { margin-bottom:22px; }
.page-heading { font-size:35px; letter-spacing:-1.2px; }
.subtitle { font-size:14px; }
.btn { font-size:13px; border-radius:11px; }
.topic-name { font-size:12px; }
.task-text,.solution-rich { font-size:14px; line-height:1.8; }
@media(max-width:1100px){.topbar{padding:14px 22px}.top-right{gap:12px}.breadcrumbs{display:none}}
@media(max-width:800px){.sidebar{display:none}.main-shell{margin-left:0}.topbar{padding:12px 16px;flex-wrap:wrap}.top-right{gap:12px;width:100%;justify-content:flex-start}.top-link,.math-board-link,.math-account-link{font-size:13px}.hero{padding:28px 24px}.hero h1{font-size:28px}.logo{width:31px;height:31px;border-radius:9px}.brand{padding:0}.exam-card{padding:22px}.page-heading{font-size:28px}}
@media(max-width:480px){.subject-menu .subject-chip{font-size:14px;padding:9px 11px}.subject-menu .subject-options a{font-size:15px}.top-right{gap:10px}.content{padding:24px 16px 90px}.topbar .mobile-brand{font-size:17px}.exam-grid{grid-template-columns:1fr}}

.topbar .top-right .top-link { font-size:14px; }
.brand>div:last-child,.brand>span:last-child { min-width:0; }
.brand strong { white-space:nowrap; font-size:16px; }
@media(max-width:800px){.topbar .top-right .top-link { font-size:13px; }}

.hero { margin-bottom:24px; }
.bank-note summary { cursor:pointer; font-size:12px; color:var(--muted); }
.bank-note p { margin:12px 0 0; line-height:1.7; }
