/* Time Difference Calculator: layout of the inputs and the timeline under the result. */

.td { display: flex; flex-direction: column; gap: 24px; }

/* Line the button up with the inputs: skip the label (21px line) and the field gap (8px). */
.td-now { align-self: start; margin-top: 29px; min-height: 52px; }

.timeline { display: flex; flex-direction: column; gap: 10px; margin: 0; }

.timeline-caption { font: 700 14px var(--font-mono); text-align: center; }

.timeline-track {
  position: relative;
  height: 44px;
  background: var(--surface-2);
  border: var(--border);
  border-radius: 10px;
}

.timeline-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed var(--line-soft);
}

.timeline-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  min-width: 4px;
  background-color: var(--accent);
  background-image: repeating-linear-gradient(135deg, rgba(11, 31, 68, 0.18) 0 6px, transparent 6px 12px);
  border: var(--border);
  border-radius: 6px;
}

.timeline-labels {
  position: relative;
  height: 20px;
  font: 13px var(--font-mono);
  color: var(--ink-3);
}

.timeline-label { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.timeline-label.is-first { transform: none; }
.timeline-label.is-last { transform: translateX(-100%); }

@media (max-width: 640px) {
  .timeline-labels.is-dense .timeline-label:nth-child(even):not(.is-last) { display: none; }
}
