/* Loaded after the core stylesheet: covers old saved page tables as well as templates. */
@media (max-width: 782px) {
  main .comparison-wrap,
  main .wp-block-table,
  main .entry-content { min-width: 0; max-width: 100%; }
  main .comparison-wrap,
  main .wp-block-table { overflow: visible; }
  main table,
  .entry-content table,
  .comparison-table {
    display: table; width: 100% !important; min-width: 0 !important;
    max-width: 100% !important; table-layout: fixed; overflow: visible;
    white-space: normal !important; overflow-wrap: anywhere;
  }
  main table th, main table td,
  .entry-content table th, .entry-content table td {
    min-width: 0; max-width: 100%; white-space: normal !important;
    overflow-wrap: anywhere; padding: 8px !important;
  }
  main table img { max-width: 100%; height: auto; }
  main .luxor-table-wrap { border: 0; background: transparent; box-shadow: none; }
  main .luxor-table--cards,
  main .luxor-table--cards tbody,
  main .luxor-table--cards tfoot { display: block; width: 100%; }
  main .luxor-table--cards thead,
  main .luxor-table--cards .luxor-table-heading { display: none; }
  main .luxor-table--cards tr {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
    margin: 0 0 10px; border: 1px solid var(--color-light-gray);
    border-radius: 8px; background: var(--color-white); overflow: visible;
  }
  main .luxor-table--cards td,
  main .luxor-table--cards th {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px;
    width: auto !important; border: 0 !important;
    border-bottom: 1px solid var(--color-light-gray) !important;
    padding: 8px 10px !important; text-align: start; line-height: 1.4;
    font-size: 13px; color: var(--color-dark);
  }
  main .luxor-table--cards td[data-label]::before,
  main .luxor-table--cards th[data-label]::before {
    content: attr(data-label); display: block; min-width: 0;
    font-size: 11px; font-weight: 600; color: var(--color-gray);
    white-space: normal; overflow-wrap: anywhere; word-break: normal;
  }
  main .luxor-table--cards tr > :first-child {
    background: var(--color-gold); color: var(--color-white);
    border-radius: 7px 7px 0 0; font-weight: 700;
  }
  main .luxor-table--cards tr > :first-child::before { display: none; }
  main .luxor-table--cards tr > :first-child strong { color: inherit; }
  main .luxor-table--cards tr > :last-child { border-bottom: 0 !important; }
  /* Six-column overview: title, four compact facts, and full-width suitability. */
  main .comparison-table--stack.luxor-table--cards tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  main .comparison-table--stack.luxor-table--cards tr > :first-child,
  main .comparison-table--stack.luxor-table--cards tr > :last-child { grid-column: 1 / -1; }
  main .comparison-table--stack.luxor-table--cards td { padding: 8px 4px !important; text-align: center; }
  main .comparison-table--stack.luxor-table--cards td:first-child,
  main .comparison-table--stack.luxor-table--cards td:last-child { padding: 8px 10px !important; text-align: start; }
  main .comparison-table--stack.luxor-table--cards td.highlight { display: grid; gap: 3px; }
}
@media (max-width: 359px) {
  main .comparison-table--stack.luxor-table--cards tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}