/* Static product comparison and progressively enhanced phone view. */

.comparison-card{max-width:1100px;margin:0 auto;background:#fff;border:1px solid #dfe5ee;border-radius:14px;overflow:auto;box-shadow:var(--panel-shadow)}
.product-comparison{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:var(--body-size);line-height:1.45}
.product-comparison col.comparison-label{width:17%}
.product-comparison col.comparison-us{width:19%}
.product-comparison thead th{background:#f7f9fc;border-bottom:1px solid #c3d2e7;padding:18px 14px 15px;text-align:left;vertical-align:bottom;font:600 var(--body-size)/1.6 var(--body-font);color:var(--ink)}
.product-comparison thead th small{display:block;font:400 var(--small-size)/1.5 var(--body-font);color:var(--muted);margin-top:3px}
.product-comparison thead th:first-child{padding-left:24px;color:var(--muted);font-weight:400;font-size:13px}
.product-comparison tbody th{padding:14px 14px 14px 24px;text-align:left;font-weight:600;color:var(--ink);vertical-align:top}
.product-comparison td{padding:14px;color:var(--ink);vertical-align:top}
.product-comparison tbody th,.product-comparison td{border-bottom:1px solid #eaeff6}
.product-comparison tbody tr:last-child>*{border-bottom:0}
.product-comparison .comparison-us{background:#fffaf2}
.product-comparison thead .comparison-us{background:#fff3e2;box-shadow:inset 0 3px var(--orange)}
.product-comparison thead .comparison-us img{width:20px;height:20px;vertical-align:-4px;margin-right:6px}
.product-comparison td.comparison-us{color:var(--ink);font-weight:600}
.product-comparison .comparison-cell{display:flex;gap:9px;align-items:flex-start}
.comparison-yes,.comparison-no{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;margin-top:1px}
.comparison-yes{background:#e3eeff;box-shadow:inset 0 0 0 1px #c9dcfb}
.comparison-yes svg{width:13px;height:13px;fill:none;stroke:#1462d8;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.comparison-no{background:#f1f2f4;box-shadow:inset 0 0 0 1px #e0e3e8}
.comparison-no svg{width:10px;height:10px;fill:none;stroke:#8a94a6;stroke-width:2.2;stroke-linecap:round}
.comparison-foot{max-width:1100px;margin:16px auto 0;display:flex;justify-content:space-between;gap:24px;color:var(--muted);font-size:13px;line-height:1.5}
.comparison-foot a{white-space:nowrap}
.comparison-picker{display:none}
.comparison-sources{max-width:1100px;margin:8px auto 0}
.comparison-sources ul{columns:2;column-gap:40px;margin:0 0 8px;padding-left:18px;font-size:13px;line-height:1.7;color:var(--muted)}
.comparison-sources a{font-weight:600}


.comparison-cell>span:last-child{min-width:0;overflow-wrap:anywhere}
.product-comparison .comparison-cell b{display:block;font-weight:400;color:var(--ink)}
.product-comparison td.comparison-us .comparison-cell b{font-weight:600}
.product-comparison .comparison-cell small{display:block;margin-top:2px;font:400 var(--small-size)/1.5 var(--body-font);color:var(--muted)}
.product-comparison td.comparison-us .comparison-cell small{color:var(--muted)}
.product-comparison thead .comparison-us img{display:inline-block}
main .product-comparison th{text-transform:none}
.comparison-foot{display:block}
.comparison-sources ul{font:400 var(--small-size)/1.5 var(--body-font)}
@media(max-width:960px){
 .comparison-card:not([data-picker-ready]) .product-comparison{min-width:1000px}
 .comparison-picker:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px}
 .comparison-picker>span{grid-column:1/-1;font:400 var(--small-size)/1.5 var(--body-font);color:var(--muted)}
 main .comparison-picker button{--control-height:40px;width:100%}
 main .comparison-picker button[aria-pressed=true]{border-color:var(--link)}
 .comparison-card[data-picker-ready] .product-comparison colgroup{display:none}
 .comparison-card[data-picker-ready] :is(.product-comparison,thead,tbody){display:block}
 .comparison-card[data-picker-ready] tr{display:grid;grid-template-columns:1fr 1fr}
 .comparison-card[data-picker-ready] thead th:first-child{display:none}
 .comparison-card[data-picker-ready] tbody th{grid-column:1/-1;padding:14px 16px 4px;border-bottom:0}
 .comparison-card[data-picker-ready] td{padding:6px 16px 14px}
 .comparison-card[data-picker-ready] thead th{padding:14px 16px 12px}
 .comparison-card[data-picker-ready] [data-col]:not([data-col=us]){display:none}
 .comparison-card[data-picker-ready][data-pick=powersync] [data-col=powersync],
 .comparison-card[data-picker-ready][data-pick=turso] [data-col=turso],
 .comparison-card[data-picker-ready][data-pick=firestore] [data-col=firestore],
 .comparison-card[data-picker-ready][data-pick=electric] [data-col=electric]{display:block}
 .comparison-sources ul{columns:1}
}
