/* ==========================================================================
   Styles for the Scan Outcomes page (docs/operations/scan/deep-dive/scan-outcomes.md).
   One file mirroring the page's path. Applies only to tables wrapped in
   <div class="scan-outcomes-table" markdown>.
   ========================================================================== */

/* No width restriction: every table is as wide as its content needs, and the
   theme's own table wrapper provides the sideways scroll when that exceeds
   the page. Headers, labels and code identifiers never break across lines;
   only the prose columns wrap, and each keeps a minimum width so it reads as
   a paragraph rather than a ribbon. */
.md-typeset .scan-outcomes-table table {
  width: auto;
  min-width: 100%;
  table-layout: auto;
}

.md-typeset .scan-outcomes-table th,
.md-typeset .scan-outcomes-table td {
  white-space: nowrap;
  vertical-align: top;
}

/* Two-column tables (fault domains, warning levels, check results): the
   label column stays on one line and the description column wraps. */
.md-typeset .scan-outcomes-table--two-col td:nth-child(2) {
  white-space: normal;
  min-width: 20rem;
}

/* Prose columns, per table. */
.md-typeset .scan-outcomes-table--layers td:nth-child(2),
.md-typeset .scan-outcomes-table--layers td:nth-child(4),
.md-typeset .scan-outcomes-table--warnings td:nth-child(1),
.md-typeset .scan-outcomes-table--warnings td:nth-child(3),
.md-typeset .scan-outcomes-table--warnings td:nth-child(4),
.md-typeset .scan-outcomes-table--codes td:nth-child(3),
.md-typeset .scan-outcomes-table--api td:nth-child(3) {
  white-space: normal;
  min-width: 20rem;
}

.md-typeset .scan-outcomes-table--codes td:nth-child(3),
.md-typeset .scan-outcomes-table--api td:nth-child(3) {
  min-width: 26rem;
}
