/* ==========================================================================
   ruang.love — Organic Living Sculpture 3D (Kurikulum Gowok)
   Typography: Cormorant Garamond & Plus Jakarta Sans
   Palette: Obsidian Velvet, Luminous Royal Gold, Frosted Glass
   ========================================================================== */

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

:root {
  --bg-deep: #070a0e;
  --bg-surface: rgba(13, 17, 23, 0.78);
  --bg-surface-elevated: rgba(22, 27, 34, 0.88);
  --border-gold: rgba(255, 215, 0, 0.35);
  --border-gold-bright: rgba(255, 215, 0, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-gold: #ffd700;
  --text-gold-bright: #fff3b0;
  --gold-glow: 0 0 28px rgba(255, 215, 0, 0.45);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  user-select: none;
}

/* 3D WebGL Canvas */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
  background: radial-gradient(circle at 50% 45%, #101622 0%, #070a0e 70%, #030508 100%);
}

/* UI Overlay Container */
.ui-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: opacity 0.5s ease;
}

.ui-overlay > * {
  pointer-events: auto;
}

body.zen-mode .ui-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   TOP BAR / HEADER HUD
   ========================================================================== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-capsule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 10px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.brand-seal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe259 0%, #d4af37 60%, #8a670e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05080c;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.65);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-gold-bright);
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-hud:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: var(--border-gold-bright);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-hud.zen-btn {
  background: rgba(13, 17, 23, 0.6);
}

.btn-hud.btn-pause {
  background: rgba(13, 17, 23, 0.72);
}

.btn-hud.btn-pause.is-paused {
  background: rgba(255, 215, 0, 0.18);
  border-color: var(--border-gold-bright);
  color: var(--text-gold-bright);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.45);
}

.btn-hud.btn-pause.is-paused #pause-icon {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.btn-hud #pause-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

/* Status Notification Toast */
.status-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 35;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gold-bright);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 215, 0, 0.35);
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  max-width: min(94vw, 600px);
  white-space: normal;
  line-height: 1.45;
  word-break: normal;
}

.status-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   NODE HOVER TOOLTIP
   ========================================================================== */
.node-tooltip {
  position: fixed;
  z-index: 25;
  pointer-events: none;
  background: rgba(9, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold-bright);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), var(--gold-glow);
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.node-tooltip.active {
  opacity: 1;
}

.node-tooltip .tt-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-gold);
  background: rgba(255, 215, 0, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}

.node-tooltip .tt-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* ==========================================================================
   BOTTOM FLOATING ISLAND / TOOLBAR
   ========================================================================== */
.bottom-island-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 6px;
}

.breathe-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-gold-bright);
  letter-spacing: 0.5px;
}

.breathe-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-gold);
  box-shadow: 0 0 10px var(--text-gold);
  transition: transform 0.3s ease;
}

.bottom-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.15);
  max-width: 90vw;
  overflow-x: auto;
}

/* Main Action Button - Luminous Royal Gold */
.btn-action-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #fff9c4 0%, #ffd700 50%, #f59e0b 100%);
  color: #070a0e;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.65), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-action-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.9), 0 8px 25px rgba(0, 0, 0, 0.5);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-gold);
  opacity: 0.4;
}

.btn-toolbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-toolbar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold);
  color: var(--text-gold-bright);
}

/* Zen Mode Floating Exit Indicator */
.zen-exit-pill {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: rgba(8, 12, 18, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--text-gold-bright);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), var(--gold-glow);
  transition: var(--transition-smooth);
}

body.zen-mode .zen-exit-pill {
  display: inline-flex;
}

/* ==========================================================================
   READING DRAWER (RIGHT PANEL / BOTTOM SHEET)
   ========================================================================== */
.reading-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.reading-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.reading-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 95vw;
  z-index: 1000;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px);
  border-left: 1px solid var(--border-gold);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.reading-drawer.open {
  transform: translate3d(0, 0, 0);
}

.drawer-drag-handle,
.drawer-pull-indicator {
  display: none;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.badge-level {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.15);
  color: var(--text-gold);
  border: 1px solid var(--border-gold);
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-resizer-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 4px;
}

.btn-font-size {
  background: transparent;
  border: none;
  color: var(--text-gold);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-font-size:hover,
.btn-font-size:active {
  background: rgba(255, 215, 0, 0.22);
  color: var(--text-gold-bright);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--border-gold);
  color: var(--text-gold-bright);
}

.drawer-body {
  padding: 30px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drawer-chapter-no {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.5px;
}

.drawer-quote-card {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-left: 5px solid var(--text-gold);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.05);
}

.drawer-quote-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-gold-bright);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.drawer-content-text {
  font-size: 16.5px;
  line-height: 1.85;
  color: #d1d9e0;
  white-space: pre-line;
}

/* Dynamic Font Size Classes (Accessibility A- / A+) */
.reading-drawer.font-size-lg .drawer-quote-text {
  font-size: 24px !important;
}
.reading-drawer.font-size-lg .drawer-content-text {
  font-size: 18.5px !important;
}
.reading-drawer.font-size-xl .drawer-quote-text {
  font-size: 27px !important;
}
.reading-drawer.font-size-xl .drawer-content-text {
  font-size: 21px !important;
}

.drawer-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 14, 20, 0.6);
}

.btn-drawer-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-drawer-nav:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--border-gold);
  color: var(--text-gold-bright);
}

/* ==========================================================================
   MODALS (TABLE OF CONTENTS / ABOUT GOWOK)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 4, 7, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 760px;
  max-width: 100%;
  max-height: 85vh;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(32px);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--gold-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-gold-bright);
}

.modal-body {
  padding: 28px 30px;
  overflow-y: auto;
  flex: 1;
}

/* TOC Search & Level Filter Pills */
.toc-search-box {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
  transition: var(--transition-smooth);
}

.toc-search-box:focus {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--border-gold-bright);
  box-shadow: var(--gold-glow);
}

.toc-level-section {
  margin-bottom: 28px;
}

.toc-level-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.toc-chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toc-chapter-item:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--border-gold);
  transform: translateX(4px);
}

.toc-item-no {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-gold);
  min-width: 24px;
}

.toc-item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #e6edf3;
  line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  .ui-overlay {
    padding: 12px;
  }
  .brand-capsule {
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }
  .brand-seal {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.8px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .btn-hud {
    padding: 8px 10px;
    font-size: 12px;
  }
  .top-actions .btn-hud span {
    display: none;
  }
  .status-toast {
    top: 60px;
    font-size: 11.5px;
    padding: 7px 16px;
    max-width: calc(100vw - 24px);
    width: auto;
    border-radius: 16px;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    line-height: 1.4;
  }
  .bottom-island-container {
    gap: 8px;
    margin-bottom: 4px;
  }
  .breathe-indicator {
    padding: 6px 14px;
    font-size: 11px;
  }
  .bottom-toolbar {
    max-width: 98vw;
    gap: 6px;
    padding: 6px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .btn-action-gold {
    padding: 10px 14px;
    font-size: 12px;
    gap: 6px;
  }
  .btn-toolbar-item {
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .reading-drawer-backdrop {
    z-index: 998 !important;
  }
  .reading-drawer {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 94vh !important;
    height: calc(100dvh - 28px) !important;
    border-left: none !important;
    border-top: 1.5px solid var(--border-gold-bright) !important;
    border-radius: 24px 24px 0 0 !important;
    z-index: 999 !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.25) !important;
    transform: translate3d(0, 105%, 0) !important;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    visibility: hidden;
    pointer-events: none;
  }
  .reading-drawer.is-dragging {
    transition: none !important;
  }
  .reading-drawer.full-expanded {
    height: 98vh !important;
    height: calc(100dvh - 8px) !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .reading-drawer.open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .drawer-drag-handle {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0 4px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    flex-shrink: 0;
  }
  .drawer-drag-handle:active {
    cursor: grabbing;
  }
  .drawer-pull-indicator {
    display: block !important;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.55);
    margin: 0 auto;
    flex-shrink: 0;
    transition: width 0.25s ease, background 0.25s ease;
  }
  .drawer-drag-handle:hover .drawer-pull-indicator,
  .drawer-drag-handle:active .drawer-pull-indicator {
    width: 66px;
    background: var(--text-gold-bright);
  }
  .drawer-header {
    padding: 12px 20px 12px;
    flex-shrink: 0;
  }
  .drawer-body {
    padding: 20px 20px 40px !important;
    gap: 16px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  .drawer-title {
    font-size: 24px;
  }
  .drawer-quote-card {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-left: 4.5px solid var(--text-gold);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
  .drawer-quote-text {
    font-family: var(--font-serif) !important;
    font-size: 19.5px !important;
    font-style: italic;
    font-weight: 500 !important;
    line-height: 1.65 !important;
    color: var(--text-gold-bright) !important;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  }
  .drawer-content-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: #d1d9e0;
  }
  .reading-drawer,
  .drawer-body {
    touch-action: pan-y pinch-zoom !important;
    user-select: text !important;
    -webkit-user-select: text !important;
  }
  .drawer-footer {
    padding: 14px 20px;
    flex-shrink: 0;
  }
  .modal-card {
    border-radius: 20px;
    max-height: 88vh;
  }
  .modal-header {
    padding: 16px 20px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-body {
    padding: 16px 20px;
  }
  .toc-chapter-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Accessible Semantic SEO Content (Crawlers & Screen Readers)
   ========================================================================== */
.seo-semantic-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  border: 0;
}
