/* StudentSOS v20.10.0 — adaptive tutor, stable learning visuals and banner grid. */

/* Never expose or distort protected display math. */
.s210-math-block{display:block;max-width:100%;margin:12px 0;overflow-x:auto;overflow-y:hidden;padding:2px 0}
.s18-message .s210-math-block .katex-display{margin:.35em 0}

/* Partner banners: every aspect ratio must stay inside its own preview card. */
.s2092-banner-grid{align-items:stretch}
.s2092-banner-card{display:flex!important;flex-direction:column;min-height:292px;isolation:isolate}
.s2092-banner-preview{height:190px!important;min-height:190px!important;max-height:190px!important;overflow:hidden!important;position:relative!important;contain:layout paint!important;padding:14px!important}
.s2092-banner-preview img{display:block!important;position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important}
.s2092-banner-meta{display:flex;flex:1;flex-direction:column;min-width:0}
.s2092-banner-meta b{overflow-wrap:anywhere}.s2092-banner-actions{margin-top:auto}

/* Tutor overview */
.s210-tutor-hero{background:linear-gradient(135deg,#07152f 0%,#132554 55%,#38135f 100%);color:#fff;overflow:hidden;position:relative}
.s210-tutor-hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-100px;top:-135px;background:rgba(91,227,255,.15);filter:blur(2px)}
.s210-tutor-hero h1{max-width:760px}.s210-tutor-hero p{max-width:750px;color:rgba(255,255,255,.78)}
.s210-tutor-hero .sos-mascot{position:relative;z-index:2}
.s210-hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.s210-hero-tags b{font-size:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.09);padding:8px 11px;border-radius:999px}
.s210-tutor-overview{grid-template-columns:repeat(4,minmax(0,1fr))}
.s210-tutor-overview article{min-width:0}.s210-tutor-overview b{font-variant-numeric:tabular-nums}
.s210-study-groups{grid-template-columns:1.15fr .9fr .95fr}
.s210-exam-group{background:linear-gradient(145deg,#fff9ef,#fff)}
.s210-exam-group .s207-study-group-head i{background:#fff2d8;color:#9b5b00}
.s210-subject-hint{margin:5px 0 0;color:#7a8495;font-size:13px}
.s210-adaptive-flow{margin-top:26px;padding-top:2px}.s210-adaptive-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.s210-adaptive-grid article{border:1px solid #e3e8f1;border-radius:18px;padding:18px;background:#fff;min-width:0}.s210-adaptive-grid article>b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf4ff;color:#1769ff;font-size:12px}.s210-adaptive-grid h3{margin:13px 0 7px;font-size:16px}.s210-adaptive-grid p{margin:0;color:#657186;font-size:13px;line-height:1.55}

/* Tutor subject / mastery */
.s210-progress-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.s210-progress-cards article{border:1px solid #e2e8f1;border-radius:15px;padding:14px;background:#fff}.s210-progress-cards b{display:block;font-size:22px}.s210-progress-cards span{font-size:12px;color:#758096}
.s210-next-topic{align-items:center}.s210-next-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.s210-next-actions button{min-height:42px;border:1px solid #d8e1ee;border-radius:12px;padding:0 14px;background:#fff;font-weight:800;cursor:pointer}.s210-next-actions button.primary{background:#1769ff;border-color:#1769ff;color:#fff}
.s210-level-tabs a.exam{border-color:#ffdf9c}.s210-level-tabs a.exam.active{background:#fff4dc;color:#8b5600;border-color:#ffc85a}
.s210-topic-list>article{align-items:flex-start}.s210-topic-main{min-width:0;flex:1}.s210-topic-title>b{display:block;font-size:15px;line-height:1.35}.s210-topic-title small{display:block;margin-top:5px}.s210-subtopics{margin-top:10px;border:1px solid #e7ebf3;border-radius:12px;background:#f9fbfe;overflow:hidden}
.s210-subtopics summary{list-style:none;cursor:pointer;padding:10px 12px;font-size:12px;font-weight:800;color:#526078;display:flex;align-items:center;justify-content:space-between;gap:10px}.s210-subtopics summary::-webkit-details-marker{display:none}.s210-subtopics summary span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:8px;background:#e9f1ff;color:#1769ff}
.s210-subtopics ol{margin:0;padding:4px 16px 12px 34px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 22px;color:#3e4b61}.s210-subtopics li{font-size:12px;line-height:1.4;padding-left:2px}
.s210-topic-actions{align-self:center}.s210-topic-actions button{white-space:nowrap}
.s210-tutor-progress-note{display:block;margin-top:8px;padding:8px 10px;border-radius:9px;background:#f2f7ff;color:#32568d;line-height:1.4}

/* Stable SVG educational visuals instead of code-block ASCII art. */
.sos-circuit-svg,.sos-pythagoras-svg{width:100%;height:auto;max-height:360px}.sos-circuit-svg .wire,.sos-pythagoras-svg>path:first-child{fill:none;stroke:#23324d;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.sos-circuit-svg .resistor rect{fill:#fff;stroke:#1769ff;stroke-width:4}.sos-circuit-svg .node circle{fill:#23324d}.sos-circuit-svg text,.sos-pythagoras-svg text{fill:#19263d;font:700 22px system-ui,sans-serif}.sos-circuit-svg .arrow{fill:none;stroke:#1769ff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.sos-pythagoras-svg .right{fill:none;stroke:#ff6a55;stroke-width:5}.sos-pythagoras-svg .formula{font-size:25px;fill:#1769ff}

/* Project header logo remains visible after the desktop rail disappears. */
.s210-mobile-brand{display:none;width:34px;height:34px;align-items:center;justify-content:center;text-decoration:none;flex:0 0 auto}.s210-mobile-brand .sos-brand-wordmark,.s210-mobile-brand .sos-brand-name{display:none}

/* Help screenshots */
.s210-help-shot{margin:24px 0;border:1px solid #e0e6ef;border-radius:18px;background:#f6f8fc;padding:10px;overflow:hidden}.s210-help-shot img{display:block;width:100%;height:auto;border-radius:12px}.s210-help-shot figcaption{padding:9px 6px 2px;color:#6f7a8e;font-size:12px;line-height:1.45}

@media(max-width:1100px){.s210-study-groups{grid-template-columns:1fr 1fr}.s210-exam-group{grid-column:1/-1}.s210-tutor-overview,.s210-progress-cards,.s210-adaptive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.s2092-banner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.s210-tutor-hero{padding:20px 18px}.s210-tutor-hero h1{font-size:28px;line-height:1.05}.s210-tutor-hero .sos-mascot{display:none}.s210-study-groups,.s210-tutor-overview,.s210-progress-cards,.s210-adaptive-grid{grid-template-columns:1fr}.s210-exam-group{grid-column:auto}.s210-subtopics ol{grid-template-columns:1fr}.s210-topic-list>article{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px}.s210-topic-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:1fr 1fr}.s210-topic-actions button{width:100%}.s210-next-topic{display:block}.s210-next-actions{justify-content:stretch;margin-top:12px}.s210-next-actions button{flex:1}.s2092-banner-grid{grid-template-columns:1fr}.s2092-banner-preview{height:175px!important;min-height:175px!important;max-height:175px!important}.s210-mobile-brand{display:inline-flex}.s2092-project-heading{gap:7px}.s18-chat-title h1{max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
