/* MathLoom subject guides — static and readable without JavaScript */
.subject-guide .sg-hero{max-width:1040px}.subject-guide h1{font-size:clamp(29px,4vw,48px);line-height:1.25;max-width:940px;margin:12px 0 20px}
.subject-guide .rc-hero{background:linear-gradient(120deg,#f4f0ff,#eff5ff 60%,#fff)}
.subject-guide .sg-en{color:#53647f;font-size:1rem}.subject-guide .sg-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
.subject-guide .sg-actions>a,.subject-guide .sg-bottom a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.subject-guide .sg-note{font-size:.88rem;color:#616e84}.subject-guide .rc-section h2{font-size:clamp(23px,3vw,31px);margin:36px 0 18px}
.subject-guide .sg-focus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.subject-guide .sg-focus article,.subject-guide .sg-example,.subject-guide .sg-caution,.subject-guide .sg-faq details{background:#fff;border:1px solid #e3e8f1;border-radius:16px;padding:20px}
.subject-guide .sg-focus h3{margin:0 0 9px;color:#2d4267;font-size:1.09rem}
.subject-guide .sg-focus p{margin:0;line-height:1.75}
.subject-guide .sg-example{background:#f7f9ff;border-color:#cbd9f4}.subject-guide .sg-example>strong{color:#31549a}
.subject-guide .sg-example details{margin:14px 0;border-top:1px solid #cbd9f4;padding-top:16px}
.subject-guide summary{cursor:pointer;font-weight:700;color:#2b497b}.subject-guide details p{line-height:1.8}
.subject-guide .sg-challenge{font-weight:600}.subject-guide .sg-caution{margin:30px 0;background:#fbf9ff;border-color:#e3dbf5}
.subject-guide .sg-faq{display:grid;gap:10px}.subject-guide .sg-related{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 28px}
.subject-guide .sg-related a{border:1px solid #cbd9f4;padding:10px 15px;border-radius:999px;text-decoration:none;color:#234b84}
.subject-guide .sg-bottom{background:#f3f0ff;padding:45px 0}.subject-guide .sg-bottom .wrap{max-width:1000px}.subject-guide .sg-bottom p{line-height:1.8}
@media(max-width:720px){.subject-guide .sg-focus{grid-template-columns:1fr}.subject-guide .sg-actions>a{width:100%}.subject-guide .sg-focus article,.subject-guide .sg-example{padding:16px}}
@media print{.subject-guide .sg-bottom,.subject-guide header{display:none}}
