﻿/* Horizontal timeline — reusable; safe to copy with the horizontal-timeline/ folder */

.ht {
  --ht-ink: #1c1917;
  --ht-muted: #78716c;
  --ht-line: #292524;
  --ht-paper: #ffffff;
  --ht-arrow: rgba(28, 25, 23, 0.42);
  --ht-arrow-hover: rgba(28, 25, 23, 0.7);
  --ht-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  width: 100%;
  margin: 0 0 14px;
  font-family: var(--ht-sans);
}

.ht-frame {
  position: relative;
  width: 100%;
  background: var(--ht-paper);
  border-top: 1px solid #e7e5e4;
  border-bottom: 1px solid #e7e5e4;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.ht-viewport {
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
}

.ht-viewport.is-dragging,
.ht-viewport:active {
  cursor: grabbing;
}

.ht-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ht-bar {
  stroke: var(--ht-line);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ht-tick-line {
  stroke: var(--ht-muted);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ht-tick-label {
  fill: var(--ht-muted);
  font-size: 11px;
  font-family: var(--ht-sans);
}

.ht-stem {
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.ht-dot {
  vector-effect: non-scaling-stroke;
}

.ht-label-rule {
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.ht-label-text {
  font-family: var(--ht-sans);
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 2.25px;
  stroke-linejoin: round;
}

.ht-date-label {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  fill: #78716c;
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 2.25px;
  stroke-linejoin: round;
}

.ht-event.is-label-hidden .ht-label,
.ht-event.is-label-hidden .ht-stem,
.ht-event.is-label-hidden .ht-dot-top {
  display: none;
}

.ht-event.is-zone-1 .ht-stem,
.ht-event.is-zone-1 .ht-dot-top,
.ht-event.is-zone-1 .ht-label-rule {
  display: none;
}

/* ArcGIS-style zoom stack, ~30% smaller than typical 32px map controls. */
.ht-zoom-controls {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ht-zoom-controls button {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e4e4e4;
  background: #fff;
  color: #323232;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-zoom-controls button:last-child {
  border-bottom: 0;
}

.ht-zoom-controls button:hover:not(:disabled) {
  background: #f3f3f3;
}

.ht-zoom-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.ht-arrow {
  position: absolute;
  top: calc(100% - 42px);
  z-index: 2;
  transform: translateY(-50%);
  width: 34px;
  height: 64px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ht-arrow);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.ht-arrow:hover:not(:disabled),
.ht-arrow:focus-visible:not(:disabled) {
  color: var(--ht-arrow-hover);
  outline: none;
}

.ht-arrow:disabled,
.ht-arrow.is-disabled {
  opacity: 0.2;
  cursor: default;
}

.ht-arrow-left { left: 2px; }
.ht-arrow-right { right: 2px; }

.ht-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: var(--ht-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.ht-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 10px 4px 2px;
}

.ht-filter {
  appearance: none;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: var(--ht-ink);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}

.ht-filter[aria-pressed="true"] {
  border-color: #1c1917;
  background: #1c1917;
  color: #fff;
}

.ht-filter:hover {
  border-color: #a8a29e;
}

