/* SWE-sweep research: Method page only. Loaded after paper.css, swv.css and figures.css; scoped to html.paper. */

/* Table 2 (the model runs, #runs-table) is styled by swv.css and figures.css. */

/* Table 1: the six fixes. Four columns on desktop; one block per fix under 560px. */
html.paper .chtable { table-layout: fixed; }
html.paper .chtable col.c-fix { width: 5.6em; }
html.paper .chtable col.c-n { width: 3.6em; }
html.paper .chtable col.c-what { width: 38%; }
html.paper .booktabs.chtable th:first-child { width: auto; }
html.paper .chtable th, html.paper .chtable td { vertical-align: top; }
html.paper .chtable tbody th { padding-top: 7px; }
html.paper .chtable tbody tr > * { border-top: 0.6px solid var(--line); padding-top: 7px; padding-bottom: 7px; }
html.paper .chtable tbody tr:first-child > * { border-top: 0; }
html.paper .chtable td.wrap { white-space: normal; overflow-wrap: break-word; hyphens: manual; text-align: left; }
html.paper .chtable td.ch-n { white-space: nowrap; }
html.paper .chtable td.wrap code { overflow-wrap: anywhere; }

/* Limits: one short item each */
html.paper .copy ul.limits > li { margin-bottom: 6px; text-align: left; hyphens: manual; }

html.paper .copy ul.sources li { text-align: left; }
html.paper .copy ul.sources b { font-weight: 400; font-style: italic; }   /* run-in source names: italic, not bold */

@media (max-width: 560px) {
  /* Table 1 as one block per fix: the fix and its task count, then what it changes, then the result */
  html.paper .chtable, html.paper .chtable tbody, html.paper .chtable tr, html.paper .chtable th, html.paper .chtable td { display: block; width: auto; }
  html.paper .chtable thead, html.paper .chtable colgroup { display: none; }
  html.paper .chtable tbody tr { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 8px 0; border-top: 0.6px solid var(--line); }
  html.paper .chtable tbody tr:first-child { border-top: 0; }
  html.paper .chtable tbody tr > *, html.paper .chtable tbody tr:first-child > *, html.paper .chtable tbody tr:last-child > * { border-top: 0; padding: 0 2px; }
  html.paper .chtable th.ch-fix { grid-column: 1; grid-row: 1; }
  html.paper .chtable td.ch-n { grid-column: 2; grid-row: 1; text-align: left; color: var(--muted); }
  html.paper .chtable td.wrap { grid-column: 1 / -1; margin-top: 4px; }
}

