/* Custom CSS for the didgpu Quarto book. */

/* Brand color: deep slate, matching academic dark blue */
:root {
  --didgpu-primary: #2c3e50;
  --didgpu-accent:  #c0392b;
  --didgpu-success: #1e8449;
}

/* Tighter line-height on body text */
.content {
  line-height: 1.6;
}

/* Make code blocks pop a little more */
pre code {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Inline code: slightly off-white background, brand color text */
:not(pre) > code {
  color: var(--didgpu-primary);
  background-color: #f4f6f8;
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.92em;
}

/* Callouts: a touch tighter */
.callout {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Table polish */
table {
  font-size: 0.95rem;
}

table thead th {
  background-color: #f4f6f8;
  border-bottom: 2px solid var(--didgpu-primary);
}

/* Brand-color the H1 underline */
h1 {
  border-bottom: 3px solid var(--didgpu-primary);
  padding-bottom: 0.3rem;
}

/* Sidebar: tighter spacing */
.sidebar nav ul li {
  margin-bottom: 0.15rem;
}

/* Make the "Part" headers more obvious */
.sidebar nav > ul > li > .sidebar-section-header {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--didgpu-primary);
  margin-top: 1.2rem;
}
