/* ============================================================
   GED RLA PLATFORM — MASTERCLASS LIGHT EDITORIAL DESIGN
   Warm cream background, deep black, serif typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #ede8df;
  --bg-secondary: #e6e0d6;
  --bg-card: #f2ede5;
  --bg-card-hover: #ede7dd;
  --bg-elevated: #ddd7cc;
  --bg-dark: #1a1a18;
  --bg-dark-card: #242420;

  --text-primary: #1a1a18;
  --text-secondary: #4a4840;
  --text-tertiary: #8a8478;
  --text-inverse: #f2ede5;

  --accent-black: #1a1a18;
  --accent-gold: #c8a951;
  --accent-gold-hover: #b8992e;
  --accent-lime: #d4e04a;
  --accent-green: #2d6a2d;
  --accent-green-light: #3d8a3d;
  --accent-red: #b84040;
  --accent-red-light: #c85050;
  --accent-orange: #c06030;
  --accent-blue: #4a90d9;

  --border-primary: rgba(26,26,24,0.1);
  --border-strong: rgba(26,26,24,0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 980px;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --shadow-sm: 0 1px 4px rgba(26,26,24,0.08);
  --shadow-md: 0 4px 20px rgba(26,26,24,0.12);
  --shadow-lg: 0 8px 40px rgba(26,26,24,0.16);
  --shadow-card: 0 2px 12px rgba(26,26,24,0.08);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h4 { font-size: 1.0625rem; }
p { line-height: 1.75; color: var(--text-secondary); }
a { color: var(--text-primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }
strong { font-weight: 600; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: var(--bg-dark);
  display: flex; align-items: center; padding: 0 40px;
  border-bottom: none;
}
.navbar-inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
  color: #f2ede5;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.01em;
}
.brand-icon {
  width: 28px; height: 28px;
  background: var(--accent-lime);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 10px; font-weight: 800;
  color: #1a1a18; letter-spacing: -0.5px;
}
.navbar-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-links a {
  color: rgba(242,237,229,0.6);
  font-size: 0.875rem; font-weight: 400;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color: #f2ede5; opacity: 1;
  background: rgba(255,255,255,0.08);
}
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.navbar-user { font-size: 0.875rem; color: rgba(242,237,229,0.5); }

/* ── LAYOUT ── */
.page-wrapper { padding-top: 56px; min-height: 100vh; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 40px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border-primary); margin: 28px 0; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent-black);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: #2e2e2a;
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-primary);
  color: var(--text-primary);
  opacity: 1;
}
.btn-gold {
  background: var(--accent-gold);
  color: #1a1a18;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--accent-gold-hover);
  color: #1a1a18;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}
.btn-danger { background: var(--accent-red); color: white; }
.btn-danger:hover { background: var(--accent-red-light); color: white; opacity: 1; transform: translateY(-1px); }
.btn-success { background: var(--accent-green); color: white; }
.btn-success:hover { background: var(--accent-green-light); color: white; opacity: 1; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.8125rem; }
.w-full { width: 100%; display: flex; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-gold { background: rgba(200,169,81,0.15); color: #8a6a10; border: 1px solid rgba(200,169,81,0.3); }
.badge-green { background: rgba(45,106,45,0.12); color: var(--accent-green); border: 1px solid rgba(45,106,45,0.25); }
.badge-orange { background: rgba(192,96,48,0.12); color: var(--accent-orange); border: 1px solid rgba(192,96,48,0.25); }
.badge-red { background: rgba(184,64,64,0.12); color: var(--accent-red); border: 1px solid rgba(184,64,64,0.25); }
.badge-gray { background: rgba(138,132,120,0.15); color: var(--text-tertiary); border: 1px solid var(--border-primary); }
.badge-blue { background: rgba(26,26,24,0.08); color: var(--text-secondary); border: 1px solid var(--border-primary); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.01em;
}
input, select, textarea {
  width: 100%;
  background: #f8f4ee;
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 1rem; font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-black);
  box-shadow: 0 0 0 3px rgba(26,26,24,0.08);
}
input::placeholder { color: var(--text-tertiary); }
.errorlist { list-style: none; margin-top: 6px; }
.errorlist li { font-size: 0.8125rem; color: var(--accent-red); }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-black); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-label {
  font-size: 0.7rem; color: var(--text-tertiary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-display); font-size: 2.4rem;
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--text-primary);
}
.stat-value.score-high { color: var(--accent-green); }
.stat-value.score-mid { color: var(--accent-orange); }
.stat-value.score-low { color: var(--accent-red); }
.stat-sub { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: 6px; }

/* ── TEST CARDS ── */
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none; display: block;
  box-shadow: var(--shadow-card);
}
.test-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-black); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.test-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  opacity: 1;
}
.test-card:hover::after { transform: scaleX(1); }
.test-card.completed::after { background: var(--accent-green); transform: scaleX(1); }
.test-card.in-progress::after { background: var(--accent-orange); transform: scaleX(1); }
.test-num {
  font-size: 0.7rem; font-weight: 700; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.test-title {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 5px; line-height: 1.3;
}
.test-difficulty { font-size: 0.8125rem; color: var(--text-tertiary); margin-bottom: 18px; }
.test-footer { display: flex; align-items: center; justify-content: space-between; }
.test-score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }

/* ── PROGRESS ── */
.progress-bar { width: 100%; height: 3px; background: var(--bg-elevated); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: var(--accent-black); transition: width 0.6s ease; }
.progress-fill.green { background: var(--accent-green); }
.progress-fill.orange { background: var(--accent-orange); }
.progress-fill.red { background: var(--accent-red); }

/* ── SKILL BARS ── */
.skill-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.skill-name { font-size: 0.875rem; color: var(--text-secondary); min-width: 200px; flex-shrink: 0; }
.skill-bar-wrap { flex: 1; height: 4px; background: var(--bg-elevated); border-radius: 2px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 2px; transition: width 0.9s cubic-bezier(0.4,0,0.2,1); }
.skill-score { font-size: 0.875rem; font-weight: 600; min-width: 42px; text-align: right; }

/* ── AUTH ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); padding: 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 40px; }
.logo-mark {
  width: 62px; height: 62px;
  background: var(--accent-black);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 16px; font-weight: 800;
  color: var(--text-inverse);
  margin: 0 auto 18px;
  letter-spacing: -1px;
}
.auth-logo h1 { font-size: 1.75rem; color: var(--text-primary); margin-bottom: 6px; }
.auth-logo p { font-size: 0.9375rem; color: var(--text-tertiary); }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 0.9375rem; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: rgba(45,106,45,0.08); border-color: rgba(45,106,45,0.2); color: var(--accent-green); }
.alert-danger { background: rgba(184,64,64,0.08); border-color: rgba(184,64,64,0.2); color: var(--accent-red); }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 28px; }
.section-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
}
.section-subtitle { font-size: 0.9375rem; color: var(--text-tertiary); }

/* ── DASHBOARD HERO ── */
.dashboard-hero { padding: 60px 0 44px; }
.hero-greeting {
  font-size: 0.75rem; font-weight: 700; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600; color: var(--text-primary); margin-bottom: 12px; line-height: 1.1;
}
.hero-sub { font-size: 1.0625rem; color: var(--text-tertiary); max-width: 560px; }

/* ── REC CARDS ── */
.rec-card {
  background: var(--bg-card); border: 1px solid var(--border-primary);
  border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px;
  transition: all var(--transition); box-shadow: var(--shadow-card);
}
.rec-card:hover { background: var(--bg-card-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.rec-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.rec-content h4 { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.rec-content p { font-size: 0.875rem; color: var(--text-tertiary); line-height: 1.55; }

/* ── GED SCALE ITEMS ── */
.ged-scale-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 8px;
  border: 1px solid transparent; transition: all var(--transition);
}
.ged-scale-item:hover { transform: translateX(4px); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-fade-in-delay-1 { animation: fadeInUp 0.5s 0.1s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-in-delay-2 { animation: fadeInUp 0.5s 0.2s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-in-delay-3 { animation: fadeInUp 0.5s 0.3s cubic-bezier(0.4,0,0.2,1) both; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-primary); border-top-color: var(--text-primary);
  border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block;
}

/* ── UTILITIES ── */
.text-center { text-align: center; } .text-right { text-align: right; }
.flex { display: flex; } .flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── SCORE TREND BAR ── */
.trend-bar-wrap { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.trend-bar {
  flex: 1; background: var(--accent-black); border-radius: 3px 3px 0 0;
  opacity: 0.7; min-height: 6px; transition: opacity var(--transition);
  cursor: default;
}
.trend-bar:hover { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .dashboard-two-col { flex-direction: column !important; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .container, .container-narrow { padding: 0 20px; }
  .navbar-links { display: none; }
  .dashboard-hero { padding: 32px 0 24px; }
  .hero-title { font-size: 2rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr; }
  .skill-name { min-width: 120px; font-size: 0.8125rem; }
  .auth-card { padding: 32px 24px; }
  .section-title { font-size: 1.3rem; }
  .card { padding: 20px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .stat-value { font-size: 1.9rem; }
  .navbar-user { display: none; }
  .btn-lg { padding: 13px 26px; font-size: 0.9375rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 1024px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  .exam-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .exam-info-grid > div {
    padding: 12px 8px !important;
  }
  .exam-info-grid > div > div:first-child {
    font-size: 1.2rem !important;
  }
  .exam-info-grid > div > div:nth-child(2) {
    font-size: 1rem !important;
  }
}
@media (max-width: 480px) {
  .exam-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .exam-info-grid > div {
    padding: 12px 8px !important;
  }
  .exam-info-grid > div > div:first-child {
    font-size: 1.2rem !important;
  }
  .exam-info-grid > div > div:nth-child(2) {
    font-size: 0.7rem !important;
    word-break: keep-all !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   VISUAL RENDERING ENGINE — inline charts, tables, graphs (v3)
   ═══════════════════════════════════════════════════════════════ */

.visual-container {
  margin: 20px 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-item {
  background: #fff;
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.visual-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.visual-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Pie chart legend */
.visual-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  width: 100%;
}

.visual-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.visual-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.visual-legend-label {
  font-weight: 500;
}

.visual-legend-pct {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* Table */
.visual-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.visual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.visual-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-primary);
  white-space: nowrap;
}

.visual-table td {
  padding: 9px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.visual-table tbody tr:last-child td {
  border-bottom: none;
}

.visual-table tbody tr:hover td {
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════
   MATH EXPRESSION STYLING
   ═══════════════════════════════════════════════════════════════ */

.math-block {
  display: block;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  background: rgba(200, 169, 81, 0.07);
  border-left: 3px solid var(--accent-gold);
  padding: 10px 20px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.math-block .math-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 3px;
  font-size: 0.85em;
}

.math-block .math-frac .math-num {
  border-bottom: 1.5px solid var(--text-primary);
  padding: 0 4px 1px;
  line-height: 1.3;
}

.math-block .math-frac .math-den {
  padding: 1px 4px 0;
  line-height: 1.3;
}

.math-inline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.0em;
  letter-spacing: 0.01em;
}