/* Keep the label column compact and share remaining space equally. */
.tools-comparison { overflow-x: auto; }
.tools-comparison table { width: 100%; table-layout: auto; }
.tools-comparison table th:first-child,
.tools-comparison table td:first-child { width: 1%; white-space: nowrap; }
.tools-comparison table th:nth-child(2),
.tools-comparison table td:nth-child(2),
.tools-comparison table th:nth-child(3),
.tools-comparison table td:nth-child(3) { width: 49.5%; }
.tools-comparison table th,
.tools-comparison table td { padding: 0.65rem 0.75rem; vertical-align: top; }
.tools-comparison .comparison-logo { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; margin-right: 0.35rem; }

/* Override the equal-width colgroup generated by Pandoc. */
.tools-comparison col:first-child { width: 1% !important; }
.tools-comparison col:nth-child(2),
.tools-comparison col:nth-child(3) { width: 49.5% !important; }

/* Chapter 1 tool reference: compact labels and a distinct header. */
.tools-reference { overflow-x: auto; margin: 1rem 0; }
.tools-reference table { width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; border: 1px solid #ddd5e8; border-radius: 8px; overflow: hidden; }
.tools-reference col:first-child { width: 1% !important; }
.tools-reference col:nth-child(2) { width: 99% !important; }
.tools-reference th:first-child,
.tools-reference td:first-child { width: 1%; white-space: nowrap; }
.tools-reference th:nth-child(2),
.tools-reference td:nth-child(2) { width: 99%; }
.tools-reference table > thead > tr > th { background: #4e2a84; color: #fff; font-weight: 700; border-bottom: 0; }
.tools-reference th,
.tools-reference td { padding: 0.75rem 0.9rem; vertical-align: middle; }
.tools-reference tbody tr:nth-child(even) td { background: #f7f4fa; }
.tools-reference tbody tr:last-child td { border-bottom: 0; }
.tools-reference .tool-logo { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 0.45rem; }
