/* Competitor comparison pages (/compare/). Builds on buying-guides.css (.guide-page). */
.cmp-page{--cmp-panel:#f6f7f6;--cmp-line:#dde2e3;--cmp-ours:#e8eef7;--cmp-ours-edge:#4176ba;--cmp-muted:#556469;--cmp-zebra:#f6f7f6}
.cmp-page main *{animation:none!important}
.cmp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cmp-crumbs ol{display:flex;flex-wrap:wrap;gap:6px 0;list-style:none;margin:8px 0 0;padding:0;font-size:15px;color:var(--cmp-muted)}
.cmp-crumbs li+li::before{content:"/";padding-inline:10px;color:var(--cmp-line)}
.cmp-crumbs a{text-decoration:none}
.cmp-intro{padding-block:28px 24px;max-width:980px}
.cmp-page .cmp-intro h1{font-size:clamp(32px,3.8vw,54px);margin-bottom:18px}
.cmp-intro p{color:var(--guide-note)}

/* step 1 and 2: our machine, the machine picker and the competitor picks */
.cmp-setup{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:32px;align-items:start;padding-bottom:28px}
.cmp-ours{display:grid;grid-template-rows:auto 1fr;background:var(--cmp-panel);border-top:4px solid var(--cmp-ours-edge)}
.cmp-ours-photo{display:block;background:#fff}
.cmp-ours-photo img{width:100%;aspect-ratio:16/10;max-height:300px;object-fit:contain}
.cmp-ours>div{padding:20px 22px 22px}
.cmp-ours-brand{margin:0 0 4px!important;color:var(--cmp-muted);font-size:15px}
.cmp-page .cmp-ours h2{font-size:30px;margin:0 0 8px}
.cmp-price{font-size:17px;color:var(--guide-note)}
.cmp-price strong{font-size:26px;color:var(--guide-ink);font-weight:650;margin-right:6px}
.cmp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:0!important}
.cmp-machine{margin-bottom:28px}
.cmp-machine label{display:block;font-weight:600;margin-bottom:10px}
.cmp-machine-row{display:flex;flex-wrap:wrap;gap:12px}
.cmp-machine select{flex:1 1 260px;min-height:52px;padding:10px 14px;font:inherit;font-size:17px;color:var(--guide-ink);background:var(--cmp-panel);border:1px solid var(--cmp-line);border-radius:0}
.cmp-machine select:focus-visible{outline:3px solid var(--guide-ink);outline-offset:2px}
.cmp-machine .guide-action{border:0;font:inherit;font-size:17px;cursor:pointer;min-height:52px}
.cmp-swipe{display:none;font-size:15px;color:var(--cmp-muted);margin:0 0 10px!important}
.cmp-picks{border:0;margin:0;padding:0;min-width:0}
.cmp-picks legend{font-weight:600;padding:0;margin-bottom:6px}
.cmp-count{font-weight:400;color:var(--guide-note);margin-left:8px}
.cmp-help{font-size:16px;color:var(--cmp-muted);margin:0 0 14px!important}
.cmp-picks ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.cmp-picks label{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 14px 8px 12px;border:1px solid var(--cmp-line);background:var(--cmp-panel);cursor:pointer;font-size:16px;line-height:1.25}
.cmp-picks label:hover{border-color:var(--guide-note)}
.cmp-picks input{width:20px;height:20px;margin:0;accent-color:var(--cmp-ours-edge);flex:none}
.cmp-picks input:focus-visible{outline:3px solid var(--guide-ink);outline-offset:3px}
.cmp-picks small{display:block;font-size:13px;color:var(--cmp-muted)}
.cmp-picks li.is-picked label{border-color:var(--cmp-ours-edge);background:var(--cmp-ours)}
.cmp-picks input:disabled+span{opacity:.5}
.cmp-picks label:has(input:disabled){cursor:not-allowed}

/* the table */
.cmp-result{padding-bottom:20px}
.cmp-scroll{position:relative;overflow-x:auto;border:1px solid var(--cmp-line);background:var(--guide-ground)}
.cmp-print{display:none}
.cmp-scroll:focus-visible{outline:3px solid var(--guide-ink);outline-offset:3px}
.cmp-table{border-collapse:separate;border-spacing:0;width:100%;font-size:16px;line-height:1.45}
.cmp-table caption{text-align:left;padding:14px 16px;color:var(--guide-note);font-size:15px;caption-side:top}
.cmp-table th,.cmp-table td{text-align:left;vertical-align:top;padding:14px 16px;border-top:1px solid var(--cmp-line);min-width:190px;max-width:320px;overflow-wrap:anywhere}
.cmp-table thead th{vertical-align:bottom;font-size:18px;font-weight:650;line-height:1.25;border-top:0}
.cmp-table thead small{display:block;font-size:14px;font-weight:400;color:var(--cmp-muted);margin-bottom:4px}
.cmp-table tbody th{font-weight:600;color:var(--guide-note)}
.cmp-table .cmp-corner{overflow-wrap:normal;word-break:normal}
.cmp-table th:first-child{position:sticky;left:0;z-index:1;background:var(--guide-ground);min-width:170px;max-width:220px;box-shadow:1px 0 0 var(--cmp-line)}
.cmp-table tbody tr:nth-child(even) td,.cmp-table tbody tr:nth-child(even) th:first-child{background:var(--cmp-zebra)}
.cmp-table .cmp-col-ours{background:var(--cmp-ours)!important;color:var(--guide-ink)}
.cmp-table thead .cmp-col-ours{border-top:4px solid var(--cmp-ours-edge)}
.cmp-table .cmp-na{color:var(--cmp-muted)}
.cmp-src{display:block;margin-top:10px;font-size:14px;font-weight:400}
.cmp-note{margin-top:14px!important}
.cmp-why ul,.cmp-sources ul{padding-left:22px}
.cmp-why li,.cmp-sources li{margin:10px 0}
.cmp-sources li{overflow-wrap:anywhere}
.cmp-more{display:flex;flex-wrap:wrap;gap:12px 28px;list-style:none;padding:0;margin:0;font-size:20px;font-weight:600}

/* hub */
.cmp-hub-group{padding-block:44px 8px;border-top:1px solid var(--cmp-line)}
.cmp-hub-group>p{color:var(--guide-note)}
.cmp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;list-style:none;margin:0;padding:0}
.cmp-cards a{display:flex;flex-direction:column;height:100%;text-decoration:none;background:var(--cmp-panel);border:1px solid transparent}
.cmp-cards a:hover{border-color:var(--cmp-ours-edge)}
.cmp-cards img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#fff}
.cmp-card-name{padding:14px 16px 2px;font-size:20px;font-weight:650}
.cmp-card-meta{padding:0 16px 16px;color:var(--cmp-muted);font-size:15px}

@media(max-width:900px){.cmp-setup{grid-template-columns:1fr}.cmp-ours{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-rows:auto}.cmp-ours-photo img{height:100%}}
@media(max-width:600px){
 .cmp-page .cmp-intro h1{font-size:24px;max-width:none;font-stretch:100%}
 .cmp-ours{grid-template-columns:1fr}
 .cmp-table{font-size:15px}
 .cmp-table th,.cmp-table td{min-width:150px;padding:12px}
 .cmp-table th:first-child{min-width:118px;max-width:130px}
 .cmp-picks label{font-size:15px}
 .cmp-table .cmp-corner{font-size:15px}
 .cmp-swipe{display:block}
}
@media print{
 @page{size:A4 landscape;margin:12mm}
 .cmp-page{--guide-ground:#fff;--guide-ink:#111;--guide-note:#333;--cmp-muted:#444;--cmp-line:#bbb;--cmp-zebra:#f2f4f5;--cmp-ours:#e6edf2;background:#fff;color:#111;font-size:10pt}
 .cmp-page .guide-frame{padding-inline:0}
 .guide-header nav,.cmp-machine,.cmp-picks,.cmp-actions,.cmp-crumbs,.cmp-swipe,.cmp-scroll,.cmp-setup,.cmp-why,.cmp-more,.cmp-page .guide-related{display:none}
 .cmp-page .cmp-intro{padding-block:12pt}
 .cmp-page .cmp-intro h1{font-size:20pt;max-width:none}
 .cmp-page .cmp-intro p{max-width:none}
 .cmp-print{display:block}
 .cmp-print-group+.cmp-print-group{break-before:page}
 .cmp-print .cmp-table{table-layout:fixed;font-size:9pt;width:100%}
 .cmp-print .cmp-table th,.cmp-print .cmp-table td{min-width:0;max-width:none;padding:7pt;overflow-wrap:anywhere}
 .cmp-print .cmp-table th:first-child{position:static;width:17%;min-width:0;max-width:none;box-shadow:none}
 .cmp-print .cmp-table .cmp-col-ours{color:#111}
 .cmp-print .cmp-table thead th{font-size:10pt}
 .cmp-print .cmp-table thead small{font-size:8pt}
 .cmp-print .cmp-table thead{display:table-header-group}
 .cmp-print .cmp-table tr{break-inside:avoid}
 .cmp-print .cmp-table caption{font-size:11pt;font-weight:600}
 .cmp-print .cmp-src{font-size:8pt}
 .cmp-page .cmp-sources{display:block;padding-block:16pt}
 .cmp-page .guide-footer{display:block;padding-block:8pt;break-inside:avoid;font-size:9pt;line-height:1.35}
 .cmp-page .guide-footer>p:first-child{font-size:14pt;margin:0 0 6pt}
 .cmp-page .guide-footer>.guide-note{columns:1;font-size:8pt;line-height:1.35}
 .cmp-page .guide-footer nav{display:none}
}
