/* You're Welcome - responsive tables, version 0.7.
   Fonts follow the website's body text; no box shadows or yellow accent.
   All selectors are scoped to the table Matrix section.
*/
.yw-table {
  --yw-table-blue: #005894;
  --yw-table-line: #dce6ec;
  --yw-table-alternate: #f7f9fa;
  --yw-table-muted: #506677;
  --yw-table-min-width: 0px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1rem; /* main.min.css sets html to 20px: same as body paragraphs */
  line-height: 1.5;
}
.yw-table, .yw-table * { box-sizing: border-box; }

/* Preserve the site's H2 typography; adjust spacing only inside table sections. */
.section.section_mtx_sections_table .yw-table > h2.title.is-2 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
.section.section_mtx_sections_table {
  padding-top: 30px;
  padding-bottom: 24px;
}
.section.section_mtx_sections_table .yw-table > .yw-table__intro {
  margin: 0 0 14px !important;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
}
.yw-table .yw-table__hint {
  display: none;
  margin: 0 0 10px;
  color: var(--yw-table-muted);
  font-size: .8em;
  line-height: 1.5;
}
.yw-table .yw-table__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--yw-table-line);
  border-radius: 8px;
}
.yw-table .yw-table__scroll:focus-visible {
  outline: 3px solid var(--yw-table-blue);
  outline-offset: 3px;
}
.yw-table .yw-table__table {
  display: table;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}
.yw-table .yw-table__table th,
.yw-table .yw-table__table td {
  padding: 16px 17px;
  vertical-align: top;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--yw-table-line);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
/* Same subtle separator on every row and column. */
.yw-table .yw-table__table tr > :not(:last-child) {
  border-right: 1px solid var(--yw-table-line);
}
.yw-table .yw-table__table thead th {
  background: var(--yw-table-blue);
  color: #fff;
  font-weight: 700;
  border-bottom: 0;
}
.yw-table .yw-table__table tbody tr:nth-child(odd) > * { background: #fff; }
.yw-table .yw-table__table tbody tr:nth-child(even) > * {
  background: var(--yw-table-alternate);
}
/* Normal cells and optional normal-styled row headers use body text color. */
.yw-table .yw-table__table tbody th { color: inherit; font-weight: 400; }
.yw-table .yw-table__table tbody .yw-table__cell--emphasis {
  color: var(--yw-table-blue);
  font-weight: 700;
}
.yw-table .yw-table__table tbody tr:last-child > * { border-bottom: 0; }
.yw-table .yw-table__note {
  margin: 12px 0 0;
  color: var(--yw-table-muted);
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
}
.yw-table .yw-table__visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
/* Wide tables scroll within the module; two columns share width 50/50. */
.yw-table--cols-3 { --yw-table-min-width: 600px; }
.yw-table--cols-4 { --yw-table-min-width: 720px; }
.yw-table--cols-5 { --yw-table-min-width: 880px; }
.yw-table--cols-6 { --yw-table-min-width: 1040px; }
.yw-table--cols-7 { --yw-table-min-width: 1200px; }
.yw-table--cols-8 { --yw-table-min-width: 1360px; }
.yw-table--wide .yw-table__table {
  min-width: max(100%, var(--yw-table-min-width));
}
.yw-table--simple .yw-table__table { min-width: 0; }

@media (min-width: 761px) {
  .section.section_mtx_sections_table .yw-table > .yw-table__intro {
    margin-bottom: 20px !important;
  }
  /* Keep old comparison balance; free mode uses equal column widths. */
  .yw-table--comparison.yw-table--cols-3 .yw-table__table tr > :first-child {
    width: 30%;
  }
}
@media (max-width: 760px) {
  .section.section_mtx_sections_table {
    padding-top: 22px;
    padding-bottom: 16px;
  }
  .yw-table .yw-table__table th,
  .yw-table .yw-table__table td { padding: 13px 12px; }

  /* Sticky criteria only for comparison mode, not for equal free-mode columns. */
  .yw-table--comparison.yw-table--wide .yw-table__table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 180px;
    min-width: 180px;
  }
  .yw-table--comparison.yw-table--wide .yw-table__table thead th:first-child {
    z-index: 2;
  }
  .yw-table--wide .yw-table__hint { display: block; }
}
@media print {
  .yw-table .yw-table__hint { display: none; }
  .yw-table .yw-table__scroll { overflow: visible; border-radius: 0; }
  .yw-table--wide .yw-table__table { min-width: 0; }
  .yw-table--comparison.yw-table--wide .yw-table__table tr > :first-child {
    position: static;
  }
  .yw-table .yw-table__table tr { break-inside: avoid; }
}
