/* GBA101 responsive article tables — table style package 1.1.0. */
.gba101-table-wrap {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d8dee7;
  border-radius: 0.6rem;
  background: var(--wp--preset--color--base-2, #ffffff);
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

/*
 * Twenty Twenty-Four uses a full-width post-content element whose direct
 * children are individually constrained to the content-size variable. Keep
 * tables in that same content column instead of resolving 100% against the
 * full-width parent. The explicit margins win the theme's generic constrained
 * layout rule without introducing a full-bleed or negative-margin escape.
 */
.entry-content.is-layout-constrained > .gba101-table-wrap,
.wp-block-post-content.is-layout-constrained > .gba101-table-wrap {
  width: 100%;
  max-width: var(--wp--style--global--content-size, 820px);
  margin-left: auto !important;
  margin-right: auto !important;
}

.gba101-table-wrap .gba101-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--wp--preset--color--contrast, #0f172a);
  background: var(--wp--preset--color--base-2, #ffffff);
  font-size: 1rem;
  line-height: 1.7;
}

.gba101-table th,
.gba101-table td {
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 0;
  border-right: 1px solid #d8dee7;
  border-bottom: 1px solid #d8dee7;
  text-align: left;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.gba101-table tr > :last-child {
  border-right: 0;
}

.gba101-table tbody tr:last-child > * {
  border-bottom: 0;
}

.gba101-table th {
  color: var(--wp--preset--color--contrast, #0f172a);
  background: #eef2f6;
  font-weight: 650;
  line-height: 1.5;
}

.gba101-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.gba101-table tbody tr:hover {
  background: #f1f5f9;
}

.gba101-table--balanced {
  min-width: 680px;
}

.gba101-table--instructional,
.gba101-table--comparison {
  min-width: 720px;
}

.gba101-table--numeric {
  min-width: 640px;
  font-variant-numeric: tabular-nums;
}

.gba101-table--cols-2 .gba101-col--1,
.gba101-table--cols-2 .gba101-col--2 {
  width: 50%;
}

.gba101-table--balanced.gba101-table--cols-3 .gba101-col--1,
.gba101-table--balanced.gba101-table--cols-3 .gba101-col--2 {
  width: 33%;
}

.gba101-table--balanced.gba101-table--cols-3 .gba101-col--3 {
  width: 34%;
}

.gba101-table--instructional.gba101-table--cols-3 .gba101-col--1 {
  width: 28%;
}

.gba101-table--instructional.gba101-table--cols-3 .gba101-col--2 {
  width: 30%;
}

.gba101-table--instructional.gba101-table--cols-3 .gba101-col--3 {
  width: 42%;
}

.gba101-table--comparison .gba101-col--1 {
  width: 32%;
}

.gba101-table--numeric .gba101-col--1 {
  width: 40%;
}

@media (max-width: 782px) {
  .gba101-table-wrap {
    margin-block: 1.25rem 1.75rem;
    border-radius: 0.45rem;
  }

  .gba101-table th,
  .gba101-table td {
    padding: 0.7rem 0.85rem;
  }
}
