/* Readable Markdown tables throughout the learning site.
   Keep Material's existing responsive table wrapper and theme colors. */
.md-typeset table:not([class]) {
  font-size: .95rem;
  line-height: 1.6;
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  font-size: inherit;
  padding: .7rem .9rem;
  vertical-align: top;
}

.md-typeset table:not([class]) th {
  font-weight: 700;
}

/* Retain legible type on phones while allowing long cells to wrap.
   Wide tables can still scroll horizontally inside Material's wrapper. */
@media screen and (max-width: 600px) {
  .md-typeset table:not([class]) {
    font-size: .9rem;
  }

  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td {
    min-width: 4rem;
    padding: .55rem .65rem;
    overflow-wrap: anywhere;
  }
}
