/* from src/components/common/SectionTimelineNav.vue */
.timeline-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  pointer-events: none;
}

.timeline-nav ol {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: relative;
  display: grid;
  gap: 0;
  pointer-events: auto;
}

.timeline-nav ol::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 11px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(15, 52, 91, 0.08),
    rgba(15, 52, 91, 0.22) 20%,
    rgba(15, 52, 91, 0.22) 80%,
    rgba(15, 52, 91, 0.08)
  );
}

.node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  font: inherit;
  transition: min-height 0.28s ease;
}

.node.active {
  min-height: 44px;
}

.dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #0f345b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  transition:
    width 0.3s ease,
    height 0.3s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    border-radius 0.3s ease;
}

.label {
  order: -1;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 4px;
  color: #666;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 52, 91, 0.08);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    font-weight 0.22s ease,
    font-size 0.28s ease,
    padding 0.28s ease,
    letter-spacing 0.28s ease;
}

.node:hover .label {
  color: #0f345b;
  box-shadow: 0 4px 14px rgba(15, 52, 91, 0.12);
}

.node.active .label {
  color: #d93751;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(217, 55, 81, 0.18);
}

.node:hover .dot {
  border-color: #d93751;
}

.node.active .dot {
  width: 8px;
  height: 28px;
  border-radius: 10px;
  background: #d93751;
  border-color: #d93751;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 0 0 6px rgba(217, 55, 81, 0.14);
}

@media (max-width: 1100px) {
  .timeline-nav {
    right: 10px;
  }

  .label {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 720px) {
  .timeline-nav {
    display: none;
  }
}
