/* Shared learning surfaces. Keep the navy/lime brand; use calm, consistent study controls. */
.demo-section { max-width: 1040px; padding-top: 64px; padding-bottom: 64px; }
.demo-section .section-heading { max-width: 760px; margin: 0 auto; }
.demo-section .section-heading h2 { font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -.02em; }
.demo-panel { width: 100%; max-width: 820px; margin: 28px auto 0; padding: clamp(18px, 3vw, 32px); border-radius: 16px; box-shadow: 0 8px 28px rgba(16,44,78,.05); }
.demo-controls { grid-template-columns: minmax(0,.65fr) minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.demo-controls label { font-size: 14px; font-weight: 650; }
.demo-controls select, .demo-controls .admit-button { min-height: 48px; border-radius: 10px; }
.demo-panel .admit-button { background: var(--navy); color: white; border-radius: 10px; min-height: 48px; }
.demo-notice { margin: 20px 0 10px; padding: 10px 14px; font-size: 13px; line-height: 1.55; border-width: 0 0 0 3px; border-radius: 6px; }
.demo-question-meta { padding-top: 20px; margin-top: 20px; align-items: start; }
.demo-question-meta strong { max-width: 44ch; font-size: 15px; font-weight: 650; }
.demo-question-meta span { font-size: 14px; }
.demo-panel progress { height: 6px; margin: 16px 0 28px; accent-color: #007a70; }
.demo-question legend { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.6; font-weight: 650; }
.demo-options { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
.demo-option { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 12px 16px; border-radius: 10px; font-size: 16px; line-height: 1.6; }
.demo-choice-letter { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 8px; background: #eaf0f5; color: #526075; font-size: 13px; font-weight: 700; }
.demo-choice-value { min-width: 0; }
.demo-options.has-diagrams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.has-diagrams .demo-option { align-items: flex-start; gap: 10px; padding: 14px; }
.has-diagrams .demo-choice-value { display: grid; justify-items: stretch; flex: 1; gap: 10px; }
.demo-option-diagram { display: block; width: 100%; height: 150px; border-radius: 8px; background: #fff; color: #102c4e; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-option-diagram text { fill: currentColor; stroke: none; font: 13px system-ui, sans-serif; }
.demo-option-diagram .diagram-atom { font-size: 15px; }
.demo-option-diagram .diagram-axis { stroke: #74859b; stroke-width: 1.2; }
.demo-option-diagram .diagram-axis text { fill: #526075; }
.demo-option-diagram .diagram-curve { stroke: #006f7a; stroke-width: 2.8; }
.demo-option-diagram .diagram-glass { fill: #e0f3fb; stroke: #176389; }
.demo-option-diagram .diagram-shade { fill: #9dd7d1; stroke: none; }
.demo-diagram-caption { display: block; font-size: 13px; line-height: 1.45; }
.has-diagrams .demo-option:focus-visible { outline: 3px solid #174b72; outline-offset: 3px; }
@media (max-width: 520px) {
  .demo-options.has-diagrams { grid-template-columns: minmax(0, 1fr); }
  .demo-option-diagram { height: 145px; }
}
.demo-option.correct .demo-choice-letter { background: #c7e6d3; color: #185031; }
.demo-option.incorrect .demo-choice-letter { background: #f7d6cf; color: #82291e; }
.demo-feedback:not(:empty) { min-height: 0; margin: 20px 0; padding: 14px 16px; background: #eef3f8; border-left: 3px solid #526075; border-radius: 8px; font-size: 15px; }
.demo-feedback[data-correct="true"] { background: #edf7f0; border-color: #177245; }
.demo-feedback[data-correct="false"] { background: #fff5ef; border-color: #b45332; }
.demo-result h3 { font-family: inherit; font-size: 26px; line-height: 1.3; }
.coverage-grid .coverage-subject { display: grid; justify-items: start; align-content: start; gap: 8px; min-height: 190px; padding: 22px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.coverage-grid .coverage-subject:hover, .coverage-grid .coverage-subject[aria-pressed="true"] { border-color: var(--navy-2); box-shadow: 0 0 0 2px rgba(23,75,114,.1); }
.coverage-subject .subject-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; }
.coverage-subject[data-subject="Physics"] .subject-symbol { background: #ffe08a; }
.coverage-subject[data-subject="Chemistry"] .subject-symbol { background: #a9d8f1; }
.coverage-subject[data-subject="Biology"] .subject-symbol { background: #bfe6d3; }
.coverage-subject .subject-symbol svg { width: 23px; height: 23px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coverage-subject .subject-action { display: flex; gap: 12px; align-items: center; min-height: 32px; margin-top: 8px; color: var(--navy-2); font-size: 14px; font-weight: 750; }
.coverage-grid .coverage-planned { min-height: 190px; border-style: dashed; border-radius: 14px; background: #f4f6f7; gap: 10px; }
.planned-label { font-size: 12px; color: #526075; font-weight: 650; }
.coverage-grid .coverage-planned > .planned-label { display: block; width: auto; height: auto; margin: 0; background: none; border-radius: 0; }
.subject-card[aria-pressed="true"] { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.science-script { position: relative; font-size: .75em; line-height: 0; vertical-align: baseline; }
sup.science-script { top: -.5em; }
sub.science-script { bottom: -.25em; }
@media (max-width: 700px) {
  .demo-controls { grid-template-columns: 1fr 1fr; }
  .demo-controls .admit-button { grid-column: 1 / -1; width: 100%; }
  .demo-panel { padding: 18px 16px; }
  .demo-question-meta { display: grid; gap: 6px; }
}
.app-shell .hero { border-radius: 12px; box-shadow: none; }
.app-shell .hero h1 { font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.02em; }
.app-shell .mission-card { transform: none; border-radius: 12px; }
.app-shell .section-heading h2 { font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }
.app-shell .subject-card, .app-shell .worksheet-card, .app-shell .practice-progress { border-radius: 12px; }
.app-shell .eyebrow { letter-spacing: .03em; text-transform: none; }
.learning-workspace, .demo-game-hub, .learning-review {
  --learning-text: #172033;
  --learning-muted: #526075;
  --learning-border: #cbd3e1;
  --learning-accent: #007a70;
  color: var(--learning-text);
  font-family: Inter, "Noto Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.learning-open main > section:not(.learning-workspace) { display: none; }
.learning-open .mobile-nav { display: none; }
.learning-workspace { width: 100%; max-width: 760px; margin: 0 auto; scroll-margin-top: 90px; }
.learning-workspace .worksheet-view { max-width: none; padding: clamp(16px, 3vw, 32px); background: white; border: 1px solid var(--learning-border); border-radius: 12px; }
.learning-workspace h2 { margin: 16px 0 8px; font-family: inherit; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; }
.workspace-toolbar, .worksheet-navigation { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.workspace-toolbar { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--learning-border); color: var(--learning-muted); font-size: 14px; }
.workspace-toolbar button { min-height: 44px; }
.worksheet-navigation { padding: 16px 0; border-top: 1px solid var(--learning-border); }
.worksheet-navigation span { font-size: 14px; color: var(--learning-muted); }
.learning-workspace .question-list { max-height: none; overflow: visible; margin: 24px 0; padding: 0; list-style: none; }
.learning-workspace .question-list li { margin: 0; padding: 0; }
.learning-workspace .q-text { font-size: 18px; line-height: 1.55; font-weight: 650; margin-bottom: 20px; }
.learning-workspace .concept-rescue, .learning-workspace .follow-up-test, .learning-review { padding: clamp(16px, 3vw, 24px); border: 1px solid var(--learning-border); border-radius: 12px; background: #f7f9fc; box-shadow: none; }
.learning-workspace .rescue-challenge legend, .learning-workspace .follow-up-heading h3, .learning-workspace .rescue-heading h3,
.demo-game-title, .demo-game-card h5, .demo-game-question legend, .learning-review h3, .demo-game-hub > h3 { font-family: inherit; font-size: clamp(20px, 3vw, 24px); line-height: 1.4; letter-spacing: normal; }
.learning-workspace .eyebrow, .demo-game-eyebrow, .demo-game-kicker, .learning-kicker { font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.learning-workspace .rescue-badge { transform: none; border-radius: 10px; }
.learning-workspace .rescue-track span { background: var(--learning-accent); }
.learning-workspace .primary-button, .learning-button { background: var(--navy, #102c4e); color: white; box-shadow: none; }
.learning-workspace .secondary-button { border: 1px solid var(--learning-border); }
.learning-workspace button, .demo-game-hub button { white-space: normal; overflow-wrap: anywhere; }
.learning-workspace button:focus-visible, .demo-game-hub button:focus-visible { outline: 3px solid #6d4aff; outline-offset: 3px; }
.demo-game-hub { margin: 24px 0; padding: clamp(16px, 3vw, 24px); background: #f7f9fc; border: 1px solid var(--learning-border); border-radius: 12px; }
.demo-game-header { margin: 0 0 20px; border-radius: 10px; padding: 20px; }
.demo-game-card { margin-top: 16px; border-color: var(--learning-border); border-radius: 12px; }
.demo-game-cards > .demo-game-card { margin-top: 0; }
.demo-game-card h5 { margin-top: 8px; font-size: 20px; }
.demo-game-route span { background: #e8f2f0; }
.demo-game-celebration { border-radius: 12px; font-size: 20px; padding: 20px; }
.demo-game-question legend { font-size: 20px; }
.demo-game-hub progress { display: block; width: 100%; height: 10px; accent-color: var(--learning-accent); }
.learning-kicker { margin: 0 0 8px; color: var(--learning-accent); }
.learning-note { margin: 12px 0; color: var(--learning-muted, #526075); font-size: 14px; overflow-wrap: anywhere; }
.learning-source-question { margin: 24px 0 12px; font-size: 18px; font-weight: 650; }
.learning-feedback { padding: 16px; margin: 16px 0; border-left: 3px solid #007a70; background: #e8f3f0; border-radius: 8px; overflow-wrap: anywhere; }
.learning-question { min-inline-size: 0; padding: 0; margin: 24px 0; border: 0; }
.learning-question legend { padding: 0; margin-bottom: 16px; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.learning-question .rescue-options { display: grid; gap: 12px; }
.learning-question .rescue-option { min-height: 48px; padding: 12px 16px; background: white; color: #172033; border: 1px solid #a6b4c7; border-radius: 10px; text-align: left; cursor: pointer; font: inherit; }
.learning-question .is-correct { border-color: #177245; background: #e6f3eb; }
.learning-question .is-wrong { border-color: #b42318; background: #fcecea; }
.learning-button { min-height: 48px; padding: 12px 16px; margin: 8px 12px 8px 0; border: 0; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.learning-more-reviews { margin-top: 16px; border: 1px solid var(--learning-border); border-radius: 10px; padding: 12px 16px; background: white; }
.learning-more-reviews summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 650; }
.learning-more-reviews summary:focus-visible { outline: 3px solid #6d4aff; outline-offset: 3px; }
@media (max-width: 540px) {
  .learning-open main { padding: 16px 12px 32px; }
  .worksheet-navigation { display: grid; grid-template-columns: 1fr 1fr; }
  .worksheet-navigation span { grid-row: 1; grid-column: 1 / -1; text-align: center; }
  .worksheet-navigation button { min-height: 48px; padding: 10px; }
  .learning-button { display: block; width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .learning-workspace *, .demo-game-hub * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
