/* Versus PDF / Print — brand style */

@page {
  margin: 12mm 12mm 14mm;
  size: A4;
}

:root {
  --vp-a: #e7ae4d;
  --vp-b: #429693;
  --vp-text: #0a0a0a;
  --vp-muted: #666;
  --vp-faint: #999;
  --vp-border: #e4e4e4;
  --vp-bg: #fafafa;
  --vp-hero: #0a0a0a;
}

body.versus-print {
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--vp-text);
  background: #fff;
  font-size: 10pt;
  line-height: 1.45;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* —— Hero —— */

.vp-hero {
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(155deg, #141414 0%, #0a0a0a 52%, #121212 100%);
  color: #f5f5f5;
  padding: 1.35rem 1.4rem 1.5rem;
  margin: 0 0 1.35rem;
}

.vp-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.vp-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vp-brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.vp-brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vp-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}

.vp-brand__text strong {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.vp-brand__text em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.vp-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
}

.vp-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.vp-eyebrow--dark {
  color: var(--vp-muted);
}

.vp-title {
  margin: 0 0 1.15rem;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
}

.vp-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.vp-vs {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 3.5rem;
}

.vp-card {
  text-align: center;
  min-width: 0;
}

.vp-card__media {
  position: relative;
  margin: 0 auto 0.65rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vp-card.is-winner .vp-card__media {
  border-color: rgba(255, 255, 255, 0.35);
}

.vp-card--a.is-winner .vp-card__media {
  border-color: color-mix(in srgb, var(--vp-a) 75%, #fff);
}

.vp-card--b.is-winner .vp-card__media {
  border-color: color-mix(in srgb, var(--vp-b) 75%, #fff);
}

.vp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-card__score {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  background: #fff;
  color: #0a0a0a;
  box-sizing: border-box;
}

.vp-card--a .vp-card__score {
  outline: 2px solid var(--vp-a);
  outline-offset: 0;
}

.vp-card--b .vp-card__score {
  outline: 2px solid var(--vp-b);
  outline-offset: 0;
}

.vp-card__brand {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.vp-card__name {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.vp-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}

/* —— Result —— */

.vp-result {
  padding: 0 1.25rem 1.15rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--vp-border);
}

.vp-result__verdict {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--vp-text);
}

.vp-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(3.5rem, 0.85fr) auto minmax(0, 1.1fr);
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.vp-scoreboard__side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.vp-scoreboard__side--a {
  justify-content: flex-start;
}

.vp-scoreboard__side--b {
  justify-content: flex-end;
  text-align: right;
}

.vp-scoreboard__name {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-scoreboard__pts {
  font-size: 0.95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.vp-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--vp-muted);
}

.vp-dot--a,
.vp-scoreboard__side--a .vp-dot {
  background: var(--vp-a);
}

.vp-dot--b,
.vp-scoreboard__side--b .vp-dot {
  background: var(--vp-b);
}

.vp-bar {
  display: flex;
  gap: 0.28rem;
  height: 0.32rem;
  width: 100%;
}

.vp-bar__a,
.vp-bar__b {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
}

.vp-bar__a {
  background: var(--vp-a);
}

.vp-bar__b {
  background: var(--vp-b);
}

.vp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.vp-metric {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--vp-border);
  border-radius: 0.65rem;
  background: var(--vp-bg);
}

.vp-metric strong {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.vp-metric span {
  display: block;
  font-size: 0.68rem;
  color: var(--vp-muted);
  line-height: 1.3;
}

/* —— Tables —— */

.vp-group {
  padding: 0 1.25rem;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.vp-group__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--vp-text);
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.vp-table th,
.vp-table td {
  padding: 0.4rem 0.45rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--vp-border);
}

.vp-table th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vp-muted);
  background: var(--vp-bg);
}

.vp-table th .vp-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.vp-table td:first-child {
  width: 28%;
  font-weight: 600;
  color: var(--vp-text);
}

.vp-table tr.is-same td {
  color: var(--vp-muted);
}

.vp-na {
  color: var(--vp-faint);
  font-style: italic;
}

.vp-win {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95em;
  line-height: 1.35;
}

.vp-win--a {
  background: color-mix(in srgb, var(--vp-a) 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--vp-a) 42%, #fff);
  color: #111;
}

.vp-win--b {
  background: color-mix(in srgb, var(--vp-b) 24%, #fff);
  border: 1px solid color-mix(in srgb, var(--vp-b) 44%, #fff);
  color: #111;
}

/* —— Pros / Cons —— */

.vp-proscons {
  padding: 0 1.25rem 0.5rem;
}

.vp-proscons__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.vp-proscons__col {
  min-width: 0;
  break-inside: avoid;
}

.vp-proscons__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.vp-proscons__head h4 {
  margin: 0.05rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vp-proscons__head .vp-card__brand {
  color: var(--vp-muted);
}

.vp-box {
  padding: 0.7rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  margin-bottom: 0.55rem;
  break-inside: avoid;
}

.vp-box--pro {
  background: #eaf5ee;
  border-color: #d5e8db;
}

.vp-box--con {
  background: #f7ecec;
  border-color: #ead8d8;
}

.vp-box h5 {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vp-box--pro h5 {
  color: #143528;
}

.vp-box--con h5 {
  color: #3a1212;
}

.vp-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-box li {
  position: relative;
  padding: 0.2rem 0 0.2rem 0.95rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.vp-box--pro li {
  color: #143528;
}

.vp-box--con li {
  color: #3a1212;
}

.vp-box--pro li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.vp-box--con li::before {
  content: '–';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.vp-empty {
  margin: 0;
  font-size: 0.75rem;
  color: var(--vp-muted);
}

/* —— Footer —— */

.vp-foot {
  margin: 1.25rem 1.25rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--vp-border);
  font-size: 0.72rem;
  color: var(--vp-muted);
  line-height: 1.5;
}

.vp-foot p {
  margin: 0 0 0.45rem;
}

.vp-foot__link {
  word-break: break-all;
  color: var(--vp-text);
  font-weight: 600;
}

.vp-foot__brand {
  margin-top: 0.65rem !important;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--vp-faint);
}

/* —— Screen preview polish —— */

@media screen {
  body.versus-print {
    max-width: 210mm;
    margin: 1.5rem auto 2.5rem;
    box-shadow: 0 0 0 1px var(--vp-border);
  }

  .vp-hero {
    border-radius: 0;
  }
}

@media print {
  body.versus-print {
    max-width: none;
    box-shadow: none;
  }

  .vp-hero,
  .vp-group,
  .vp-proscons__col,
  .vp-box,
  .vp-result {
    break-inside: avoid;
  }

  .vp-table thead {
    display: table-header-group;
  }
}
