/* Linha de tempo — Datas, dentro de Ler */

#artigos-sub-datas {
  display: none;
}

.tl-rail__btn[hidden],
.tl-year[hidden],
.tl-event[hidden],
.tl-empty[hidden],
.tl-context[hidden] {
  display: none !important;
}

.artigos-merged-panel:not(.is-detail-mode) #artigos-sub-datas,
.artigos-merged-panel.is-datas-mode:not(.is-detail-mode) #artigos-sub-datas {
  display: block;
}

.artigos-merged-panel .artigos-subnav,
.artigos-merged-panel .artigos-map,
.artigos-merged-panel #artigos-sub-artigos,
.artigos-merged-panel #artigos-sub-pdf {
  display: none !important;
}

.hub-panel.is-detail-mode #artigos-sub-datas {
  display: none !important;
}

.artigos-merged-panel:not(.is-detail-mode) #pdf-container,
.artigos-merged-panel:not(.is-detail-mode) #artigos-container {
  display: none !important;
}

#artigos-sub-datas {
  scroll-margin-top: 5.5rem;
}

.artigos-subnav__btn.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.14);
}

.tl-head {
  margin: 0 0 0.75rem;
}

.tl-head__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tl-head__hint,
.tl-stats {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.tl-read,
.tl-lift a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  margin: 0 0 0.45rem;
  padding: 0 0.72rem;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  background: #fbbf24;
  color: #1c1404;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45), 0 0 14px rgba(251, 191, 36, 0.45);
}

.tl-read:hover,
.tl-read:focus-visible,
.tl-lift a:hover,
.tl-lift a:focus-visible {
  background: #fde68a;
  color: #1c1404;
  outline: none;
}

.tl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  align-items: center;
}

.tl-search {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.92);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tl-search:focus {
  outline: none;
  border-color: var(--cyan);
}

.tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tl-filter,
.tl-rail__btn {
  min-height: 30px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.05);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.tl-filter {
  padding: 0.2rem 0.65rem;
}

.tl-filter.is-active,
.tl-rail__btn.is-active {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.18);
  color: #e8fbff;
}

.tl-filter:focus-visible,
.tl-rail__btn:focus-visible,
.tl-act:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.tl {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.75rem 0.85rem;
  align-items: start;
}

.tl-rail {
  position: sticky;
  top: 2.7rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-height: calc(100vh - 3.6rem);
  overflow: auto;
  padding-bottom: 0.4rem;
}

.tl-rail__btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  padding: 0.22rem 0.45rem;
  border-radius: 7px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
}

.tl-rail__count,
.tl-year__meta {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.tl-rail__btn.is-active .tl-rail__count {
  color: inherit;
}

.tl-spine {
  min-width: 0;
}

.tl-year {
  position: relative;
  margin: 0 0 0.95rem;
  padding: 0 0 0.15rem 0.95rem;
  border-left: 2px solid rgba(0, 229, 255, 0.38);
  scroll-margin-top: 6.5rem;
}

.tl-year__num {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.tl-event {
  position: relative;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.65rem 0.6rem;
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.92);
}

.tl-event::before {
  content: "";
  position: absolute;
  left: calc(-0.95rem - 5px);
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 2px #050a0e;
}

.tl-event.is-linked {
  border-color: rgba(0, 255, 136, 0.32);
}

.tl-event.is-linked::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.65), 0 0 0 2px #050a0e;
}

.tl-event__date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--amber);
}

.tl-event__title {
  margin: 0.12rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f3fff8;
}

.tl-event__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tl-act {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.tl-act--reel {
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.5);
  background: rgba(6, 78, 59, 0.62);
}

.tl-act--filme {
  color: #e9d5ff;
  border: 1px solid rgba(233, 213, 255, 0.5);
  background: rgba(76, 29, 149, 0.55);
}

.tl-act--pdf {
  color: #fcd34d;
  border: 1px solid rgba(252, 211, 77, 0.5);
  background: rgba(120, 53, 15, 0.55);
}

.tl-act--fontes {
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.5);
  background: rgba(8, 47, 73, 0.72);
}

.tl-act:hover,
.tl-act:focus-visible {
  filter: brightness(1.12);
}

.tl-event__gap,
.tl-empty {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tl-lift {
  margin: 0.35rem 0 1rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.05);
}

.tl-lift p {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.tl-context {
  margin: 1.2rem 0 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 229, 255, 0.22);
}

.tl-context h3 {
  margin: 1.1rem 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tl-context p,
.tl-context li {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.tl-context .artigo-callout {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.38);
  border-radius: 10px;
  color: var(--amber);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .tl {
    grid-template-columns: 1fr;
  }

  .tl-rail {
    flex-direction: row;
    align-items: center;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    top: 2.55rem;
    padding: 0.2rem 0 0.45rem;
    background: rgba(5, 10, 14, 0.94);
  }

  .tl-rail__btn {
    width: auto;
    flex: 0 0 auto;
  }

  .tl-event::before {
    left: calc(-0.95rem - 5px);
  }
}
