/* docs/stylesheets/extra.css */
.md-main__inner {
  max-width: 80%;
  /* default is ~1000px */
}

.md-content {
  max-width: 80%;
  /* default ~700px */
}

/* Light scheme (Material 'default') */
[data-md-color-scheme="default"] {
  --md-code-bg-color: #f8fafc;
  --md-code-fg-color: #2c2c2c;
  --md-code-hl-keyword-color: #6f42c1;
  --md-code-hl-name-color: #0b76da;
  --md-code-hl-string-color: #b54708;
  --md-code-hl-number-color: #d73a49;
}

/* Dark scheme (Material 'slate') */
[data-md-color-scheme="slate"] {
  --md-code-bg-color: #0f111a;
  --md-code-fg-color: #e6e6e6;
  --md-code-hl-keyword-color: #c792ea;
  --md-code-hl-name-color: #82aaff;
  --md-code-hl-string-color: #ecc48d;
  --md-code-hl-number-color: #f78c6c;
}


/* === Clean Minimal FAQ Styling (final override) === */

/* Neutral gray frame and subtle background */
.md-typeset .admonition.question,
.md-typeset details.question {
  border: 1px solid var(--md-default-fg-color--lightest);
  background-color: rgba(128, 128, 128, 0.05);
  border-left: 3px solid var(--md-default-fg-color--lighter);
  box-shadow: none;
  border-radius: 6px;
}

/* Question summary styling */
.md-typeset .admonition.question>summary,
.md-typeset details.question>summary {
  color: var(--md-default-fg-color);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0.75em 1em;
}

/* Remove any icons before text */
.md-typeset .admonition.question::before,
.md-typeset details.question::before,
.md-typeset .admonition.question>summary::before,
.md-typeset details.question>summary::before {
  display: none !important;
  content: none !important;
}

/* === Force arrow color to gray === */
.md-typeset details>summary::after,
.md-typeset details.question>summary::after {
  color: #aaa !important;
  /* neutral gray arrow */
  opacity: 0.7 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Brighter gray on expand */
.md-typeset details[open]>summary::after,
.md-typeset details.question[open]>summary::after {
  color: #ccc !important;
  opacity: 0.9 !important;
  transform: rotate(90deg);
}

/* Subtle hover feedback */
.md-typeset details.question>summary:hover {
  background-color: rgba(128, 128, 128, 0.08);
  border-radius: 6px;
}

/* Increase top header (logo bar) height */
.md-header {
  min-height: 70px;
  /* default is ~64px */
}

/* Ensure content aligns vertically */
.md-header__inner {
  height: 100%;
}

.md-header__button.md-logo img {
  height: 46px;
  /* default ~24–32px */
  width: auto;
}

/* Header title (site name next to logo) */
.md-header__title {
  /* font-family: "Inter", sans-serif; */
  /* or any font you prefer */
  /* font-size: 1.35rem; */
  /* increase/decrease as needed */
  /* font-weight: 600; */
  /* 400–700 works well */
  /* letter-spacing: 0.02em; */
  /* optional, gives a premium feel */
}

/* Optional: prevent wrapping on smaller screens */
.md-header__title {
  white-space: nowrap;
}

/* Shared H1 sizing & typography */
.md-content__inner>header>h1,
.md-content__inner h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Light mode (black text) */
[data-md-color-scheme="default"] .md-content__inner>header>h1,
[data-md-color-scheme="default"] .md-content__inner h1 {
  color: #343434;
}

/* Dark mode (white text) */
[data-md-color-scheme="slate"] .md-content__inner>header>h1,
[data-md-color-scheme="slate"] .md-content__inner h1 {
  color: #d3d3d3;
}

/* Tighten spacing between page title and first section heading (blog + non-blog) */

/* 1) Remove spacing under the title header block */
.md-content__inner>header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 2) Remove spacing under the title itself */
.md-content__inner>header>h1 {
  margin-bottom: 0.25rem !important;
}

/* 3) Pull up the first H2/H3 that appears anywhere in the content area */
.md-content__inner .md-typeset h2:first-of-type,
.md-content__inner .md-typeset h3:first-of-type {
  margin-top: 0.25rem !important;
}

/* 4) If your first heading is wrapped (common), also reduce padding at the top of the typeset container */
.md-content__inner .md-typeset {
  padding-top: 0 !important;
}