/* ===== Variables (same as main site) ===== */
:root {
  --navy: #1B3A4B;
  --teal: #2B8C8C;
  --turquoise: #4ECDC4;
  --mint: #E0F7F4;
  --white: #FFFFFF;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(27, 58, 75, 0.08);
  --transition: 0.25s ease;
  --sidebar-w: 280px;
  --nav-h: 60px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  line-height: 1.7;
  background: var(--white);
}
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--turquoise); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Top Nav ===== */
.docs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  color: var(--white);
}
.docs-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.docs-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}
.docs-nav__brand:hover { color: var(--turquoise); }
.docs-nav__logo { border-radius: 50%; }
.docs-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.docs-nav__lang {
  padding: 4px 14px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white) !important;
  transition: all var(--transition);
}
.docs-nav__lang:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}
.docs-nav__app {
  padding: 4px 14px;
  border: 1.5px solid var(--turquoise);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--turquoise) !important;
  transition: all var(--transition);
}
.docs-nav__app:hover {
  background: var(--turquoise);
  color: var(--navy) !important;
}
.docs-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.docs-nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== Layout ===== */
.docs-layout {
  display: flex;
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
}

/* ===== Sidebar ===== */
.docs-sidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--gray-light);
  border-right: 1px solid #E5E7EB;
  overflow-y: auto;
  z-index: 50;
}
.docs-sidebar__inner {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.docs-sidebar__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--turquoise);
}
.docs-sidebar__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.docs-sidebar__item a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.docs-sidebar__item a:hover {
  background: var(--mint);
  color: var(--teal);
}
.docs-sidebar__item--active a {
  background: var(--teal);
  color: var(--white) !important;
  font-weight: 600;
}
.docs-sidebar__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

/* ===== Main Content ===== */
.docs-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 40px 48px 80px;
  max-width: 900px;
}
.docs-article h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mint);
}
.docs-article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E7EB;
}
.docs-article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 12px;
}
.docs-article p {
  margin-bottom: 16px;
  color: var(--navy);
  line-height: 1.8;
}
.docs-article ul, .docs-article ol {
  margin: 0 0 16px 24px;
  line-height: 1.8;
}
.docs-article li {
  margin-bottom: 8px;
}
.docs-article li ul, .docs-article li ol {
  margin-top: 8px;
  margin-bottom: 8px;
}
.docs-article img {
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 16px auto 24px;
  border: 1px solid #E5E7EB;
  display: block;
}
.docs-article strong {
  font-weight: 600;
  color: var(--navy);
}
.docs-article hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 32px 0;
}

/* Callout/tip box */
.docs-tip {
  background: var(--mint);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.docs-tip p { margin-bottom: 8px; }
.docs-tip p:last-child { margin-bottom: 0; }
.docs-tip img {
  max-width: 320px;
}

/* Warning box */
.docs-warning {
  background: #FFF7ED;
  border-left: 4px solid #F59E0B;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.docs-warning p { margin-bottom: 8px; }
.docs-warning p:last-child { margin-bottom: 0; }

/* QR codes section */
.docs-qr-section {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 32px 0;
  flex-wrap: wrap;
}
.docs-qr-item {
  text-align: center;
}
.docs-qr-item img {
  width: 160px;
  box-shadow: none;
  border: none;
  margin: 0 auto 8px;
}
.docs-qr-item strong {
  display: block;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .docs-nav__toggle { display: flex; }
  .docs-nav__app { display: none; }

  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .docs-sidebar--open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }

  .docs-content {
    margin-left: 0;
    padding: 24px 20px 60px;
  }
  .docs-article img {
    max-width: 100%;
  }
  .docs-article h1 {
    font-size: 1.5rem;
  }
}
