/* Информационные страницы: таблицы и картинки не вылезают за колонку.
   Те же правила грузятся в iframe редактора Jodit. */

.content,
.page-rich-text {
  overflow-x: auto;
}

/* Bulma в тёмной теме ОС красит .content h1–h6 в светлый цвет.
   Фон страницы остаётся белым, поэтому заголовок почти не виден. */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: inherit;
}

.content table,
.page-rich-text table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
}

.page-content .content table th,
.page-content .content table td,
.page-rich-text th,
.page-rich-text td {
  width: auto !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid #dbdbdb;
  padding: 0.5em 0.75em;
  /* Bulma красит th в --bulma-text-strong. В тёмной теме ОС это почти белый. */
  color: #212121;
  vertical-align: top;
}

/* Bulma снимает нижнюю границу у последней строки tbody. */
.page-content .content table tr:last-child > th,
.page-content .content table tr:last-child > td {
  border-bottom: 1px solid #dbdbdb;
}

@media screen and (max-width: 768px) {
  .page-content .content table {
    font-size: 12px;
  }

  .page-content .content table th,
  .page-content .content table td {
    padding: 2px;
  }
}

.content img,
.page-rich-text img {
  max-width: 100%;
  height: auto !important;
}
