/* Munipack documentation: small adjustments to the Furo theme. */

/* Tables: keep the first column (option names, keywords, paths) on one
   line. A table that gets too wide for the page scrolls sideways in its
   own container (Furo's .table-wrapper) instead of squeezing the columns. */
table.docutils th:first-child,
table.docutils td:first-child,
table.docutils td:first-child code,
table.docutils th:first-child code {
  white-space: nowrap;
}

/* The other columns wrap normally, but do not get narrower than a few
   words, so that on a phone the table scrolls rather than becoming a
   column of single words. */
table.docutils td:not(:first-child),
table.docutils th:not(:first-child) {
  white-space: normal;
  overflow-wrap: break-word;
}
table.docutils td:last-child:not(:first-child) {
  min-width: 14em;
}

/* Inline code is never split inside a word (`--psf-file` stays whole);
   the text around it wraps as usual. */
table.docutils td code {
  white-space: nowrap;
}

/* Make sure the scroll container never makes the page itself wider. */
[role=main] .table-wrapper.container {
  max-width: 100%;
}
