/* Keep comparison navigation and readable captions outside the approved video frames. */
.gpv-header { display: contents; }
.gpv-title, .gpv-phases, .gpv-footer { display: none; }
#cases .vf .v:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.vw.vw-comparison.on {
  animation: none;
  background: rgba(9, 10, 12, .94);
}
.vw-comparison .vw-bars, .vw-comparison .vw-cap,
.vw-comparison .vw-nav, .vw-comparison .vw-side { display: none; }
.vw-comparison .vw-stage {
  background: #151619;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  color: #f4f4f5;
  color-scheme: dark;
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  width: min(100%, 550px);
  height: min(100%, 880px);
  max-height: calc(100% - 24px);
  aspect-ratio: auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.vw-comparison .gpv-header {
  display: grid;
  gap: 8px;
  padding: 6px 16px 12px;
}
.vw-comparison .vw-top {
  position: static;
  min-width: 0;
  gap: 4px;
}
.vw-comparison .vw-top a, .vw-comparison .vw-top button { width: 44px; height: 44px; flex: none; }
.vw-comparison .gpv-title {
  display: block;
  margin: 0;
  color: #f4f4f5;
  font-size: clamp(16px, 4vw, 21px);
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.vw-comparison .gpv-phases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border: 1px solid #383a40;
  border-radius: 9px;
  background: #1b1d21;
}
.vw-comparison .gpv-phase {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 7px;
  min-width: 0;
  min-height: 44px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #c7c9ce;
  line-height: 1.2;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.vw-comparison .gpv-phase-name { font-weight: 700; }
.vw-comparison .gpv-phase[aria-pressed="true"] { background: #ebedf0; color: #17181b; }
@media (hover: hover) {
  .vw-comparison .gpv-phase[aria-pressed="false"]:hover { background: #31333a; color: #fff; }
}
.vw-comparison :is(.gpv-phase, .vw-top a, .vw-top button, video):focus-visible {
  outline: 2px solid #e9b982;
  outline-offset: -2px;
}
.vw-comparison #vwVid {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: #090a0b;
}
.vw-comparison .gpv-footer {
  display: grid;
  gap: 8px;
  padding: 11px 16px 13px;
  border-top: 1px solid #2e3035;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.vw-comparison .gpv-notes { display: grid; }
/* Reserve the larger of the two captions so the clip doesn't move on a switch. */
.vw-comparison .gpv-note { grid-area: 1 / 1; }
.vw-comparison .gpv-note[aria-hidden="true"] { visibility: hidden; }
.vw-comparison .gpv-note-title { display: block; font-size: 16px; font-weight: 650; }
.vw-comparison .gpv-note-detail, .vw-comparison .gpv-tip { margin: 3px 0 0; color: #bfc2c9; font-size: 14px; }
.vw-comparison .gpv-tip { margin: 0; padding-top: 7px; border-top: 1px solid #35373d; }
.vw-comparison .gpv-tip-label { color: #ebedf0; font-weight: 650; margin-inline-end: .55em; }
@media (max-width: 600px) {
  .vw-comparison .vw-stage { height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .vw-comparison .gpv-header { padding-top: max(4px, env(safe-area-inset-top)); }
  .vw-comparison :is(.gpv-header, .gpv-footer) {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .vw-comparison .gpv-footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  #vw.vw.on { animation: none; }
}
