/**
 * Site-wide content tables — borders, spacing, readability.
 * Loaded after theme / wp-custom-css for consistent styling.
 */
.page-text table,
.main-text-content table,
.editorial-gambling-review table,
.responsible-gambling table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  border: 2px solid rgba(200, 165, 235, 0.75);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.55;
  background-color: #ffffff;
}

.page-text th,
.page-text td,
.main-text-content th,
.main-text-content td,
.editorial-gambling-review th,
.editorial-gambling-review td,
.responsible-gambling th,
.responsible-gambling td {
  border: 1px solid rgba(150, 120, 185, 0.65);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  color: #1a0a24;
}

.page-text thead th,
.main-text-content thead th,
.editorial-gambling-review thead th,
.responsible-gambling thead th {
  background-color: #ede8f3;
  font-weight: 600;
  color: #1a0a24;
}

.page-text tbody tr:nth-child(even),
.main-text-content tbody tr:nth-child(even),
.editorial-gambling-review tbody tr:nth-child(even),
.responsible-gambling tbody tr:nth-child(even) {
  background-color: #faf8fc;
}

.page-text tbody tr:hover,
.main-text-content tbody tr:hover,
.editorial-gambling-review tbody tr:hover,
.responsible-gambling tbody tr:hover {
  background-color: #f3eef9;
}

.page-text table a,
.main-text-content table a,
.editorial-gambling-review table a,
.responsible-gambling table a {
  color: #5b21b6;
  text-decoration: underline;
}

.page-text table a:hover,
.main-text-content table a:hover,
.editorial-gambling-review table a:hover,
.responsible-gambling table a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .page-text table,
  .page-text thead,
  .page-text tbody,
  .page-text th,
  .page-text td,
  .page-text tr,
  .main-text-content table,
  .main-text-content thead,
  .main-text-content tbody,
  .main-text-content th,
  .main-text-content td,
  .main-text-content tr,
  .editorial-gambling-review table,
  .editorial-gambling-review thead,
  .editorial-gambling-review tbody,
  .editorial-gambling-review th,
  .editorial-gambling-review td,
  .editorial-gambling-review tr,
  .responsible-gambling table,
  .responsible-gambling thead,
  .responsible-gambling tbody,
  .responsible-gambling th,
  .responsible-gambling td,
  .responsible-gambling tr {
    display: block;
  }

  .page-text thead,
  .main-text-content thead,
  .editorial-gambling-review thead,
  .responsible-gambling thead {
    display: none;
  }

  .page-text tr,
  .main-text-content tr,
  .editorial-gambling-review tr,
  .responsible-gambling tr {
    margin-bottom: 16px;
    border: 2px solid rgba(200, 165, 235, 0.75);
    border-radius: 8px;
    padding: 12px 14px;
    background-color: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  }

  .page-text td,
  .main-text-content td,
  .editorial-gambling-review td,
  .responsible-gambling td {
    border: none;
    padding: 8px 0;
  }

  .page-text td::before,
  .main-text-content td::before,
  .editorial-gambling-review td::before,
  .responsible-gambling td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #1a0a24;
  }
}
