/* The historical demo is scoped so its resets never affect site navigation. */
.legacy-expanding-list {
  background: #eee;
  padding: 30px 20px 40px;
}
.legacy-expanding-list .content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.legacy-expanding-list .list {
  margin: 0;
  padding: 0;
  min-width: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #eee;
  transition: transform .3s, background .3s;
}
.legacy-expanding-list .list a {
  display: block;
  padding: clamp(24px, 12vw, 80px) 0;
  color: #333;
  text-align: center;
  text-decoration: none;
  font-size: 28px;
}
.legacy-expanding-list .content:hover .list,
.legacy-expanding-list .content:focus-within .list { background: #0c73d7; }
.legacy-expanding-list .content:hover a,
.legacy-expanding-list .content:focus-within a { color: #fff; }
.legacy-expanding-list .content:hover .list:nth-child(1) { transform: translate(-5px, -5px); }
.legacy-expanding-list .content:hover .list:nth-child(2) { transform: translate(5px, -5px); }
.legacy-expanding-list .content:hover .list:nth-child(3) { transform: translate(-5px, 5px); }
.legacy-expanding-list .content:hover .list:nth-child(4) { transform: translate(5px, 5px); }
@media (prefers-reduced-motion: reduce) {
  .legacy-expanding-list .list { transition: none; }
}
