/* s08-results — LAVA #showcase 3-Col 1px-Gap Flush Masonry + #779e91 Slide-Over Drawer */
#results.ws-showcase-section {
  position: relative;
}

#results .ws-showcase-stage {
  position: relative;
  z-index: 7;
  background-color: #ddefde;
  color: #031c14;
  padding: var(--section-pad-y) 0;
}

#results .ws-showcase-header {
  max-width: none;
  margin-bottom: 48px;
}

#results .ws-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: rgba(3, 28, 20, 0.14);
}

@media (min-width: 640px) {
  #results .ws-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #results .ws-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
}

#results .ws-showcase-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 428 / 292;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  background-color: #07291e;
  cursor: pointer;
  text-align: left;
}

#results .ws-showcase-tile[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  #results .ws-showcase-tile--tall,
  #results .ws-showcase-tile--tall-right {
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }
}

#results .ws-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.1, 0.75, 0.25, 1);
}

#results .ws-showcase-tile:hover .ws-showcase-img,
#results .ws-showcase-tile:focus-visible .ws-showcase-img {
  transform: scale(1.05);
}

#results .ws-tile-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 240px at var(--glare-x, 50%) var(--glare-y, 35%),
    rgba(250, 249, 246, 0.28) 0%,
    rgba(219, 192, 147, 0.08) 44%,
    transparent 76%
  );
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

#results .ws-tile-sweep {
  position: absolute;
  inset: -45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 38%,
    rgba(255, 255, 255, 0.24) 49%,
    rgba(77, 255, 240, 0.16) 52%,
    transparent 62%
  );
  transform: translateX(-115%) rotate(6deg);
  opacity: 0;
  transition: transform 0.88s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#results .ws-showcase-tile:hover .ws-tile-glare {
  opacity: 1;
}

#results .ws-showcase-tile:hover .ws-tile-sweep {
  transform: translateX(115%) rotate(6deg);
  opacity: 0.9;
}

@keyframes s08-slide-next {
  0% {
    opacity: 0.25;
    transform: perspective(1200px) translate3d(44px, 6px, -50px) rotateY(-8deg) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) rotateY(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes s08-slide-prev {
  0% {
    opacity: 0.25;
    transform: perspective(1200px) translate3d(-44px, 6px, -50px) rotateY(8deg) scale(0.96);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) rotateY(0deg) scale(1);
    filter: blur(0);
  }
}

#results .ws-drawer-single-frame.slide-anim-next,
#results .ws-compare-stage.slide-anim-next {
  animation: s08-slide-next 0.54s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#results .ws-drawer-single-frame.slide-anim-prev,
#results .ws-compare-stage.slide-anim-prev {
  animation: s08-slide-prev 0.54s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Opt-in Dark Botanical Cover for Clinical Photo */
#results .ws-clinical-cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 290px;
  padding: 28px;
  background: radial-gradient(circle at 30% 25%, #0d382a 0%, #031c14 78%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ddefde;
  gap: 12px;
}

#results .ws-clinical-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#results .ws-clinical-emblem {
  width: 52px;
  height: 52px;
  display: block;
}

#results .ws-clinical-pill-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dbc093;
}

#results .ws-clinical-cover-title {
  font-family: 'Josefin Sans', 'Jost', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
}

#results .ws-clinical-cover-sub {
  font-size: 13px;
  color: rgba(221, 239, 222, 0.68);
}

#results .ws-showcase-tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
}

#results .ws-showcase-tag {
  background-color: #ddefde;
  color: #031c14;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

#results .ws-showcase-more-wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Slide-Over #779e91 Drawer (Safe hidden bounds -> 0 horizontal overflow) */
#results .ws-drawer-wrap {
  position: fixed;
  inset: 0;
  z-index: 9500;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

#results .ws-drawer-wrap.is-open {
  visibility: visible;
  pointer-events: auto;
}

#results .ws-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 28, 20, 0.72);
  opacity: 0;
  transition: opacity 0.35s ease;
}

#results .ws-drawer-wrap.is-open .ws-drawer-backdrop {
  opacity: 1;
}

#results .ws-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(760px, 100vw);
  background-color: #779e91;
  color: #031c14;
  padding: 28px clamp(20px, 4vw, 48px) 44px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.1, 0.75, 0.25, 1);
}

#results .ws-drawer-wrap.is-open .ws-drawer-panel {
  transform: translateX(0);
}

#results .ws-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#results .ws-drawer-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #031c14;
}

#results .ws-drawer-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background-color: #031c14;
  color: #ddefde;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Comparison Slider inside Drawer */
#results .ws-compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #031c14;
}

#results .ws-compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

#results .ws-compare-before-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

#results .ws-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ddefde;
  transform: translateX(-50%);
  pointer-events: none;
}

#results .ws-compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #031c14;
  color: #ddefde;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

#results .ws-compare-badge {
  position: absolute;
  top: 14px;
  z-index: 4;
  background: rgba(3, 28, 20, 0.85);
  color: #ddefde;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
}

#results .ws-compare-badge--before { left: 14px; }
#results .ws-compare-badge--after { right: 14px; }

#results .ws-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

#results .ws-drawer-single-frame {
  width: 100%;
  max-height: 54vh;
  overflow: hidden;
  background: #031c14;
}

#results .ws-drawer-single-frame img {
  width: 100%;
  height: 100%;
  max-height: 54vh;
  object-fit: cover;
}

#results .ws-drawer-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(3, 28, 20, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#results .ws-drawer-step-btns {
  display: flex;
  gap: 10px;
}

#results .ws-drawer-step-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(3, 28, 20, 0.35);
  background: transparent;
  color: #031c14;
  font-size: 16px;
  cursor: pointer;
}

#results .ws-drawer-step-btn:hover {
  background: #031c14;
  color: #ddefde;
}
