/* docs/assets/css/extra.css */

/* Override MkDocs Material wrappers to allow intrinsic table sizing */
.md-typeset__scrollwrap,
.md-typeset {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.md-typeset__table {
  display: inline-table !important;
  width: auto !important;
  max-width: none !important;
  margin-bottom: 1rem !important;
}

/* Target only plain markdown tables inside the wrapper */
.md-typeset__table table:not([class]) {
  display: table !important;
  table-layout: auto !important;      /* content-driven column widths */
  width: auto !important;
  border-collapse: collapse !important;
}

/* Prevent wrapping inside cells so columns are as narrow as possible */
.md-typeset__table table:not([class]) th,
.md-typeset__table table:not([class]) td {
  padding: 0.5rem !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* Optional: sticky headers remain visible on scroll */
.md-typeset__table table:not([class]) th {
  position: sticky !important;
  top: 0 !important;
  background: var(--md-default-bg) !important;
  z-index: 5 !important;
}

/* Reduce font-size slightly on very narrow screens */
@media screen and (max-width: 600px) {
  .md-typeset__table table:not([class]) {
    font-size: 0.85rem !important;
  }
}

/* End of extra.css */
