/* ── MLS Business Manual – Custom Styles ─────────────────────────────── */

/* Page width — give content more room */
.md-grid {
  max-width: 1400px;
}

/* Hide right TOC sidebar — not needed, gives more content width */
.md-sidebar--secondary {
  display: none;
}

/* ── Typography ───────────────────────────────────────────────────────── */
.md-typeset {
  font-size: 0.7rem;
  line-height: 1.75;
}

/* Navigation font size */
.md-nav {
  font-size: 0.68rem;
}

.md-typeset h1 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6em;
  border-bottom: 2px solid #3f51b5;
  padding-bottom: 0.3em;
}

.md-typeset h2 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.2em;
}

.md-typeset h3 {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 1.4em;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  margin: 1.2em 0;
}

.md-typeset table:not([class]) th {
  background-color: #f6f6f6;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 0.55em 0.9em;
  border-top: 1px solid #ddd;
  border-bottom: 2px solid #ccc;
}

.md-typeset table:not([class]) td {
  padding: 0.55em 0.9em;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: 1px solid #ddd;
}

.md-typeset table:not([class]) tr:nth-child(even) td {
  background-color: #fafafa;
}

/* ── Horizontal rules ─────────────────────────────────────────────────── */
.md-typeset hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* ── Blockquotes ──────────────────────────────────────────────────────── */
.md-typeset blockquote {
  border-left: 4px solid #3f51b5;
  background: #f5f7fa;
  padding: 0.8em 1.2em;
  margin: 1.2em 0;
  border-radius: 0 4px 4px 0;
  color: #444;
}

/* ── Header border (needed when primary is white) ─────────────────────── */
.md-header {
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.md-nav__title {
  font-weight: 700;
}

/* ── Page-specific table column widths ────────────────────────────────── */
/* R3SYS variable reference — widen the Variable column */
#variable-reference ~ table th:first-child,
#variable-reference ~ table td:first-child {
  white-space: nowrap;
}

/* Prevent command names (code spans) inside tables from wrapping */
.md-typeset table td code {
  white-space: nowrap;
}

/* ── Print / PDF styles ───────────────────────────────────────────────── */
@media print {
  .md-sidebar,
  .md-header,
  .md-footer,
  .md-tabs {
    display: none !important;
  }

  .md-content {
    margin: 0 !important;
    max-width: 100% !important;
  }

  .md-typeset table:not([class]) th {
    background-color: #f6f6f6 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .md-typeset table:not([class]) tr:nth-child(even) td {
    background-color: #fafafa !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
