/* Candidate 5: colour enters each space from its left accent edge. */
.candidate-five-details .space-choice {
  --space-fill: #dff5e4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background .3s ease;
}
.candidate-five-details .space-choice:nth-child(2) { --space-fill: #f6f5c7; }
.candidate-five-details .space-choice:nth-child(3) { --space-fill: #ffe7cc; }
.candidate-five-details .space-choice::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--space-fill);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform .48s cubic-bezier(.22,.61,.36,1),opacity .38s ease;
}
.candidate-five-details .space-choice:is(:hover,:focus-visible) {
  background: #fff;
  padding-left: 22px;
}
.candidate-five-details .space-choice:is(:hover,:focus-visible)::before {
  opacity: 1;
  transform: translateX(0);
}

.candidate-five-details .screen-tabs button {
  transition: background .2s,color .2s,box-shadow .25s ease;
}
.candidate-five-details .screen-tabs button:is(:hover,:focus-visible) {
  box-shadow: 0 10px 24px -4px #071c1680,0 3px 8px #071c1640;
}
.candidate-five-details .screen-image-button:is(:hover,:focus-visible) {
  box-shadow: 0 38px 80px -12px #00140fc4,0 12px 28px -5px #00140f80;
}
.candidate-five-details .header-star-svg {
  display: block;
  overflow: visible;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .candidate-five-details .space-choice,
  .candidate-five-details .space-choice::before,
  .candidate-five-details .screen-tabs button,
  .candidate-five-details .screen-image-button { transition: none; }
}

/* The illustration is static: let its content determine height and scroll with the page. */
.candidate-five-details .hero-product .workspace-panel {
  height: auto;
  min-height: max(440px, min(530px, 56vw));
  display: flex;
  flex-direction: column;
}
.candidate-five-details .hero-product .workspace-body[inert] {
  height: auto;
  min-height: 0;
  flex: 1;
}
.candidate-five-details .hero-product .workspace-body[inert] .workspace-content {
  overflow: visible;
}
@media (max-width: 760px) {
  .candidate-five-details .hero-product .workspace-panel { min-height: 480px; }
  .candidate-five-details .hero-product .workspace-body[inert] .workspace-content {
    padding-bottom: 18px;
  }
}
