/* Custom styles for Carbonic documentation */

:root {
  /* Graphite/Carbon color scheme */
  --md-primary-fg-color: #37474f;        /* Dark graphite */
  --md-primary-fg-color--light: #546e7a;  /* Medium graphite */
  --md-primary-fg-color--dark: #263238;   /* Darker graphite */
  --md-accent-fg-color: #ffc107;          /* Golden amber */
  --md-accent-fg-color--transparent: rgba(255, 193, 7, 0.1);

  /* Custom graphite shades */
  --carbonic-graphite: #2c3e50;
  --carbonic-graphite-light: #34495e;
  --carbonic-gold: #f39c12;
  --carbonic-gold-light: #f4d03f;
}

[data-md-color-scheme="slate"] {
  /* Dark mode adjustments */
  --md-primary-fg-color: #455a64;
  --md-accent-fg-color: #ffb300;

  /* Dark graphite background instead of dark blue */
  --md-default-bg-color: #1a1a1a;          /* Dark graphite background */
  --md-default-bg-color--light: #2d2d2d;   /* Slightly lighter graphite */
  --md-default-bg-color--lighter: #3d3d3d; /* Even lighter graphite */
  --md-default-bg-color--lightest: #4d4d4d;/* Lightest graphite */
}

/* Code block styling */
.highlight .c1, .highlight .cm {
  color: #6a737d;
}

/* Improve table styling */
.md-typeset table:not([class]) {
  border: 1px solid var(--md-default-fg-color--lighter);
}

/* Custom admonition styles */
.md-typeset .admonition.example {
  border-color: #00bcd4;
}

.md-typeset .admonition.example > .admonition-title {
  background-color: rgba(0, 188, 212, 0.1);
  border-color: #00bcd4;
}

.md-typeset .admonition.example > .admonition-title::before {
  background-color: #00bcd4;
  -webkit-mask-image: var(--md-admonition-icon--example);
          mask-image: var(--md-admonition-icon--example);
}

/* Navigation improvements */
.md-nav__link--active {
  font-weight: 500;
}

/* Hide "Home" header on index page */
.md-content__inner.md-typeset h1:first-child {
  display: none;
}