/* ===========================
   PROGRESS BAR — Case study pages only
   =========================== */

body {
  padding-bottom: 64px;
}

#progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--color-accent-tint);
  border-top: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 28px;
}

#progress-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

#progress-line-track {
  width: 100%;
  height: 1px;
  background: rgba(90, 102, 112, 0.3);
  position: relative;
}

#progress-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--color-white);
  transition: width 0.08s linear;
}

#dots-row {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
}

.section-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-round);
  background: rgba(90, 102, 112, 0.45);
  transition: background 0.35s ease;
  position: absolute;
  cursor: pointer;
}

.section-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.section-dot.active {
  background: var(--color-white);
}

.anchor-dot {
  width: 5px;
  height: 5px;
  background: rgba(90, 102, 112, 0.45);
  border-radius: var(--radius-round);
  transition: background 0.35s ease;
  position: absolute;
  cursor: pointer;
}

.anchor-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.anchor-dot.active {
  background: var(--color-white);
}

#progress-tooltip {
  position: fixed;
  bottom: 68px;
  transform: translateX(-50%);
  background: #0a0a0a;
  color: var(--color-text);
  font-size: var(--text-9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1001;
}

#progress-tooltip.visible {
  opacity: 1;
}

#progress-label {
  font-size: var(--text-9);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
  width: 180px;
  flex-shrink: 0;
  text-align: right;
}

/* ── Tablet ── */
@media (max-width: 768px) {
  #progress-bar {
    padding: 0 24px;
    gap: 20px;
  }

  #progress-label {
    width: 140px;
    font-size: var(--text-8);
  }
}

/* ── Mobile — hide dots, keep line and label ── */
@media (max-width: 480px) {
  #progress-bar {
    padding: 0 20px;
    gap: 16px;
    height: 48px;
  }

  #progress-label {
    width: 120px;
    font-size: var(--text-8);
    letter-spacing: 0.15em;
  }

  .section-dot,
  .anchor-dot {
    display: none;
  }
}
