/* The classic horizontal timeline (classic-timeline.js) */

/* ── Timeline area ────────────────────────────── */
.timeline-container {
  position: relative;
  flex: 1;
  height: 100vh;
  overflow: hidden;
  background: var(--page);
}

.timeline {
  position: absolute;
  top: 50%;
  height: 2px;
  background-color: #333;
  transform: translateY(-50%);
}

.comparison-overlap {
  position: absolute;
  top: 50%;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(33, 150, 243, 0.24);
  border: 1px solid rgba(33, 150, 243, 0.65);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

/* Period shaded while the hiring trend badge is hovered */
.trend-window {
  position: absolute;
  top: 50%;
  height: 100vh;
  transform: translateY(-50%);
  background: rgba(33, 150, 243, 0.08);
  border-left: 1px dashed rgba(33, 150, 243, 0.6);
  border-right: 1px dashed rgba(33, 150, 243, 0.6);
  z-index: 0;
  pointer-events: none;
}

/* ── Timeline markers ─────────────────────────── */
.year-marker {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 10px;
  background-color: #555;
  transform: translateY(-50%);
}

.month-marker {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 6px;
  background-color: #888;
  transform: translateY(-50%);
}

.half-month-marker {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 3px;
  background-color: #aaa;
  transform: translateY(-50%);
}

.year-label {
  position: absolute;
  top: calc(50% + 15px);
  transform: translateX(-50%);
  font-size: 12px;
  color: #555;
}

.month-label {
  position: absolute;
  top: calc(50% + 12px);
  transform: translateX(-50%);
  font-size: 10px;
  color: #888;
}

/* ── People on timeline ───────────────────────── */
.person-container {
  position: absolute;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* When something is highlighted, fade all containers... */
.timeline.has-highlight .person-container {
  opacity: 0.4;
}

/* ...except the highlighted one */
.timeline.has-highlight .person-container.highlighted {
  opacity: 1;
}

.person-joined {
  position: absolute;
  top: 0;
  transform: translateY(-100%);
}

.person-left {
  position: absolute;
  top: 0;
  transform: translateY(0);
}

.person-line-joined {
  position: absolute;
  width: 2px;
  background-color: #4caf50;
  transition: width 0.15s ease;
}

.person-line-left {
  position: absolute;
  width: 2px;
  background-color: #f44336;
  transition: width 0.15s ease;
}

.person-container.highlighted .person-line-joined,
.person-container.highlighted .person-line-left {
  width: 3px;
}

.person-name {
  position: absolute;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 5;
  cursor: pointer;
  pointer-events: all;
  transition: background-color 0.15s, box-shadow 0.15s, font-weight 0.15s;
}

.person-name-active {
  border-color: #4caf50;
}

.person-name-left {
  border-color: #f44336;
}

.person-container.highlighted .person-name {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  z-index: 20;
}


/* ── Today marker ─────────────────────────────── */
.today-marker {
  position: absolute;
  top: 50%;
  width: 3px;
  height: 20px;
  background-color: #2196f3;
  transform: translateY(-50%);
  z-index: 10;
}

.today-label {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateX(-50%);
  font-size: 12px;
  color: #2196f3;
  font-weight: bold;
}
