/* Comparison-only styling; shared and approved assets stay byte-identical. */
.page.compare .compare-difference { background: var(--diff-bg); }
.page.compare td:last-child { width: auto; font-size: inherit; color: inherit; }
.page.compare td a { font-size: 12.5px; }
.page.compare td pre { margin: 0 0 4px; font: inherit; white-space: pre-wrap; }

.vs-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0 28px; }
.vs-card { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px 20px; display: flex; flex-direction: column; }
.vs-side { position: absolute; top: 16px; left: 18px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--tint); color: var(--brand-ink); }
.vs-card:last-of-type .vs-side { background: color-mix(in srgb, var(--c2) 16%, var(--surface)); color: color-mix(in srgb, var(--c2) 65%, var(--ink)); }
.vs-stage { height: 190px; display: grid; place-items: end center; margin: 6px -24px 14px; padding: 0 24px 12px; background: radial-gradient(120% 90% at 50% 100%, var(--stage-a) 0%, var(--stage-b) 72%); }
.vs-stage svg { max-height: 170px; width: auto; max-width: 100%; }
.vs-card h2 { margin: 2px 0 12px; font-size: 22px; letter-spacing: -0.03em; }
.vs-keys { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.vs-keys div { padding: 0 10px; border-left: 1px solid var(--line); min-width: 0; }
.vs-keys div:first-child { padding-left: 0; border-left: 0; }
.vs-keys dt { order: 2; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.vs-keys dd { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-keys div { display: flex; flex-direction: column-reverse; }
.vs-detail { font-weight: 700; color: var(--brand); text-decoration: none; margin-bottom: 4px; }
.vs-detail:hover { text-decoration: underline; }
.vs-card .coupang-slot { margin-top: 12px; }
.vs-badge { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--inv); color: var(--inv-ink); font-weight: 900; font-size: 14px; letter-spacing: 0.02em; box-shadow: 0 0 0 6px var(--bg); }

.vs-glance { background: var(--surface); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 28px; }
.vs-glance h2 { margin: 0 0 10px; font-size: 19px; }
.vs-diff { list-style: none; margin: 0; padding: 0; }
.vs-diff li { display: grid; grid-template-columns: 9em 1fr 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.vs-diff li.vs-head { border-top: 0; padding: 0 0 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.vs-diff b { font-size: 14px; color: var(--ink-2); }
.vs-diff .vs-a, .vs-diff .vs-b { font-weight: 700; }
.vs-same { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.vs-same b { margin-right: 4px; color: var(--muted); }

@media (max-width: 760px) {
  .vs-hero { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vs-card { padding: 16px 14px 14px; }
  .vs-stage { height: 120px; margin: 18px -14px 10px; padding: 0 14px 8px; }
  .vs-stage svg { max-height: 104px; }
  .vs-card h2 { font-size: 16px; }
  .vs-keys { grid-template-columns: 1fr; gap: 6px; padding: 8px 0; }
  .vs-keys div { padding: 0; border-left: 0; }
  .vs-keys dd { font-size: 16px; }
  .vs-badge { top: 76px; width: 38px; height: 38px; font-size: 12px; box-shadow: 0 0 0 4px var(--bg); }
  .vs-diff li { grid-template-columns: 6.5em 1fr 1fr; gap: 8px; font-size: 14px; }
}
/* Phones: keep the stacked layout, but show the row label as a heading and the two values side by side. */
@media (max-width: 600px) {
  .page.compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .page.compare tbody th { grid-column: 1 / -1; font-weight: 800; padding-bottom: 6px; }
  .page.compare tbody td { min-width: 0; overflow-wrap: anywhere; }
  .page.compare tbody td::before { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
  .page.compare tbody td:nth-of-type(1)::before { content: "A"; }
  .page.compare tbody td:nth-of-type(2)::before { content: "B"; }
  .page.compare caption { display: none; }
}
/* Coupang box inside the narrow versus cards: stack image, name and button. */
.vs-card .coupang-product { padding: 12px; }
.mp .vs-card .coupang-link { flex-direction: column; align-items: stretch; gap: 8px; }
.vs-card .coupang-link img { width: 72px; height: 72px; }
.vs-card .coupang-cta { width: 100%; text-align: center; box-sizing: border-box; }
.vs-card .coupang-disclosure { font-size: 11px; }
@media (max-width: 760px) {
  .vs-card .coupang-link img { width: 56px; height: 56px; }
  .vs-card .coupang-text strong { font-size: 12.5px; -webkit-line-clamp: 3; }
  .vs-card .coupang-cta { padding: 7px 8px; font-size: 12px; }
}
/* Seller photo in the versus card stage: fills the stage box; the Coupang disclosure below covers attribution. */
.vs-stage.has-photo { display: block; height: 330px; padding: 14px 18px; }
.vs-stage .stage-photo { width: 100%; height: 100%; display: block; }
.vs-stage .stage-photo img { display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: contain; padding: 4px; border-radius: 16px; background: #fff; box-shadow: none; }
.vs-stage .stage-photo figcaption { display: none; }
.vs-card:has(.vs-stage.has-photo) .coupang-link img { display: none; }
@media (max-width: 760px) {
  .vs-stage.has-photo { height: 170px; padding: 8px; margin-top: 18px; }
  .vs-stage .stage-photo img { padding: 2px; border-radius: 12px; }
}
/* Fixed seller photos: keep the A/B badge above the photo and avoid a second copy in the Coupang box. */
.vs-side { z-index: 3; }
.vs-card:has(.product-photo:not([hidden])) .coupang-link img { display: none; }
