/* ============================================================
   PNWC IT Manual — "Signal Dark" Jekyll Theme
   Pacific Northwest Computers
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:           #080c14;
  --bg-surface:   #0c1220;
  --bg-elevated:  #111827;
  --bg-hover:     #162030;
  --border:       #1e2d42;
  --border-light: #243447;

  --accent:       #00c2e0;
  --accent-dim:   rgba(0, 194, 224, 0.12);
  --accent-glow:  rgba(0, 194, 224, 0.3);
  --accent-2:     #f97316;
  --accent-2-dim: rgba(249, 115, 22, 0.1);

  --green:        #22c55e;
  --red:          #ef4444;
  --yellow:       #eab308;

  --text:         #cdd6e4;
  --text-muted:   #576880;
  --text-faint:   #3a4d62;
  --text-heading: #e8edf5;

  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', monospace;

  --header-h:   56px;
  --sidebar-w:  260px;
  --radius:     6px;
  --radius-lg:  10px;

  --shadow:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Subtle grid texture */
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s, opacity 0.15s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  /* Top accent bar */
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 0 1.25rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-heading);
  flex-shrink: 0;
  text-decoration: none;
}
.site-brand:hover { color: var(--accent); }
.brand-icon {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.brand-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}
.search-input::placeholder { color: var(--text-muted); }
.search-shortcut {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 300;
  max-height: 400px;
  overflow-y: auto;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-hover); }
.search-result-title { color: var(--text-heading); font-size: 0.875rem; }
.search-result-excerpt { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.2rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.header-link:hover { color: var(--text-heading); background: var(--bg-elevated); }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -5px; }
.hamburger::after  { top: 5px; }
.mobile-menu-toggle { display: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.layout-wrapper {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(10, 14, 26, 0.97);
  border-right: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 150;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.sidebar-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-right: 0.75rem;
  transition: color 0.15s, background 0.15s;
}
.sidebar-home:hover, .sidebar-home.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Nav sections */
.nav-section { margin-bottom: 0.25rem; }

.nav-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s;
  text-align: left;
}
.nav-section-toggle:hover { color: var(--text); }
.nav-section-chevron {
  margin-left: auto;
  transition: transform 0.2s;
  font-size: 0.6rem;
}
.nav-section.collapsed .nav-section-chevron { transform: rotate(-90deg); }

.nav-section-items {
  list-style: none;
  padding: 0.25rem 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav-section.collapsed .nav-section-items { max-height: 0; }

.nav-item {
  display: block;
  padding: 0.4rem 1.25rem 0.4rem 2.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  position: relative;
}
.nav-item::before {
  content: '–';
  position: absolute;
  left: 1.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
}
.nav-item:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}
.nav-item.active::before { color: var(--accent); content: '▸'; }

/* Sidebar footer */
.sidebar-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.contact-line {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0.2rem 0;
  transition: color 0.15s;
}
.contact-line:hover { color: var(--accent); }

/* Overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 140;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main-content > * {
  width: 100%;
  max-width: 1100px;
}

/* ============================================================
   TYPOGRAPHY — DOC BODY
   ============================================================ */
.doc-body h1,
.doc-body h2,
.doc-body h3,
.doc-body h4,
.doc-body h5,
.doc-body h6 {
  font-family: var(--font-mono);
  color: var(--text-heading);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.doc-body h1 { font-size: 1.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.doc-body h2 {
  font-size: 1.3rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.doc-body h2::before { content: '##'; opacity: 0.35; font-size: 0.9em; }
.doc-body h3 { font-size: 1.05rem; }
.doc-body h3::before { content: '###'; margin-right: 0.35rem; opacity: 0.3; font-size: 0.85em; }

.doc-body p { margin-bottom: 1rem; }
.doc-body ul, .doc-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.doc-body li { margin-bottom: 0.35rem; }
.doc-body li::marker { color: var(--accent); }

/* Inline code */
.doc-body code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.45em;
  color: var(--accent);
}

/* Code blocks */
.doc-body pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  position: relative;
}
.doc-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.825rem;
  color: var(--text);
}

/* Blockquotes / notes */
.doc-body blockquote {
  border-left: 3px solid var(--accent-2);
  background: var(--accent-2-dim);
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}
.doc-body blockquote p { margin: 0; }

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}
.doc-body th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.doc-body tr:last-child td { border-bottom: none; }
.doc-body tr:hover td { background: var(--bg-hover); }

/* Callout boxes via custom class */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border: 1px solid;
}
.callout-warning { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.35); }
.callout-danger  { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.35); }
.callout-info    { background: var(--accent-dim); border-color: rgba(0,194,224,0.35); }
.callout-success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.35); }
.callout-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================================
   DOC ARTICLE
   ============================================================ */
.doc-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.doc-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.doc-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.doc-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0.5rem 0;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.5em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* TOC */
.toc-nav {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.825rem;
}
.toc-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#toc-list a {
  display: block;
  padding: 0.2rem 0;
  color: var(--text-muted);
}
#toc-list a:hover { color: var(--accent); }

/* Doc nav footer */
.doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.doc-nav-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.nav-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}
.nav-next { text-align: right; align-items: flex-end; }
.nav-arrow { font-size: 1.1rem; color: var(--accent); }
.nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-family: var(--font-mono); }
.nav-title { font-size: 0.875rem; color: var(--text-heading); font-weight: 500; }

.edit-on-github a {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.edit-on-github a:hover { color: var(--accent); }

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(0,194,224,0.35);
  background: var(--accent-dim);
  border-radius: 2rem;
  padding: 0.35em 1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.hero-title-main {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-title-sub {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #33d4ea;
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Quick links grid */
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.section-title-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.quick-links, .recent-updates { margin-bottom: 3rem; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.quick-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.quick-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.quick-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
  color: var(--text);
}
.quick-card:hover::before { opacity: 1; }
.quick-icon {
  font-size: 1.4rem;
  grid-row: 1 / 3;
}
.quick-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  grid-column: 2;
}
.quick-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  grid-column: 2;
}
.quick-arrow {
  color: var(--accent);
  grid-row: 1 / 3;
  font-size: 1rem;
}

/* Recent updates */
.updates-list { display: flex; flex-direction: column; gap: 0.5rem; }
.update-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
  color: var(--text);
}
.update-item:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}
.update-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.update-title { font-size: 0.875rem; }
.update-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.5em;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-left: var(--sidebar-w);
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  background: var(--bg-surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.footer-copy a { color: var(--text-faint); }

/* ============================================================
   SYNTAX HIGHLIGHTING (Rouge)
   ============================================================ */
.highlight { background: var(--bg-surface); }
.highlight .c  { color: #576880; font-style: italic } /* Comment */
.highlight .k  { color: #c792ea; font-weight: bold }  /* Keyword */
.highlight .s  { color: #c3e88d }                     /* String */
.highlight .n  { color: var(--text) }                  /* Name */
.highlight .nb { color: var(--accent) }                /* Name.Builtin */
.highlight .nf { color: #82aaff }                      /* Name.Function */
.highlight .mi { color: #f78c6c }                      /* Number */
.highlight .o  { color: #89ddff }                      /* Operator */
.highlight .p  { color: var(--text-muted) }            /* Punctuation */
.highlight .kn { color: #c792ea }                      /* Keyword.Namespace */
.highlight .bp { color: var(--accent) }
.highlight .nv { color: #eeffff }
.highlight .se { color: #f78c6c }
.highlight .sh { color: var(--text-muted) }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-content { padding: 2rem 2rem; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 280px; }

  .mobile-menu-toggle { display: flex; }
  .header-search .search-shortcut { display: none; }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem 1.25rem;
  }

  .site-footer { margin-left: 0; padding: 1.25rem; }

  .hero { padding: 2.5rem 1rem; }
  .doc-nav-links { flex-direction: column; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .header-search { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
}
