/* ================================================================ qy-compare-2 (2026-09-30): /compare and /compare/{pair}.
   compare-1.css plus the three-model layouts (.qcp-n3, .qcp-pair-n3): a new file, because the CDN ignores ?v= and the
   pages must never pair the new markup with the old rules.
   Loads after qy-models/models-1.css and uses its tokens and components (#qmd, .qmd-*); only what a side-by-side page
   needs is here, under .qcp-*. Studio black, lime accent, Space Grotesk display - the model pages' look. Names only, no
   maker logos. */

/* ---------------------------------------------------------------- hero: the short answer */
#qmd .qcp-verdict {
  max-width: 560px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--md-line); border-radius: 14px;
  background: var(--md-card); color: var(--md-dim); font-size: 14px; line-height: 1.55;
}
#qmd .qcp-verdict b { margin-right: 6px; color: var(--md-lime); font-weight: 700; }

/* ---------------------------------------------------------------- hero: a real result from each, face to face */
#qmd .qcp-stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: center; }
#qmd .qcp-stage::before {
  content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: radial-gradient(closest-side, rgba(177, 77, 255, .32), transparent);
  filter: blur(40px); pointer-events: none;
}
#qmd .qcp-frame {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--md-line-2); border-radius: 20px;
  background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
/* the media sits out of flow, so the frame keeps its 3:4 shape whatever the clip's own shape is */
#qmd .qcp-frame video, #qmd .qcp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#qmd .qcp-frame figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 12px; background: rgba(10, 11, 13, .74); backdrop-filter: blur(8px); color: var(--md-faint); font-size: 12px;
}
#qmd .qcp-frame figcaption b { color: #fff; font-weight: 700; }
#qmd .qcp-frame figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a family with no result on /explore yet: its name on the house gradient - never an empty black box */
#qmd .qcp-frame-empty {
  display: flex; width: 100%; height: 100%; align-items: flex-end; padding: 18px 18px 64px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(177, 77, 255, .55), transparent 60%),
              radial-gradient(120% 120% at 0% 100%, rgba(255, 61, 139, .45), transparent 60%), var(--md-card-2);
}
#qmd .qcp-frame-empty span { color: #fff; font-family: var(--md-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
#qmd .qcp-vs {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--md-lime); color: var(--md-ink); font-family: var(--md-display); font-size: 16px; font-weight: 800;
  letter-spacing: .04em; box-shadow: 0 0 0 6px var(--md-bg); transform: translate(-50%, -50%);
}

/* ---------------------------------------------------------------- the side-by-side table */
#qmd .qcp-table { min-width: 560px; }
#qmd .qcp-table thead th + th {
  color: #fff; font-family: var(--md-display); font-size: 17px; letter-spacing: -.01em; text-transform: none;
}
#qmd .qcp-table tbody th { width: 26%; color: var(--md-faint); font-weight: 600; white-space: normal; }
#qmd .qcp-table td { width: 37%; color: #fff; }
#qmd .qcp-table td b { font-variant-numeric: tabular-nums; font-weight: 700; }
#qmd .qcp-table td small { display: block; margin-top: 2px; color: var(--md-faint); font-size: 12px; }

/* ---------------------------------------------------------------- which to pick */
#qmd .qcp-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#qmd .qcp-pick { display: flex; flex-direction: column; }
#qmd .qcp-pick ul { display: grid; gap: 14px; margin-top: 18px; }
#qmd .qcp-pick li { display: flex; gap: 10px; color: var(--md-dim); font-size: 15px; line-height: 1.55; }
#qmd .qcp-pick li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--md-lime); }
#qmd .qcp-pick li b { color: #fff; font-weight: 600; }
#qmd .qcp-pick li a { color: var(--md-lime); text-decoration: underline; }
#qmd .qcp-pick-go {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--md-line); font-size: 14px;
}
#qmd .qcp-pick ul + .qcp-pick-go { margin-top: 22px; }
#qmd .qcp-more { color: var(--md-dim); font-weight: 600; }
#qmd .qcp-more:hover { color: #fff; }

/* ---------------------------------------------------------------- real results, one column each */
#qmd .qcp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
#qmd .qcp-col-h { margin-bottom: 14px; color: #fff; font-family: var(--md-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
#qmd .qcp-col-h small { margin-left: 6px; color: var(--md-faint); font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; }
#qmd .qcp-shots { columns: 2 180px; column-gap: 14px; }
#qmd .qcp-shots .qmd-shot { margin-bottom: 14px; }

/* ---------------------------------------------------------------- the comparison cards (/compare and "More comparisons") */
#qmd .qcp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#qmd .qcp-pair {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--md-line); border-radius: 20px;
  background: var(--md-card); transition: transform .15s ease, border-color .15s ease;
}
#qmd .qcp-pair:hover { transform: translateY(-2px); border-color: rgba(209, 254, 23, .45); }
#qmd .qcp-pair-pics { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
/* out of flow for the same reason: a tall cover (a 9:16 video frame) must not stretch its card */
#qmd .qcp-pair-pic { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#qmd .qcp-pair-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#qmd .qcp-pair-pic.is-empty {
  display: flex; align-items: flex-end; padding: 14px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(177, 77, 255, .55), transparent 60%),
              radial-gradient(120% 120% at 0% 100%, rgba(255, 61, 139, .45), transparent 60%), var(--md-card-2);
}
#qmd .qcp-pair-pic.is-empty span { color: #fff; font-family: var(--md-display); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
#qmd .qcp-pair-vs {
  position: absolute; left: 50%; top: 50%; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--md-lime); color: var(--md-ink); font-family: var(--md-display); font-size: 13px; font-weight: 800;
  box-shadow: 0 0 0 4px var(--md-card); transform: translate(-50%, -50%);
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1024px) {
  #qmd .qcp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  #qmd .qcp-stage { max-width: 520px; }
  #qmd .qcp-picks, #qmd .qcp-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  #qmd .qcp-list { grid-template-columns: 1fr; }
  #qmd .qcp-stage { gap: 10px; }
  #qmd .qcp-vs { width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 0 5px var(--md-bg); }
  #qmd .qcp-frame figcaption span { display: none; }
  /* the table fits a phone instead of scrolling sideways: three short columns wrap */
  #qmd .qcp-table { min-width: 0; font-size: 13px; }
  #qmd .qcp-table th, #qmd .qcp-table td { padding: 12px 10px; }
  #qmd .qcp-table thead th + th { font-size: 15px; }
  #qmd .qcp-table tbody th { width: 28%; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #qmd .qcp-pair { transition: none; }
}

/* ---------------------------------------------------------------- three models on one page (.qcp-n3) */
#qmd.qcp-n3 .qcp-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#qmd.qcp-n3 .qcp-vs { width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 0 5px var(--md-bg); }
#qmd.qcp-n3 .qcp-vs-1 { left: 33.333%; }
#qmd.qcp-n3 .qcp-vs-2 { left: 66.667%; }
#qmd.qcp-n3 .qcp-frame figcaption span { display: none; }
#qmd.qcp-n3 .qcp-table { min-width: 680px; }
#qmd.qcp-n3 .qcp-table tbody th { width: 22%; }
#qmd.qcp-n3 .qcp-table td { width: 26%; }
#qmd.qcp-n3 .qcp-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#qmd.qcp-n3 .qcp-duo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#qmd.qcp-n3 .qcp-shots { columns: 2 150px; column-gap: 12px; }
/* three columns of results are narrow: the version goes under the title instead of squeezing it or running off the card */
#qmd.qcp-n3 .qcp-shots .qmd-shot-top { flex-wrap: wrap; justify-content: flex-start; row-gap: 4px; }
#qmd.qcp-n3 .qcp-shots .qmd-shot-model { white-space: normal; }

/* a comparison card with three models: three covers and two VS marks */
#qmd .qcp-pair-n3 .qcp-pair-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#qmd .qcp-pair-n3 .qcp-pair-vs { width: 34px; height: 34px; font-size: 11px; box-shadow: 0 0 0 3px var(--md-card); }
#qmd .qcp-pair-n3 .qcp-pair-vs-1 { left: 33.333%; }
#qmd .qcp-pair-n3 .qcp-pair-vs-2 { left: 66.667%; }

@media (max-width: 1024px) {
  #qmd.qcp-n3 .qcp-picks, #qmd.qcp-n3 .qcp-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* all three models stay on screen: tighter cells and smaller type rather than a sideways scroll that hides two */
  #qmd.qcp-n3 .qcp-table { min-width: 0; font-size: 12px; }
  #qmd.qcp-n3 .qcp-table th, #qmd.qcp-n3 .qcp-table td { padding: 10px 6px; }
  #qmd.qcp-n3 .qcp-table thead th + th { font-size: 13px; }
  #qmd.qcp-n3 .qcp-table tbody th { width: 22%; font-size: 11px; }
  #qmd.qcp-n3 .qcp-table td small { font-size: 11px; }
  #qmd.qcp-n3 .qcp-vs { width: 36px; height: 36px; font-size: 12px; box-shadow: 0 0 0 4px var(--md-bg); }
}
