/* HostingRDM.com — Buku Manual Lengkap Menu RDM v4
 * Theme: Clean Light Default (#F7FBFF / #FFFFFF / #012455 / #0180F1) + Dark Mode
 * Typography: Plus Jakarta Sans (zero monospace), body >= 16px, line-height >= 1.65
 * Layout: Structured Left Sidebar + Clean Reading Canvas + Print-Ready PDF
 */

:root {
  --navy-deep: #012455;
  --navy-dark: #001B3D;
  --blue-accent: #0180F1;
  --blue-accent-hover: #006AD1;
  --blue-soft: #EBF5FF;
  --bg-page: #F7FBFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F0F5FA;
  --border: #DCE6F2;
  --border-strong: #C2D4E8;
  --text-primary: #0B1F3A;
  --text-secondary: #3E536E;
  --text-muted: #5A6F89;
  --tip-bg: #ECFDF5;
  --tip-border: #A7F3D0;
  --tip-text: #065F46;
  --warn-bg: #FFFBEB;
  --warn-border: #FDE68A;
  --warn-text: #92400E;
  --wa-green: #16A34A;
  --wa-green-hover: #15803D;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 10px rgba(1, 36, 85, 0.05);
  --shadow-float: 0 14px 36px rgba(1, 36, 85, 0.18);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --header-h: 66px;
  --sidebar-w: 310px;
}

[data-theme="dark"] {
  --navy-deep: #E2EEFF;
  --navy-dark: #0A1525;
  --blue-accent: #3898FF;
  --blue-accent-hover: #60AEFF;
  --blue-soft: rgba(56, 152, 255, 0.14);
  --bg-page: #0B1320;
  --bg-surface: #111C2E;
  --bg-subtle: #18263C;
  --border: #24354F;
  --border-strong: #32496B;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --tip-bg: rgba(16, 185, 129, 0.12);
  --tip-border: rgba(52, 211, 153, 0.35);
  --tip-text: #A7F3D0;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(251, 191, 36, 0.35);
  --warn-text: #FDE68A;
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.32);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  line-height: 1.7;
  overflow-x: clip;
}

button, input {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #012455;
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

/* ==================== TOP HEADER ==================== */
.manual-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.header-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

.header-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

.header-doc-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-accent);
  white-space: nowrap;
}

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

.icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--blue-accent-hover);
}

.btn-secondary {
  background: var(--blue-soft);
  color: var(--blue-accent);
  border-color: transparent;
}

.btn-secondary:hover {
  border-color: var(--blue-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.icon-btn.is-done {
  background: var(--tip-bg);
  color: var(--tip-text);
  border-color: var(--tip-border);
}

/* ==================== DOCS SHELL (SIDEBAR + MAIN) ==================== */
.docs-shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 20px 16px 28px 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-surface);
}

.sidebar-mobile-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-mobile-head strong {
  font-size: 0.95rem;
}

.sidebar-search-box {
  margin-bottom: 14px;
}

.field-hint {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-input:focus {
  outline: 2px solid var(--blue-accent);
  outline-offset: 1px;
  border-color: var(--blue-accent);
}

.search-clear {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  border-radius: 6px;
}

.search-clear:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* Reading Progress Card */
.progress-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--blue-accent);
  transition: width 0.25s ease;
}

.progress-reset {
  margin-top: 8px;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-accent);
  cursor: pointer;
}

.progress-reset:hover {
  text-decoration: underline;
}

/* Sidebar TOC */
.toc-group {
  margin-bottom: 18px;
}

.toc-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 8px 6px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toc-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.toc-link.active {
  background: var(--blue-soft);
  color: var(--blue-accent);
  font-weight: 700;
  border-left-color: var(--blue-accent);
}

.toc-check {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--tip-text);
  opacity: 0;
}

.toc-link.is-done .toc-check {
  opacity: 1;
}

.toc-empty {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 12px 8px;
}

/* ==================== MAIN CONTENT ==================== */
.docs-main {
  padding: 28px 36px 88px;
  min-width: 0;
}

.docs-container {
  max-width: 840px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.manual-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue-accent);
}

.meta-pill-neutral {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.manual-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.manual-hero p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.role-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-pill-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.role-pill-btn:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}

.role-pill-btn.active {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  color: #FFFFFF;
}

/* ==================== SECTION & CHAPTER CARDS ==================== */
.manual-section {
  margin-top: 36px;
}

.section-banner {
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.badge-neutral { background: var(--bg-subtle); color: var(--text-secondary); }
.badge-proktor { background: #E0E7FF; color: #3730A3; }
.badge-guru { background: #DCFCE7; color: #166534; }
.badge-walikelas { background: #FEF3C7; color: #92400E; }
.badge-ra { background: #FCE7F3; color: #9D174D; }
.badge-support { background: #E0F2FE; color: #075985; }

[data-theme="dark"] .badge-proktor { background: rgba(99, 102, 241, 0.22); color: #C7D2FE; }
[data-theme="dark"] .badge-guru { background: rgba(34, 197, 94, 0.2); color: #BBF7D0; }
[data-theme="dark"] .badge-walikelas { background: rgba(245, 158, 11, 0.22); color: #FDE68A; }
[data-theme="dark"] .badge-ra { background: rgba(236, 72, 153, 0.22); color: #FBCFE8; }
[data-theme="dark"] .badge-support { background: rgba(56, 189, 248, 0.22); color: #BAE6FD; }

.section-banner h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--navy-deep);
}

.section-banner p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.chapter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.chapter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.chapter-path {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-accent);
  background: var(--blue-soft);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.chapter-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.chapter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chapter-summary {
  margin: 0 0 16px;
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Chapter Screenshot Figure & Lightbox */
.chapter-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.chapter-gallery .chapter-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.chapter-gallery .chapter-figcaption {
  margin-top: auto;
}

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

.chapter-figure {
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
}

.chapter-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  text-align: left;
}

.chapter-shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 700;
  object-fit: cover;
}

.chapter-shot-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.chapter-figcaption {
  padding: 9px 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 14, 28, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal[hidden] {
  display: none;
}

.lightbox-inner {
  width: min(1160px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #FFFFFF;
}

.lightbox-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.lightbox-img-wrap {
  background: #0F172A;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-img-wrap img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
}

.lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.step-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-list li {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-primary);
  padding-left: 4px;
}

.step-list li.step-with-shot {
  margin-bottom: 6px;
}

.step-text {
  margin-bottom: 10px;
}

.step-figure {
  margin: 0 0 8px;
  max-width: 740px;
}

.step-figure .chapter-shot-img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #F8FAFC;
}

.callout {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.callout ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callout-tip {
  background: var(--tip-bg);
  border-color: var(--tip-border);
  color: var(--tip-text);
}

.callout-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

/* Bottom CTA Card */
.manual-footer-cta {
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.manual-footer-cta h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.manual-footer-cta p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==================== FLOATING CS CHAT ==================== */
.cs-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: var(--blue-accent);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  cursor: pointer;
}

.cs-fab:hover {
  background: var(--blue-accent-hover);
}

.cs-panel {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 65;
  width: min(390px, calc(100vw - 24px));
  max-height: min(560px, calc(100dvh - 104px));
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cs-panel[hidden] {
  display: none;
}

.cs-head {
  padding: 14px 16px;
  background: #012455;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-head h2 {
  margin: 0;
  font-size: 1rem;
}

.cs-head p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  opacity: 0.85;
}

.cs-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 1.35rem;
  cursor: pointer;
}

.cs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-page);
}

.cs-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.cs-msg-bot {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.cs-msg-user {
  align-self: flex-end;
  background: var(--blue-accent);
  color: #FFFFFF;
}

.cs-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.cs-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.cs-send {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--blue-accent);
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  background: #0B1F3A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(1, 27, 61, 0.45);
}

.sidebar-backdrop.open {
  display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .header-divider,
  .header-doc-badge {
    display: none;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    z-index: 55;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-float);
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-mobile-head {
    display: flex;
  }

  .docs-main {
    padding: 20px 16px 88px;
  }

  .manual-hero {
    padding: 20px 18px;
  }

  .chapter-card {
    padding: 18px 18px;
  }

  .btn-label-hide-sm {
    display: none;
  }
}

/* ==================== PRINT / PDF STYLESHEET ==================== */
@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.55;
  }

  .manual-header,
  .docs-sidebar,
  .sidebar-backdrop,
  .role-filter-bar,
  .chapter-actions,
  .manual-footer-cta,
  .cs-fab,
  .cs-panel,
  .toast,
  .breadcrumb,
  .chapter-shot-zoom,
  .lightbox-modal {
    display: none !important;
  }

  .docs-shell {
    display: block !important;
  }

  .docs-main {
    padding: 0 !important;
  }

  .docs-container {
    max-width: 100% !important;
  }

  .manual-hero,
  .chapter-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    break-inside: avoid;
    page-break-inside: avoid;
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .manual-section {
    display: block !important;
  }

  .chapter-card[hidden],
  .manual-section[hidden] {
    display: block !important;
  }
}
