/* Device comparison tool. */
.cmp-shell { max-width: 1040px; margin: 0 auto; padding: 0 20px 60px; }
.cmp-hero { margin: 26px 0 22px; }
.cmp-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #0878e8); font-weight: 700; margin: 0 0 8px; }
.cmp-hero h1 { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.cmp-lede { font-size: 16px; color: var(--ink-soft, #4b5563); max-width: 720px; margin: 0; }

.cmp-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 18px; }
@media (max-width: 700px) { .cmp-form { grid-template-columns: 1fr; } }
.cmp-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cmp-combo { position: relative; }
.cmp-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line, #d1d5db); border-radius: 9px; font-size: 15px; background: #fff; box-sizing: border-box; }
.cmp-input:focus { outline: 2px solid var(--accent, #0878e8); outline-offset: 1px; border-color: var(--accent, #0878e8); }
.cmp-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line, #d1d5db); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .14); }
.cmp-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.cmp-opt.is-active { background: #eaf3ff; }
.cmp-opt[aria-selected="true"] { font-weight: 700; }
.cmp-opt-meta { font-size: 12px; color: var(--ink-soft, #6b7280); white-space: nowrap; }
.cmp-opt-empty { color: var(--ink-soft, #6b7280); cursor: default; }
.cmp-go { padding: 11px 26px; border: 0; border-radius: 10px; background: var(--accent, #0878e8); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cmp-go:hover { filter: brightness(1.08); }
.cmp-err { color: #b42318; font-size: 13px; margin: 8px 4px 0; }

.cmp-diffbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.cmp-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #0b5ed7; color: #fff; font-size: 13px; font-weight: 700; }
.cmp-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft, #4b5563); }
.cmp-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: #eaf3ff; border: 1px solid #7db2f2; border-left: 3px solid #0b5ed7; }
.cmp-diff-toggle { margin-left: auto; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.cmp-diff-toggle input { width: 16px; height: 16px; accent-color: #0b5ed7; }

.cmp-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; background: var(--card, #fff); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 560px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line, #e5e7eb); vertical-align: top; }
.cmp-table thead th { background: var(--bg-soft, #f6f7f4); font-size: 15px; }
.cmp-table tbody th { font-weight: 600; color: var(--ink-soft, #4b5563); white-space: nowrap; }
/* Sticky spec column keeps row context while scrolling on narrow screens. */
.cmp-table thead th:first-child,
.cmp-table tbody th { position: sticky; left: 0; z-index: 2; background: #fff; }
.cmp-table thead th:first-child { background: var(--bg-soft, #f6f7f4); z-index: 3; }
.cmp-table tr.is-hidden { display: none; }
/* Difference rows: accent left rail + stronger fill + bold values. */
.cmp-table tr.is-diff th { color: #0b3f8a; background: #eaf3ff; box-shadow: inset 3px 0 0 #0b5ed7; }
.cmp-table tr.is-diff td { background: #eaf3ff; font-weight: 600; color: #111827; }

.cmp-summary { margin-top: 22px; background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 18px 22px; }
.cmp-summary h2 { font-size: 18px; margin: 0 0 10px; }
.cmp-summary ul { margin: 0; padding-left: 18px; }
.cmp-summary li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.cmp-same { color: var(--ink-soft, #6b7280); font-size: 13px; margin-top: 8px; }

.cmp-pairs { margin-top: 30px; }
.cmp-pairs h2 { font-size: 18px; margin: 0 0 12px; }
.cmp-pairs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-pairs a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line, #d1d5db); border-radius: 999px; font-size: 13px; text-decoration: none; color: inherit; }
.cmp-pairs a:hover { border-color: var(--accent, #0878e8); }
.cmp-note { font-size: 12px; color: var(--ink-soft, #6b7280); margin-top: 18px; }
.cmp-back { font-size: 13px; color: var(--ink-soft, #6b7280); text-decoration: none; }
.cmp-back:hover { color: var(--accent, #0878e8); }
