/* -----------------------------------------------------------------------
   Timeline "timeline_blocks" — stile ripreso dal file di riferimento
   timeline-3gpp-rel20.html. Nessun overlay di completamento: il content
   type non ha quel campo (era solo nel file Excel di origine).
   ----------------------------------------------------------------------- */

.timeline {
  --bg: #FFFFFF;
  --panel: #F7F8F9;
  --line: #DFE4E8;
  --line-soft: #EAEDF0;
  --fg: #141F27;
  --fg-dim: #5C6B74;
  --fg-faint: #94A1A8;
  --accent: #C64B68;
  --now: #141F27;

  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.timeline__scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.timeline__grid {
  display: flex;
  flex-direction: column;
  min-width: 1100px;
}

.timeline__row {
  display: flex;
  align-items: stretch;
}

.timeline__row--years .timeline__label,
.timeline__row--years .timeline__lane {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.timeline__row--years .timeline__lane {
  min-height: 34px;
}

.timeline__row--section .timeline__label,
.timeline__row--section .timeline__lane {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  min-height: 58px;
}
.timeline__row--section .timeline__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif; /* la sezione resta sans, non mono */
}

.timeline__row--sub .timeline__label {
  padding-left: 36px;
  background: var(--bg);
  position: relative;
  min-height: 60px;
}
.timeline__row--sub .timeline__label::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}
.timeline__row--sub .timeline__label .timeline__label-title {
  font-size: 12.5px;
  color: var(--fg-dim);
  font-weight: 500;
}
.timeline__row--sub .timeline__lane {
  min-height: 60px;
}

.timeline__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  background: var(--accent);
}

/* colonna etichetta, fissa durante lo scroll orizzontale */
.timeline__label {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: 0 0 260px;
  width: 260px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82px;
}
.timeline__label-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: -0.01em;
}
.timeline__label-sub {
  font-size: 11.5px;
  color: var(--fg-faint);
  margin-top: 4px;
}
.timeline__label-sub b {
  color: var(--fg-dim);
  font-weight: 500;
}

.timeline__lane {
  position: relative;
  flex: 1 1 820px;
  min-width: 820px;
  min-height: 82px;
  border-bottom: 1px solid var(--line-soft);
}

.timeline__stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line-soft);
}

.timeline__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-faint);
  padding-left: 6px;
  padding-top: 10px;
}

.timeline__now {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed var(--now);
  z-index: 2;
}
.timeline__now-label {
  position: absolute;
  top: 9px;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--now);
  white-space: nowrap;
  background: var(--bg);
  padding: 0 4px;
}

/* barre */
.timeline__bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFFFFF;
  background: var(--accent);
  transition: filter .12s ease;
}
.timeline__bar:hover {
  filter: brightness(1.1);
}
.timeline__bar:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.timeline__bar.is-selected {
  box-shadow: 0 0 0 2px var(--fg);
}
.timeline__bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
}
.timeline__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .22);
  border-radius: 6px 0 0 6px;
}
.timeline__bar--parent .timeline__bar-fill {
  background: rgba(255, 255, 255, .18);
}
.timeline__bar-pct {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  opacity: .85;
  padding-left: 8px;
}

.timeline__bar--parent {
  background: var(--fg);
  height: 40px;
}
.timeline__bar--sub {
  height: 26px;
}
.timeline__bar--point {
  width: 20px !important;
  min-width: 20px;
  padding: 0;
  border-radius: 50%;
  height: 20px;
  justify-content: center;
}
.timeline__bar--point .timeline__bar-label {
  display: none;
}

.timeline__error {
  padding: 24px;
  color: var(--fg-faint);
  font-size: 13.5px;
  grid-column: 1 / -1;
}

/* pannello dettagli, sotto la timeline */
.timeline__detail {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 20px 24px;
  min-height: 100px;
}
.timeline__detail.is-empty {
  display: flex;
  align-items: center;
  color: var(--fg-faint);
  font-size: 13.5px;
}
.timeline__detail-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.timeline__detail-badge {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
  background: var(--accent);
}
.timeline__detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
}
.timeline__detail-period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--fg-dim);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.timeline__detail-source {
  font-size: 11.5px;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.timeline__detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.timeline__detail-meta-item {
  font-size: 12px;
  color: var(--fg-faint);
}
.timeline__detail-meta-item b {
  color: var(--fg-dim);
  font-weight: 500;
}
.timeline__detail-meta-item a {
  color: var(--accent);
  text-decoration: none;
}
.timeline__detail-meta-item a:hover {
  text-decoration: underline;
}
.timeline__detail-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 78ch;
}

.timeline__detail-subs {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.timeline__detail-sub {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  cursor: pointer;
}
.timeline__detail-sub:hover .timeline__detail-sub-title {
  color: var(--fg);
}
.timeline__detail-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex: none;
  background: var(--accent);
}
.timeline__detail-sub-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
}
.timeline__detail-sub-period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--fg-faint);
}

@media (max-width: 640px) {
  .timeline__detail {
    padding: 16px 18px;
  }
}