/* ===== Doc Center Layout ===== */
.doc-layout {
  display: flex;
  min-height: calc(100vh - 70px);
  padding-top: 70px;
}

.doc-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--gray-200, #e5e7eb);
  padding: 32px 0;
  overflow-y: auto;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
}

.doc-content {
  flex: 1;
  padding: 40px 48px;
  max-width: 900px;
  background: #fff;
}

/* ===== Sidebar Title ===== */
.doc-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #0F1923);
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  margin-bottom: 8px;
}

/* ===== Sidebar Close Button (mobile) ===== */
.doc-sidebar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100, #f3f4f6);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-500, #6b7280);
  line-height: 32px;
  text-align: center;
  padding: 0;
}

/* ===== Sidebar Nav Groups ===== */
.doc-nav-group-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400, #9ca3af);
  padding: 16px 24px 8px;
  font-weight: 600;
}

.doc-nav-group-title .badge-new {
  display: inline-block;
  background: var(--orange, #FEA631);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  line-height: 16px;
}

.doc-nav-item {
  font-size: 14px;
  padding: 10px 24px 10px 28px;
  color: var(--gray-600, #4b5563);
  border-left: 3px solid transparent;
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.doc-nav-item:hover,
.doc-nav-item.active {
  color: var(--blue, #00B2FF);
  border-left-color: var(--blue, #00B2FF);
  background: rgba(0, 178, 255, 0.04);
}

.doc-nav-item.active {
  font-weight: 600;
}

/* ===== Mobile Toggle Button ===== */
.doc-mobile-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--gray-100, #f3f4f6);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy, #0F1923);
  cursor: pointer;
  margin-bottom: 20px;
}

/* ===== Breadcrumb ===== */
.doc-breadcrumb {
  font-size: 13px;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 24px;
}

.doc-breadcrumb a {
  color: var(--gray-400, #9ca3af);
  text-decoration: none;
  transition: color 0.2s;
}

.doc-breadcrumb a:hover {
  color: var(--blue, #00B2FF);
}

.doc-breadcrumb .sep {
  margin: 0 8px;
}

/* ===== Content Typography (Reading-Optimized) ===== */
.doc-article h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--navy, #0F1923);
  background: linear-gradient(135deg, var(--navy, #0F1923), var(--blue, #00B2FF));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

.doc-article h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
  color: var(--navy, #0F1923);
}

.doc-article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--navy, #0F1923);
}

.doc-article p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600, #4b5563);
  margin-bottom: 16px;
}

.doc-article ul,
.doc-article ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.doc-article li {
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600, #4b5563);
}

.doc-article strong {
  color: var(--navy, #0F1923);
  font-weight: 600;
}

.doc-article a {
  color: var(--blue, #00B2FF);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.doc-article a:hover {
  opacity: 0.8;
}

.doc-article code {
  background: var(--gray-100, #f3f4f6);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.doc-article hr {
  border: none;
  height: 1px;
  background: var(--gray-200, #e5e7eb);
  margin: 32px 0;
}

.doc-article blockquote {
  border-left: 3px solid var(--blue, #00B2FF);
  padding-left: 16px;
  color: var(--gray-500, #6b7280);
  font-style: italic;
  margin: 16px 0;
}

/* ===== Feedback Section ===== */
.doc-feedback {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  text-align: center;
}

.doc-feedback > p {
  font-size: 15px;
  color: var(--gray-500, #6b7280);
  margin-bottom: 16px;
}

.doc-feedback-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.doc-fb-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid var(--gray-200, #e5e7eb);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-600, #4b5563);
}

.doc-fb-btn:hover {
  border-color: var(--blue, #00B2FF);
  color: var(--blue, #00B2FF);
}

.doc-fb-btn.yes.voted {
  background: var(--blue, #00B2FF);
  color: #fff;
  border-color: var(--blue, #00B2FF);
}

.doc-fb-btn.no.voted {
  background: var(--gray-500, #6b7280);
  color: #fff;
  border-color: var(--gray-500, #6b7280);
}

.doc-contact-link {
  font-size: 14px;
  color: var(--blue, #00B2FF);
  margin-top: 16px;
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.doc-contact-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== News List Items (Future Use) ===== */
.doc-news-list {
  padding: 0 48px;
}

.doc-news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

.doc-news-date {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  font-family: 'DM Sans', sans-serif;
}

.doc-news-title {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0;
}

.doc-news-title a {
  color: var(--navy, #0F1923);
  text-decoration: none;
  transition: color 0.2s;
}

.doc-news-title a:hover {
  color: var(--blue, #00B2FF);
}

.doc-news-desc {
  font-size: 14px;
  color: var(--gray-500, #6b7280);
  line-height: 1.6;
  margin: 0;
}

/* ===== Mobile Responsive (max-width: 768px) ===== */
@media (max-width: 768px) {
  .doc-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1100;
    width: 260px;
    transition: left 0.3s ease;
    padding-top: 48px;
  }

  .doc-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .doc-sidebar.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    width: calc(100vw - 260px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
  }

  .doc-sidebar-close {
    display: block;
  }

  .doc-mobile-toggle {
    display: flex;
  }

  .doc-content {
    padding: 24px 16px;
    max-width: 100%;
  }

  .doc-article h1 {
    font-size: 24px;
  }

  .doc-article h2 {
    font-size: 20px;
    margin-top: 32px;
  }

  .doc-article h3 {
    font-size: 16px;
    margin-top: 24px;
  }

  .doc-article p {
    font-size: 15px;
  }

  .doc-news-list {
    padding: 0 16px;
  }
}
