/* RouterVerdict — page widgets
   compare table, "find by task" selector, spec tables, setup steps,
   troubleshooting accordion, vs-rivals tables, pros/cons.
   kept apart from styles.css so the shell file stays lean. */

/* ---- find-by-task selector ---- */
.finder { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 26px; }
.finder-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.finder-tab { font-family: var(--ui); font-weight: 600; font-size: .88rem; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color .15s, border-color .15s, color .15s; }
.finder-tab svg { width: 16px; height: 16px; }
.finder-tab:hover { border-color: var(--azure); }
.finder-tab.on { background: var(--iris); border-color: var(--iris); color: #fff; }
.finder-out { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.finder-out .fo-rank { font-family: var(--mono); font-size: .7rem; color: var(--mint); letter-spacing: .12em; text-transform: uppercase; }
.finder-out h3 { margin: 4px 0 4px; font-size: 1.3rem; }
.finder-out p { margin: 0; color: var(--muted); font-size: .9rem; }
.finder-out .fo-why { color: var(--text); font-size: .9rem; margin-top: 6px; }
.finder-glyph { width: 84px; height: 84px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--iris); }
.finder-glyph svg { width: 46px; height: 46px; }
@media (max-width: 600px) { .finder-out { grid-template-columns: 1fr; text-align: left; } .finder-out .btn { width: 100%; } }

/* ---- comparison table ---- */
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--card-shadow); }
.cmp-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
table.cmp thead th { position: sticky; top: 0; background: var(--surface-2); text-align: left; padding: 14px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; cursor: pointer; user-select: none; }
table.cmp thead th[data-sort]:hover { color: var(--head); }
table.cmp thead th .arr { opacity: .4; margin-left: 4px; }
table.cmp thead th.sorted .arr { opacity: 1; color: var(--azure); }
table.cmp tbody td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover { background: var(--surface); }
table.cmp .model { display: flex; flex-direction: column; gap: 3px; }
table.cmp .model b { color: var(--head); font-size: .98rem; }
table.cmp .model span { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
table.cmp .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
table.cmp .scorecell { display: flex; align-items: center; gap: 9px; }
.score-bar { width: 56px; height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--iris), var(--azure)); }
table.cmp .btn-amazon { padding: 9px 14px; font-size: .8rem; white-space: nowrap; }

/* "winner per category" strip */
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.winner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.winner .wcat { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amazon); }
.winner h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.winner .wnote { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }

/* ---- specs table ---- */
.specs { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; font-size: .92rem; }
.specs caption { text-align: left; font-family: var(--display); color: var(--head); font-size: 1.15rem; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.specs th { text-align: left; padding: 12px 18px; color: var(--muted); font-weight: 500; width: 38%; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.specs td { padding: 12px 18px; color: var(--text); border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }

/* ---- pros / cons ---- */
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.procon .pc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.procon .pc h4 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.05rem; margin: 0 0 12px; }
.procon .pros h4 { color: var(--mint); }
.procon .cons h4 { color: var(--rose); }
.procon ul { list-style: none; padding: 0; margin: 0; }
.procon li { position: relative; padding: 6px 0 6px 24px; font-size: .9rem; }
.procon .pros li::before { content: "+"; position: absolute; left: 2px; color: var(--mint); font-weight: 700; }
.procon .cons li::before { content: "–"; position: absolute; left: 2px; color: var(--rose); font-weight: 700; }
@media (max-width: 600px) { .procon { grid-template-columns: 1fr; } }

/* ---- setup steps (numbered, technical) ---- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 1rem; color: var(--iris); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; height: 44px; }
.step h3 { font-size: 1.08rem; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step .step-note { margin-top: 8px; font-family: var(--mono); font-size: .76rem; color: var(--azure); }

/* "screenshot" placeholder frame (CSS-drawn — no real captures) */
.shot { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; margin-top: 12px; }
.shot .shot-bar { display: flex; gap: 6px; margin-bottom: 10px; }
.shot .shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shot .shot-body { font-family: var(--mono); font-size: .8rem; color: var(--muted); line-height: 1.7; }
.shot .shot-body .k { color: var(--azure); }
.shot .shot-body .v { color: var(--mint); }

/* unboxing checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.checklist li svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }

/* ---- troubleshooting / FAQ accordion ---- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 4px; font-family: var(--display); font-size: 1.08rem; color: var(--head); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .nidx { font-family: var(--mono); font-size: .82rem; color: var(--iris); }
.acc summary .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc .acc-body { padding: 0 4px 20px 36px; color: var(--text); max-width: 76ch; }
.acc .acc-body p { color: var(--muted); }
.acc .acc-body code { font-family: var(--mono); background: var(--surface-2); color: var(--azure); padding: 2px 6px; border-radius: 4px; font-size: .85em; }

/* ---- trust / tested-by-team stat band ---- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.stat-band .st { background: var(--ink-2); padding: 26px 22px; text-align: center; }
.stat-band .st b { font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); color: var(--head); display: block; font-variant-numeric: tabular-nums; }
.stat-band .st span { font-size: .82rem; color: var(--muted); }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr 1fr; } }

/* ---- vs competitors verdict cards ---- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.versus .vs-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.versus .vs-side.win { border-color: rgba(52,194,164,.4); }
.versus .vs-mid { display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 1.1rem; }
.versus h3 { margin: 0 0 4px; font-size: 1.2rem; }
.versus .vs-tag { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.versus ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .88rem; }
.versus li { padding: 5px 0; border-top: 1px solid var(--line); color: var(--text); }
@media (max-width: 700px) { .versus { grid-template-columns: 1fr; } .versus .vs-mid { padding: 6px; } }

/* small reused bits */
.lead-pick { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--card-shadow); }
.lead-pick .lp-body { padding: 30px; }
.lead-pick .lp-side { background: var(--ink-2); border-left: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.lead-pick .lp-badge { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.lead-pick h3 { font-size: 1.7rem; margin: 10px 0 6px; }
@media (max-width: 760px) { .lead-pick { grid-template-columns: 1fr; } .lead-pick .lp-side { border-left: none; border-top: 1px solid var(--line); } }
