/* Compare page (owner, 24 Oct 2026: "I like more the before version", "All on desktop, one on phone"). From 1001px: the old table, every tool in a
   column, a mark and a short note per cell. Up to 1000px: "Compare with" picks one tool (compare.js) and each capability is a card with its answers in
   words, so nothing is wider than the screen. Guarded by test/unit/website/compare-page.test.js. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp-controls { display: none; align-items: center; gap: 10px; margin-bottom: 16px; }
.cmp-controls label { color: var(--muted); font-size: .9rem; }
.cmp-controls select { flex: 1; appearance: none; padding: 10px 38px 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink); font: 600 .95rem var(--sans);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2393a1b0' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.cmp-controls select:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* The table (the look the page had until 24 Oct 2026). */
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.cmp-table tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { font: 600 .9rem var(--sans); }
.cmp-table thead th small, .cmp-table td small { display: block; font: 500 .76rem var(--sans); margin-top: 2px; }
.cmp-table thead th small { font-weight: 400; font-size: .74rem; color: var(--muted); }
.cmp-table th[scope="row"], .cmp-table thead th:first-child { text-align: left; width: 34%; font-weight: 400; }
.cmp-table th[scope="row"] small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; font-weight: 400; }
.cmp-table .us { background: color-mix(in srgb, var(--signal) 7%, transparent); }
.cmp-table .t { font-style: normal; }
.cmp-table .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cmp-table b { font-weight: 400; }

/* Up to 1000px: cards, one capability each, the answer in words beside each tool's name. */
@media (max-width: 1000px) {
  .cmp-controls { display: flex; }
  .cmp-wrap { border: 0; background: none; box-shadow: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-table tbody { display: grid; gap: 12px; }
  .cmp-table tr { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
  .cmp-table th[scope="row"] { width: auto; padding: 14px 16px 10px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .cmp-table td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 11px 16px; text-align: left; }
  .cmp-table tr > td:last-child { border-bottom: 0; }
  .cmp-table td[hidden] { display: none; }
  .cmp-table td::before { content: attr(data-label); color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 20px; }
  .cmp-table td.us::before { color: var(--amber); font-weight: 600; padding-left: 24px; background: url("images/site-logo.png") left top 1px / 18px no-repeat; }
  .cmp-table .ans { display: block; line-height: 20px; }
  .cmp-table .t { margin-right: 6px; }
  .cmp-table .w { position: static; width: auto; height: auto; clip-path: none; }
  .cmp-table td small { display: inline; font-size: .84rem; } .cmp-table td small::before { content: " · "; }
  .cmp-table td b + small::before { content: none; } .cmp-table td b + small { display: block; color: var(--muted); }
}
