/* Comparison pages: best-chore-apps posts (EN + 5 locales) and /chore-app-data.
   Loaded only by those pages, so changing it never needs a ?v= sweep of style.css. */

/* Visually hidden, still read by screen readers and crawlers. The rule used to live
   under .post-table--features only, so every other table showed its caption. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- price table ---------- */
.post-table--prices { font-variant-numeric: tabular-nums; }
.post-table--prices tbody td { color: var(--slate); font-size: 0.95rem; }
.post-table--prices tbody th[scope="row"],
.post-table--prices thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  box-shadow: 1px 0 0 rgba(46,58,69,0.10);
}
.post-table--prices thead th:first-child { z-index: 3; background: var(--warm-white); }
.post-table--prices tbody tr:nth-child(even) th[scope="row"] { background: #fbfbfa; }
.post-table--prices tbody tr.is-mine th[scope="row"] { background: var(--green-light); }

/* ---------- pros / cons table ---------- */
.post-table-wrap .post-table--proscons { min-width: 0; table-layout: fixed; }
.post-table--proscons thead th:first-child { width: 17%; }
.post-table--proscons thead th:nth-child(2),
.post-table--proscons thead th:nth-child(3) { width: 41.5%; }
.post-table--proscons thead th:nth-child(2) { color: #13684f; box-shadow: inset 0 -3px 0 #1b8a6b; }
.post-table--proscons thead th:nth-child(3) { color: #8a4b08; box-shadow: inset 0 -3px 0 #d98a1c; }
.post-table--proscons tbody th[scope="row"] { font-size: 1.02rem; }
.post-table--proscons tbody td {
  color: var(--slate);
  font-size: 0.97rem;
  line-height: 1.6;
  padding: 16px 18px;
}
.post-table--proscons tbody tr:hover { background: transparent; }
.post-table--proscons tbody tr.is-mine:hover { background: var(--green-light); }

/* .inner-content ul / li add a margin and disc bullets; beat that specificity */
.inner-content .pc-list,
.pc-list { list-style: none; margin: 0; padding: 0; }
.inner-content .pc-list li,
.pc-list li { list-style: none; position: relative; padding-left: 1.35em; margin: 0 0 0.55em; color: var(--slate); line-height: 1.6; }
.pc-list li:last-child { margin-bottom: 0; }
.pc-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
/* the mark is shape AND colour, so the meaning never rests on colour alone */
.post-table--proscons td:nth-of-type(1) .pc-list li::before { content: "+"; color: #13684f; }
.post-table--proscons td:nth-of-type(2) .pc-list li::before { content: "\2013"; color: #a55a09; }

/* Phones: one card per app, pros above cons, no sideways scrolling. */
@media (max-width: 720px) {
  .post-table-wrap:has(.post-table--proscons) { overflow-x: visible; border: none; box-shadow: none; background: transparent; }
  .post-table--proscons,
  .post-table--proscons tbody,
  .post-table--proscons tr,
  .post-table--proscons th,
  .post-table--proscons td { display: block; width: 100%; }
  .post-table--proscons thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .post-table--proscons tbody tr {
    margin: 0 0 16px;
    background: var(--white);
    border: 1px solid rgba(46,58,69,0.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .post-table--proscons tbody tr:nth-child(even) { background: var(--white); }
  .post-table--proscons tbody tr.is-mine { background: var(--green-light); }
  .post-table--proscons tbody th[scope="row"] {
    padding: 14px 16px 6px;
    font-size: 1.1rem;
    border-top: none;
  }
  .post-table--proscons tbody td { padding: 8px 16px 14px; border-top: none; font-size: 1rem; }
  .post-table--proscons tbody td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .post-table--proscons td:nth-of-type(1)::before { color: #13684f; }
  .post-table--proscons td:nth-of-type(2)::before { color: #8a4b08; }
}
