/* Accessible containment for wide tables and long tokens.
   Fitted desktop tables stay unchanged: chrome and tab stops appear
   only when a wrapper actually overflows. */

#quarto-document-content,
main.content {
  min-width: 0;
}

.table-containment {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-containment > table {
  margin-left: 0;
  margin-right: 0;
}

.table-containment-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-containment-hint {
  display: none;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #475569;
}

.table-containment-hint[hidden] {
  display: none !important;
}

.table-containment.is-overflowing > .table-containment-hint {
  display: block;
}

.table-containment.is-overflowing:focus {
  outline: none;
}

.table-containment.is-overflowing:focus-visible {
  outline: 2px solid #0FB5BA;
  outline-offset: 2px;
}

[data-bs-theme="dark"] .table-containment-hint {
  color: #94a3b8;
}

[data-bs-theme="dark"] .table-containment.is-overflowing:focus-visible {
  outline-color: #5eead4;
}

@media (max-width: 767.98px) {
  main.content table td,
  main.content table th,
  #quarto-document-content table td,
  #quarto-document-content table th {
    overflow-wrap: anywhere;
  }

  main.content pre,
  #quarto-document-content pre {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media print {
  .table-containment {
    overflow: visible;
  }

  .table-containment-hint {
    display: none !important;
  }
}
