/* BMF Pipeline Guide - Modern Minimal Theme
   Urban Institute Brand Colors */

:root {
  /* Urban Institute Primary Blue */
  --ui-blue: #1696d2;
  --ui-blue-dark: #0a4c6a;
  --ui-blue-light: #73bfe2;
  --ui-blue-shade: #cfe8f3;

  /* Accent Colors */
  --ui-yellow: #fdbf11;
  --ui-yellow-light: #fdd870;
  --ui-magenta: #ec008b;
  --ui-green: #55b748;
  --ui-red: #db2b27;

  /* Neutrals */
  --ui-gray-dark: #353535;
  --ui-gray: #696969;
  --ui-gray-light: #d2d2d2;
  --ui-gray-lighter: #f5f5f5;

  /* Text (aliases) */
  --text-primary: #353535;
  --text-secondary: #696969;
  --code-bg: #f6f8fa;
  --border-color: #e1e4e8;
  --sidebar-bg: #1696d2;
  --sidebar-active: #ffffff;
}

/* Base Typography - System Font Stack */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: var(--text-primary);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: 1rem;
}

li p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Headings */
h1, h1.title, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ui-blue);
  font-weight: 600;
}

h1, h1.title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.header-section-number {
  color: var(--ui-blue);
}

/* Sidebar Navigation */
.sidebar-title {
  color: #fff;
}

.sidebar-item .chapter-number {
  color: rgba(255, 255, 255, 0.85);
}

/* Sidebar active states - white for contrast on blue background */
div.sidebar-item-container .active,
div.sidebar-item-container .show > .nav-link,
div.sidebar-item-container .sidebar-link > code {
  color: var(--sidebar-active) !important;
  font-weight: 600;
}

.sidebar nav[role=doc-toc] ul > li > a.active,
.sidebar nav[role=doc-toc] ul > li > ul > li > a.active {
  border-left: 2px solid var(--sidebar-active);
  color: var(--ui-blue) !important;
  font-weight: 600;
}

.sidebar-item-text {
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-item-text:hover {
  color: #fff;
}

/* Code Blocks - GitHub-style with blue accent */
div.sourceCode {
  background-color: var(--code-bg);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--ui-blue);
  border-radius: 6px;
}

pre {
  margin-bottom: 1.5rem;
  line-height: 1.45;
  padding: 1rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  line-height: 1.45;
}

/* Inline code */
p code, li code {
  background-color: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Tables */
.table {
  font-size: 0.9rem;
}

.table td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.table th {
  padding: 0.5rem 0.75rem;
  background-color: var(--ui-blue-shade);
  border-bottom: 2px solid var(--ui-blue);
  font-weight: 600;
  color: var(--text-primary);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Footnotes */
section#footnotes ol li,
section#footnotes ol li p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--ui-blue);
  text-decoration: none;
}

a:hover {
  color: var(--ui-blue-light);
  text-decoration: underline;
}

/* Callout boxes - color-coded by type */
.callout {
  border-radius: 6px;
  border-left-width: 4px;
}

.callout-note {
  border-left-color: var(--ui-blue);
}

.callout-note .callout-icon::before {
  color: var(--ui-blue);
}

.callout-warning {
  border-left-color: var(--ui-yellow);
}

.callout-warning .callout-icon::before {
  color: var(--ui-yellow);
}

.callout-tip {
  border-left-color: var(--ui-green);
}

.callout-tip .callout-icon::before {
  color: var(--ui-green);
}

.callout-caution {
  border-left-color: var(--ui-red);
}

.callout-caution .callout-icon::before {
  color: var(--ui-red);
}

.callout-important {
  border-left-color: var(--ui-magenta);
}

.callout-important .callout-icon::before {
  color: var(--ui-magenta);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--ui-blue-light);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--text-secondary);
}

/* Mermaid diagrams */
.mermaid {
  margin: 1.5rem 0;
}
