/* ===== Self-hosted DM Sans (matching main website) ===== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans.woff2') format('woff2');
}

/* Apply DM Sans as the primary font */
:root {
  --md-text-font: 'DM Sans', sans-serif;
  --md-code-font: 'Roboto Mono', monospace;
}

/* ===== QFRC Custom Colors (matching main website) ===== */
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #7E57FF;
  --md-primary-fg-color--light: #A78BFF;
  --md-primary-fg-color--dark: #6B45E0;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
}

/* Header bar: solid dark matching main website navbar */
.md-header {
  background: #081828;
}

/* Tabs bar: same color as header */
.md-tabs {
  background: #081828;
}

/* Accent color for links */
.md-typeset a {
  color: #6B45E0;
}

.md-typeset a:hover {
  color: #7E57FF;
}

/* Table layout fix */
table {
  table-layout: fixed;
  max-width: 100%;
}

/* MathJax overflow fix */
.md-typeset div.arithmatex {
  overflow: initial;
}