/* CM-style overrides for embedded docs */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

main p, main li, main td {
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
}

nav#toc {
  background: linear-gradient(180deg, #E8F1FE 0%, #F5F9FF 100%) !important;
  border-right: 1px solid #DBEAFE !important;
  padding: 1.25rem 1rem !important;
}

nav#toc h2 {
  color: #623CEA !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 0.875rem !important;
}

nav#toc a {
  font-size: 0.8125rem !important;
  color: #334155 !important;
}

nav#toc a:hover,
nav#toc a.active {
  background: #ECE7FD !important;
  color: #623CEA !important;
  font-weight: 500;
}

main {
  padding: 1.5rem 2.5rem 3rem !important;
}

main h1 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: #0A1C31 !important;
}

main h2 {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  color: #0A1C31 !important;
  margin-top: 1.75rem !important;
  padding-top: 0;
  border-top: none;
}

main h3 {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #0A1C31 !important;
}

/* Theme toggle button — re-style */
.theme-toggle {
  background: white !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 0.375rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  padding: 0.375rem 0.625rem !important;
}
.theme-toggle:hover {
  border-color: #623CEA !important;
}

/* Code blocks */
pre, code {
  font-family: ui-monospace, SFMono-Regular, monospace !important;
}
pre {
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}
code {
  font-size: 0.8em !important;
}

/* Callouts soften */
.callout {
  border-radius: 0.5rem !important;
  padding: 0.875rem 1rem !important;
  margin: 1rem 0 !important;
}

/* Tables */
table {
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  font-size: 0.8125rem !important;
}
th {
  background: #F9F9F9 !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #6B7280 !important;
  font-weight: 500 !important;
}
