/* DCS Modding Handbook custom styles
 *
 * Override Material theme defaults where appropriate.
 * Keep this file small - the default Material theme is well-designed,
 * we should only override what genuinely needs changing.
 */

/* Slightly tighten the content width for better reading line length */
.md-grid {
  max-width: 1440px;
}

/* Custom amber accent that's a touch warmer than Material default */
[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #ffb300;
  --md-accent-fg-color--transparent: rgba(255, 179, 0, 0.1);
}

/* Make tables a bit more readable - tighter padding, clearer header */
.md-typeset table:not([class]) th {
  background-color: var(--md-default-fg-color--lightest);
  font-weight: 600;
}

.md-typeset table:not([class]) {
  font-size: 0.85rem;
}

/* Keyboard shortcut keys - make them stand out slightly more */
.md-typeset kbd {
  background-color: var(--md-default-fg-color--lightest);
  border: 1px solid var(--md-default-fg-color--light);
  border-radius: 0.2rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  font-family: var(--md-code-font-family);
  font-weight: 600;
}

/* Image captions - if you use the syntax: ![Caption](image.png "Caption") */
.md-typeset img + em {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.5rem;
}

/* Admonition tweaks - slightly less aggressive borders */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.2rem;
}

/* "Last updated" footer in a friendlier place */
.md-source-file__fact {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Mermaid diagrams centered */
.mermaid {
  text-align: center;
}

/* Deeper code block contrast in dark mode */
[data-md-color-scheme="slate"] .highlight pre,
[data-md-color-scheme="slate"] .highlight code {
  background-color: #1a1a1a;
}
