/* The two widths grow from the same measuring edge. The illustration stays visible. */
[data-width-diagram]::after {
  display: block;
  width: min(72%, 22rem);
  height: .85rem;
  margin-block-start: .75rem;
  content: "";
  background:
    linear-gradient(#263c33, #263c33) left top / var(--narrow-width, 79%) 3px no-repeat,
    linear-gradient(#a85b3f, #a85b3f) left bottom / 100% 3px no-repeat;
  border-inline-start: 2px solid #263c33;
  transform-origin: left center;
}
[data-width-diagram="frame"] { --narrow-width: 80%; }
[data-width-diagram][data-width-traced]::after {
  animation: trace-showroom-width 560ms cubic-bezier(.22,.75,.3,1) both;
}
@keyframes trace-showroom-width {
  from { transform: scaleX(.18); }
  to { transform: scaleX(1); }
}

.home-steps a { transition: background-color 180ms ease-out; }
.home-steps .task-mark { transition: transform 180ms ease-out; }
@media (hover:hover) and (pointer:fine) {
  .home-steps a:hover { background-color: #eee1e2; }
  .home-steps a:hover .task-mark { transform: translateX(5px); }
}
.home-steps a:focus-visible { background-color: #eee1e2; }
.home-steps a:focus-visible .task-mark { transform: translateX(5px); }
.home-steps a:active, .home-steps a[data-task-pressed] { background-color: #e6cfd4; }
.home-steps a:active .task-mark, .home-steps a[data-task-pressed] .task-mark { transform: translateX(3px) scale(.9); }

.compare-controls label {
  border: 1px solid transparent;
  padding: .4rem;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
.compare-controls label[data-showroom-picked] {
  background-color: #f1e2e0;
  border-color: #985a5a;
}
.compare-controls label:focus-within, .compare-controls label:active {
  background-color: #ead7da;
  border-color: #74433e;
}

@media (prefers-reduced-motion:reduce) {
  [data-width-diagram][data-width-traced]::after { animation: none; }
  .home-steps a, .home-steps .task-mark, .compare-controls label { transition: none; }
  .home-steps a .task-mark { transform: none !important; }
}
