/**
 * Decision blocks (1.4.0) — generated by scripts/push_wp_content_patched.py from markdown tables.
 *  - .bv-picks:  comparison table ("Best for" column) → one card per product with key facts + CTA.
 *  - .bv-specs:  "Spec | Value | Source" table → key-spec tiles + "How it splits power" bars
 *                for rows like "C1 + C2 | 65W + 30W"; the repeated source becomes one footnote.
 * Colors follow the brand palette; Sky 700 (#0369a1) for text on light, Sky 400 only as decoration.
 */

/* ── Quick-pick cards ─────────────────────────────────────── */
.bv-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin: 28px 0 16px;
}
.bv-pick {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff;
  transition: border-color .2s ease;
}
.bv-pick:hover { border-color: #94a3b8; }
.bv-pick__tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #0369a1; background: #e0f2fe; border-radius: 999px; padding: 5px 11px; line-height: 1.3;
}
.bv-pick__name { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: #0f172a; }
.bv-pick__name a { color: inherit; text-decoration: none; }
.bv-pick__model { white-space: nowrap; font-size: .75em; font-weight: 600; letter-spacing: 0; color: #64748b; }
/* An odd last card spans the row instead of leaving a hole (no-op in one column) */
.bv-picks > .bv-pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bv-pick__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bv-pick__why { margin: 0; font-size: 15px; line-height: 1.5; color: #475569; }
.bv-pick__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.entry-content .bv-pick__cta .bv-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #0f172a; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
}
.entry-content .bv-pick__cta .bv-btn:hover { background: #1e293b; color: #fff; }
.bv-pick__more { font-size: 14px; font-weight: 600; color: #0369a1; }

/* ── Fact tiles (shared by cards and spec blocks) ─────────── */
.bv-facts { display: grid; gap: 8px; margin: 0; }
.bv-pick .bv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv-specs .bv-facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; margin-bottom: 22px; }
.bv-facts > div { background: #f8fafc; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.bv-specs .bv-facts > div.is-wide { grid-column: span 2; }
.bv-specs--text .bv-facts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bv-specs--text .bv-facts > div.is-wide { grid-column: auto; }
.bv-facts dt { font-size: 11px; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; color: #64748b; margin: 0 0 4px; }
.bv-facts dd { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; color: #0f172a; font-variant-numeric: tabular-nums; }
.bv-facts dd.is-na { font-weight: 500; color: #64748b; font-size: 13px; }

/* ── Spec block ───────────────────────────────────────────── */
.bv-specs { margin: 24px 0; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; padding: clamp(18px, 3vw, 26px); }
.bv-specs__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #0f172a; }
.bv-specs__hint { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #64748b; }
.bv-power { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bv-power li { display: grid; grid-template-columns: minmax(110px, 170px) 1fr auto; gap: 14px; align-items: center; margin: 0; }
.bv-power__label { font-size: 14px; color: #334155; }
.bv-power__bar { display: flex; height: 14px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.bv-power__bar i { display: block; height: 100%; }
.bv-power__bar i:nth-child(1) { background: #0f172a; }
.bv-power__bar i:nth-child(2) { background: #38bdf8; }
.bv-power__bar i:nth-child(n+3) { background: #94a3b8; }
.bv-power__bar i + i { border-left: 2px solid #fff; }
.bv-power__value { font-size: 14px; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-power li.is-weak .bv-power__value { color: #b45309; }
.bv-specs__src { margin: 18px 0 0; font-size: 13px; color: #64748b; }

@media (max-width: 560px) {
  .bv-power li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .bv-power__bar { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 360px) {
  .bv-specs .bv-facts > div.is-wide { grid-column: auto; }
}

/* ── A vs B (1.5.0): "Compare | A | B" table → two cards with the same rows ── */
.bv-vs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 12px;
}
.bv-vs__side { border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; padding: 22px; min-width: 0; }
.bv-vs__side:last-child { border-color: #bae6fd; background: linear-gradient(180deg, #f0f9ff, #fff 140px); }
.bv-vs__name { margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: #0f172a; }
.bv-vs__rows { margin: 0; display: grid; gap: 0; }
.bv-vs__rows > div { padding: 11px 0; border-top: 1px solid #f1f5f9; }
.bv-vs__rows dt { font-size: 11px; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; color: #64748b; margin: 0 0 3px; }
.bv-vs__rows dd { margin: 0; font-size: 15px; line-height: 1.45; color: #0f172a; }
.bv-vs__rows > div.is-key { margin-top: 6px; border-top: 0; border-radius: 12px; padding: 12px 14px; background: #0f172a; }
.bv-vs__rows > div.is-key dt { color: #7dd3fc; }
.bv-vs__rows > div.is-key dd { color: #fff; font-weight: 600; }
.bv-vs__chip {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%); z-index: 1;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px;
  background: #0f172a; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 0 0 5px #fff;
}

/* ── Scenarios (1.5.0): "Scenario | You need | Why" table → rows with an answer pill ── */
.bv-scenarios { list-style: none; margin: 24px 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; overflow: hidden; }
.bv-scenarios li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  margin: 0; padding: 14px 20px; border-top: 1px solid #f1f5f9;
}
.bv-scenarios li:first-child { border-top: 0; }
.bv-scn__name { font-size: 15px; font-weight: 700; line-height: 1.35; color: #0f172a; }
.bv-scn__why { grid-column: 1; font-size: 14px; line-height: 1.45; color: #64748b; }
.bv-scn__pick {
  grid-column: 2; grid-row: 1 / span 2; justify-self: end; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0;
  border-radius: 999px; padding: 6px 12px; line-height: 1.2;
}
.bv-scn__pick--router { background: #0f172a; color: #fff; }
.bv-scn__pick--esim { background: #e0f2fe; color: #0369a1; }
.bv-scn__pick--both { background: #0369a1; color: #fff; }
.bv-scn__pick--none, .bv-scn__pick--other { background: #f1f5f9; color: #475569; }

@media (max-width: 640px) {
  .bv-vs { grid-template-columns: 1fr; gap: 0; }
  .bv-vs__chip { position: relative; left: auto; top: auto; transform: none; margin: -19px auto; }
  .bv-scenarios li { padding: 14px 16px; grid-template-columns: 1fr; }
  .bv-scn__pick { grid-column: 1; grid-row: auto; justify-self: start; order: -1; }
  .bv-scn__why { grid-column: 1; }
}
