/* ==========================================================================
   TOOLBAYAN — CSE LEARNING HUB STYLESHEET
   Supports Default, Dark (.reviewer-theme-dark), and Night (.reviewer-theme-night)
   ========================================================================== */

/* ── 1. Base & Layout Refinements ── */
#learning-hub-shell .content-area {
    max-width: 1180px;
}

.lh-controls-bar {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    padding: 0.9rem 1.25rem;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.05));
}

.lh-screen-mode-select {
    width: auto;
    min-width: 142px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.38rem 2rem 0.38rem 0.9rem;
}

/* ── 2. Hero & Teaching Approach Strip ── */
.lh-hero-card {
    background: linear-gradient(135deg, #0c1e4a 0%, #0038a8 100%);
    color: #ffffff;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(10, 22, 40, 0.08));
}

.lh-hero-card .lh-hero-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.lh-hero-card .lh-hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.96rem;
    line-height: 1.65;
    max-width: 740px;
    margin-bottom: 1.25rem;
}

.lh-approach-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.lh-approach-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lh-approach-pill .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gov-yellow, #fcd116);
    color: #0a1628;
    font-size: 0.72rem;
    font-weight: 800;
}

/* ── 3. Track Filter Tabs (Professional / Subprofessional) ── */
.lh-track-selector {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.05));
}

.lh-track-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.lh-track-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gov-border, #dde2ec);
    background-color: #f8fafc;
    color: var(--gov-text, #1e2d4e);
    text-decoration: none;
    transition: all 0.15s ease;
}

.lh-track-btn:hover {
    border-color: var(--gov-blue, #0038a8);
    color: var(--gov-blue, #0038a8);
    background-color: #eff6ff;
}

.lh-track-btn.active {
    background-color: var(--gov-blue, #0038a8);
    border-color: var(--gov-blue, #0038a8);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 56, 168, 0.22);
}

/* ── 4. Applicability Badges ── */
.lh-applicability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.lh-badge-both {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.lh-badge-professional {
    background-color: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.lh-badge-subprofessional {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ── 5. Category Cards ── */
.lh-category-card {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-lg, 16px);
    padding: 1.6rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.05));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lh-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(10, 22, 40, 0.09));
    border-color: #cbd5e1;
}

.lh-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.lh-cat-icon.icon-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.lh-cat-icon.icon-teal {
    background-color: #f0fdfa;
    color: #0d9488;
}

.lh-cat-icon.icon-purple {
    background-color: #f5f3ff;
    color: #7c3aed;
}

.lh-cat-icon.icon-amber {
    background-color: #fffbeb;
    color: #d97706;
}

.lh-cat-icon.icon-green {
    background-color: #ecfdf5;
    color: #059669;
}

.lh-cat-icon-blue,
.lh-cat-icon.lh-cat-icon-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.lh-cat-icon-slate,
.lh-cat-icon.lh-cat-icon-slate {
    background-color: #f1f5f9;
    color: #64748b;
}

.lh-focus-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.35rem;
}

.lh-focus-list li {
    position: relative;
    padding-left: 1.45rem;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
}

.lh-focus-list li i {
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--gov-blue, #0038a8);
    font-size: 0.85rem;
}

.lh-category-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.15rem;
    margin-top: auto;
}

/* ── 6. Category Page: Topic / Lesson Cards ── */
.lh-lesson-card {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    padding: 1.35rem 1.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.04));
}

.lh-lesson-card:hover {
    border-color: #94a3b8;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(10, 22, 40, 0.08));
}

.lh-lesson-step-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #eff6ff;
    color: var(--gov-blue, #0038a8);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
}

/* ── 7. Lesson Wrapper & Reserved Content Area ── */
.lh-lesson-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.05));
}

.lh-reserved-stage {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md, 12px);
    padding: 2rem 1.5rem;
}

.lh-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.lh-nav-card {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    padding: 1.15rem 1.35rem;
    text-decoration: none;
    display: block;
    height: 100%;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lh-nav-card:hover {
    border-color: var(--gov-blue, #0038a8);
    background-color: #f8fafc;
}

/* ── 8. Reviewer Practice CTA Box ── */
.lh-practice-cta-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg, 16px);
    padding: 1.6rem 1.85rem;
}

/* ── 9. Sidebar Topic Outline List (Lesson Page) ── */
.lh-topic-outline-card {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
}

.lh-topic-outline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: var(--gov-text, #1e2d4e);
    font-size: 0.84rem;
    line-height: 1.45;
    transition: background-color 0.15s ease;
}

.lh-topic-outline-item:last-child {
    border-bottom: none;
}

.lh-topic-outline-item:hover {
    background-color: #f8fafc;
}

.lh-topic-outline-item.active {
    background-color: #eff6ff;
    color: var(--gov-blue, #0038a8);
    font-weight: 700;
}

/* ==========================================================================
   10. REUSABLE LESSON PRESENTATION COMPONENTS (PHASE 2)
   ========================================================================== */

/* 10.1 Eyebrow & Section Headings */
.lh-comp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gov-blue, #0038a8);
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
}

/* 10.2 Lesson Intro / Learning Objective (<x-learning.lesson-intro>) */
.lh-comp-intro {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem 1.65rem;
}

.lh-comp-intro-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gov-blue-dark, #0f172a);
}

.lh-comp-intro-lead,
.lh-comp-intro-body {
    font-size: 0.94rem;
    line-height: 1.65;
    color: #334155;
}

.lh-comp-objectives-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.lh-comp-objectives-list {
    list-style: none;
    padding-left: 0;
}

.lh-comp-objectives-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.87rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 0.45rem;
}

.lh-comp-objectives-list li:last-child {
    margin-bottom: 0;
}

.lh-comp-objectives-list li i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.lh-comp-exam-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #1e40af;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* 10.3 Concept Section (<x-learning.concept-section>) */
.lh-comp-section {
    padding-top: 0.35rem;
    margin-bottom: 2rem;
}

.lh-comp-section-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.85rem;
}

.lh-comp-step-num,
.lh-comp-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-color: #eff6ff;
    color: var(--gov-blue, #0038a8);
    border: 1px solid #dbeafe;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lh-comp-section-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gov-blue, #0038a8);
    margin-bottom: 0.15rem;
}

.lh-comp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gov-blue-dark, #0f172a);
}

.lh-comp-section-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
}

.lh-comp-section-body {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--gov-text, #1e2d4e);
}

.lh-comp-section-body > p,
.lh-comp-section-body > ul,
.lh-comp-section-body > ol {
    margin-bottom: 1rem;
}

/* 10.4 Important Definition or Rule Box (<x-learning.rule-box>) */
.lh-comp-rule-box {
    border-radius: var(--radius-md, 12px);
    padding: 1.35rem 1.5rem;
    border: 1px solid #dbeafe;
    border-left-width: 4px;
    background-color: #f8fafc;
}

.lh-comp-rule-box.lh-rule-blue {
    border-left-color: var(--gov-blue, #0038a8);
    background-color: #f8fafc;
}

.lh-comp-rule-box.lh-rule-purple {
    border-color: #e9d5ff;
    border-left-color: #7c3aed;
    background-color: #faf5ff;
}

.lh-comp-rule-box.lh-rule-teal {
    border-color: #ccfbf1;
    border-left-color: #0d9488;
    background-color: #f0fdfa;
}

.lh-comp-rule-box.lh-rule-green {
    border-color: #d1fae5;
    border-left-color: #059669;
    background-color: #ecfdf5;
}

.lh-comp-rule-box.lh-rule-amber {
    border-color: #fde68a;
    border-left-color: #d97706;
    background-color: #fffbeb;
}

.lh-comp-rule-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--gov-blue, #0038a8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.lh-comp-rule-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.2rem;
}

.lh-comp-rule-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.lh-comp-rule-content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #334155;
}

.lh-comp-rule-takeaway {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 0.95rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #1e293b;
}

/* 10.5 Example Question or Scenario (<x-learning.example-box>) */
.lh-comp-example-box {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.04));
}

.lh-comp-example-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.95rem 1.35rem;
}

.lh-comp-example-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gov-blue, #0038a8);
}

.lh-example-scenario .lh-comp-example-badge {
    color: #0d9488;
}

.lh-comp-example-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
}

.lh-comp-example-body {
    padding: 1.35rem;
}

.lh-comp-example-prompt {
    background-color: #f8fafc;
    border-left: 3px solid var(--gov-blue, #0038a8);
    border-radius: 0 8px 8px 0;
    padding: 0.95rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.65;
}

.lh-comp-choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.lh-comp-choice-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.45;
}

.lh-comp-choice-item.lh-choice-correct {
    background-color: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
    font-weight: 600;
}

.lh-comp-choice-letter {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lh-comp-example-answer {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    padding: 0.9rem 1.1rem;
}

/* 10.6 Step-by-Step Solution (<x-learning.step-solution>) */
.lh-comp-steps-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    padding: 1.35rem 1.5rem;
}

.lh-comp-steps-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.lh-comp-steps-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lh-comp-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
}

.lh-comp-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--gov-blue, #0038a8);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.lh-comp-step-body {
    flex-grow: 1;
    min-width: 0;
}

.lh-comp-final-answer {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9px;
    padding: 0.8rem 1.1rem;
}

.lh-comp-final-value {
    color: #065f46;
}

/* 10.7 Formula & Mathematical Expressions (<x-learning.formula-box>) */
.lh-comp-formula-box {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.04));
}

.lh-comp-formula-header {
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid #dbeafe;
    padding: 0.95rem 1.35rem;
}

.lh-comp-formula-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gov-blue, #0038a8);
}

.lh-comp-formula-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.lh-comp-formula-when {
    font-size: 0.76rem;
    font-weight: 600;
    color: #1e40af;
    background-color: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
}

.lh-comp-formula-body {
    padding: 1.35rem;
}

.lh-comp-math-display,
.lh-comp-math-expr {
    background-color: #0f172a;
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lh-comp-math-display code,
.lh-comp-math-expr code {
    color: #f8fafc;
    background: transparent !important;
    padding: 0 !important;
    font-size: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lh-inline-math {
    background-color: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 0.18rem 0.55rem;
    font-size: 0.84rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
}

.lh-comp-variable-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.83rem;
    min-width: 0;
}

.lh-comp-var-symbol {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: var(--gov-blue, #0038a8);
    background-color: #eff6ff;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.lh-comp-var-meaning {
    color: #334155;
    min-width: 0;
    overflow-wrap: break-word;
}

.lh-comp-formula-worked {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.lh-comp-formula-steps {
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.65;
}

/* 10.8 Alternative Solving Methods (<x-learning.method-comparison>) */
.lh-comp-methods-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md, 12px);
    padding: 1.35rem 1.5rem;
}

.lh-comp-methods-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.lh-comp-method-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.lh-comp-method-card.lh-method-recommended {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(0, 56, 168, 0.07);
}

.lh-comp-method-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.lh-comp-method-pill.pill-recommended {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.lh-comp-method-pill.pill-alt {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.lh-comp-method-steps {
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.65;
}

/* 10.9 Quick Tip & Common Mistake Callouts (<x-learning.quick-tip>, <x-learning.common-mistake>) */
.lh-comp-callout {
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem 1.4rem;
    border: 1px solid transparent;
}

.lh-callout-tip {
    background-color: #fffbeb;
    border-color: #fde68a;
}

.lh-callout-mistake {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.lh-comp-callout-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.lh-comp-callout-icon.icon-tip {
    background-color: #fef3c7;
    color: #d97706;
}

.lh-comp-callout-icon.icon-mistake {
    background-color: #fee2e2;
    color: #dc2626;
}

.lh-comp-callout-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
}

.lh-comp-callout-body {
    color: #334155;
    line-height: 1.65;
}

.lh-comp-compare-pill {
    border-radius: 8px;
    padding: 0.75rem 0.95rem;
    height: 100%;
    background-color: #ffffff;
}

.lh-comp-compare-pill.compare-wrong {
    border: 1px solid #fca5a5;
}

.lh-comp-compare-pill.compare-right {
    border: 1px solid #86efac;
}

/* 10.10 Visual Explanation Frame (<x-learning.visual-frame>) */
.lh-comp-visual-frame {
    background-color: #ffffff;
    border: 1px solid var(--gov-border, #dde2ec);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(10, 22, 40, 0.04));
}

.lh-comp-visual-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem;
}

.lh-comp-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gov-blue, #0038a8);
}

.lh-comp-visual-stage {
    padding: 1rem 1.25rem;
    background-color: #ffffff;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table {
    padding: 0;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-responsive {
    margin: 0;
    border: 0;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered {
    border: 0;
    margin-bottom: 0;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > thead > tr:first-child {
    border-top-width: 0;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > tbody > tr:last-child {
    border-bottom-width: 0;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > :not(caption) > * > *:first-child {
    border-left-width: 0;
    padding-left: 1.25rem;
}

.lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > :not(caption) > * > *:last-child {
    border-right-width: 0;
    padding-right: 1.25rem;
}

.lh-comp-visual-media {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.lh-comp-visual-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border: none;
    border-radius: 0;
    display: block;
    margin: 0 auto;
}

.lh-comp-seq-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.85rem 1rem;
}

.lh-comp-seq-step {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--gov-blue, #0038a8);
    color: #ffffff;
    font-size: 0.73rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lh-comp-visual-caption {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.9rem 1.25rem;
}

/* 10.11 Lesson Summary / Short Recap (<x-learning.lesson-summary>) */
.lh-comp-summary-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md, 12px);
    padding: 1.4rem 1.5rem;
}

.lh-comp-summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #dcfce7;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.lh-comp-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
}

.lh-comp-summary-list {
    list-style: none;
    padding-left: 0;
}

.lh-comp-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 0.45rem;
}

.lh-comp-summary-list li:last-child {
    margin-bottom: 0;
}

.lh-comp-summary-list li i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ==========================================================================
   11. SCREEN MODE: DARK THEME (.reviewer-theme-dark)
   Synced with Reviewer `reviewer_screen_mode` / `tb_reviewer_theme_v1`
   ========================================================================== */
#learning-hub-shell.reviewer-theme-dark {
    background-color: #0b1324 !important;
    color: #f1f5f9 !important;
}

#learning-hub-shell.reviewer-theme-dark .main-content {
    background-color: #0b1324 !important;
}

#learning-hub-shell.reviewer-theme-dark .gov-breadcrumb,
#learning-hub-shell.reviewer-theme-dark .page-header {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

#learning-hub-shell.reviewer-theme-dark .page-title,
#learning-hub-shell.reviewer-theme-dark h1,
#learning-hub-shell.reviewer-theme-dark h2,
#learning-hub-shell.reviewer-theme-dark h3,
#learning-hub-shell.reviewer-theme-dark h4,
#learning-hub-shell.reviewer-theme-dark h5,
#learning-hub-shell.reviewer-theme-dark h6,
#learning-hub-shell.reviewer-theme-dark .text-dark,
#learning-hub-shell.reviewer-theme-dark .text-gov-blue-dark,
#learning-hub-shell.reviewer-theme-dark .text-gov-blue,
#learning-hub-shell.reviewer-theme-dark .lh-comp-intro-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-section-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-rule-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-example-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-steps-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-methods-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-callout-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-summary-title {
    color: #f8fafc !important;
}

#learning-hub-shell.reviewer-theme-dark .page-subtitle,
#learning-hub-shell.reviewer-theme-dark .text-muted,
#learning-hub-shell.reviewer-theme-dark .text-secondary,
#learning-hub-shell.reviewer-theme-dark .text-gov-muted,
#learning-hub-shell.reviewer-theme-dark .lh-focus-list li,
#learning-hub-shell.reviewer-theme-dark .lh-comp-intro-lead,
#learning-hub-shell.reviewer-theme-dark .lh-comp-intro-body,
#learning-hub-shell.reviewer-theme-dark .lh-comp-section-subtitle,
#learning-hub-shell.reviewer-theme-dark .lh-comp-section-body,
#learning-hub-shell.reviewer-theme-dark .lh-comp-rule-content,
#learning-hub-shell.reviewer-theme-dark .lh-comp-callout-body,
#learning-hub-shell.reviewer-theme-dark .lh-comp-var-meaning,
#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-steps,
#learning-hub-shell.reviewer-theme-dark .lh-comp-method-steps,
#learning-hub-shell.reviewer-theme-dark .lh-comp-objectives-list li,
#learning-hub-shell.reviewer-theme-dark .lh-comp-summary-list li {
    color: #cbd5e1 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-controls-bar,
#learning-hub-shell.reviewer-theme-dark .lh-track-selector,
#learning-hub-shell.reviewer-theme-dark .lh-category-card,
#learning-hub-shell.reviewer-theme-dark .lh-lesson-card,
#learning-hub-shell.reviewer-theme-dark .lh-lesson-wrapper,
#learning-hub-shell.reviewer-theme-dark .lh-nav-card,
#learning-hub-shell.reviewer-theme-dark .lh-topic-outline-card,
#learning-hub-shell.reviewer-theme-dark .lh-comp-example-box,
#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-box,
#learning-hub-shell.reviewer-theme-dark .lh-comp-visual-frame,
#learning-hub-shell.reviewer-theme-dark .lh-comp-method-card,
#learning-hub-shell.reviewer-theme-dark .bg-white,
#learning-hub-shell.reviewer-theme-dark .bg-light {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-reserved-stage,
#learning-hub-shell.reviewer-theme-dark .lh-stage-pill,
#learning-hub-shell.reviewer-theme-dark .lh-comp-intro,
#learning-hub-shell.reviewer-theme-dark .lh-comp-objectives-box,
#learning-hub-shell.reviewer-theme-dark .lh-comp-rule-box,
#learning-hub-shell.reviewer-theme-dark .lh-comp-rule-takeaway,
#learning-hub-shell.reviewer-theme-dark .lh-comp-example-header,
#learning-hub-shell.reviewer-theme-dark .lh-comp-example-prompt,
#learning-hub-shell.reviewer-theme-dark .lh-comp-choice-item,
#learning-hub-shell.reviewer-theme-dark .lh-comp-steps-box,
#learning-hub-shell.reviewer-theme-dark .lh-comp-step-item,
#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-header,
#learning-hub-shell.reviewer-theme-dark .lh-comp-variable-item,
#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-worked,
#learning-hub-shell.reviewer-theme-dark .lh-comp-methods-box,
#learning-hub-shell.reviewer-theme-dark .lh-comp-visual-header,
#learning-hub-shell.reviewer-theme-dark .lh-comp-visual-caption,
#learning-hub-shell.reviewer-theme-dark .lh-comp-seq-card,
#learning-hub-shell.reviewer-theme-dark .lh-comp-compare-pill {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-choice-item.lh-choice-correct,
#learning-hub-shell.reviewer-theme-dark .lh-comp-example-answer,
#learning-hub-shell.reviewer-theme-dark .lh-comp-final-answer,
#learning-hub-shell.reviewer-theme-dark .lh-comp-summary-box {
    background: rgba(5, 150, 105, 0.14) !important;
    background-color: rgba(5, 150, 105, 0.14) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    color: #ecfdf5 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-callout-tip {
    background-color: rgba(217, 119, 6, 0.14) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-callout-mistake {
    background-color: rgba(220, 38, 38, 0.14) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-exam-note,
#learning-hub-shell.reviewer-theme-dark .lh-comp-eyebrow,
#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-when {
    background-color: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
    color: #93c5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-inline-math,
#learning-hub-shell.reviewer-theme-dark .lh-comp-choice-letter,
#learning-hub-shell.reviewer-theme-dark .lh-comp-var-symbol {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #93c5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-practice-cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #172554 100%) !important;
    border-color: #1d4ed8 !important;
    color: #f8fafc !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-category-footer,
#learning-hub-shell.reviewer-theme-dark .lh-topic-outline-item,
#learning-hub-shell.reviewer-theme-dark .lh-comp-section-header,
#learning-hub-shell.reviewer-theme-dark .border,
#learning-hub-shell.reviewer-theme-dark .border-top,
#learning-hub-shell.reviewer-theme-dark .border-bottom {
    border-color: #334155 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-topic-outline-item {
    color: #e2e8f0 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-topic-outline-item:hover {
    background-color: #0f172a !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-topic-outline-item.active {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-track-btn {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-track-btn:hover {
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-track-btn.active {
    background-color: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-lesson-step-badge,
#learning-hub-shell.reviewer-theme-dark .lh-cat-icon,
#learning-hub-shell.reviewer-theme-dark .lh-comp-step-num,
#learning-hub-shell.reviewer-theme-dark .lh-comp-section-icon,
#learning-hub-shell.reviewer-theme-dark .lh-comp-rule-icon {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #60a5fa !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-badge-both,
#learning-hub-shell.reviewer-theme-dark .lh-comp-method-pill.pill-recommended {
    background-color: rgba(37, 99, 235, 0.2) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    color: #93c5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-method-pill.pill-alt {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-badge-professional {
    background-color: rgba(124, 58, 237, 0.22) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    color: #c4b5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-badge-subprofessional {
    background-color: rgba(217, 119, 6, 0.22) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    color: #fcd34d !important;
}

#learning-hub-shell.reviewer-theme-dark .form-select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

#learning-hub-shell.reviewer-theme-dark .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

#learning-hub-shell.reviewer-theme-dark .btn-outline-secondary:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .btn-outline-primary {
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
    background-color: transparent !important;
}

#learning-hub-shell.reviewer-theme-dark .btn-outline-primary:hover,
#learning-hub-shell.reviewer-theme-dark .btn-outline-primary:focus,
#learning-hub-shell.reviewer-theme-dark .btn-outline-primary:active {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-nav-card:hover {
    background-color: #0f172a !important;
    border-color: #60a5fa !important;
}

#learning-hub-shell.reviewer-theme-dark .bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-dark .bg-primary-subtle {
    background-color: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border-color: rgba(147, 197, 253, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-dark .bg-info-subtle {
    background-color: rgba(14, 165, 233, 0.16) !important;
    color: #7dd3fc !important;
    border-color: rgba(125, 211, 252, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-dark .bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #fcd34d !important;
    border-color: rgba(252, 211, 77, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-dark .bg-secondary-subtle {
    background-color: rgba(148, 163, 184, 0.16) !important;
    color: #cbd5e1 !important;
    border-color: rgba(203, 213, 225, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-dark .bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border-color: rgba(252, 165, 165, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-dark .badge.bg-light,
#learning-hub-shell.reviewer-theme-dark .badge.bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

#learning-hub-shell.reviewer-theme-dark .text-primary,
#learning-hub-shell.reviewer-theme-dark i.text-primary {
    color: #60a5fa !important;
}

#learning-hub-shell.reviewer-theme-dark .text-success,
#learning-hub-shell.reviewer-theme-dark i.text-success {
    color: #34d399 !important;
}

#learning-hub-shell.reviewer-theme-dark .text-warning,
#learning-hub-shell.reviewer-theme-dark i.text-warning {
    color: #fcd34d !important;
}

#learning-hub-shell.reviewer-theme-dark .text-danger,
#learning-hub-shell.reviewer-theme-dark i.text-danger {
    color: #f87171 !important;
}

#learning-hub-shell.reviewer-theme-dark .text-info,
#learning-hub-shell.reviewer-theme-dark i.text-info {
    color: #7dd3fc !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-cat-icon-blue,
#learning-hub-shell.reviewer-theme-dark .lh-cat-icon.lh-cat-icon-blue {
    background-color: rgba(30, 58, 138, 0.45) !important;
    color: #93c5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-cat-icon-slate,
#learning-hub-shell.reviewer-theme-dark .lh-cat-icon.lh-cat-icon-slate {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-rule-blue { border-left-color: #60a5fa !important; }
#learning-hub-shell.reviewer-theme-dark .lh-rule-purple { border-left-color: #a78bfa !important; }
#learning-hub-shell.reviewer-theme-dark .lh-rule-teal { border-left-color: #2dd4bf !important; }
#learning-hub-shell.reviewer-theme-dark .lh-rule-green { border-left-color: #34d399 !important; }
#learning-hub-shell.reviewer-theme-dark .lh-rule-amber { border-left-color: #fbbf24 !important; }

#learning-hub-shell.reviewer-theme-dark .lh-comp-callout-icon.icon-tip {
    background-color: rgba(217, 119, 6, 0.22) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-callout-icon.icon-mistake {
    background-color: rgba(220, 38, 38, 0.22) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-summary-icon {
    background-color: rgba(5, 150, 105, 0.22) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-summary-title,
#learning-hub-shell.reviewer-theme-dark .lh-comp-final-value {
    color: #34d399 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-formula-label {
    color: #60a5fa !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-math-display,
#learning-hub-shell.reviewer-theme-dark .lh-comp-math-expr {
    background-color: #0b1324 !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-math-display code,
#learning-hub-shell.reviewer-theme-dark .lh-comp-math-expr code {
    color: #7dd3fc !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-step-circle,
#learning-hub-shell.reviewer-theme-dark .lh-comp-seq-step {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-compare-pill.compare-wrong {
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-compare-pill.compare-right {
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    background-color: rgba(16, 185, 129, 0.08) !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-practice-cta-card a:not(.btn) {
    color: #93c5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-practice-cta-card a:not(.btn):hover {
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .breadcrumb a {
    color: #93c5fd !important;
}

#learning-hub-shell.reviewer-theme-dark .breadcrumb-item.active {
    color: #cbd5e1 !important;
}

#learning-hub-shell.reviewer-theme-dark .breadcrumb-item + .breadcrumb-item::before {
    color: #64748b !important;
}

/* ==========================================================================
   12. SCREEN MODE: NIGHT WARM THEME (.reviewer-theme-night)
   Synced with Reviewer `reviewer_screen_mode` / `tb_reviewer_theme_v1`
   ========================================================================== */
#learning-hub-shell.reviewer-theme-night {
    background-color: #181512 !important;
    color: #f5f5f4 !important;
}

#learning-hub-shell.reviewer-theme-night .main-content {
    background-color: #181512 !important;
}

#learning-hub-shell.reviewer-theme-night .gov-breadcrumb,
#learning-hub-shell.reviewer-theme-night .page-header {
    background-color: #211c18 !important;
    border-color: #3c342c !important;
}

#learning-hub-shell.reviewer-theme-night .page-title,
#learning-hub-shell.reviewer-theme-night h1,
#learning-hub-shell.reviewer-theme-night h2,
#learning-hub-shell.reviewer-theme-night h3,
#learning-hub-shell.reviewer-theme-night h4,
#learning-hub-shell.reviewer-theme-night h5,
#learning-hub-shell.reviewer-theme-night h6,
#learning-hub-shell.reviewer-theme-night .text-dark,
#learning-hub-shell.reviewer-theme-night .text-gov-blue-dark,
#learning-hub-shell.reviewer-theme-night .text-gov-blue,
#learning-hub-shell.reviewer-theme-night .lh-comp-intro-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-section-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-rule-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-example-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-steps-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-formula-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-methods-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-callout-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-summary-title {
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .page-subtitle,
#learning-hub-shell.reviewer-theme-night .text-muted,
#learning-hub-shell.reviewer-theme-night .text-secondary,
#learning-hub-shell.reviewer-theme-night .text-gov-muted,
#learning-hub-shell.reviewer-theme-night .lh-focus-list li,
#learning-hub-shell.reviewer-theme-night .lh-comp-intro-lead,
#learning-hub-shell.reviewer-theme-night .lh-comp-intro-body,
#learning-hub-shell.reviewer-theme-night .lh-comp-section-subtitle,
#learning-hub-shell.reviewer-theme-night .lh-comp-section-body,
#learning-hub-shell.reviewer-theme-night .lh-comp-rule-content,
#learning-hub-shell.reviewer-theme-night .lh-comp-callout-body,
#learning-hub-shell.reviewer-theme-night .lh-comp-var-meaning,
#learning-hub-shell.reviewer-theme-night .lh-comp-formula-steps,
#learning-hub-shell.reviewer-theme-night .lh-comp-method-steps,
#learning-hub-shell.reviewer-theme-night .lh-comp-objectives-list li,
#learning-hub-shell.reviewer-theme-night .lh-comp-summary-list li {
    color: #d6d3d1 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-controls-bar,
#learning-hub-shell.reviewer-theme-night .lh-track-selector,
#learning-hub-shell.reviewer-theme-night .lh-category-card,
#learning-hub-shell.reviewer-theme-night .lh-lesson-card,
#learning-hub-shell.reviewer-theme-night .lh-lesson-wrapper,
#learning-hub-shell.reviewer-theme-night .lh-nav-card,
#learning-hub-shell.reviewer-theme-night .lh-topic-outline-card,
#learning-hub-shell.reviewer-theme-night .lh-comp-example-box,
#learning-hub-shell.reviewer-theme-night .lh-comp-formula-box,
#learning-hub-shell.reviewer-theme-night .lh-comp-visual-frame,
#learning-hub-shell.reviewer-theme-night .lh-comp-method-card,
#learning-hub-shell.reviewer-theme-night .bg-white,
#learning-hub-shell.reviewer-theme-night .bg-light {
    background-color: #292524 !important;
    border-color: #44403c !important;
    color: #f5f5f4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-reserved-stage,
#learning-hub-shell.reviewer-theme-night .lh-stage-pill,
#learning-hub-shell.reviewer-theme-night .lh-comp-intro,
#learning-hub-shell.reviewer-theme-night .lh-comp-objectives-box,
#learning-hub-shell.reviewer-theme-night .lh-comp-rule-box,
#learning-hub-shell.reviewer-theme-night .lh-comp-rule-takeaway,
#learning-hub-shell.reviewer-theme-night .lh-comp-example-header,
#learning-hub-shell.reviewer-theme-night .lh-comp-example-prompt,
#learning-hub-shell.reviewer-theme-night .lh-comp-choice-item,
#learning-hub-shell.reviewer-theme-night .lh-comp-steps-box,
#learning-hub-shell.reviewer-theme-night .lh-comp-step-item,
#learning-hub-shell.reviewer-theme-night .lh-comp-formula-header,
#learning-hub-shell.reviewer-theme-night .lh-comp-variable-item,
#learning-hub-shell.reviewer-theme-night .lh-comp-formula-worked,
#learning-hub-shell.reviewer-theme-night .lh-comp-methods-box,
#learning-hub-shell.reviewer-theme-night .lh-comp-visual-header,
#learning-hub-shell.reviewer-theme-night .lh-comp-visual-caption,
#learning-hub-shell.reviewer-theme-night .lh-comp-seq-card,
#learning-hub-shell.reviewer-theme-night .lh-comp-compare-pill {
    background: #1c1917 !important;
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #e7e5e4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-choice-item.lh-choice-correct,
#learning-hub-shell.reviewer-theme-night .lh-comp-example-answer,
#learning-hub-shell.reviewer-theme-night .lh-comp-final-answer,
#learning-hub-shell.reviewer-theme-night .lh-comp-summary-box,
#learning-hub-shell.reviewer-theme-night .lh-callout-tip,
#learning-hub-shell.reviewer-theme-night .lh-callout-mistake {
    background: #1c1917 !important;
    background-color: #1c1917 !important;
    border-color: #57534e !important;
    color: #f5f5f4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-exam-note,
#learning-hub-shell.reviewer-theme-night .lh-comp-eyebrow,
#learning-hub-shell.reviewer-theme-night .lh-comp-formula-when,
#learning-hub-shell.reviewer-theme-night .lh-inline-math,
#learning-hub-shell.reviewer-theme-night .lh-comp-choice-letter,
#learning-hub-shell.reviewer-theme-night .lh-comp-var-symbol {
    background-color: #1c1917 !important;
    border-color: #57534e !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-practice-cta-card {
    background: linear-gradient(135deg, #292524 0%, #3b2510 100%) !important;
    border-color: #d97706 !important;
    color: #f5f5f4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-category-footer,
#learning-hub-shell.reviewer-theme-night .lh-topic-outline-item,
#learning-hub-shell.reviewer-theme-night .lh-comp-section-header,
#learning-hub-shell.reviewer-theme-night .border,
#learning-hub-shell.reviewer-theme-night .border-top,
#learning-hub-shell.reviewer-theme-night .border-bottom {
    border-color: #44403c !important;
}

#learning-hub-shell.reviewer-theme-night .lh-topic-outline-item {
    color: #e7e5e4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-topic-outline-item:hover {
    background-color: #1c1917 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-topic-outline-item.active {
    background-color: #451a03 !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-track-btn {
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #e7e5e4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-track-btn:hover {
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .lh-track-btn.active {
    background-color: #d97706 !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .lh-lesson-step-badge,
#learning-hub-shell.reviewer-theme-night .lh-cat-icon,
#learning-hub-shell.reviewer-theme-night .lh-comp-step-num,
#learning-hub-shell.reviewer-theme-night .lh-comp-section-icon,
#learning-hub-shell.reviewer-theme-night .lh-comp-rule-icon {
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-badge-both,
#learning-hub-shell.reviewer-theme-night .lh-badge-professional,
#learning-hub-shell.reviewer-theme-night .lh-badge-subprofessional,
#learning-hub-shell.reviewer-theme-night .lh-comp-method-pill {
    background-color: #1c1917 !important;
    border-color: #57534e !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .form-select {
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #f5f5f4 !important;
}

#learning-hub-shell.reviewer-theme-night .btn-outline-secondary {
    color: #d6d3d1 !important;
    border-color: #57534e !important;
}

#learning-hub-shell.reviewer-theme-night .btn-outline-secondary:hover {
    background-color: #44403c !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .lh-hero-card {
    background: linear-gradient(135deg, #292524 0%, #3b2510 100%) !important;
    border: 1px solid #78350f !important;
}

#learning-hub-shell.reviewer-theme-night .btn-primary {
    background-color: #d97706 !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .btn-primary:hover,
#learning-hub-shell.reviewer-theme-night .btn-primary:focus,
#learning-hub-shell.reviewer-theme-night .btn-primary:active {
    background-color: #b45309 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .btn-outline-primary {
    color: #fbbf24 !important;
    border-color: #d97706 !important;
    background-color: transparent !important;
}

#learning-hub-shell.reviewer-theme-night .btn-outline-primary:hover,
#learning-hub-shell.reviewer-theme-night .btn-outline-primary:focus,
#learning-hub-shell.reviewer-theme-night .btn-outline-primary:active {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .lh-nav-card:hover {
    background-color: #1c1917 !important;
    border-color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.16) !important;
    color: #86efac !important;
    border-color: rgba(134, 239, 172, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-night .bg-primary-subtle {
    background-color: rgba(217, 119, 6, 0.18) !important;
    color: #fde68a !important;
    border-color: rgba(253, 230, 138, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-night .bg-info-subtle {
    background-color: rgba(20, 184, 166, 0.16) !important;
    color: #5eead4 !important;
    border-color: rgba(94, 234, 212, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-night .bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fcd34d !important;
    border-color: rgba(252, 211, 77, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-night .bg-secondary-subtle {
    background-color: rgba(168, 162, 158, 0.16) !important;
    color: #d6d3d1 !important;
    border-color: rgba(214, 211, 209, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-night .bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border-color: rgba(252, 165, 165, 0.3) !important;
}

#learning-hub-shell.reviewer-theme-night .badge.bg-light,
#learning-hub-shell.reviewer-theme-night .badge.bg-white {
    background-color: #292524 !important;
    border-color: #44403c !important;
    color: #d6d3d1 !important;
}

#learning-hub-shell.reviewer-theme-night .text-primary,
#learning-hub-shell.reviewer-theme-night i.text-primary {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .text-success,
#learning-hub-shell.reviewer-theme-night i.text-success {
    color: #4ade80 !important;
}

#learning-hub-shell.reviewer-theme-night .text-warning,
#learning-hub-shell.reviewer-theme-night i.text-warning {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .text-danger,
#learning-hub-shell.reviewer-theme-night i.text-danger {
    color: #f87171 !important;
}

#learning-hub-shell.reviewer-theme-night .text-info,
#learning-hub-shell.reviewer-theme-night i.text-info {
    color: #2dd4bf !important;
}

#learning-hub-shell.reviewer-theme-night .lh-cat-icon-blue,
#learning-hub-shell.reviewer-theme-night .lh-cat-icon.lh-cat-icon-blue {
    background-color: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-cat-icon-slate,
#learning-hub-shell.reviewer-theme-night .lh-cat-icon.lh-cat-icon-slate {
    background-color: #292524 !important;
    color: #a8a29e !important;
}

#learning-hub-shell.reviewer-theme-night .lh-rule-blue { border-left-color: #38bdf8 !important; }
#learning-hub-shell.reviewer-theme-night .lh-rule-purple { border-left-color: #c084fc !important; }
#learning-hub-shell.reviewer-theme-night .lh-rule-teal { border-left-color: #2dd4bf !important; }
#learning-hub-shell.reviewer-theme-night .lh-rule-green { border-left-color: #4ade80 !important; }
#learning-hub-shell.reviewer-theme-night .lh-rule-amber { border-left-color: #f59e0b !important; }

#learning-hub-shell.reviewer-theme-night .lh-comp-callout-icon.icon-tip {
    background-color: rgba(217, 119, 6, 0.22) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-callout-icon.icon-mistake {
    background-color: rgba(220, 38, 38, 0.22) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-summary-icon {
    background-color: rgba(5, 150, 105, 0.22) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-summary-title,
#learning-hub-shell.reviewer-theme-night .lh-comp-final-value {
    color: #4ade80 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-formula-label {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-math-display,
#learning-hub-shell.reviewer-theme-night .lh-comp-math-expr {
    background-color: #141210 !important;
    border: 1px solid #44403c !important;
    color: #f5f5f4 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-math-display code,
#learning-hub-shell.reviewer-theme-night .lh-comp-math-expr code {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-step-circle,
#learning-hub-shell.reviewer-theme-night .lh-comp-seq-step {
    background-color: #d97706 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-compare-pill.compare-wrong {
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-compare-pill.compare-right {
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    background-color: rgba(16, 185, 129, 0.08) !important;
}

#learning-hub-shell.reviewer-theme-night .lh-practice-cta-card a:not(.btn) {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-practice-cta-card a:not(.btn):hover {
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .breadcrumb a {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .breadcrumb-item.active {
    color: #d6d3d1 !important;
}

#learning-hub-shell.reviewer-theme-night .breadcrumb-item + .breadcrumb-item::before {
    color: #78716c !important;
}

/* Dark & Night Theme Table, Code, and Reference Link Readability */
#learning-hub-shell.reviewer-theme-dark .table {
    --bs-table-bg: #1e293b;
    --bs-table-color: #f1f5f9;
    --bs-table-border-color: #334155;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

#learning-hub-shell.reviewer-theme-dark .table th,
#learning-hub-shell.reviewer-theme-dark .table td {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

#learning-hub-shell.reviewer-theme-dark .table thead.table-light th,
#learning-hub-shell.reviewer-theme-dark .table .table-light th,
#learning-hub-shell.reviewer-theme-dark .table .table-light td {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

#learning-hub-shell.reviewer-theme-dark code {
    background-color: #0f172a !important;
    color: #7dd3fc !important;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

#learning-hub-shell.reviewer-theme-dark .table a,
#learning-hub-shell.reviewer-theme-dark .lh-comp-section-body a {
    color: #60a5fa !important;
}

#learning-hub-shell.reviewer-theme-night .table {
    --bs-table-bg: #292524;
    --bs-table-color: #f5f5f4;
    --bs-table-border-color: #44403c;
    color: #f5f5f4 !important;
    border-color: #44403c !important;
}

#learning-hub-shell.reviewer-theme-night .table th,
#learning-hub-shell.reviewer-theme-night .table td {
    background-color: #292524 !important;
    border-color: #44403c !important;
    color: #e7e5e4 !important;
}

#learning-hub-shell.reviewer-theme-night .table thead.table-light th,
#learning-hub-shell.reviewer-theme-night .table .table-light th,
#learning-hub-shell.reviewer-theme-night .table .table-light td {
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #fafaf9 !important;
}

#learning-hub-shell.reviewer-theme-night code {
    background-color: #1c1917 !important;
    color: #fbbf24 !important;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

#learning-hub-shell.reviewer-theme-night .table a,
#learning-hub-shell.reviewer-theme-night .lh-comp-section-body a {
    color: #fbbf24 !important;
}

/* ── 13. Table, Text Wrapping & Responsive Overflow Prevention ── */
#learning-hub-shell .main-content,
#learning-hub-shell .content-area,
#learning-hub-shell .lh-lesson-wrapper,
#learning-hub-shell #lh-lesson-body {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

#learning-hub-shell .gov-breadcrumb .breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.25rem;
}

#learning-hub-shell .gov-breadcrumb .breadcrumb-item {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

#learning-hub-shell .page-header .d-flex,
#learning-hub-shell .lh-lesson-card .d-flex,
#learning-hub-shell .lh-category-card .d-flex,
#learning-hub-shell .lh-comp-section-header .d-flex,
#learning-hub-shell .lh-comp-rule-box .d-flex,
#learning-hub-shell .lh-comp-example-header .d-flex,
#learning-hub-shell .lh-comp-formula-header .d-flex,
#learning-hub-shell .lh-comp-callout .d-flex,
#learning-hub-shell .lh-comp-visual-header .d-flex,
#learning-hub-shell .lh-comp-summary-box .d-flex,
#learning-hub-shell .lh-practice-cta-card .d-flex {
    min-width: 0;
}

#learning-hub-shell .page-title,
#learning-hub-shell .page-subtitle,
#learning-hub-shell .lh-hero-title,
#learning-hub-shell .lh-hero-lead,
#learning-hub-shell .lh-comp-intro-title,
#learning-hub-shell .lh-comp-section-title,
#learning-hub-shell .lh-comp-section-subtitle,
#learning-hub-shell .lh-comp-rule-title,
#learning-hub-shell .lh-comp-example-title,
#learning-hub-shell .lh-comp-example-prompt,
#learning-hub-shell .lh-comp-steps-title,
#learning-hub-shell .lh-comp-formula-title,
#learning-hub-shell .lh-comp-methods-title,
#learning-hub-shell .lh-comp-callout-title,
#learning-hub-shell .lh-comp-summary-title,
#learning-hub-shell .lh-nav-card,
#learning-hub-shell .lh-topic-outline-item {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

#learning-hub-shell .badge,
#learning-hub-shell .lh-applicability-badge,
#learning-hub-shell .lh-comp-eyebrow,
#learning-hub-shell .lh-comp-formula-when,
#learning-hub-shell .lh-comp-method-pill,
#learning-hub-shell .lh-stage-pill,
#learning-hub-shell .lh-approach-pill {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
    overflow-wrap: break-word;
}

#learning-hub-shell .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

#learning-hub-shell .lh-comp-choice-item,
#learning-hub-shell .lh-comp-choice-text,
#learning-hub-shell .lh-comp-step-item,
#learning-hub-shell .lh-comp-step-body,
#learning-hub-shell .lh-comp-objectives-list li,
#learning-hub-shell .lh-comp-summary-list li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.lh-lesson-wrapper code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lh-lesson-wrapper a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lh-lesson-wrapper .table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
}

.lh-lesson-wrapper .table th,
.lh-lesson-wrapper .table td {
    padding: 0.65rem 0.75rem;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align: middle;
}

.lh-comp-visual-stage .table-responsive,
.lh-comp-section-body .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#learning-hub-shell.reviewer-theme-dark .lh-comp-visual-stage {
    background-color: #1e293b !important;
}

#learning-hub-shell.reviewer-theme-night .lh-comp-visual-stage {
    background-color: #292524 !important;
}

@media (max-width: 767.98px) {
    .lh-hero-card {
        padding: 1.4rem 1.25rem;
    }

    .lh-controls-bar,
    .lh-track-selector,
    .lh-lesson-card,
    .lh-nav-card {
        padding: 1rem 1.15rem;
    }

    .lh-category-card,
    .lh-lesson-wrapper,
    .lh-practice-cta-card,
    .lh-comp-intro,
    .lh-comp-rule-box,
    .lh-comp-steps-box,
    .lh-comp-methods-box,
    .lh-comp-summary-box,
    .lh-comp-callout {
        padding: 1.15rem;
    }

    .lh-comp-example-body,
    .lh-comp-formula-body,
    .lh-comp-visual-stage {
        padding: 1rem;
    }

    .lh-comp-visual-stage.lh-comp-visual-stage-table {
        padding: 0;
    }

    .lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > :not(caption) > * > *:first-child {
        padding-left: 0.75rem;
    }

    .lh-comp-visual-stage.lh-comp-visual-stage-table .table-bordered > :not(caption) > * > *:last-child {
        padding-right: 0.75rem;
    }

    .lh-lesson-wrapper .table th,
    .lh-lesson-wrapper .table td {
        padding: 0.48rem 0.52rem;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .lh-comp-choices-grid {
        grid-template-columns: 1fr;
    }

    .lh-comp-math-display,
    .lh-comp-math-expr {
        font-size: 0.86rem;
        padding: 0.7rem 0.85rem;
    }
}

/* ==========================================================================
   14. RECOMMENDED VIDEO LESSONS (.lh-video-rec-section)
   ========================================================================== */
.lh-video-rec-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.5rem;
}

.lh-video-rec-header {
    margin-bottom: 1.15rem;
}

.lh-video-rec-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    margin-bottom: 0.55rem;
}

.lh-video-rec-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.lh-video-rec-intro {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

.lh-video-rec-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.lh-video-card {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lh-video-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.lh-video-thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 132px;
    background-color: #0f172a;
    overflow: hidden;
    text-decoration: none;
}

.lh-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.lh-video-card:hover .lh-video-thumb-img {
    transform: scale(1.03);
}

.lh-video-thumb-fallback-bg {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ef4444;
    font-size: 2.4rem;
}

.lh-video-thumb-wrap.lh-video-thumb-fallback .lh-video-thumb-img {
    display: none;
}

.lh-video-thumb-wrap.lh-video-thumb-fallback .lh-video-thumb-fallback-bg {
    display: flex;
}

.lh-video-platform-pill {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background-color: rgba(15, 23, 42, 0.84);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.16rem 0.5rem;
    border-radius: 6px;
    line-height: 1.3;
    pointer-events: none;
}

.lh-video-platform-pill .bi-youtube {
    color: #ef4444;
}

.lh-video-play-badge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(220, 38, 38, 0.92);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.lh-video-card:hover .lh-video-play-badge {
    transform: scale(1.08);
    background-color: #dc2626;
}

.lh-video-card-body {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.lh-video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.35rem;
}

.lh-video-channel {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
}

.lh-video-ref-type {
    font-size: 0.69rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.1rem 0.52rem;
}

.lh-video-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.42;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.lh-video-title a {
    color: inherit;
    text-decoration: none;
}

.lh-video-title a:hover {
    color: #0284c7;
    text-decoration: underline;
}

.lh-video-desc {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.lh-video-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
}

.lh-video-watch-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.38rem 0.78rem;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lh-video-watch-btn:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    text-decoration: none;
}

.lh-video-ext-icon {
    font-size: 0.72rem;
}

.lh-video-disclaimer {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.55;
}

.lh-video-disclaimer i {
    color: #64748b;
    margin-top: 0.1rem;
}

/* Dark Theme Support (.reviewer-theme-dark) */
#learning-hub-shell.reviewer-theme-dark .lh-video-rec-section {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-rec-badge {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-rec-title,
#learning-hub-shell.reviewer-theme-dark .lh-video-title,
#learning-hub-shell.reviewer-theme-dark .lh-video-title a {
    color: #f8fafc !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-title a:hover {
    color: #7dd3fc !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-rec-intro,
#learning-hub-shell.reviewer-theme-dark .lh-video-desc {
    color: #cbd5e1 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-card:hover {
    border-color: #475569 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-channel {
    color: #7dd3fc !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-ref-type {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-watch-btn {
    background-color: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fecaca !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-watch-btn:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-disclaimer {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

#learning-hub-shell.reviewer-theme-dark .lh-video-disclaimer i {
    color: #94a3b8 !important;
}

/* Night Warm Theme Support (.reviewer-theme-night) */
#learning-hub-shell.reviewer-theme-night .lh-video-rec-section {
    background: linear-gradient(180deg, #292524 0%, #1c1917 100%) !important;
    border-color: #44403c !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-rec-badge {
    background-color: #1c1917 !important;
    border-color: #57534e !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-rec-title,
#learning-hub-shell.reviewer-theme-night .lh-video-title,
#learning-hub-shell.reviewer-theme-night .lh-video-title a {
    color: #fafaf9 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-title a:hover {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-rec-intro,
#learning-hub-shell.reviewer-theme-night .lh-video-desc {
    color: #d6d3d1 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-card {
    background-color: #292524 !important;
    border-color: #44403c !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-card:hover {
    border-color: #57534e !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-channel {
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-ref-type {
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #d6d3d1 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-watch-btn {
    background-color: #1c1917 !important;
    border-color: #57534e !important;
    color: #fbbf24 !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-watch-btn:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-disclaimer {
    background-color: #1c1917 !important;
    border-color: #44403c !important;
    color: #a8a29e !important;
}

#learning-hub-shell.reviewer-theme-night .lh-video-disclaimer i {
    color: #a8a29e !important;
}

@media (max-width: 575.98px) {
    .lh-video-rec-section {
        padding: 1.15rem;
    }

    .lh-video-card {
        grid-template-columns: 1fr;
    }

    .lh-video-thumb-wrap {
        aspect-ratio: 16 / 9;
        min-height: 160px;
    }

    .lh-video-card-body {
        padding: 0.95rem 1rem;
    }

    .lh-video-watch-btn {
        width: 100%;
        justify-content: center;
    }
}




