.container {
  padding: 3.5rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr) minmax(200px, 1fr);
  gap: 2.75rem;
  position: relative;
}

.sidebarToggle {
  display: none;
  position: fixed;
  top: 5.5rem;
  left: 1rem;
  z-index: 101;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebarToggle:hover {
  background: rgba(0, 0, 0, 0.9);
}

.sidebarOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 101;
  backdrop-filter: blur(2px);
}

.sidebar {
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  font-size: 0.85rem;
  transition: transform 0.3s ease-in-out;
}

.sidebarHeader {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebarClose {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.sidebarClose:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebarLabel {
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--foreground-muted);
  letter-spacing: 0.08em;
}

.sidebarNav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebarGroupTitle {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--foreground);
}

.sidebarGroupItems {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebarLink {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.sidebarLink:hover {
  color: var(--foreground);
}

.sidebarLinkActive {
  color: var(--foreground);
  font-weight: 600;
}

.content {
  min-width: 0;
  max-width: 760px;
}

.contentBody {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.contentHeaderRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.header {
  flex: 1;
}

.headerCategory {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground-muted);
  margin-bottom: 0.25rem;
}

.headerTitle {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}


.content :global(h1),
.content :global(h2),
.content :global(h3),
.content :global(h4),
.content :global(h5),
.content :global(h6) {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--foreground);
  scroll-margin-top: 5rem;
}

.content :global(h1) {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.content :global(h2) {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content :global(h3) {
  font-size: 1.35rem;
  line-height: 1.4;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content :global(h4) {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.content :global(h5) {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.content :global(h6) {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content :global(p) {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--foreground);
  margin-bottom: 0.9rem;
}

.content :global(ul) {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.content :global(li) {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--foreground);
}

.content :global(code),
.content :global(pre) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.85rem;
  color: var(--foreground);
}

.content :global(code:not(pre code)) {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
}

.content :global(pre) {
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: auto;
}

/* Table styling */
.content :global(table) {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  display: table !important;
  table-layout: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0a0a0a;
}

/* Table inside wrapper should not have margin */
.content :global(.table-wrapper > table),
.content :global(div:has(> table) > table) {
  margin: 0;
  min-width: 100%;
}

.content :global(thead) {
  background: rgba(255, 255, 255, 0.05);
}

.content :global(thead tr) {
  border-bottom: 2px solid var(--border);
}

.content :global(th) {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--foreground);
  border-right: 1px solid var(--border);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.content :global(th:first-child) {
  min-width: 180px;
  white-space: normal;
}

.content :global(th:last-child) {
  border-right: none;
}

.content :global(tbody) {
  background: transparent;
}

.content :global(td) {
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  word-wrap: break-word;
}

.content :global(td:last-child) {
  border-right: none;
}

.content :global(tbody tr:last-child td) {
  border-bottom: none;
}

.content :global(tr:hover) {
  background: rgba(255, 255, 255, 0.02);
}

.content :global(tbody tr:nth-child(even)) {
  background: rgba(255, 255, 255, 0.01);
}

/* Table wrapper for horizontal scroll on mobile */
.content :global(.table-wrapper),
.content :global(div:has(> table)) {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Ensure table wrapper doesn't overflow on mobile */
.content :global(div:has(> table)) {
  min-width: 0;
}

/* Custom scrollbar styling for webkit browsers */
.content :global(.table-wrapper::-webkit-scrollbar),
.content :global(div:has(> table)::-webkit-scrollbar) {
  height: 8px;
}

.content :global(.table-wrapper::-webkit-scrollbar-track),
.content :global(div:has(> table)::-webkit-scrollbar-track) {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.content :global(.table-wrapper::-webkit-scrollbar-thumb),
.content :global(div:has(> table)::-webkit-scrollbar-thumb) {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.content :global(.table-wrapper::-webkit-scrollbar-thumb:hover),
.content :global(div:has(> table)::-webkit-scrollbar-thumb:hover) {
  background: rgba(255, 255, 255, 0.3);
}

/* Visual indicators for scrollable content - gradient shadows */
.content :global(.table-wrapper::before),
.content :global(div:has(> table)::before) {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.content :global(.table-wrapper::after),
.content :global(div:has(> table)::after) {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show gradient when scrollable */
.content :global(.table-wrapper.scrollable-left::before),
.content :global(div:has(> table).scrollable-left::before) {
  opacity: 1;
}

.content :global(.table-wrapper.scrollable-right::after),
.content :global(div:has(> table).scrollable-right::after) {
  opacity: 1;
}

/* Tablet responsive styles */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
    gap: 2rem;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebarToggle {
    display: block;
  }

  .sidebarOverlay {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 85vw;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 102;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    border-right: 1px solid var(--border);
  }

  .sidebarOpen {
    transform: translateX(0);
  }

  .sidebarHeader {
    display: flex;
  }

  .sidebarClose {
    display: block;
  }

  .content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .contentHeaderRow {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .header {
    width: 100%;
  }

  .headerTitle {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .content :global(h1) {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
  }

  .content :global(h2) {
    font-size: 1.375rem;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .content :global(h3) {
    font-size: 1.125rem;
    line-height: 1.35;
    margin-top: 1.5rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
  }

  .content :global(h4) {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .content :global(h5) {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .content :global(h6) {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .content :global(p) {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 0.875rem;
  }

  .content :global(ul),
  .content :global(ol) {
    margin-bottom: 0.875rem;
  }

  .content :global(li) {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 0.25rem;
  }

  /* Scroll margin for mobile */
  .content :global(h1),
  .content :global(h2),
  .content :global(h3),
  .content :global(h4),
  .content :global(h5),
  .content :global(h6) {
    scroll-margin-top: 4rem;
  }

  .content :global(p) {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  /* Responsive table */
  .content :global(table) {
    min-width: 600px;
    font-size: 0.85rem;
  }

  .content :global(th),
  .content :global(td) {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .content :global(th:first-child) {
    min-width: 120px;
  }

  /* Table wrapper responsive - prevent overflow */
  .content :global(.table-wrapper),
  .content :global(div:has(> table)) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
  }

  /* Ensure table doesn't break out of wrapper */
  .content :global(div:has(> table) > table),
  .content :global(.table-wrapper > table) {
    margin-left: 0;
    margin-right: 0;
  }

  /* Enhanced scrollbar on mobile */
  .content :global(.table-wrapper::-webkit-scrollbar),
  .content :global(div:has(> table)::-webkit-scrollbar) {
    height: 6px;
  }

  .content :global(.table-wrapper::-webkit-scrollbar-thumb),
  .content :global(div:has(> table)::-webkit-scrollbar-thumb) {
    background: rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }

  .sidebarToggle {
    top: 5rem;
    left: 0.75rem;
    padding: 0.5rem;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .headerTitle {
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }

  .content :global(h1) {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.875rem;
    font-weight: 700;
  }

  .content :global(h2) {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-top: 1.5rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
  }

  .content :global(h3) {
    font-size: 1.0625rem;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .content :global(h4) {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .content :global(h5) {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .content :global(h6) {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Scroll margin for small mobile */
  .content :global(h1),
  .content :global(h2),
  .content :global(h3),
  .content :global(h4),
  .content :global(h5),
  .content :global(h6) {
    scroll-margin-top: 3.5rem;
  }

  .content :global(p) {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 0.875rem;
  }

  .content :global(ul),
  .content :global(ol) {
    margin-bottom: 0.875rem;
  }

  .content :global(li) {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .content :global(code),
  .content :global(pre) {
    font-size: 0.8125rem;
  }

  /* Table wrapper responsive - prevent overflow on small mobile */
  .content :global(.table-wrapper),
  .content :global(div:has(> table)) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
  .container {
    padding: 0.5rem;
  }

  .content :global(h1) {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
  }

  .content :global(h2) {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .content :global(h3) {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .content :global(h4) {
    font-size: 0.9375rem;
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .content :global(h5) {
    font-size: 0.875rem;
    margin-top: 0.75rem;
  }

  .content :global(h6) {
    font-size: 0.8125rem;
    margin-top: 0.75rem;
  }

  .headerTitle {
    font-size: 1rem;
  }

  /* Table wrapper responsive - prevent overflow on extra small mobile */
  .content :global(.table-wrapper),
  .content :global(div:has(> table)) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

