/**
 * Luciano-only content styles (news / articles .text-page).
 * Loaded only when is_luciano — do not affect srazuvvazu or other brands.
 *
 * Global CSS reset zeroes table borders/padding; restore a clear table
 * so CKEditor tables look like in the admin editor.
 */

.article-inner__content .text-page table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14px;
  line-height: 1.45;
  color: #2d2d2d;
  background: #fff;
  border: 1px solid #d8d8d8;
}

.article-inner__content .text-page table caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #7c8994;
}

.article-inner__content .text-page table th,
.article-inner__content .text-page table td {
  padding: 12px 16px;
  border: 1px solid #d8d8d8;
  vertical-align: top;
  text-align: left;
  background: #fff;
}

.article-inner__content .text-page table th {
  font-weight: 700;
  background: #f4f4f4;
  color: #2d2d2d;
}

.article-inner__content .text-page table thead th {
  border-bottom: 1px solid #c8c8c8;
}

.article-inner__content .text-page table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.article-inner__content .text-page table a {
  color: var(--main-elements-color, #2363d1);
}

/* Wide editor tables: scroll instead of squeezing columns */
@media (max-width: 767px) {
  .article-inner__content .text-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
  }

  .article-inner__content .text-page table th,
  .article-inner__content .text-page table td {
    min-width: 8em;
  }
}
