/* The comparison pages "A gegen B" (server-php/src/SiteVersus.php: /vergleich/<a>-gegen-<b>, /vergleich/gpu/…)
   and the block of /vergleich – on top of style.css and hwart.css. Model A warm, model B cool, the reader green (mine.js). */
:root { --va: #ffb347; --vb: #7aa2ff; }

/* ---------------------------------------------------------------- hero */
.vp-hero { margin: 10px 0 var(--s5); max-width: 1000px; }
.vp-hero .crumbs { margin-bottom: 18px; }
.vp-eb { margin-bottom: 18px; }
.vp-hero h1 { font-size: clamp(31px, 5vw, 62px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 var(--s5); text-wrap: balance; overflow-wrap: anywhere; }
.vp-na { background: linear-gradient(95deg, #fff3a0, var(--va) 55%, #ff8a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vp-nb { background: linear-gradient(95deg, #5ce1e6, var(--vb) 45%, #c56cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vp-vs { display: inline-block; font-size: .42em; vertical-align: .38em; padding: .18em .6em; margin: 0 .1em; border-radius: 999px; border: 1px solid var(--border-hi);
  color: var(--text-2); font-weight: 600; letter-spacing: .04em; -webkit-text-fill-color: currentColor; }
.vp-face, .vp-rel, .vp-hub { padding: 0; } /* not the padding of a plain <section> (style.css) */
.vp-hero .vp-verdict { margin-bottom: 0; }
.vp-verdict { max-width: 74ch; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.62; }

/* the honest note of a pair with too few systems */
.vp-few { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 var(--s5); border-color: rgba(255, 179, 71, .42);
  background: linear-gradient(135deg, rgba(255, 179, 71, .09), rgba(255, 255, 255, .02)); }
.vp-few-ic { flex: none; color: var(--va); padding-top: 2px; }
.vp-few-ic svg { width: 26px; height: 26px; }
.prose .vp-few h2 { font-size: 18px; margin: 0 0 6px; }
.prose .vp-few p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- face to face */
.vp-face { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(14px, 2.6vw, 36px); align-items: stretch; margin: var(--s6) 0 var(--s4); }
.vp-side { --sc: var(--va); position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: clamp(18px, 2.4vw, 30px); border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--border);
  color: inherit; text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.vp-side.b { --sc: var(--vb); }
.vp-side::before { content: ''; position: absolute; z-index: -1; inset: -35% -20% auto; height: 80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 24%, transparent), transparent); pointer-events: none; }
.vp-side::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(80% 55% at 50% 0%, color-mix(in srgb, var(--sc) 16%, transparent), transparent 70%); }
.vp-side:hover, .vp-side:focus-visible { border-color: color-mix(in srgb, var(--sc) 60%, transparent); transform: translateY(-3px); text-decoration: none; }
.vp-side.lead { border-color: color-mix(in srgb, var(--sc) 48%, transparent); box-shadow: 0 30px 80px -42px var(--sc); }
.vp-side.me-model { outline: 2px solid #7cffb2; outline-offset: 3px; }
.vp-side .vp-art { width: 100%; max-width: 440px; margin: 0 auto; }
.vp-side-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vp-name { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.25; overflow-wrap: anywhere; }
.vp-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.vp-main b { font: 700 clamp(28px, 3.4vw, 44px)/1.05 var(--mono); color: var(--sc); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vp-main small { color: var(--muted); font-size: 13px; }
.vp-sys { color: var(--text-2); font-size: 13.5px; }
.vp-more { color: var(--muted); font-size: 13px; }
.vp-side:hover .vp-more { color: var(--text); }
.vp-mid { display: grid; place-items: center; align-self: center; position: relative; z-index: 2; }
.vp-side-b { margin-top: auto; }
.vp-mid span { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--mono); letter-spacing: .04em; color: #160b1f;
  background: var(--grad); box-shadow: 0 0 0 7px rgba(7, 7, 15, .92), 0 14px 44px -8px var(--g3); animation: vp-pulse 4s ease-in-out infinite; }
@keyframes vp-pulse { 50% { box-shadow: 0 0 0 7px rgba(7, 7, 15, .92), 0 14px 60px -2px var(--g4); } }
/* the stage over both cards (SiteVersus::vsFace, as the challenge page's): each processor floats in its column's light */
.vp-stage { grid-column: 1 / -1; position: relative; aspect-ratio: 2400 / 900; margin: 0 0 -11%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 12%, #000 70%, transparent 96%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 12%, #000 70%, transparent 96%); mask-composite: intersect; }
.vp-stage img { display: block; width: 100%; height: 100%; }
.vp-face.staged { row-gap: 0; }
.vp-face.staged > .vp-side, .vp-face.staged > .vp-mid { grid-row: 2; }
/* the middle of each well in the picture (render.mjs duel); the chip's lower edge just above it */
.vp-float { position: absolute; left: 23.61%; top: 53.46%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -81%); }
.vp-float.b { left: 76.39%; }
/* a graphics card taken apart (gpucard.py): wider than a chip, more empty edge in its picture */
.vp-float.gpucard { width: 36%; transform: translate(-50%, -71%); }
/* a single-board computer (sbc.py): the whole board, its lower edge at 76 % of its picture */
.vp-float.board { width: 30%; transform: translate(-50%, -79%); }
.vp-float img { display: block; width: 100%; height: 100%; animation: vs-hover 7s ease-in-out infinite; }
.vp-float.b img { animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) { .vp-float img { animation: none; } }
@media (max-width: 760px) {
  .vp-face { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vp-stage { aspect-ratio: 1200 / 760; margin: 0 calc(-1 * var(--gutter)) -14%; }
  .vp-face.staged > .vp-side, .vp-face.staged > .vp-mid { grid-row: auto; }
  .vp-float { top: 55.14%; width: 30%; }
  .vp-float.gpucard { width: 44%; }
  .vp-float.board { width: 36%; }
  .vp-mid { margin: -16px 0; }
  .vp-mid span { width: 50px; height: 50px; font-size: 14px; box-shadow: 0 0 0 6px rgba(7, 7, 15, .92), 0 10px 30px -8px var(--g3); }
  .vp-side { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
  .vp-side .vp-art { flex: none; width: 36%; max-width: 150px; margin: 0; }
  .vp-main b { font-size: 26px; }
}

/* ---------------------------------------------------------------- the scores */
.vp-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .vp-cats { grid-template-columns: minmax(0, 1fr); } }
.vp-cat { display: flex; flex-direction: column; gap: 16px; min-width: 0; border-top: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.vp-cat-h { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.prose .hwp-sec .vp-cat-h h3, .prose .vp-cat-h h3 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 16.5px; color: var(--text); }
.vp-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--c, #7aa2ff);
  background: color-mix(in srgb, var(--c, #7aa2ff) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #7aa2ff) 34%, transparent); }
.vp-ic svg { width: 19px; height: 19px; }
.vp-chip { font: 700 12.5px/1.2 var(--mono); padding: 5px 11px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vp-chip.a { color: var(--va); background: rgba(255, 179, 71, .12); border: 1px solid rgba(255, 179, 71, .38); }
.vp-chip.b { color: var(--vb); background: rgba(122, 162, 255, .12); border: 1px solid rgba(122, 162, 255, .38); }
.vp-chip.tie { color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--border-hi); }
.hb.vp-duel { gap: 11px; }
.hb.vp-duel .hb-row { grid-template-columns: minmax(0, 168px) minmax(0, 1fr) auto; }
.hb.vp-duel .hb-t { height: 16px; border-radius: 8px; }
.hb.vp-duel .hb-t i { border-radius: 8px; transform-origin: left center; animation: vp-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hb.vp-duel .hb-row.vb .hb-t i { animation-delay: .12s; }
.hb.vp-duel .hb-row.va { --bc: linear-gradient(90deg, rgba(255, 179, 71, .35), var(--va)); }
.hb.vp-duel .hb-row.vb { --bc: linear-gradient(90deg, rgba(122, 162, 255, .35), var(--vb)); }
.hb.vp-duel .hb-row.va .hb-k { color: #ffd59a; }
.hb.vp-duel .hb-row.vb .hb-k { color: #bcd0ff; }
@keyframes vp-grow { from { transform: scaleX(0); } }
@media (max-width: 560px) { .hb.vp-duel .hb-row { grid-template-columns: minmax(0, 1fr) auto; } }
.vp-n { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: auto 0 0; font-size: 12.5px; color: var(--muted); }
.prose .card p.vp-n { margin: auto 0 0; line-height: 1.4; }
.vp-n span { display: inline-flex; align-items: center; gap: 6px; }
.vp-n span:not(:first-child) { font-family: var(--mono); color: var(--text-2); }
.sw.a { background: var(--va); } .sw.b { background: var(--vb); }

/* the nine CPU tests, folded away */
.vp-tests { margin-top: var(--gap); }
.vp-tests summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 4px; padding-right: 40px; position: relative; }
.vp-tests summary::-webkit-details-marker { display: none; }
.vp-tests summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-hi); color: var(--text-2); font: 600 18px/1 var(--mono); transition: rotate .2s; }
.vp-tests[open] summary::after { rotate: 45deg; }
.prose .hwp-sec .vp-tests summary h3 { margin: 0; font-size: 16.5px; color: var(--text); }
.vp-tests summary span { color: var(--muted); font-size: 13.5px; }
.vp-leg { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.prose .card p.vp-leg { margin: 16px 0 0; }
.vp-leg span { display: inline-flex; align-items: center; gap: 7px; }
.vp-tests-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin-top: 14px; }
@media (max-width: 760px) { .vp-tests-g { grid-template-columns: minmax(0, 1fr); } }
.vp-tests h4 { margin: 8px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vp-tw { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.vp-tw-k { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-tw-t { display: grid; gap: 4px; }
.vp-tw-t i { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.vp-tw-t i.a { background: var(--va); } .vp-tw-t i.b { background: var(--vb); }
.vp-tw-v { display: grid; gap: 1px; text-align: right; font: 600 12px/1.25 var(--mono); font-variant-numeric: tabular-nums; }
.vp-tw-v .a { color: var(--va); } .vp-tw-v .b { color: var(--vb); }

/* ---------------------------------------------------------------- key data */
.vp-specs { padding: 0; overflow: hidden; }
.vp-specs table { table-layout: fixed; }
.vp-specs th, .vp-specs td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 14px 20px; }
.vp-specs tbody tr { cursor: default; }
.vp-specs thead th { color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.vp-specs thead .sw { margin-right: 8px; vertical-align: 0; }
.vp-specs tbody th { width: 36%; color: var(--muted); font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.vp-specs td { font: 600 15px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.vp-specs tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 560px) {
  .vp-specs th, .vp-specs td { padding: 11px 10px; }
  .vp-specs tbody th { width: 34%; font-size: 13px; }
  .vp-specs td { font-size: 13.5px; }
}

/* ---------------------------------------------------------------- links, call to action */
.vp-rel { margin-top: clamp(40px, 5vw, 72px); }
.vp-rel .li .sw { width: 12px; height: 12px; }
.vp-rel .li > span[aria-hidden], .vp-hub .li > span[aria-hidden] { color: var(--muted); }
.vp-cta { margin-top: clamp(40px, 5vw, 72px); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 179, 71, .1), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(122, 162, 255, .12), transparent 55%), var(--card); }
.prose .vp-cta p.small { margin: 18px auto 0; max-width: 62ch; }

/* /vergleich: the block of pairs */
.vp-hub { margin-top: clamp(48px, 6vw, 88px); }
.vp-hub h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.vp-hub .card:first-child .vp-ic { --c: #ffb347; }
.vp-hub .card:last-child .vp-ic { --c: #7cffb2; }
/* a pair whose two models are rendered: the stage of its page in small, the two floating in their columns (SiteVersus::vsHub) */
.vp-duos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.vp-duos + .list { margin-top: 14px; }
.vp-duo { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #07070d; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.vp-duo:hover, .vp-duo:focus-visible { border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
/* the phone picture of the stage (1200 × 760) without the lower part of the pedestals: the box is 1200 × 620, the wells' middle
   (55.14 % of the picture) lies at 55.14 × 760 / 620 = 67.6 % of it */
.vp-duo-stage { position: relative; display: block; aspect-ratio: 1200 / 620; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); }
.vp-duo-stage > img { display: block; width: 100%; height: auto; }
.vp-duo .vp-float { top: 67.6%; width: 34%; }
.vp-duo .vp-float.gpucard { width: 48%; }
.vp-duo .vp-float.board { width: 40%; }
.vp-duo .vp-float img { animation-play-state: paused; } /* still in the list, alive under the pointer */
.vp-duo:hover .vp-float img, .vp-duo:focus-visible .vp-float img { animation-play-state: running; }
/* each name under its column (the wells at 23.6 % and 76.4 %), VS between them */
.vp-duo-t { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-top: -2px; padding: 0 8px 14px; font-size: 13.5px; line-height: 1.3; text-align: center; }
.vp-duo-t b { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.vp-duo-t b:first-child { color: #ffd29a; }
.vp-duo-t b:last-child { color: #b9ccff; }
.vp-duo-t i { flex: none; font: 700 11px var(--mono); font-style: normal; letter-spacing: .08em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hb.vp-duel .hb-t i, .vp-mid span { animation: none; }
  .vp-side { transition: none; }
  .vp-side:hover { transform: none; }
}
