
/* Minimal modern, readable defaults */
body { 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
  line-height: 1.6; 
  margin: 0;
  padding: 0;
}
h1,h2,h3 { line-height: 1.2; }
pre { overflow: auto; padding: 0.8rem; background: #f5f5f5; border-radius: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
td, th { border: 1px solid #ddd; padding: 6px 8px; }
a { text-decoration: none; color: #0066cc; }
a:hover { text-decoration: underline; }
ul,ol { padding-left: 1.3rem; }
header nav a { margin-right: .75rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
hr { border: 0; border-top: 1px solid #e5e5e5; margin: 1.5rem 0; }

/* Layout with sidebar */
.site-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
  width: 250px;
  background-color: #f8f9fa;
  border-right: 1px solid #e5e5e5;
  padding: 1rem;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
}

.sidebar h3 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar h3:first-child {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.sidebar li {
  margin: 0.25rem 0;
}

.sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.sidebar a:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

.sidebar a.current {
  background-color: #0066cc;
  color: white;
}

/* Main content area */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 2rem 2rem 2rem 3rem;
  max-width: calc(100% - 250px);
}

/* Responsive design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}
