/* Public events retain a table layout and scroll sideways on narrow screens. */
.mevents-table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.mevents-table table.itab {
  table-layout: auto;
}

/* Reserve roughly eight characters for event dates, while allowing wrapping. */
.mevents-table table.itab th:first-child,
.mevents-table table.itab td:first-child {
  min-width: 8ch;
}

/* Headings can wrap at spaces (Closing Date), but never inside a word. */
.mevents-table table.itab th {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* At is column 2 for clubs, column 3 when the ICD Area column is present.
   Give venue names room, with line breaks at spaces rather than mid-word.
   Date cells retain their wrapping within the minimum width above. */
.mevents-table:not(.mevents-icd) table.itab th:nth-child(2),
.mevents-table:not(.mevents-icd) table.itab td:nth-child(2),
.mevents-table.mevents-icd table.itab th:nth-child(3),
.mevents-table.mevents-icd table.itab td:nth-child(3) {
  min-width: 9ch;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* These short action headings should remain on a single line. */
.mevents-table:not(.mevents-icd) table.itab th:nth-child(3),
.mevents-table:not(.mevents-icd) table.itab th:nth-child(4),
.mevents-table:not(.mevents-icd) table.itab th:nth-child(6),
.mevents-table.mevents-icd table.itab th:nth-child(5) {
  white-space: nowrap;
}
