/* Turmeric API Docs -- auto-generated by tools/gendocs.py */

:root {
  --gold:       #E8A020;
  --orange:     #C4581A;
  --cream:      #F5E6C8;
  --faint:      #8A7560;
  --bg-dark:    #1A1208;
  --bg-card:    #261C10;
  --bg-code:    #0F0A05;
  --border:     #3D2A18;
  --highlight:  #4A3010;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Inter, sans-serif;
  background: var(--bg-dark);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.site-header nav { display: flex; gap: 1rem; font-size: 0.9rem; }
.site-header nav a { color: var(--faint); }
.site-header nav a:hover { color: var(--cream); }

/* Layout */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Sidebar */
.sidebar {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}
.sidebar h3:first-child { margin-top: 0; }
.sidebar ul { list-style: none; }
.sidebar li { margin: 0.2rem 0; }
.sidebar a { font-size: 0.875rem; color: var(--cream); font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.sidebar a:hover { color: var(--gold); }

/* Content */
.content {
  padding: 2rem 2.5rem;
}

/* Module heading */
.module-heading {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.module-heading h1 {
  font-size: 1.75rem;
  color: var(--gold);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.module-path {
  font-size: 0.85rem;
  color: var(--faint);
  margin-top: 0.25rem;
}

/* Definition cards */
.def-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: background 0.15s;
}
.def-card:hover { background: var(--highlight); }
.def-card:target { border-color: var(--gold); }

.def-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.def-card-header h2 {
  font-size: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--gold);
  font-weight: 600;
}

.kind-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 600;
  text-transform: lowercase;
}
.kind-defn      { background: #6B4A00; color: #F5C040; }
.kind-defmacro  { background: #5A2800; color: #F57A30; }
.kind-defstruct { background: #3A4A00; color: #B5C840; }
.kind-definstance { background: #003A3A; color: #50C8B8; }

.def-signature {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  white-space: pre;
}

.def-summary {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.def-section { margin-top: 0.75rem; }
.def-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.param-table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.param-table td { padding: 0.2rem 0.75rem 0.2rem 0; vertical-align: top; }
.param-table td:first-child {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--gold);
  white-space: nowrap;
  width: 1%;
}
.param-table td:nth-child(2) { color: var(--faint); white-space: nowrap; width: 1%; }

.def-returns { font-size: 0.875rem; }

.def-example {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre;
}

.def-since { font-size: 0.8rem; color: var(--faint); margin-top: 0.5rem; }

/* Internal section */
details.internal-section {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
details.internal-section summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--faint);
  user-select: none;
}
.internal-list { margin-top: 0.75rem; }
.internal-item {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--faint);
  padding: 0.2rem 0;
}
.internal-item-summary { color: var(--cream); margin-left: 0.5rem; font-family: inherit; }

/* Index page */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.index-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  transition: background 0.15s;
}
.index-card:hover { background: var(--highlight); }
.index-card h3 {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.index-card p { font-size: 0.85rem; color: var(--faint); }
.index-card .export-count { font-size: 0.75rem; color: var(--faint); margin-top: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .content { padding: 1.25rem 1rem; }
}
