/* Nov 27, 2026: comparison and spec tables keep whole words and give value columns equal width */

/* Wrap only at spaces. Overrides shopper-audit overflow-wrap:anywhere on phones. */
html body.ck-roast table :is(th, td) {
  word-break: normal !important;
  overflow-wrap: normal !important;
  -webkit-hyphens: none;
  hyphens: none !important;
  white-space: normal;
}

/* Non-stacking comparison and spec tables: fixed layout so leftover width is shared equally by the value columns. */
html body.ck-roast :is(.tbl, .tw, .st10-table-scroll, .tbl-wrap, .table-wrap, .tblwrap) > table:not(.ck-stk):not(.stack):not(.ck-gh-table) {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}

/* Side-by-side vs table: narrower label column, two equal value columns. */
html body.ck-roast table.vs-t {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}
html body.ck-roast table.vs-t thead th:first-child,
html body.ck-roast table.vs-t tbody th {
  width: 30%;
}

/* 2-column specification tables: keep the label column from crowding the value. */
html body.ck-roast .psec .tbl > table:not(.ck-stk):not(.stack):not(.vs-t) > :is(thead, tbody) > tr > :first-child {
  width: 38%;
}

@media (max-width: 699px) {
  html body.ck-roast table.vs-t,
  html body.ck-roast :is(.tbl, .tw) > table:not(.ck-stk):not(.stack):not(.ck-gh-table) {
    font-size: 15px;
  }
  html body.ck-roast table.vs-t :is(th, td),
  html body.ck-roast table.vs-t :is(th, td) a,
  html body.ck-roast :is(.tbl, .tw) > table:not(.ck-stk):not(.stack):not(.ck-gh-table) :is(th, td),
  html body.ck-roast :is(.tbl, .tw) > table:not(.ck-stk):not(.stack):not(.ck-gh-table) :is(th, td) a {
    font-size: 15px !important;
    line-height: 1.35;
    padding: 8px 6px;
  }
  html body.ck-roast table.vs-t thead th:first-child,
  html body.ck-roast table.vs-t tbody th {
    width: 28%;
  }
}

/* If a non-stacking table still cannot fit, the existing .tbl / .tw scroller can move sideways instead of splitting words. */
html body.ck-roast :is(.tbl, .tw, .st10-table-scroll) {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
