/* Roadmap */

.roadmap__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: calc(56px * var(--density));
}

.roadmap__title {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}

.roadmap__range { margin: 0; }

/* Timeline scale */
.roadmap__scale-wrap {
  margin-bottom: calc(20px * var(--density));
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.roadmap__scale {
  position: relative;
  height: 22px;
}

.roadmap__month {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.roadmap__month-tick {
  color: var(--ink-3);
  white-space: nowrap;
}

.roadmap__today-line {
  position: absolute;
  top: -8px;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  z-index: 2;
}

.roadmap__today-label {
  position: absolute;
  top: -22px;
  left: 4px;
  color: var(--accent);
  font-weight: 500;
}

/* Phases */
.roadmap__phases {
  display: flex;
  flex-direction: column;
}

.phase {
  padding: calc(22px * var(--density)) 0 calc(24px * var(--density));
  border-bottom: 1px solid var(--rule);
}

.phase:last-child { border-bottom: 0; }

.phase__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}

.phase__name-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.phase__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  align-self: center;
  transform: translateY(-1px);
  flex-shrink: 0;
}

.phase__name {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  margin: 0;
  white-space: nowrap;
}

.phase--active .phase__name {
  color: var(--ink);
}

.phase__dates {
  color: var(--ink-3);
  flex-shrink: 0;
}

.phase__desc {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 70ch;
  line-height: 1.55;
}

.phase--active .phase__desc {
  color: var(--ink-2);
}

/* Track + band */
.phase__track {
  position: relative;
  height: 28px;
  background: linear-gradient(to bottom,
    transparent calc(50% - 1px),
    var(--rule) calc(50% - 1px),
    var(--rule) calc(50% + 0px),
    transparent calc(50% + 0px));
}

.phase__band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  overflow: hidden;
  padding: 4px 4px;
  transition: background 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.phase--active .phase__band {
  background: var(--paper-3);
}

.phase--past .phase__band {
  background: var(--paper-2);
  opacity: 0.7;
}

/* Day grid */
.phase__day-grid {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 1px;
}

.dg {
  flex: 1 1 0;
  min-width: 1px;
  height: 12px;
  display: block;
  align-self: center;
}

.dg--none {
  height: 1px;
  background: var(--rule-strong);
  opacity: 0.4;
}

.dg--planned {
  width: 100%;
  height: 3px;
  align-self: center;
  opacity: 0.55;
}

.dg--done {
  height: 12px;
  width: 100%;
}

.dg--skipped {
  height: 12px;
  width: 100%;
  background: transparent;
  border: 1px solid;
  box-sizing: border-box;
  opacity: 0.5;
}

@media (max-width: 700px) {
  .phase__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
