/*------------------------------------------------------------------------------
  Aquifer Intelligence Playbook · Modern Water-Inspired Theme
  Built from the ElePath Sabah styling principles with a refreshed palette
------------------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Source+Code+Pro:wght@400;500&display=swap');

:root {
  /* Primary Palette - Deep Ocean to Sky */
  --aquifer-midnight: #0a1f2e;
  --aquifer-deep: #0f3854;
  --aquifer-navy: #1a527a;
  --aquifer-ocean: #236ba1;
  --aquifer-azure: #2e8bcc;
  --aquifer-sky: #4aa5e6;
  --aquifer-lagoon: #18b8c9;
  --aquifer-mint: #3cd4a8;
  --aquifer-teal: #5de4c4;

  /* Neutral Palette - Refined & Sophisticated */
  --aquifer-sand: #f8fafb;
  --aquifer-cloud: #eff4f8;
  --aquifer-mist: #e3ebf2;
  --aquifer-foam: #ffffff;
  --aquifer-border: #cbd6e2;
  --aquifer-border-light: rgba(203, 214, 226, 0.5);
  --aquifer-muted: #627d92;
  --aquifer-text-dark: #2c3e50;

  /* Accent Colors */
  --aquifer-accent-warm: #ff8c42;
  --aquifer-accent-success: #2ecc71;
  --aquifer-accent-warning: #f39c12;
  --aquifer-accent-error: #e74c3c;

  /* Part Colors - Distinct palette for each part */
  --part-1-color: #2e8bcc;      /* Azure Blue - Data Analysis */
  --part-2-color: #18b8c9;      /* Lagoon Teal - Integration */
  --part-3-color: #3cd4a8;      /* Mint Green - Exploration */
  --part-4-color: #7c3aed;      /* Purple - Engineering */
  --part-5-color: #f59e0b;      /* Amber - Analytics */
  --part-6-color: #ec4899;      /* Pink - Knowledge */
  --part-shared-color: #64748b; /* Slate - Shared */

  /* Effects */
  --aquifer-highlight: rgba(46, 139, 204, 0.12);
  --aquifer-highlight-strong: rgba(46, 139, 204, 0.2);
  --aquifer-shadow-sm: 0 2px 8px rgba(10, 31, 46, 0.06);
  --aquifer-shadow-md: 0 8px 24px rgba(10, 31, 46, 0.10);
  --aquifer-shadow-lg: 0 16px 48px rgba(10, 31, 46, 0.14);
  --aquifer-shadow-xl: 0 24px 64px rgba(10, 31, 46, 0.18);

  /* Gradients */
  --gradient-ocean: linear-gradient(135deg, #1a527a 0%, #2e8bcc 50%, #18b8c9 100%);
  --gradient-sky: linear-gradient(135deg, #4aa5e6 0%, #3cd4a8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(46, 139, 204, 0.05) 0%, rgba(24, 184, 201, 0.05) 100%);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--aquifer-text-dark);
  background: var(--aquifer-sand);
  margin: 0;
  padding: 0;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main.content {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#quarto-content {
  background: transparent;
  padding: 2rem 1rem 2.5rem;
  gap: 0.5rem;
  max-width: 100%;
}

.page-columns {
  max-width: 100%;
  gap: 0.5rem;
}

main.content > *:first-child {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--aquifer-midnight);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.75rem;
  background: var(--gradient-subtle);
  border-left: 5px solid var(--aquifer-azure);
  border-bottom: 2px solid var(--aquifer-border-light);
  padding: 0.75rem 1.25rem 0.75rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  transition: border-left-color var(--transition-base);
}

h1:hover {
  border-left-color: var(--aquifer-lagoon);
}

h2 {
  font-size: 2.1rem;
  border-bottom: 2px solid var(--aquifer-mist);
  padding-bottom: 0.6rem;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  transition: color var(--transition-base);
}

h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-sky);
  border-radius: 2px;
}

h3 {
  font-size: 1.65rem;
  color: var(--aquifer-ocean);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--aquifer-sky);
  transition: all var(--transition-base);
}

h3:hover {
  color: var(--aquifer-azure);
  border-left-color: var(--aquifer-lagoon);
}

h4 {
  font-size: 1.35rem;
  color: var(--aquifer-navy);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

/* Title block */
#title-block-header.quarto-title-block {
  position: relative;
  background: var(--aquifer-foam);
  border-radius: 20px;
  border: 1px solid var(--aquifer-border-light);
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--aquifer-shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

#title-block-header.quarto-title-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--aquifer-shadow-xl);
}

#title-block-header.quarto-title-block::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 8px;
  background: var(--gradient-ocean);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

#title-block-header.quarto-title-block::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(46, 139, 204, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#title-block-header .title {
  font-size: 2.85rem;
  color: var(--aquifer-midnight) !important;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

#title-block-header .subtitle {
  font-size: 1.3rem;
  color: var(--aquifer-muted) !important;
  margin-bottom: 0.75rem;
}

#title-block-header .quarto-title-meta,
#title-block-header .quarto-title-meta-author {
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(12, 41, 63, 0.08);
  display: grid;
  gap: 1rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#title-block-header .quarto-title-meta-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--aquifer-muted);
}

#title-block-header .quarto-title-meta-contents {
  font-weight: 600;
  color: var(--aquifer-midnight);
}

/* Navigation */
.quarto-secondary-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--aquifer-border-light);
  box-shadow: var(--aquifer-shadow-md);
  transition: box-shadow var(--transition-base);
}

.quarto-secondary-nav:hover {
  box-shadow: var(--aquifer-shadow-lg);
}

.quarto-secondary-nav .btn {
  color: var(--aquifer-midnight);
  transition: all var(--transition-base);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
}

.quarto-secondary-nav .btn:hover {
  color: var(--aquifer-azure);
  background: var(--aquifer-highlight);
}

/* Sidebar */
#quarto-sidebar {
  background: rgba(255, 255, 255, 0.97);
  border-right: 1px solid var(--aquifer-border-light);
  box-shadow: var(--aquifer-shadow-md);
  padding: 1rem 0.75rem 1rem 1rem;
}

body.nav-sidebar .sidebar-navigation {
  overflow: visible !important;
  max-height: none;
}

body.nav-sidebar .sidebar-menu-container {
  max-height: none;
}

body.nav-sidebar .sidebar {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

body.nav-sidebar #quarto-sidebar {
  max-height: none !important;
  height: max-content !important;
  min-height: 0;
}

#quarto-sidebar .sidebar-title {
  font-weight: 700;
  color: var(--aquifer-midnight);
  letter-spacing: 0.05em;
  padding: 0.75rem 0.85rem;
  background: var(--gradient-subtle);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

#quarto-sidebar .sidebar-item {
  margin: 0.15rem 0;
}

/* Force no capitalization on chapter links */
#quarto-sidebar .sidebar-item a .sidebar-item-text,
.sidebar nav .sidebar-item a,
.sidebar-item-text {
  text-transform: none !important;
}

#quarto-sidebar .sidebar-item a {
  color: var(--aquifer-text-dark);
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  display: block;
  border-radius: 8px;
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  line-height: 1.4;
  text-transform: none !important;
}

#quarto-sidebar .sidebar-item a:hover {
  color: var(--aquifer-foam);
  background: var(--aquifer-navy);
  border-left-color: var(--aquifer-azure);
  transform: translateX(4px);
}

#quarto-sidebar .sidebar-item a.active {
  color: var(--aquifer-foam);
  background: var(--aquifer-deep);
  border-left-color: var(--aquifer-lagoon);
  font-weight: 600;
}

#quarto-sidebar .sidebar-search {
  margin: 0.75rem 0 1.25rem;
}

/* Margin sidebar - Reduced width, compact styling */
#quarto-margin-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--aquifer-border-light);
  border-radius: 14px;
  box-shadow: var(--aquifer-shadow-md);
  padding: 1.25rem 1rem;
  transition: box-shadow var(--transition-base);
  min-width: var(--toc-sidebar-min, 240px);
  width: var(--toc-sidebar-width, clamp(240px, 22vw, 320px));
  max-width: var(--toc-sidebar-max, 340px);
  overflow: visible;
}

#quarto-margin-sidebar:hover {
  box-shadow: var(--aquifer-shadow-lg);
}

#TOC {
  position: sticky;
  top: 5rem;
  width: 100%;
}

#TOC .toc-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--aquifer-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
  padding-bottom: 0;
  border-bottom: none;
}

#TOC nav {
  font-size: 0.85rem;
  width: 100%;
}

#TOC ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#TOC li {
  margin: 0;
  line-height: 1.25;
}

#TOC a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--aquifer-text-dark);
  transition: all var(--transition-base);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1.2;
  font-size: 0.85rem;
  width: 100%;
  text-decoration: none;
  white-space: normal;
}

#TOC a:hover {
  color: var(--aquifer-azure);
  background: var(--aquifer-highlight);
  font-weight: 600;
}

#TOC a.active {
  color: var(--aquifer-azure);
  font-weight: 700;
  position: relative;
}

#TOC a.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: var(--aquifer-azure);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--aquifer-azure);
}

#TOC a .header-section-number {
  font-weight: 600;
  min-width: 2.1rem;
  text-align: right;
  color: var(--aquifer-muted);
}

#TOC a .toc-short-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

/* Links */
a {
  color: var(--aquifer-azure);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

a:hover,
a:focus {
  color: var(--aquifer-ocean);
  text-decoration: none;
}

a:hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-sky);
  animation: linkUnderline 0.3s ease-out;
}

@keyframes linkUnderline {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

a:visited {
  color: var(--aquifer-navy);
}

/* Code and pre */
code,
pre {
  font-family: 'Source Code Pro', ui-monospace, SFMono-Regular, 'DejaVu Sans Mono', monospace;
  font-size: 0.95rem;
}

code {
  background: var(--aquifer-cloud);
  color: var(--aquifer-midnight);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--aquifer-border-light);
  font-weight: 500;
  transition: all var(--transition-fast);
}

code:hover {
  background: var(--aquifer-mist);
  border-color: var(--aquifer-border);
}

pre {
  background: var(--aquifer-cloud);
  border-left: 4px solid var(--aquifer-azure);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--aquifer-shadow-md);
  position: relative;
  transition: all var(--transition-base);
}

pre:hover {
  box-shadow: var(--aquifer-shadow-lg);
  border-left-color: var(--aquifer-lagoon);
}

pre::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 139, 204, 0.03));
  pointer-events: none;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.9rem;
}

.code-fold-btn,
.code-tools-button {
  background: var(--aquifer-azure);
  color: var(--aquifer-foam);
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.code-fold-btn:hover,
.code-tools-button:hover {
  background: var(--aquifer-lagoon);
}

/* Tables */
table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: collapse;
  background: var(--aquifer-foam);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--aquifer-shadow-md);
  border: 1px solid var(--aquifer-border-light);
  transition: box-shadow var(--transition-base);
}

table:hover {
  box-shadow: var(--aquifer-shadow-lg);
}

thead {
  background: var(--gradient-ocean);
  color: var(--aquifer-foam);
  position: relative;
}

thead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-sky);
}

thead th {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-align: left;
}

tbody td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--aquifer-mist);
  font-size: 0.95rem;
  transition: background-color var(--transition-fast);
}

tbody tr:nth-child(even) {
  background: var(--aquifer-sand);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--aquifer-highlight);
}

tbody tr:hover td {
  color: var(--aquifer-midnight);
}

/* Callouts */
div.callout {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  border-left: 5px solid;
  border-radius: 14px;
  background: var(--aquifer-foam);
  box-shadow: var(--aquifer-shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

div.callout::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

div.callout:hover {
  box-shadow: var(--aquifer-shadow-lg);
  transform: translateY(-2px);
}

div.callout-note {
  border-left-color: var(--aquifer-azure);
  background: linear-gradient(135deg, rgba(46, 139, 204, 0.05), rgba(46, 139, 204, 0.02));
}

div.callout-note::before {
  background: radial-gradient(circle at top right, rgba(46, 139, 204, 0.15), transparent);
}

div.callout-tip {
  border-left-color: var(--aquifer-mint);
  background: linear-gradient(135deg, rgba(60, 212, 168, 0.08), rgba(60, 212, 168, 0.03));
}

div.callout-tip::before {
  background: radial-gradient(circle at top right, rgba(60, 212, 168, 0.15), transparent);
}

div.callout-warning {
  border-left-color: var(--aquifer-accent-warning);
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.08), rgba(243, 156, 18, 0.03));
}

div.callout-warning::before {
  background: radial-gradient(circle at top right, rgba(243, 156, 18, 0.15), transparent);
}

div.callout-important,
div.callout-caution {
  border-left-color: var(--aquifer-accent-error);
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.03));
}

div.callout-important::before,
div.callout-caution::before {
  background: radial-gradient(circle at top right, rgba(231, 76, 60, 0.15), transparent);
}

.callout-title {
  font-weight: 700;
  color: var(--aquifer-midnight);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Blockquotes */
blockquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  border-left: 5px solid var(--aquifer-lagoon);
  background: linear-gradient(135deg, rgba(24, 184, 201, 0.06), rgba(24, 184, 201, 0.02));
  border-radius: 14px;
  color: var(--aquifer-text-dark);
  font-style: italic;
  box-shadow: var(--aquifer-shadow-md);
  position: relative;
  transition: all var(--transition-base);
}

blockquote:hover {
  box-shadow: var(--aquifer-shadow-lg);
  transform: translateX(4px);
  border-left-color: var(--aquifer-mint);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--aquifer-lagoon);
  opacity: 0.2;
  font-style: normal;
  line-height: 1;
}

blockquote p {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Figures */
figure {
  margin: 3rem 0;
  text-align: center;
}

img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: var(--aquifer-shadow-lg);
  transition: all var(--transition-slow);
  border: 1px solid var(--aquifer-border-light);
}

img:hover {
  box-shadow: var(--aquifer-shadow-xl);
  transform: scale(1.02);
}

figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--aquifer-muted);
  font-style: italic;
  padding: 0.5rem 1rem;
  background: var(--aquifer-sand);
  border-radius: 8px;
  display: inline-block;
}

/* Hero banner & stat cards */
.aquifer-banner {
  background: var(--gradient-ocean);
  color: var(--aquifer-foam);
  padding: 3rem 3rem;
  border-radius: 24px;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--aquifer-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-slow);
}

.aquifer-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(10, 31, 46, 0.25);
}

.aquifer-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.aquifer-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(24, 184, 201, 0.25), transparent 70%);
  opacity: 0.6;
}

.aquifer-banner > * {
  position: relative;
  z-index: 1;
}

.aquifer-banner h1,
.aquifer-banner h2 {
  color: var(--aquifer-foam);
  margin-top: 0;
  border-bottom: none;
  background: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aquifer-banner h1:hover,
.aquifer-banner h2:hover {
  border-left: none;
}

.aquifer-banner p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.aquifer-banner strong {
  color: var(--aquifer-teal);
  font-weight: 700;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--aquifer-foam);
  border-radius: 20px;
  padding: 2.25rem;
  border: 1px solid var(--aquifer-border-light);
  box-shadow: var(--aquifer-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-height: 180px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--aquifer-shadow-xl);
  border-color: var(--aquifer-azure);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--aquifer-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.stat-caption {
  font-size: 0.95rem;
  color: var(--aquifer-text-dark);
  line-height: 1.5;
}

/* Quick start / cards */
.quick-start,
.workflow-card,
.panel,
.card {
  background: var(--aquifer-foam);
  border: 1px solid var(--aquifer-border-light);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--aquifer-shadow-md);
  margin: 2.25rem 0;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.quick-start::before,
.workflow-card::before,
.panel::before,
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-sky);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.quick-start:hover,
.workflow-card:hover,
.panel:hover,
.card:hover {
  box-shadow: var(--aquifer-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--aquifer-border);
}

.quick-start:hover::before,
.workflow-card:hover::before,
.panel:hover::before,
.card:hover::before {
  opacity: 1;
}

.quick-start h2,
.quick-start h3 {
  border-bottom: none;
  margin-top: 0;
  color: var(--aquifer-midnight);
  background: none;
}

.quick-start h2:hover,
.quick-start h3:hover {
  border-left: none;
}

.quick-start pre {
  background: var(--aquifer-cloud);
  border: 1px solid var(--aquifer-border-light);
  border-radius: 12px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.workflow-card h3 {
  margin-top: 0;
  color: var(--aquifer-midnight);
  padding-left: 0;
  border-left: none;
}

.workflow-card h3:hover {
  color: var(--aquifer-azure);
}

.workflow-card p {
  margin-bottom: 0;
  color: var(--aquifer-text-dark);
  line-height: 1.65;
}

.aquifer-pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--aquifer-highlight-strong);
  color: var(--aquifer-azure);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--aquifer-azure);
  transition: all var(--transition-base);
}

.aquifer-pill:hover {
  background: var(--aquifer-azure);
  color: var(--aquifer-foam);
  transform: scale(1.05);
  box-shadow: var(--aquifer-shadow-sm);
}

/* Footer */
.nav-footer {
  border-top: 2px solid var(--aquifer-border);
  background: var(--aquifer-cloud);
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--aquifer-muted);
}

.nav-footer a {
  color: var(--aquifer-azure);
}

/* Lists */
ul, ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Selection / focus */
::selection {
  background: rgba(31, 140, 214, 0.35);
  color: var(--aquifer-midnight);
}

:focus-visible {
  outline: 3px solid rgba(26, 182, 198, 0.6);
  outline-offset: 3px;
}

/* Modern Column Layouts */
.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.column {
  background: var(--aquifer-foam);
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--aquifer-border-light);
  box-shadow: var(--aquifer-shadow-sm);
  transition: all var(--transition-base);
}

.column:hover {
  box-shadow: var(--aquifer-shadow-md);
  transform: translateY(-4px);
}

/* Feature boxes */
.feature-box {
  background: var(--gradient-subtle);
  border: 2px solid var(--aquifer-border-light);
  border-radius: 18px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all var(--transition-base);
}

.feature-box:hover {
  border-color: var(--aquifer-azure);
  box-shadow: var(--aquifer-shadow-lg);
  background: var(--aquifer-foam);
}

.feature-box h3 {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
  color: var(--aquifer-azure);
}

/* Highlight box */
.highlight-box {
  background: var(--aquifer-foam);
  border-left: 5px solid var(--aquifer-lagoon);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--aquifer-shadow-md);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(24, 184, 201, 0.05));
  pointer-events: none;
}

/* Info panel with icon */
.info-panel {
  display: flex;
  gap: 1.5rem;
  background: var(--aquifer-cloud);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  border: 1px solid var(--aquifer-border-light);
  transition: all var(--transition-base);
}

.info-panel:hover {
  background: var(--aquifer-foam);
  box-shadow: var(--aquifer-shadow-md);
}

.info-panel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-ocean);
  color: var(--aquifer-foam);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.info-panel-content h3 {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
}

/* Steps / Process Flow */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-ocean);
  color: var(--aquifer-foam);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--aquifer-shadow-md);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 3.5rem;
  bottom: -1.5rem;
  width: 3px;
  background: var(--aquifer-highlight-strong);
}

.step h3, .step h4 {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
  color: var(--aquifer-azure);
}

/* Additional sidebar styling for better width utilization */
#quarto-sidebar .sidebar-section {
  padding: 0.25rem 0;
}

#quarto-sidebar .sidebar-section-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aquifer-ocean);
  padding: 0.5rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#quarto-sidebar .chapter-number {
  color: var(--aquifer-azure);
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* Part numbers/labels get special styling */
.sidebar-item.sidebar-item-section .chapter-number {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Clear visual separation between parts */
.sidebar nav[role="doc-toc"] > ul > li {
  margin-bottom: 0.75rem;
}

.sidebar nav[role="doc-toc"] > ul > li:not(:first-child) {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.sidebar nav[role="doc-toc"] > ul > li:first-child {
  margin-top: 0;
}

/* Part headers in sidebar - Visually distinct with unique colors */
.sidebar-item.sidebar-item-section {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section {
  --sidebar-part-color: var(--aquifer-azure);
  --sidebar-part-border: rgba(46, 139, 204, 0.55);
  --sidebar-part-soft-1: rgba(46, 139, 204, 0.16);
  --sidebar-part-soft-2: rgba(46, 139, 204, 0.06);
}

/* Determine part colors based on contained chapter links (robust to ordering) */
#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="part-1"]) {
  --sidebar-part-color: var(--part-1-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-1-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-1-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-1-color) 6%, white);
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="part-2"]) {
  --sidebar-part-color: var(--part-2-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-2-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-2-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-2-color) 6%, white);
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="part-3"]) {
  --sidebar-part-color: var(--part-3-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-3-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-3-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-3-color) 6%, white);
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="part-4"]) {
  --sidebar-part-color: var(--part-4-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-4-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-4-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-4-color) 6%, white);
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="part-5"]) {
  --sidebar-part-color: var(--part-5-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-5-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-5-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-5-color) 6%, white);
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="part-6"]) {
  --sidebar-part-color: var(--part-6-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-6-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-6-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-6-color) 6%, white);
}

#quarto-sidebar .sidebar-menu-container > ul > li.sidebar-item.sidebar-item-section:has(ul.sidebar-section a[href*="assets/"]) {
  --sidebar-part-color: var(--part-shared-color);
  --sidebar-part-border: color-mix(in srgb, var(--part-shared-color) 60%, transparent);
  --sidebar-part-soft-1: color-mix(in srgb, var(--part-shared-color) 18%, white);
  --sidebar-part-soft-2: color-mix(in srgb, var(--part-shared-color) 6%, white);
}

.sidebar-item.sidebar-item-section .sidebar-item-text {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--aquifer-midnight);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  /* Darker, more distinct part background for clear separation */
  background: color-mix(in srgb, var(--sidebar-part-color, var(--aquifer-azure)) 32%, white 68%);
  border-radius: 10px;
  border-left: 6px solid var(--sidebar-part-color, var(--aquifer-azure));
  box-shadow: var(--aquifer-shadow-sm);
  transition: all var(--transition-base);
}

.sidebar-item.sidebar-item-section .sidebar-item-text:hover,
.sidebar-item.sidebar-item-section .sidebar-item-text:focus {
  box-shadow: var(--aquifer-shadow-md);
  transform: translateX(2px);
  background: color-mix(in srgb, var(--sidebar-part-color, var(--aquifer-azure)) 42%, white 58%);
}

/* Nested chapters under parts - Normal case, smaller, color-coded */
.sidebar-item-container ul.sidebar-section {
  margin-top: 0.5rem;
  padding-left: 0.75rem;
}

.sidebar-item-container ul.sidebar-section li {
  margin-left: 0;
  margin-bottom: 0.25rem;
}

.sidebar-item-container ul.sidebar-section .sidebar-item a {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: none !important;
  letter-spacing: 0;
  padding: 0.5rem 0.75rem;
  border-left-width: 3px;
}

#quarto-sidebar .sidebar-item.sidebar-item-section ul.sidebar-section li .sidebar-item-text {
  border-left-color: var(--sidebar-part-border, rgba(46, 139, 204, 0.55));
  background: linear-gradient(
    135deg,
    var(--sidebar-part-soft-1, rgba(46, 139, 204, 0.16)),
    var(--sidebar-part-soft-2, rgba(46, 139, 204, 0.06))
  );
  color: var(--aquifer-text-dark);
}

#quarto-sidebar .sidebar-item.sidebar-item-section ul.sidebar-section li .sidebar-item-text:hover,
#quarto-sidebar .sidebar-item.sidebar-item-section ul.sidebar-section li .sidebar-item-text:focus {
  border-left-color: var(--sidebar-part-color, var(--aquifer-azure));
  background: var(--sidebar-part-color, var(--aquifer-azure));
  background: color-mix(in srgb, var(--sidebar-part-color, var(--aquifer-azure)) 88%, black 12%);
  color: var(--aquifer-foam);
}

#quarto-sidebar .sidebar-item.sidebar-item-section ul.sidebar-section li .sidebar-item-text.active {
  border-left-color: var(--sidebar-part-color, var(--aquifer-azure));
  background: var(--sidebar-part-color, var(--aquifer-azure));
  color: var(--aquifer-foam);
  font-weight: 600;
  box-shadow: var(--aquifer-shadow-sm);
}

#quarto-sidebar .sidebar-item.sidebar-item-section ul.sidebar-section li .sidebar-item-text:focus-visible {
  outline: 2px solid var(--sidebar-part-color, var(--aquifer-azure));
  outline: 2px solid color-mix(in srgb, var(--sidebar-part-color, var(--aquifer-azure)) 60%, white 40%);
  outline-offset: 2px;
}

/* Active chapter gets strong background matching part color */
.sidebar-item-container .sidebar-item a.active {
  font-weight: 600;
}

/* Better TOC nesting for compact sidebar */
#TOC ul ul {
  padding-left: 0;
  margin-top: 0.15rem;
}

#TOC ul ul li {
  margin-bottom: 0.2rem;
}

#TOC ul ul a {
  font-size: 0.82rem;
  opacity: 0.9;
}

/* Remove section separators in TOC */
#TOC .sidebar-section,
#TOC section {
  border: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

#TOC nav > ul > li {
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0.35rem !important;
}

/* Strategic part color application to TOC and content */
/* Part 1 - Azure Blue */
body[data-part="1"] #TOC a.active,
body[data-part="1"] #TOC a:hover {
  color: var(--part-1-color);
}

body[data-part="1"] #TOC a.active::before {
  background: var(--part-1-color);
  box-shadow: 0 0 4px var(--part-1-color);
}

body[data-part="1"] #TOC ul {
  border-left-color: rgba(46, 139, 204, 0.3);
}

body[data-part="1"] h1 {
  border-left-color: var(--part-1-color);
}

body[data-part="1"] h2::before {
  background: linear-gradient(90deg, var(--part-1-color), rgba(46, 139, 204, 0.5));
}

body[data-part="1"] h3 {
  border-left-color: var(--part-1-color);
}

/* Part 2 - Lagoon Teal */
body[data-part="2"] #TOC a.active,
body[data-part="2"] #TOC a:hover {
  color: var(--part-2-color);
}

body[data-part="2"] #TOC a.active::before {
  background: var(--part-2-color);
  box-shadow: 0 0 4px var(--part-2-color);
}

body[data-part="2"] #TOC ul {
  border-left-color: rgba(24, 184, 201, 0.3);
}

body[data-part="2"] h1 {
  border-left-color: var(--part-2-color);
}

body[data-part="2"] h2::before {
  background: linear-gradient(90deg, var(--part-2-color), rgba(24, 184, 201, 0.5));
}

body[data-part="2"] h3 {
  border-left-color: var(--part-2-color);
}

/* Part 3 - Mint Green */
body[data-part="3"] #TOC a.active,
body[data-part="3"] #TOC a:hover {
  color: var(--part-3-color);
}

body[data-part="3"] #TOC a.active::before {
  background: var(--part-3-color);
  box-shadow: 0 0 4px var(--part-3-color);
}

body[data-part="3"] #TOC ul {
  border-left-color: rgba(60, 212, 168, 0.3);
}

body[data-part="3"] h1 {
  border-left-color: var(--part-3-color);
}

body[data-part="3"] h2::before {
  background: linear-gradient(90deg, var(--part-3-color), rgba(60, 212, 168, 0.5));
}

body[data-part="3"] h3 {
  border-left-color: var(--part-3-color);
}

/* Part 4 - Purple */
body[data-part="4"] #TOC a.active,
body[data-part="4"] #TOC a:hover {
  color: var(--part-4-color);
}

body[data-part="4"] #TOC a.active::before {
  background: var(--part-4-color);
  box-shadow: 0 0 4px var(--part-4-color);
}

body[data-part="4"] #TOC ul {
  border-left-color: rgba(124, 58, 237, 0.3);
}

body[data-part="4"] h1 {
  border-left-color: var(--part-4-color);
}

body[data-part="4"] h2::before {
  background: linear-gradient(90deg, var(--part-4-color), rgba(124, 58, 237, 0.5));
}

body[data-part="4"] h3 {
  border-left-color: var(--part-4-color);
}

/* Part 5 - Amber */
body[data-part="5"] #TOC a.active,
body[data-part="5"] #TOC a:hover {
  color: var(--part-5-color);
}

body[data-part="5"] #TOC a.active::before {
  background: var(--part-5-color);
  box-shadow: 0 0 4px var(--part-5-color);
}

body[data-part="5"] #TOC ul {
  border-left-color: rgba(245, 158, 11, 0.3);
}

body[data-part="5"] h1 {
  border-left-color: var(--part-5-color);
}

body[data-part="5"] h2::before {
  background: linear-gradient(90deg, var(--part-5-color), rgba(245, 158, 11, 0.5));
}

body[data-part="5"] h3 {
  border-left-color: var(--part-5-color);
}

/* Part 6 - Pink */
body[data-part="6"] #TOC a.active,
body[data-part="6"] #TOC a:hover {
  color: var(--part-6-color);
}

body[data-part="6"] #TOC a.active::before {
  background: var(--part-6-color);
  box-shadow: 0 0 4px var(--part-6-color);
}

body[data-part="6"] #TOC ul {
  border-left-color: rgba(236, 72, 153, 0.3);
}

body[data-part="6"] h1 {
  border-left-color: var(--part-6-color);
}

body[data-part="6"] h2::before {
  background: linear-gradient(90deg, var(--part-6-color), rgba(236, 72, 153, 0.5));
}

body[data-part="6"] h3 {
  border-left-color: var(--part-6-color);
}

/* Apply part colors to elements even without data-part (fallback using path-based detection) */
/* This works by targeting pages in specific directories */

/* Part 1 chapters */
body:has([href*="part-1"]) #TOC a.active,
.sidebar-item.active[href*="part-1"] {
  color: var(--part-1-color) !important;
}

/* Part 2 chapters */
body:has([href*="part-2"]) #TOC a.active,
.sidebar-item.active[href*="part-2"] {
  color: var(--part-2-color) !important;
}

/* Part 3 chapters */
body:has([href*="part-3"]) #TOC a.active,
.sidebar-item.active[href*="part-3"] {
  color: var(--part-3-color) !important;
}

/* Part 4 chapters */
body:has([href*="part-4"]) #TOC a.active,
.sidebar-item.active[href*="part-4"] {
  color: var(--part-4-color) !important;
}

/* Part 5 chapters */
body:has([href*="part-5"]) #TOC a.active,
.sidebar-item.active[href*="part-5"] {
  color: var(--part-5-color) !important;
}

/* Part 6 chapters */
body:has([href*="part-6"]) #TOC a.active,
.sidebar-item.active[href*="part-6"] {
  color: var(--part-6-color) !important;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
  #quarto-content {
    padding: 2.25rem 1.5rem 3rem;
    gap: 1rem;
  }

  #title-block-header.quarto-title-block {
    padding: 2.1rem 2.2rem;
  }

  .aquifer-banner {
    padding: 2.2rem 2rem;
  }
}

@media (max-width: 992px) {
  #quarto-content {
    padding: 2rem 1.5rem 2.75rem;
  }

  #quarto-margin-sidebar {
    position: static;
    margin-top: 2rem;
    padding: 1.25rem 1rem;
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
  }

  #quarto-sidebar {
    box-shadow: none;
    padding: 1rem 1rem 1rem 1.25rem;
  }

  /* Part headers remain distinct on tablets */
  .sidebar-item.sidebar-item-section .sidebar-item-text {
    font-size: 0.9rem;
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  #quarto-content {
    padding: 1.65rem 1.25rem 2.5rem;
  }

  #title-block-header.quarto-title-block {
    padding: 1.8rem 1.6rem;
  }

  .aquifer-banner {
    padding: 1.95rem 1.6rem;
  }

  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .columns-2,
  .columns-3,
  .columns-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile: Compact part headers */
  .sidebar-item.sidebar-item-section .sidebar-item-text {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    letter-spacing: 0.06em;
  }

  /* Mobile: Smaller chapter links */
  .sidebar-item-container ul.sidebar-section .sidebar-item a {
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
  }

  /* Mobile: Compact TOC */
  #quarto-margin-sidebar {
    padding: 1rem 0.85rem;
  }

  #TOC .toc-title {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  #TOC a {
    font-size: 0.82rem;
  }

  #TOC li {
    margin-bottom: 0.3rem;
  }

  /* Mobile: Maintain dark hover states */
  #quarto-sidebar .sidebar-item a:hover,
  #quarto-sidebar .sidebar-item a.active {
    color: var(--aquifer-foam);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mermaid diagram styling - Make diagrams larger and more readable */
.mermaid {
  font-size: 16px !important;
  background: var(--aquifer-foam);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--aquifer-shadow-md);
  margin: 2rem 0;
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
  min-height: 300px;
}

/* Make mermaid text more readable */
.mermaid .nodeLabel,
.mermaid .edgeLabel,
.mermaid .label,
.mermaid text {
  font-size: 14px !important;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  fill: var(--aquifer-text-dark) !important;
}

/* Subgraph labels */
.mermaid .cluster-label text,
.mermaid .cluster text {
  font-size: 16px !important;
  font-weight: 600 !important;
  fill: var(--aquifer-midnight) !important;
}

/* Node styling */
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node polygon {
  fill: var(--aquifer-cloud) !important;
  stroke: var(--aquifer-azure) !important;
  stroke-width: 2px !important;
}

/* Subgraph backgrounds */
.mermaid .cluster rect {
  fill: var(--aquifer-sand) !important;
  stroke: var(--aquifer-border) !important;
  stroke-width: 1px !important;
  rx: 8px;
  ry: 8px;
}

/* Edge/arrow styling */
.mermaid .edgePath .path {
  stroke: var(--aquifer-navy) !important;
  stroke-width: 2px !important;
}

.mermaid .arrowheadPath {
  fill: var(--aquifer-navy) !important;
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .quarto-secondary-nav,
  #quarto-sidebar,
  #quarto-margin-sidebar,
  .nav-footer {
    display: none;
  }

  #quarto-content {
    max-width: 100%;
  }
}
