/* product pages: the "Compared with other tools" table.
   One rule set for the three pages. The band decides the colours: a paper band uses
   --rule/--ink/--ink2, a dark band --rule-dark/--on-dark/--on-dark2. */

.compare-band{--cmp-rule:var(--rule);--cmp-ink:var(--ink);--cmp-ink2:var(--ink2)}
.dark.compare-band{--cmp-rule:var(--rule-dark);--cmp-ink:var(--on-dark);--cmp-ink2:var(--on-dark2)}

.compare-band h2{margin-bottom:40px}

.compare{width:100%;max-width:880px;border-collapse:collapse;font-size:15.5px}
.compare th,.compare td{text-align:left;vertical-align:top;padding:15px 24px 15px 0;border-bottom:1px solid var(--cmp-rule)}
.compare tr>*:last-child{padding-right:0}
/* the header row is quiet, the rule under it is the firm one */
.compare thead tr>*{font:500 13px/1.4 var(--sans);color:var(--cmp-ink2);padding-top:0;border-bottom-color:var(--cmp-ink)}
.compare thead th:nth-child(2){width:40%}
.compare th[scope=row]{font-weight:400;color:var(--cmp-ink2);width:24%}
.compare tbody td:nth-child(2){color:var(--cmp-ink)}
.compare tbody td:nth-child(3){color:var(--cmp-ink2)}
.compare-note{margin:20px 0 0;font-size:13.5px;color:var(--cmp-ink2)}

/* phone: the table stacks, one row at a time, and never scrolls sideways */
@media (max-width:640px){
  .compare{border-collapse:separate;border-spacing:0}
  .compare thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
  .compare tbody tr{display:block;padding:16px 0;border-bottom:1px solid var(--cmp-rule)}
  .compare tbody tr:last-child{border-bottom:0}
  .compare th[scope=row],.compare td{display:block;width:auto;border:0;padding:0}
  .compare tbody td{margin-top:14px}
  .compare td::before{content:attr(data-label);display:block;font:500 12.5px/1.4 var(--sans);color:var(--cmp-ink2);margin-bottom:3px}
}

/* print: the dark band prints on white, so the table takes the paper colours */
@media print{
  .dark.compare-band{--cmp-rule:var(--rule);--cmp-ink:var(--ink);--cmp-ink2:var(--ink2)}
}
