body {
  background-image: linear-gradient(to bottom, #051937, #04162d, #041322, #030e18, #04070a);
  color: #e7eaf0;
  font-family: 'Karla', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.docs-layout {
  display: flex;
  min-height: 100vh;
  margin-top: 64px; /* height of navbar */
}

/* Sidebar styles */
.sidebar {
  width: 270px;
  background-image: linear-gradient(to bottom, #051937, #04162d, #041322, #030e18, #04070a);
  border-right: 1.5px solid #222d3b;
  padding: 24px 0 24px 0;
  display: flex;
  flex-direction: column;
  color: #d1d7e3;
  min-height: 0;
}
.sidebar h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #00e6e6;
  margin: 0 0 1.2em 2.1em;
  letter-spacing: 1.2px;
}
.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5em;
  flex: 1;
}
.sidebar-nav li {
  margin: 6px 0;
  position: relative;
}
.sidebar-link {
  display: block;
  padding: 9px 1.2em 9px 0.9em;
  border-radius: 6px 18px 18px 6px;
  font-weight: 600;
  font-size: 1.04em;
  color: #d1d7e3;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  outline: none;
  width: 100%;
}
.sidebar-link.active,
.sidebar-link:hover {
  background: linear-gradient(90deg, #00e6e610 60%, #764ba210 100%);
  color: #00e6e6;
}
.parent-link {
  font-weight: 700;
  font-size: 1.07em;
  margin-bottom: 0.14em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dropdown-arrow {
  font-size: 0.89em;
  margin-left: 7px;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.has-dropdown > .sidebar-subnav {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(.4,0,.2,1);
}
.has-dropdown.open > .sidebar-subnav {
  display: block;
  max-height: 1000px; /* Enough to show everything */
  overflow: visible;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1);
}
.has-dropdown.open > .parent-link .dropdown-arrow {
  transform: rotate(-180deg);
}

.sidebar-subnav {
  display: block;
  padding-left: 1.3em;
  margin-top: 0.3em;
}
.sidebar-subnav .sidebar-link {
  font-size: 0.98em;
  background: none;
  color: #b9bed1;
  border-radius: 4px 12px 12px 4px;
  margin-bottom: 0.12em;
  transition: background 0.16s, color 0.18s;
}
.sidebar-subnav .sidebar-link.active,
.sidebar-subnav .sidebar-link:hover {
  color: #00e6e6;
  background: #182a3a;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: linear-gradient(to bottom, #051937, #04162d, #041322, #030e18, #04070a);
  padding: 36px 42px 48px 42px;
  overflow-y: auto;
  min-width: 0;
  min-height: 100vh;
}
.doc-section {
  width: 100%;
  max-width: 800px;
  min-width: 320px;
  background: transparent;
  margin: 0 auto;
}
.main-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2em;
  font-weight: 800;
  margin: 0 0 0.6em 0;
  color: #fff;
  letter-spacing: 0.5px;
}
.doc-section p, .doc-section ul, .doc-section ol {
  font-size: 1.12em;
  color: #e7eaf0;
  line-height: 1.7;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}
.features-list {
  margin-left: 0.5em;
  padding-left: 0.8em;
}
.features-list > li {
  margin-bottom: 1.3em;
  font-size: 1.08em;
}
.features-list ul {
  margin: 0.35em 0 0.6em 1.2em;
  font-size: 0.99em;
  color: #b5c8e3;
}
.features-list code {
  color: #00e6e6;
  background: #171d24;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 0.96em;
}
.code-format {
  font-family: 'Fira Mono', 'Menlo', 'Consolas', 'Courier', monospace;
  background: #181e26;
  padding: 5px 8px;
  border-radius: 4px;
  color: #b8faff;
  font-size: 1em;
}
.email-bold {
  font-weight: bold;
  color: #fff;
}
.info-link {
  color: #00e6e6;
  word-break: break-all;
  font-family: 'Karla', Arial, sans-serif;
  display: block;
  margin-bottom: 0.6em;
  font-size: 1.06em;
}
.doc-contact-input {
  font-family: 'Karla', Arial, sans-serif;
  background: #181e26;
  color: #eee;
  border: 1.2px solid #232b37;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1.09rem;
  outline: none;
  transition: border 0.2s;
  margin-bottom: 0.5em;
  width: 100%;
  box-sizing: border-box;
}
.doc-contact-input:focus {
  border-color: #00e6e6;
}
.nav-row {
  display: flex;
  gap: 1em;
  margin-top: 2.1em;
}
.nav-btn {
  flex: 1;
  background: none;
  border: 1.5px solid #00e6e6;
  color: #00e6e6;
  padding: 13px 0;
  font-size: 1.01em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.nav-btn:hover {
  background: #00e6e6;
  color: #191f2d;
}
.subsection {
  margin-bottom: 2.4em;
}
.subsection h2 {
  font-size: 1.23em;
  color: #00e6e6;
  margin-bottom: 0.7em;
  margin-top: 0.2em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Responsive tweaks */



/* ≤1200px: slightly narrower docs container */
@media (max-width: 1200px) {
  .doc-section {
    max-width: 98vw;
  }
}

/* ≤900px: reduce side-padding on content */
@media (max-width: 900px) {
  .main-content {
    padding: 18px 2vw 24px 2vw;
  }
  .doc-section {
    max-width: 99vw;
  }
}

/* ≤600px: FULL MOBILE LAYOUT */
@media (max-width: 600px) {

  /* ——— 1) FIXED TOP HEADER ——— */
  .main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: #041322;
    z-index: 1000;
  }
  .main-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 12px;
  }

  .burger span {
    margin: 0;
  }

  /* ——— 2) UNIFIED HAMBURGERS (main-nav & docs-nav) ——— */
  .main-header .burger,
  .docs-burger {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  .main-header .burger span,
  .docs-burger span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  /* morph into perfect X */
  .main-header .burger.open span:nth-child(1),
  .docs-burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .main-header .burger.open span:nth-child(2),
  .docs-burger.open span:nth-child(2) {
    opacity: 0;
  }
  .main-header .burger.open span:nth-child(3),
  .docs-burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ——— 3) SLIDING DOCS SIDEBAR ——— */
  #sidebar {
    position: fixed;
    top: 108px;    /* 64px header + 44px docs-burger */
    left: 0; bottom: 0;
    width: 80%; max-width: 300px;
    background: #041322;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 16px 0;
    display: block !important; /* override desktop flex row */
  }
  #sidebar.show {
    transform: translateX(0);
  }

  /* ——— 4) STACKED ACCORDION NAV ——— */
  #sidebar h2 {
    margin: 0 0 12px 16px !important;
    font-size: 1.2em !important;
    color: #00e6e6 !important;
  }
  #sidebar .sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #sidebar .sidebar-nav li {
    margin: 0;
  }
  /* top-level buttons */
  #sidebar > .sidebar-nav > li > .sidebar-link,
  #sidebar .parent-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1em;
    color: #fff;
    cursor: pointer;
  }
  /* hide all sublists by default */
  #sidebar .sidebar-subnav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  /* reveal only when parent has .open */
  #sidebar .has-dropdown.open > .sidebar-subnav {
    display: block;
  }
  /* sub-links indent & style */
  #sidebar .sidebar-subnav .sidebar-link {
    display: block;
    width: 100%;
    padding: 10px 32px;
    font-size: .95em;
    font-weight: 400;
    color: #b9bed1;
  }
  #sidebar .sidebar-subnav .sidebar-link:hover,
  #sidebar .sidebar-subnav .sidebar-link.active {
    color: #00e6e6;
  }

  /* ——— 5) PUSH CONTENT BELOW NAVS ——— */
  .main-content {
    margin-top: 108px;
    padding: 12px;
  }
}


