html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.toc {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(220px, 80vw);
}

.toc__pill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 36px;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.14);
  border-left: 3px solid #2f6df6;
  z-index: 0;
  transform: translateY(0);
}

.toc__item {
  position: relative;
  z-index: 1;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  text-decoration: none;
}

.toc.is-demo .toc__pill {
  animation: move 2s ease-in-out infinite;
}

@keyframes move {
  0%, 10% {
    transform: translateY(0);
  }
  25%, 35% {
    transform: translateY(36px);
  }
  50%, 60% {
    transform: translateY(72px);
  }
  75%, 85% {
    transform: translateY(108px);
  }
  100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toc.is-demo .toc__pill {
    animation: none !important;
  }
}
