/* ═══════════════════════════════════════════
   CYBERAXE LIFE WIKI — BRANCH PAGE LAYOUT
   Sidebar + content positioning for wiki pages
   ═══════════════════════════════════════════ */

/* Branch page body override — fixed layout, no scroll on body */
body.branch-page {
  overflow: hidden;
  height: 100vh;
}

/* ─── CONTENT AREA ─── */
.content {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 44px 100px;
  scroll-behavior: smooth;
}

/* Content has TTS bar showing */
body.tts-active .content {
  bottom: 42px;
}

/* ─── BRANCH HEADER (inside content) ─── */
.branch-header {
  margin-bottom: 32px;
}
.branch-header-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.branch-header-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ─── VIEW MODE OVERRIDES — reset content positioning when non-Modern view is active ─── */
/* Applied via .view-active class added by JS when view actually renders, not just data-view attribute */
.content.view-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  overflow-y: auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .content {
    left: 0;
    padding: 20px 16px 80px;
  }
}
