/* ==========================================================================
   mathwithcye — KSSM Additional Mathematics Form 4
   Chapter 1: Functions — 1.1 Functions (Fungsi)
   Responsive Design System, Touchscreen Ready, Print Certificate Stylesheet
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0ea5e9;
  --secondary-light: #f0f9ff;
  --accent: #8b5cf6;
  --accent-light: #f5f3ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --dark: #0f172a;
  --card-bg: #ffffff;
  --bg-page: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-math: "KaTeX_Math", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Container */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 80px 20px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 26px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lesson-meta-badge {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.chapter-badge {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.subtopic-badge {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.tb-ref-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.user-session-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.student-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-light);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.avatar-icon { font-size: 16px; }

.student-name-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
  line-height: 1.2;
}

.student-class-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.btn-text-edit {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
}
.btn-text-edit:hover { background: #e2e8f0; }

.session-stats {
  display: flex;
  gap: 8px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.score-pill {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

/* Progress Track */
.progress-bar-wrapper {
  background: var(--card-bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* 6-Stage Navigation */
.stage-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .stage-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .stage-nav { grid-template-columns: repeat(2, 1fr); }
}

.stage-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  text-align: left;
}

.stage-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.stage-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.stage-btn.completed {
  border-color: #10b981;
}

.stage-btn.completed::after {
  content: " ✓";
  color: #10b981;
  font-weight: 800;
}
.stage-btn.active.completed::after { color: #ffffff; }

.stage-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.stage-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Stage Sections */
.lesson-stage {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.lesson-stage.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.stage-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.stage-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stage-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.stage-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Common UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.btn-secondary:hover { background: #e2e8f0; }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 24px;
  font-size: 1rem;
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin: 16px 0;
}

.dilemma-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dilemma-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
}

.dilemma-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.standards-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 18px;
}

.standards-box h4 {
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.standards-list {
  padding-left: 18px;
  font-size: 0.85rem;
  color: #334155;
}
.standards-list li { margin-bottom: 6px; }

/* Discovery Lab Styles */
.lab-navigation {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.lab-tab-btn {
  flex: 1;
  min-width: 140px;
  min-height: 42px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lab-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lab-view { display: none; }
.lab-view.active { display: block; }

.interactive-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

@media (max-width: 900px) {
  .interactive-panel { grid-template-columns: 1fr; }
}

.canvas-zone {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 380px;
  position: relative;
}

.controls-zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.control-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 6px;
}

.slider-val-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary);
}

/* Arrow Diagram Visualizer */
.arrow-mapping-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 500 / 280;
}

/* Vertical Line Test Simulator */
.vlt-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 480 / 320;
}

.vlt-verdict {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
}
.vlt-verdict.pass {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.vlt-verdict.fail {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Modulus V-Graph Explorer */
.modulus-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 500 / 320;
}

/* Worked Examples Accordion & Tabs */
.example-nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ex-tab-btn {
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ex-tab-btn:hover { background: #f1f5f9; }
.ex-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.example-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.example-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.example-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.step-card.locked {
  opacity: 0.45;
  pointer-events: none;
}

.step-number {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.step-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.step-action-row input[type="text"] {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  width: 160px;
}

.step-feedback {
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Practice & Challenge Question Cards */
.practice-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.practice-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.q-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.q-badge.foundation { background: #dbeafe; color: #1e40af; }
.q-badge.intermediate { background: #fef3c7; color: #92400e; }
.q-badge.advanced { background: #fee2e2; color: #991b1b; }

.q-content {
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.55;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.q-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.q-option-label:hover { background: #f1f5f9; }
.q-option-label input[type="radio"] { accent-color: var(--primary); }

.q-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.q-input-row label { font-size: 0.88rem; font-weight: 700; }
.q-input-row input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  min-width: 200px;
}

.hint-box {
  background: #fefce8;
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #78350f;
  margin-top: 8px;
}

.q-feedback-zone {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.86rem;
}
.q-feedback-zone.correct {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.q-feedback-zone.incorrect {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Official Student Learning Certificate */
.report-container {
  background: #ffffff;
  border: 4px double #1e3a8a;
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.report-header {
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.report-logo-line {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin: 6px 0;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 10px;
}

.report-meta-item span:first-child {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.report-meta-item span:last-child {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
}

.report-badge-seal {
  text-align: center;
  padding: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  margin: 20px 0;
}
.report-badge-seal .badge-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1d4ed8;
}

.report-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Stage Navigation Footer Buttons */
.stage-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.hidden { display: none !important; }

/* ==========================================================================
   CLASSROOM TEACHING TOOLBAR (PRESENTER OVERLAY & MODALS)
   ========================================================================== */
.teaching-toolbar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9995;
  background-color: #1e1b4b;
  color: #ffffff;
  border: 1px solid #4338ca;
  border-radius: 16px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  user-select: none;
  transition: transform 0.25s ease;
}

.teaching-toolbar.minimized {
  display: none !important;
}

.toolbar-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.toolbar-drag-dots { color: #818cf8; font-size: 0.9rem; }
.toolbar-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #c7d2fe; }

.btn-toolbar-minimize {
  background: transparent;
  border: none;
  color: #c7d2fe;
  cursor: pointer;
  font-size: 0.75rem;
}

.toolbar-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.15s ease;
  padding: 0.2rem;
}

.tool-btn:hover {
  background-color: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
}

.tool-btn.active {
  background-color: #4f46e5;
  border-color: #a5b4fc;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.tool-icon { font-size: 1.25rem; line-height: 1; }
.tool-name { font-size: 0.65rem; font-weight: 600; margin-top: 0.2rem; color: #e0e7ff; }

.toolbar-expand-pill {
  position: fixed;
  bottom: 20px;
  right: 24px;
  background: #1e1b4b;
  color: #ffffff;
  border: 1px solid #4338ca;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10001;
}

.teaching-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9980;
  pointer-events: none;
}
.teaching-layer canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.teaching-layer.mode-pen { pointer-events: auto; cursor: crosshair; }
.teaching-layer.mode-eraser { pointer-events: auto; cursor: cell; }
.teaching-layer.mode-laser { pointer-events: auto; cursor: crosshair; }

.tool-toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10005;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ==========================================================================
   PRINT STYLESHEET (CLEAN 1-PAGE CERTIFICATE EXPORT)
   ========================================================================== */

/* ============================================== */
/* MATHEMATICAL TYPOGRAPHY & PROPORTIONAL SCALING */
/* ============================================== */
.katex {
  font-size: 1.06em !important;
  text-rendering: geometricPrecision;
}

.katex-display {
  margin: 0.6em 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.katex-html {
  white-space: normal;
}

/* Fallback pure-CSS math typography (Zero Raw LaTeX Guarantee) */
.math-fallback {
  font-family: var(--font-math), 'Times New Roman', 'Cambria Math', serif;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: baseline;
}

.math-var, em.math-var {
  font-family: var(--font-math), 'Times New Roman', 'Cambria Math', serif;
  font-style: italic;
  font-weight: 600;
  padding: 0 1px;
}

.math-sym {
  font-family: var(--font-math), system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  padding: 0 2px;
}

.math-frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  padding: 0 4px;
  font-style: normal;
}

.math-num {
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  font-size: 0.88em;
}

.math-den {
  padding-top: 2px;
  font-size: 0.88em;
}

.math-radicand {
  border-top: 1.5px solid currentColor;
  padding-top: 1px;
  margin-left: 1px;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header, .stage-nav, .progress-bar-wrapper, .stage-footer, .no-print, .lab-navigation, .app-footer, .teaching-toolbar, .toolbar-expand-pill, #teachingLayer, .btn {
    display: none !important;
  }
  .app-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .stage-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .lesson-stage {
    display: none !important;
  }
  #stageF {
    display: block !important;
  }
  .report-container {
    display: block !important;
    border: 3px double #000 !important;
    padding: 30px !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
}
