/* Visa Bulletin: the cutoff timeline, drawn as a ruled reference strip. */

.visa-timeline {
  margin: 32px 0 38px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--green);
  background:
    linear-gradient(180deg, rgba(237, 242, 237, 0.55), rgba(251, 250, 245, 0) 190px),
    var(--paper);
}

.visa-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.visa-timeline-head > div {
  min-width: 0;
}

.visa-timeline-eyebrow {
  color: var(--saffron-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visa-timeline-head h2 {
  margin-top: 4px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.visa-timeline-head p {
  max-width: 690px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.6;
}

.visa-timeline-month {
  flex: none;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.visa-timeline-month span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visa-timeline-month strong {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.visa-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 17px 0 2px 160px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.visa-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.timeline-key-final {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--paper);
}

.timeline-key-filing {
  border: 1.5px solid var(--saffron);
  background: transparent;
}

.timeline-key-gap {
  width: 16px;
  height: 2px;
  border-radius: 0;
  background: var(--saffron-line);
}

.visa-timeline-scroll {
  margin-top: 7px;
  overflow-x: auto;
}

.visa-timeline-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
  overflow: visible;
}

.timeline-grid {
  stroke: var(--line);
  stroke-dasharray: 2 4;
  stroke-width: 1;
}

.timeline-tick {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.timeline-track {
  stroke: var(--line);
  stroke-width: 1;
}

.timeline-category {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.timeline-name {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.timeline-gap {
  stroke: var(--saffron-line);
  stroke-linecap: round;
  stroke-width: 5;
}

.timeline-filing-dot {
  fill: var(--paper);
  stroke: var(--saffron);
  stroke-width: 1.7;
}

.timeline-final-dot {
  fill: var(--green);
  stroke: var(--paper);
  stroke-width: 2.2;
}

.timeline-date {
  fill: var(--ink-2);
  font-family: var(--font-body);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 2.5px;
}

.timeline-date-end {
  fill: var(--green);
  font-weight: 700;
}

.timeline-missing {
  fill: var(--danger);
  font-family: var(--font-body);
  font-size: 9px;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 2.5px;
}

.visa-timeline-note {
  margin: 8px 0 0 160px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .visa-timeline-legend,
  .visa-timeline-note {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .visa-timeline {
    margin-right: 0;
    margin-left: 0;
    padding: 17px 12px 15px;
  }

  .visa-timeline-head {
    flex-direction: column;
    gap: 9px;
  }

  .visa-timeline-month {
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .visa-timeline-legend {
    margin-top: 13px;
    font-size: 0.64rem;
  }

  .visa-timeline-note {
    font-size: 0.65rem;
  }
}

@media print {
  .visa-timeline {
    break-inside: avoid;
  }

  .visa-timeline-scroll {
    overflow: visible;
  }

  .visa-timeline-svg {
    min-width: 0;
  }
}
