/* Increase max content width for dense tables and code blocks */
.md-grid {
  max-width: 1280px;
}

/* Better table rendering */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* Horizontal scroll on mobile for wide tables */
@media (max-width: 768px) {
  .md-typeset table:not([class]) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td {
    white-space: nowrap;
  }
}

/* Tighten table cell padding slightly */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.5rem 0.75rem;
}

/* Subtle alternating row shading */
.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: var(--md-code-bg-color);
}

/* Code blocks: slightly smaller font on mobile */
@media (max-width: 768px) {
  .md-typeset code {
    font-size: 0.8rem;
  }

  .md-typeset pre code {
    font-size: 0.78rem;
  }
}
