  :root {
    --bg: #151515;
    --text: #eaeaea;
    --muted: #a0a0a0;
    --border: #2a2a2a;
    --sidebar-bg: #1c1c1c;
    --link: #60a5fa;
  }

/* Base page */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Sidebar (ENHANCED) */
.sidebar {
  width: 300px;
  padding: 28px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Sidebar title */
.sidebar h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Sidebar links (BIGGER + BOLDER) */
.sidebar a {
  display: block;
  color: var(--text);
  text-decoration: none;
  margin: 12px 0;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

/* hover state */
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.08); /* light gray highlight */
  color: var(--text); /* no blue shift */
  text-decoration: none; /* guarantees no underline */
}

/* Main content */
.content {
  flex: 1;
  padding: 40px;
  max-width: 900px;
}

/* Headings */
/* Reset default heading styles */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* H1 - page title */
h1 {
  font-size: 34px;
  margin-bottom: 18px;
}

/* H2 - major sections */
h2 {
  font-size: 26px;
  margin-top: 28px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

/* H3 - subsections */
h3 {
  font-size: 23px;
  margin-top: 22px;
  margin-bottom: 10px;
}

/* H4 - fine detail (optional but useful for APIs) */
h4 {
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--muted);
}

/* CODE */
code:not(pre code) {
  background: #2e2e2e;   /* visible gray */
  color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

.highlight {
  background: #1f1f1f; /* solid dark gray */
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: hidden;
}

.highlight pre {
  margin: 0;
  padding: 12px;
  background: transparent;
  border: none;
  overflow: visible;
}

code {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

/* Keywords */
/* Keywords */
.highlight .k,
.highlight .kd,
.highlight .kr {
  color: #ff7b72;
}

/* Strings */
.highlight .s,
.highlight .s1,
.highlight .s2 {
  color: #a5d6ff;
}

/* Numbers */
.highlight .m,
.highlight .mi,
.highlight .mf {
  color: #79c0ff;
}

/* Functions */
.highlight .nf,
.highlight .nb {
  color: #d2a8ff;
}

/* Properties / keys */
.highlight .na,
.highlight .no,
.highlight .nx {
  color: #79c0ff;
}

/* Booleans */
.highlight .kc {
  color: #ffab70;
}

/* Comments */
.highlight .c,
.highlight .c1,
.highlight .cm {
  color: #8b949e;
  font-style: italic;
}

/* Operators + fallback */
.highlight .o,
.highlight .n {
  color: #f5f5f5;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px;
}

th {
  background: rgba(127,127,127,0.1);
}

/* GLOBAL LINKS (clean modern blue) */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #a6c1ff;
  text-decoration: underline;
}
