/* Comparison parts of the article page (template-parts/compare-top.php, compare-bottom.php).
   Logos, ratings, buttons and pros/cons boxes reuse the listicle styles. */

.pb-vs-section { margin-bottom: 40px; scroll-margin-top: calc(var(--nav-h) + 24px); }

/* Two tool cards with VS between them */
.pb-vs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; }
.pb-vs__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px 20px; text-align: center; border-radius: 18px; background: var(--bg2); border: 1px solid var(--border); }
.pb-vs__card.is-winner { background: var(--accent-dim); border-color: oklch(72% 0.19 52 / 0.5); }
.pb-vs__crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pb-vs__name { font-family: var(--font-space); font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
.pb-vs__name:hover { color: var(--accent); }
.pb-vs__tagline { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text2); }
.pb-vs__ctas { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; padding-top: 8px; }
.pb-vs__ctas .pb-lst-btn { width: 100%; }
.pb-vs__badge { align-self: center; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border2); font-family: var(--font-space); font-size: 15px; font-weight: 700; color: var(--accent); }

/* Verdict */
.pb-vs-verdict { margin-top: 16px; padding: 22px 26px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border2); border-left: 3px solid var(--accent); }
.pb-vs-verdict .pb-mag-box-title { margin-bottom: 8px; }
.pb-vs-verdict__text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); }

/* Side-by-side table */
.pb-vs-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.pb-vs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pb-vs-table thead th { padding: 14px 18px; background: var(--bg3); font-family: var(--font-space); font-size: 15px; font-weight: 700; color: var(--text); text-align: left; }
.pb-vs-table tbody th { padding: 13px 18px; width: 30%; font-weight: 500; color: var(--text3); text-align: left; }
.pb-vs-table td { padding: 13px 18px; color: var(--text); }
.pb-vs-table tbody tr + tr > * { border-top: 1px solid var(--border); }

/* Pros & cons side by side */
.pb-vs-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pb-vs-pc__tool { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); }
.pb-vs-pc__tool.is-winner { border-color: oklch(72% 0.19 52 / 0.5); }
.pb-vs-pc__head { display: flex; align-items: center; gap: 12px; }
.pb-vs-pc__head a { font-family: var(--font-space); font-size: 19px; font-weight: 700; color: var(--text); text-decoration: none; }
.pb-vs-pc__head a:hover { color: var(--accent); }

@media (max-width: 640px) {
	.pb-vs { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pb-vs__badge { margin: -12px auto; position: relative; z-index: 1; width: 42px; height: 42px; }
	.pb-vs__card.is-winner { margin-top: 8px; }
	.pb-vs-pc { grid-template-columns: minmax(0, 1fr); }
	.pb-vs-verdict { padding: 18px 20px; }
	.pb-vs-table { font-size: 14px; }
	.pb-vs-table thead th, .pb-vs-table tbody th, .pb-vs-table td { padding: 11px 12px; }
}
