/*-- scss:defaults --*/
$font-family-sans-serif: "Inter", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
$font-family-monospace: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

$body-bg: #f7f9fc;
$body-color: #1f2937;
$link-color: #0f766e;
$primary: #0f766e;
$secondary: #334155;
$success: #166534;
$info: #1d4ed8;
$warning: #b45309;
$danger: #b91c1c;

$border-radius: 0.9rem;
$border-radius-sm: 0.6rem;

/*-- scss:rules --*/
body {
  line-height: 1.72;
  letter-spacing: 0.01em;
}

/* Remove the restrictive width on the overall Quarto wrapper */
/* #quarto-content {
  max-width: 980px;
} */

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

h1.title {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.subtitle, .quarto-title-meta {
  color: #475569;
}

p, li {
  font-size: 1.04rem;
}

a {
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 118, 110, 0.25);
}

a:hover {
  color: #134e4a;
  border-bottom-color: rgba(15, 118, 110, 0.65);
}

blockquote {
  border-left: 4px solid #0f766e;
  background: #f0fdfa;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  color: #134e4a;
}

code {
  background: #eef2ff;
  color: #312e81;
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
}

pre code {
  background: transparent;
}

div.sourceCode, pre {
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

table {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
}

.callout {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.callout-note {
  background: #eff6ff;
}

.callout-important {
  background: #fefce8;
}

.callout-tip {
  background: #ecfdf5;
}

#TOC {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.figure {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.series-nav {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.series-nav h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.series-nav ul {
  margin-bottom: 0;
}

.quarto-title-banner {
  background: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
  color: white;
  padding-top: 2.2rem;
  padding-bottom: 2rem;
}

.quarto-title-banner h1,
.quarto-title-banner .subtitle,
.quarto-title-banner .quarto-title-meta {
  color: white !important;
}