.resume-line-sidebar {
  position: fixed;
  z-index: 30;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.line-sidebar {
  --accent-color: #ff5a36;
  --text-color: #777771;
  --marker-color: #a2a29b;
  --marker-length: 28px;
  --marker-gap: 0px;
  --tick-scale: 0.45;
  --max-shift: 12px;
  --item-gap: 15px;
  --font-size: 0.78rem;
  position: relative;
  display: flex;
  justify-content: flex-start;
  padding: 7px 12px 7px 0;
  background: rgba(244, 242, 237, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.line-sidebar--markers {
  padding-left: calc(var(--marker-length) + var(--marker-gap));
}

.line-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  display: flex;
  flex-direction: column;
  gap: var(--item-gap);
}

.line-sidebar__item {
  position: relative;
  cursor: pointer;
  outline: none;
}

.line-sidebar__item::before {
  content: '';
  position: absolute;
  inset: -6px -20px;
}

.line-sidebar__label {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: var(--font-size);
  line-height: 1.2;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--text-color));
  transform: translateX(calc(var(--effect, 0) * var(--max-shift)));
}

.line-sidebar__index {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-right: 0.45rem;
  font-size: 0.78em;
  opacity: calc(0.55 + var(--effect, 0) * 0.45);
}

.line-sidebar__marker {
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--marker-length) - var(--marker-gap));
  height: 1px;
  width: var(--marker-length);
  background-color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--marker-color));
  transform-origin: left center;
  transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.5));
}

.line-sidebar--markers .line-sidebar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(100% + var(--item-gap) / 2);
  left: calc(-1 * var(--marker-length) - var(--marker-gap));
  height: 1px;
  width: calc(var(--marker-length) * var(--tick-scale));
  background-color: var(--marker-color);
  opacity: 0.5;
  transform: translateY(-50%);
}

.line-sidebar--scale-tick .line-sidebar__item:not(:last-child)::after {
  transform-origin: left center;
  transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.6));
}

.line-sidebar__item:focus-visible .line-sidebar__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1180px) {
  .resume-line-sidebar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .line-sidebar__label,
  .line-sidebar__marker { transform: none; }
}
