:root {
  /* Primary color palette - Material for MkDocs variables */
  --md-primary-fg-color: #2E8B57;
  --md-primary-fg-color--light: #5EC47E;
  --md-primary-fg-color--dark: #1F6C4F;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #f5f5f5;

  /* Accent color to match primary for navigation */
  --md-accent-fg-color: #2E8B57;
  --md-accent-fg-color--transparent: rgba(46, 139, 87, 0.1);
  --md-accent-bg-color: rgba(46, 139, 87, 0.1);
  --md-accent-bg-color--light: rgba(46, 139, 87, 0.05);

  /* Text colors */
  --md-typeset-color: rgba(0, 0, 0, 0.87);
  --md-typeset-a-color: #2FBF71;
  --md-typeset-mark-color: rgba(47, 191, 113, 0.2);

  /* Code colors */
  --md-code-fg-color: #37474f;
  --md-code-bg-color: #f5f5f5;
  --md-code-hl-color: rgba(47, 191, 113, 0.15);
  --md-code-hl-number-color: #2FBF71;
  --md-code-hl-keyword-color: #616161;

  /* Admonition colors */
  --md-admonition-fg-color: rgba(0, 0, 0, 0.87);
  --md-admonition-bg-color: #ffffff;

  /* Default text color */
  --md-default-fg-color: rgba(0, 0, 0, 0.87);
  --md-default-fg-color--light: rgba(0, 0, 0, 0.54);
  --md-default-fg-color--lighter: rgba(0, 0, 0, 0.32);
  --md-default-fg-color--lightest: rgba(0, 0, 0, 0.07);
  --md-default-bg-color: #ffffff;
  --md-default-bg-color--light: #f5f5f5;
  --md-default-bg-color--lighter: rgba(0, 0, 0, 0.03);
  --md-default-bg-color--lightest: rgba(0, 0, 0, 0.01);

  /* Shadow and elevation */
  --md-shadow-z1: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
  0 1px 5px 0 rgba(0, 0, 0, 0.12),
  0 3px 1px -2px rgba(0, 0, 0, 0.2);
  --md-shadow-z2: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
  0 1px 10px 0 rgba(0, 0, 0, 0.12),
  0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --md-shadow-z3: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
  0 1px 18px 0 rgba(0, 0, 0, 0.12),
  0 3px 5px -1px rgba(0, 0, 0, 0.3);
}

/* Home page header section styling */
.home-header {
  padding: 4rem 0;
}

.home-header h1 {
  background: linear-gradient(80deg, #2E8B57 0%, #064E3B 85%, #064E3B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.home-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
}

.home-header .md-button {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-header .md-button--primary {
  background: linear-gradient(80deg, #2E8B57 0%, #064E3B 85%, #064E3B 100%);
  color: #ffffff;
  box-shadow: var(--md-shadow-z2);
}

.home-header .md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
  box-shadow: var(--md-shadow-z3);
  transform: translateY(-2px);
  color: #ffffff;
}

.home-header .md-button.link-color {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.home-header .md-button.link-color:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Features section styling */
.features .row {
  margin-bottom: 4rem;
  align-items: center;
}

.features h2 {
  background: linear-gradient(80deg, #2E8B57 0%, #064E3B 50%, #2E8B57 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin: 0;
}

.features p {
  font-size: 1rem;
  line-height: 1.6;
}

.features img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--md-shadow-z2);
}

/* Prevent layout shift when system scrollbars appear */
html {
  scrollbar-gutter: stable both-edges;
}

@supports (scrollbar-gutter: stable both-edges) {
  :root {
    min-height: 100%;
  }
}

h1 + p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

img {
  border-radius: 8px;
  box-shadow: var(--md-shadow-z2);
}

/* Center Mermaid diagrams */
.mermaid {
  display: flex;
  justify-content: center;
}
