/* ==========================================================================
   VIKRAANTWORLD — READING VIEW & DISTRACTION-FREE STYLES
   ========================================================================== */

/* READING PROGRESS BAR */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10001;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  transition: width 0.1s ease;
}

/* STICKY READING TOOLBAR */
.reading-toolbar-bar {
  position: sticky;
  top: var(--site-header-height, 108px);
  z-index: 99;
  background: rgba(8, 16, 36, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: top 0.2s ease;
}

@media (max-width: 992px) {
  .reading-toolbar-bar {
    top: var(--site-header-height, 60px);
  }
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-center {
  flex: 1;
  text-align: center;
  font-size: 0.92rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.toolbar-center a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
}

.toolbar-center span {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.3);
}

.btn-toolbar {
  background: rgba(15, 29, 61, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  text-decoration: none !important;
}

.btn-toolbar:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #fbbf24;
  color: #fbbf24;
}

.btn-toolbar.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* THEME THEMES (Sepia & Light Mode for Reader, Default is Cosmic Dark) */
body.theme-sepia {
  background-color: #fbf7ee !important;
  color: #433422 !important;
}

body.theme-sepia .reading-toolbar-bar {
  background: rgba(251, 247, 238, 0.96) !important;
  border-color: #e6dac3 !important;
}

body.theme-sepia .reader-paper-sheet {
  background-color: #fffdf9 !important;
  border-color: #e6dac3 !important;
  box-shadow: 0 4px 20px rgba(67, 52, 34, 0.06) !important;
  color: #433422 !important;
}

body.theme-sepia .btn-toolbar {
  background: #faf6ed !important;
  border-color: #e6dac3 !important;
  color: #433422 !important;
}

body.theme-light {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

body.theme-light .reading-toolbar-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .reader-paper-sheet {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .btn-toolbar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-dark {
  background-color: #050b18 !important;
  color: #f8fafc !important;
}

body.theme-dark .site-header {
  background: #060d1d !important;
}

body.theme-dark .reading-toolbar-bar {
  background: rgba(8, 16, 36, 0.96) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

body.theme-dark .btn-toolbar {
  background: rgba(15, 29, 61, 0.85) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #f8fafc !important;
}

body.theme-dark .btn-toolbar:hover {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

body.theme-dark .reader-paper-sheet {
  background: rgba(10, 20, 42, 0.94) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

body.theme-dark .reader-paper-sheet h1,
body.theme-dark .reader-paper-sheet h2,
body.theme-dark .reader-paper-sheet h3 {
  color: #fbbf24 !important;
}

/* MAIN READER WORKSPACE */
.reader-workspace-container {
/* CHAPTER HERO HEADER */
.reader-chapter-hero {
  background: rgba(10, 20, 42, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: 2.2rem 2.5rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reader-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.reader-breadcrumbs a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.reader-breadcrumbs a:hover {
  color: #ffffff;
}

.reader-breadcrumbs .bc-sep {
  color: rgba(255, 255, 255, 0.35);
}

.reader-breadcrumbs .bc-current {
  color: #e2e8f0;
}

.chapter-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.faculty-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.module-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.chapter-headline {
  font-family: 'Tiro Devanagari Hindi', serif;
  font-size: 2.2rem;
  color: #ffffff !important;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.chapter-lead-desc {
  font-size: 1.15rem;
  color: #cbd5e1 !important;
  line-height: 1.75;
  margin: 0;
}

.reader-paper-sheet {
  max-width: 1040px;
  margin: 0 auto 3rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 3rem 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-height: 80vh;
  position: relative;
  color: #0f172a;
}

@media (max-width: 768px) {
  .reader-chapter-hero {
    padding: 1.6rem 1.4rem;
  }
  .chapter-headline {
    font-size: 1.7rem;
  }
  .reader-paper-sheet {
    padding: 2rem 1.4rem;
  }
}
}

.chapter-action-bar button:hover,
.chapter-action-bar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reader-direct-article {
  font-family: var(--font-body);
  font-size: var(--reader-font-size, 18px);
  line-height: 1.85;
  color: #1e293b;
}

.reader-direct-article h1 {
  display: none !important; /* Managed by parent banner */
}

.reader-direct-article h2 {
  font-family: var(--font-heading);
  font-size: calc(var(--reader-font-size, 18px) * 1.35) !important;
  font-weight: 800;
  color: #6b21a8 !important;
  margin: 2.5rem 0 1.2rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.6rem;
  line-height: 1.35;
}

.reader-direct-article h3 {
  font-family: var(--font-heading);
  font-size: calc(var(--reader-font-size, 18px) * 1.15) !important;
  font-weight: 700;
  color: #1e293b !important;
  margin: 2rem 0 0.9rem;
  line-height: 1.35;
}

.reader-direct-article p,
.reader-direct-article li,
.reader-direct-article td,
.reader-direct-article .content-para,
.reader-direct-article .content-list,
.reader-direct-article .content-list-ordered {
  font-size: var(--reader-font-size, 18px) !important;
  line-height: 1.85 !important;
  color: #334155 !important;
}

.reader-direct-article p {
  margin-bottom: 1.4rem;
}

.reader-direct-article ul, .reader-direct-article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.8rem;
}

.reader-direct-article li {
  margin-bottom: 0.75rem;
}

.reader-direct-article strong, .reader-direct-article b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.8rem 0 !important;
  border-radius: 12px;
}

.reader-direct-article table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2rem 0 !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.reader-direct-article th {
  background: #0f1d3d !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  text-align: left !important;
  border: 1px solid #1e293b !important;
  border-bottom: 2px solid #f59e0b !important;
  letter-spacing: 0.3px !important;
  font-size: 0.96rem !important;
}

.reader-direct-article td {
  padding: 13px 16px !important;
  border: 1px solid #e2e8f0 !important;
  text-align: left !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: var(--reader-font-size, 16.5px) !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}

/* Explicit Odd Rows: Pure White */
.reader-direct-article tr:nth-child(odd) td {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Explicit Even Rows: Crisp Soft Tint */
.reader-direct-article tr:nth-child(even) td {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Bold Headings / Column Items in Table Cells */
.reader-direct-article td strong,
.reader-direct-article td b {
  color: #0b1b3d !important;
  font-weight: 800 !important;
}

/* Soft Golden Highlight on Row Hover (100% Legibility, No Inversion) */
.reader-direct-article tr:hover td {
  background-color: #fef3c7 !important;
  color: #0f172a !important;
}

.reader-direct-article tr:hover td strong,
.reader-direct-article tr:hover td b {
  color: #92400e !important;
}

/* Selected / Active / Highlighted Row in Reader */
.reader-direct-article tr.selected td,
.reader-direct-article tr.active td,
.reader-direct-article tr.highlight td {
  background-color: #fef3c7 !important;
  color: #0f172a !important;
  border-top: 1.5px solid #f59e0b !important;
  border-bottom: 1.5px solid #f59e0b !important;
}

.reader-direct-article tr.selected td strong,
.reader-direct-article tr.selected td b,
.reader-direct-article tr.active td strong,
.reader-direct-article tr.active td b {
  color: #92400e !important;
}

.reader-direct-article td p,
.reader-direct-article td span,
.reader-direct-article td div {
  color: inherit !important;
  font-size: inherit !important;
  margin-bottom: 0 !important;
  line-height: inherit !important;
}

.reader-direct-article blockquote,
.reader-direct-article .mentor-quote {
  background: #fff7ed !important;
  border-left: 4px solid #ea580c !important;
  padding: 1.4rem 1.8rem !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 2rem 0 !important;
  font-style: italic !important;
  color: #7c2d12 !important;
}

.reader-direct-article .section-card,
.reader-direct-article .main-article,
.reader-direct-article .guru-box,
.reader-direct-article .faq-item {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.8rem 2rem !important;
  margin: 1.8rem 0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.reader-direct-article img, .reader-direct-article svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
}

/* KUNDALI CHART VISUAL INTEGRATION LAYOUT */
.reader-direct-article .chart-layout {
  display: grid !important;
  grid-template-columns: minmax(320px, 440px) 1fr !important;
  gap: 2.2rem !important;
  align-items: start !important;
  margin: 25px 0 !important;
  background: #f8fafc !important;
  padding: 24px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

@media (max-width: 860px) {
  .reader-direct-article .chart-layout {
    grid-template-columns: 1fr !important;
  }
}

.reader-direct-article .chart-box {
  text-align: center !important;
}

.reader-direct-article .chart-box svg {
  width: 100% !important;
  max-width: 440px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  margin: 0 auto !important;
}

.reader-direct-article .chart-caption {
  font-size: 0.95rem !important;
  color: #64748b !important;
  margin-top: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-align: center !important;
}

.reader-direct-article .badge {
  display: inline-block !important;
  padding: 3px 10px !important;
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-radius: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

.reader-direct-article .badge-purple {
  background: #f3e8ff !important;
  color: #6b21a8 !important;
}

.reader-direct-article .badge-green {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.reader-direct-article .code-abbr {
  display: inline-block !important;
  padding: 2px 7px !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-radius: 4px !important;
  font-family: monospace !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: 1px solid #cbd5e1 !important;
}

.reader-direct-article .guru-box {
  background: linear-gradient(135deg, #fff7ed, #faf5ff) !important;
  border: 1.5px solid #fed7aa !important;
  border-radius: 16px !important;
  padding: 2rem 2.2rem !important;
  margin: 2.2rem 0 !important;
  color: #7c2d12 !important;
  box-shadow: 0 4px 20px rgba(154, 52, 18, 0.06) !important;
}

.reader-direct-article .guru-box blockquote {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #7c2d12 !important;
  font-style: normal !important;
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
}

.reader-direct-article .guru-box b,
.reader-direct-article .guru-box strong {
  color: #9a3412 !important;
}

.reader-direct-article .faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.5rem 1.8rem !important;
  margin-bottom: 1.4rem !important;
}

.reader-direct-article .faq-q {
  font-weight: 800 !important;
  color: #c2410c !important;
  margin-bottom: 0.6rem !important;
  font-size: 1.15rem !important;
}

/* THEME ADAPTATIONS FOR NATIVE ARTICLE */
/* LIGHT MODE (Clean Crisp High-Contrast) */
body.theme-light #chapterMainTitle {
  color: #0b1b3d !important;
  text-shadow: none !important;
}
body.theme-light #chapterSubDesc {
  color: #334155 !important;
}
body.theme-light #chapterModuleBadge {
  color: #b45309 !important;
}
body.theme-light .toolbar-center a {
  color: #b45309 !important;
}
body.theme-light .toolbar-center #breadcrumbModName {
  color: #0b1b3d !important;
}

body.theme-light .reader-direct-article {
  color: #1e293b !important;
}
body.theme-light .reader-direct-article h2 {
  color: #0b1b3d !important;
  border-bottom: 2px solid #e2e8f0 !important;
}
body.theme-light .reader-direct-article h3 {
  color: #b45309 !important;
}
body.theme-light .reader-direct-article p,
body.theme-light .reader-direct-article li {
  color: #334155 !important;
}
body.theme-light .reader-direct-article strong,
body.theme-light .reader-direct-article b {
  color: #0b1b3d !important;
}
body.theme-light .reader-direct-article table {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
body.theme-light .reader-direct-article th {
  background: #0f1d3d !important;
  color: #ffffff !important;
  border-color: #1e293b !important;
  border-bottom: 2px solid #f59e0b !important;
}
body.theme-light .reader-direct-article td {
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
}
body.theme-light .reader-direct-article tr:nth-child(odd) td {
  background-color: #ffffff !important;
  color: #0f172a !important;
}
body.theme-light .reader-direct-article tr:nth-child(even) td {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}
body.theme-light .reader-direct-article td strong,
body.theme-light .reader-direct-article td b {
  color: #0b1b3d !important;
}
body.theme-light .reader-direct-article tr:hover td {
  background-color: #fef3c7 !important;
  color: #0f172a !important;
}
body.theme-light .reader-direct-article tr:hover td strong,
body.theme-light .reader-direct-article tr:hover td b {
  color: #92400e !important;
}
body.theme-light .reader-direct-article tr.selected td,
body.theme-light .reader-direct-article tr.active td,
body.theme-light .reader-direct-article tr.highlight td {
  background-color: #fef3c7 !important;
  color: #0f172a !important;
  border-top: 1.5px solid #f59e0b !important;
  border-bottom: 1.5px solid #f59e0b !important;
}
body.theme-light .reader-direct-article tr.selected td strong,
body.theme-light .reader-direct-article tr.selected td b,
body.theme-light .reader-direct-article tr.active td strong,
body.theme-light .reader-direct-article tr.active td b {
  color: #92400e !important;
}
body.theme-light .reader-direct-article blockquote {
  background: #fffbeb !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}
body.theme-light .reader-direct-article .section-card,
body.theme-light .reader-direct-article .guru-box,
body.theme-light .reader-direct-article .faq-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

/* SEPIA MODE */
body.theme-sepia #chapterMainTitle {
  color: #451a03 !important;
  text-shadow: none !important;
}
body.theme-sepia #chapterSubDesc {
  color: #5c442c !important;
}
body.theme-sepia #chapterModuleBadge {
  color: #92400e !important;
}
body.theme-sepia .toolbar-center a {
  color: #92400e !important;
}
body.theme-sepia .toolbar-center #breadcrumbModName {
  color: #451a03 !important;
}

body.theme-sepia .reader-direct-article {
  color: #433422 !important;
}
body.theme-sepia .reader-direct-article h2,
body.theme-sepia .reader-direct-article h3,
body.theme-sepia .reader-direct-article strong {
  color: #7c2d12 !important;
}
body.theme-sepia .reader-direct-article table {
  background: #fffdf9 !important;
  border-color: #e6dac3 !important;
}
body.theme-sepia .reader-direct-article th {
  background: #f5eedf !important;
  color: #7c2d12 !important;
  border-color: #e6dac3 !important;
}
body.theme-sepia .reader-direct-article td {
  border-color: #e6dac3 !important;
  background-color: #fffdf9 !important;
  color: #433422 !important;
}
body.theme-sepia .reader-direct-article tr:nth-child(odd) td {
  background-color: #fffdf9 !important;
  color: #433422 !important;
}
body.theme-sepia .reader-direct-article tr:nth-child(even) td {
  background-color: #f8f4ec !important;
  color: #433422 !important;
}
body.theme-sepia .reader-direct-article td strong,
body.theme-sepia .reader-direct-article td b {
  color: #7c2d12 !important;
}
body.theme-sepia .reader-direct-article tr:hover td {
  background-color: #fef3c7 !important;
  color: #433422 !important;
}
body.theme-sepia .reader-direct-article tr:hover td strong,
body.theme-sepia .reader-direct-article tr:hover td b {
  color: #92400e !important;
}
body.theme-sepia .reader-direct-article tr.selected td,
body.theme-sepia .reader-direct-article tr.active td {
  background-color: #fef3c7 !important;
  color: #433422 !important;
  border-top: 1.5px solid #b45309 !important;
  border-bottom: 1.5px solid #b45309 !important;
}
body.theme-sepia .reader-direct-article tr.selected td strong,
body.theme-sepia .reader-direct-article tr.selected td b {
  color: #7c2d12 !important;
}

/* DARK MODE (Optional) */
body.theme-dark #chapterMainTitle {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}
body.theme-dark #chapterSubDesc {
  color: #cbd5e1 !important;
}

body.theme-dark .reader-direct-article {
  color: #cbd5e1;
}
body.theme-dark .reader-direct-article h2,
body.theme-dark .reader-direct-article h3 {
  color: #fde68a;
  border-color: #1e293b;
}
body.theme-dark .reader-direct-article strong {
  color: #f8fafc;
}
body.theme-dark .reader-direct-article table {
  background: #0d1a38 !important;
  border-color: #1e293b !important;
}
body.theme-dark .reader-direct-article th {
  background: #081126 !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  border-bottom: 2px solid #f59e0b !important;
}
body.theme-dark .reader-direct-article td {
  border-color: #1e293b !important;
  color: #f1f5f9 !important;
  background-color: #0d1a38 !important;
}
body.theme-dark .reader-direct-article tr:nth-child(odd) td {
  background-color: #0d1a38 !important;
  color: #f1f5f9 !important;
}
body.theme-dark .reader-direct-article tr:nth-child(even) td {
  background-color: #132247 !important;
  color: #f1f5f9 !important;
}
body.theme-dark .reader-direct-article td strong,
body.theme-dark .reader-direct-article td b {
  color: #fbbf24 !important;
}
body.theme-dark .reader-direct-article tr:hover td {
  background-color: #1e3a8a !important;
  color: #ffffff !important;
}
body.theme-dark .reader-direct-article tr:hover td strong,
body.theme-dark .reader-direct-article tr:hover td b {
  color: #fef08a !important;
}
body.theme-dark .reader-direct-article tr.selected td,
body.theme-dark .reader-direct-article tr.active td {
  background-color: #1e3a8a !important;
  color: #fef08a !important;
}
body.theme-dark .reader-direct-article tr.selected td strong,
body.theme-dark .reader-direct-article tr.selected td b {
  color: #ffffff !important;
}
body.theme-dark .reader-direct-article blockquote {
  background: rgba(217, 119, 6, 0.15);
  border-color: var(--gold-primary);
  color: #fed7aa;
}
body.theme-dark .reader-direct-article .section-card,
body.theme-dark .reader-direct-article .guru-box,
body.theme-dark .reader-direct-article .faq-item {
  background: #132247;
  border-color: #1e293b;
}

/* EMBEDDED IFRAME CLEANUP */
html.is-embedded header,
html.is-embedded nav,
html.is-embedded footer,
html.is-embedded .site-header,
html.is-embedded .site-footer,
html.is-embedded .header-nav-tier,
html.is-embedded .header-top-tier,
html.is-embedded .reading-toolbar-bar,
html.is-embedded .mobile-drawer,
html.is-embedded .mobile-drawer-overlay,
html.is-embedded .breadcrumbs,
html.is-embedded .page-title,
html.is-embedded .vedic-watch-chip {
  display: none !important;
}

/* CHAPTER BOTTOM NAV PAGER */
.chapter-pager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--border-color);
}

@media (max-width: 640px) {
  .chapter-pager-grid {
    grid-template-columns: 1fr;
  }
}

.pager-card {
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-dark);
}

.pager-card:hover {
  border-color: var(--gold-primary);
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pager-direction-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pager-title-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fbbf24;
  line-height: 1.4;
}

/* SLIDE-IN TABLE OF CONTENTS DRAWER */
.toc-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toc-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.toc-slide-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  max-width: 88vw;
  height: 100vh;
  background: #09132d;
  border-right: 1px solid rgba(245, 158, 11, 0.3);
  z-index: 10003;
  box-shadow: 6px 0 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toc-slide-drawer.active {
  left: 0;
}

.toc-drawer-header {
  padding: 1.2rem 1.5rem;
  background: #060d1d;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
}

.btn-close-toc {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
}

.toc-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.toc-item-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.toc-item-link:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.toc-item-link.active {
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}

/* READING PROGRESS INDICATOR */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10000;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #ec4899, #6366f1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transition: width 0.1s ease-out;
}

/* PRINT STYLES */
@media print {
  .site-header,
  .site-footer,
  .chapter-action-bar,
  .chapter-pager-grid,
  .reading-progress-track,
  .btn-back-top,
  .vedic-watch-chip,
  .mobile-drawer,
  .mobile-drawer-overlay,
  .toc-slide-drawer,
  .toc-drawer-overlay,
  #celestialStarfieldCanvas,
  .nebula-glow-layer {
    display: none !important;
  }

  body, .cosmic-content-layer, main, section, .card-luxury {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .reader-direct-article p,
  .reader-direct-article li,
  .reader-direct-article td {
    color: #000000 !important;
    font-size: 14pt !important;
  }

  .reader-direct-article h1,
  .reader-direct-article h2,
  .reader-direct-article h3 {
    color: #000000 !important;
    page-break-after: avoid;
  }

  table {
    page-break-inside: avoid;
  }
}


