.cbm-linha-tempo-secao {
  padding: 100px 0;
  background: var(--cbm-white);
  border-bottom: 1px solid var(--cbm-linha);
}
.cbm-linha-tempo-secao *, .cbm-linha-tempo-secao *::before, .cbm-linha-tempo-secao *::after {
  box-sizing: border-box;
}
.cbm-linha-tempo-secao a {
  color: inherit;
  text-decoration: none;
}
.cbm-linha-tempo-secao img {
  display: block;
  max-width: 100%;
}
.cbm-linha-tempo-secao .cbm-secao-cabecalho {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.cbm-linha-tempo-secao .cbm-hero__badge-conteudo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cbm-azul-cbm);
  color: var(--cbm-white);
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cbm-linha-tempo-secao .cbm-hero__badge-conteudo span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cbm-white);
}
.cbm-linha-tempo-secao .cbm-secao-cabecalho h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--cbm-ink);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 600;
}
.cbm-linha-tempo-secao .cbm-secao-cabecalho p {
  max-width: 740px;
  margin: 0;
  color: var(--cbm-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
}
.cbm-linha-tempo-secao .cbm-secao-titulo-icone {
  width: 64px;
  height: 64px;
  border-radius: var(--raio-pequeno);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--cbm-off-verde);
}
.cbm-linha-tempo-secao .cbm-secao-titulo-icone img {
  width: 36px;
  height: 36px;
}
.cbm-linha-tempo-painel {
  overflow: hidden;
  background: var(--cbm-white);
  border: 1px solid var(--cbm-linha);
  border-radius: var(--raio-grande);
  box-shadow: var(--cbm-shadow-soft);
}
.cbm-linha-tempo-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--cbm-linha);
  background: var(--cbm-white);
}
.cbm-linha-tempo-controls strong {
  display: block;
  color: var(--cbm-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
}


.cbm-linha-tempo {
  position: relative;
  padding: 78px 34px 82px;
  overflow-x: auto;
  background:
    linear-gradient(180deg, var(--cbm-white) 0%, var(--cbm-surface-soft) 100%);
}
.cbm-timeline__line {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 90px;
  height: 2px;
  background: var(--cbm-linha-strong);
  z-index: 0;
}
.cbm-timeline__nodes {
  position: relative;
  z-index: 2;
  min-width: 920px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.cbm-linha-tempo-node {
  appearance: none;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
  color: var(--cbm-muted);
  background: transparent;
  cursor: pointer;
  transition: color .22s var(--cbm-ease);
}
.cbm-linha-tempo-node:hover, .cbm-linha-tempo-node:focus-visible, .cbm-linha-tempo-node.is-active {
  color: var(--cbm-verde-claro-cbm);
}
.cbm-linha-tempo-node__dot {
  position: relative;
  z-index: 3;
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  border: 5px solid var(--cbm-white);
  border-radius: 50%;
  background: var(--cbm-azul-cbm);
  box-shadow:
    0 0 0 1px var(--cbm-linha-strong), 0 10px 24px var(--cbm-sombra-base-a08);
}
.cbm-linha-tempo-node--secondary .cbm-linha-tempo-node__dot {
  background: var(--cbm-verde-claro-cbm);
}
.cbm-linha-tempo-node:hover .cbm-linha-tempo-node__dot, .cbm-linha-tempo-node:focus-visible .cbm-linha-tempo-node__dot, .cbm-linha-tempo-node.is-active .cbm-linha-tempo-node__dot {
  background: var(--cbm-amarelo-cbm);
  border-color: var(--cbm-white);
  box-shadow:
    0 0 0 4px var(--cbm-amarelo-500-a16), 0 10px 24px var(--cbm-sombra-base-a08);
}
.cbm-linha-tempo-node strong {
  color: var(--cbm-ink);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.03em;
}
.cbm-linha-tempo-node span {
  max-width: 150px;
  color: var(--cbm-ink-soft);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.cbm-linha-tempo-node small {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--cbm-linha);
  border-radius: 999px;
  color: var(--cbm-muted);
  background: var(--cbm-white);
  font-size: 12px;
  font-weight: 500;
}
.cbm-linha-tempo-detail__docs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cbm-linha-tempo-detail__docs img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 15px;
}
.cbm-linha-tempo-detail {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-top: 1px solid var(--cbm-linha);
  background: var(--cbm-white);
}
.cbm-linha-tempo-detail__year {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 0px solid var(--cbm-linha);
  border-radius: var(--raio-medio);
  color: var(--cbm-white);
  background: var(--cbm-gradient-AmVe);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.cbm-linha-tempo-detail__content {
  min-width: 0;
}
.cbm-linha-tempo-detail h3 {
  margin: 12px 0 8px;
  color: var(--cbm-ink);
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 600;
}
.cbm-linha-tempo-detail p {
  max-width: 700px;
  margin: 0;
  color: var(--cbm-muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}
.cbm-linha-tempo-secao .cbm-etiqueta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--cbm-linha);
  border-radius: 999px;
  color: var(--cbm-muted);
  background: var(--cbm-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.cbm-linha-tempo-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 26px 28px;
  border-top: 1px solid var(--cbm-linha);
  background: var(--cbm-surface-soft);
}
.cbm-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cbm-legend-mark {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cbm-legend-mark--azul {
  background: var(--cbm-azul-cbm);
}
.cbm-legend-mark--verde {
  background: var(--cbm-verde-claro-cbm);
}
.cbm-legend-mark--amarelo {
  background: var(--cbm-amarelo-cbm);
}
.cbm-legend-item strong {
  display: block;
  color: var(--cbm-ink);
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cbm-legend-item small {
  display: block;
  color: var(--cbm-muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
}
/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 1080px) {
  .cbm-linha-tempo-secao .cbm-secao-cabecalho {
    align-items: flex-start;
    flex-direction: column;
  }
  .cbm-linha-tempo-legend {
    grid-template-columns: 1fr;
  }
  .cbm-linha-tempo-detail {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .cbm-linha-tempo-detail .cbm-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 760px) {
  .cbm-linha-tempo-secao {
    padding: 72px 0;
  }
  .cbm-linha-tempo-secao .cbm-secao-cabecalho h2 {
    align-items: flex-start;
  }
  .cbm-linha-tempo-secao .cbm-secao-titulo-icone {
    width: 40px;
    height: 40px;
    border-radius: var(--raio-pequeno);
  }
  .cbm-linha-tempo-controls {
    grid-template-columns: 38px 1fr 38px;
    padding: 18px 20px;
  }
  .cbm-linha-tempo-controls strong {
    font-size: 18px;
  }
  .cbm-icone-btn {
    width: 38px;
    height: 38px;
  }
  .cbm-linha-tempo {
    padding: 58px 22px 68px;
  }
  .cbm-timeline__line {
    left: 50px;
    right: 50px;
    top: 116px;
  }
  .cbm-timeline__nodes {
    min-width: 820px;
  }
  .cbm-linha-tempo-detail {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .cbm-linha-tempo-detail__year {
    min-height: 76px;
  }
}


/* Alternância entre linha horizontal e boxes */
.cbm-linha-tempo-cabecalho-acoes {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.cbm-linha-tempo-node__resumo {
  display:none;
}

.cbm-linha-tempo.is-expanded {
  padding:28px;
  overflow:visible;
  background:var(--cbm-surface-soft);
}

.cbm-linha-tempo.is-expanded .cbm-timeline__line {
  display:none;
}

.cbm-timeline__nodes.is-expanded {
  min-width:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node {
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-items:stretch;
  padding:24px;
  border:1px solid var(--cbm-linha);
  border-radius:var(--raio-medio);
  background:var(--cbm-white);
  box-shadow:var(--cbm-shadow-soft);
  text-align:left;
}

.cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node__dot {
  display:none;
}

.cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node strong {
  color:var(--cbm-verde-claro-cbm);
  font-size:15px;
  order:1;
}

.cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node > span:not(.cbm-linha-tempo-node__resumo):not(.cbm-linha-tempo-node__dot) {
  max-width:none;
  margin-top:8px;
  color:var(--cbm-ink);
  font-size:22px;
  line-height:1.24;
  order:2;
}

.cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node__resumo {
  display:block;
  max-width:none;
  margin-top:12px;
  color:var(--cbm-muted);
  font-size:14px;
  line-height:1.65;
  font-weight:300;
  order:3;
}

.cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node small {
  margin-top:auto;
  padding-top:18px;
  border:0;
  color:var(--cbm-verde-cbm);
  background:transparent;
  order:4;
}

@media (max-width:760px) {
  .cbm-timeline__nodes.is-expanded {
    grid-template-columns:1fr;
  }
}


/* Filtros visíveis da Linha do Tempo da página inicial */
.cbm-linha-tempo-secao .cbm-period-tabs {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:24px;
}

.cbm-linha-tempo-secao .cbm-period-tabs button,
.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-chips button {
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--cbm-linha);
  border-radius:999px;
  color:var(--cbm-muted);
  background:var(--cbm-white);
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:color .22s var(--cbm-ease), background-color .22s var(--cbm-ease), border-color .22s var(--cbm-ease);
}

.cbm-linha-tempo-secao .cbm-period-tabs button:hover,
.cbm-linha-tempo-secao .cbm-period-tabs button:focus-visible,
.cbm-linha-tempo-secao .cbm-period-tabs button.is-active,
.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-chips button:hover,
.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-chips button:focus-visible,
.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-chips button.is-active {
  color:var(--cbm-verde-cbm);
  background:var(--cbm-off-verde);
  border-color:var(--cbm-verde-claro-cbm);
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-painel {
  display:grid;
  grid-template-columns:minmax(300px,1fr) auto;
  align-items:end;
  gap:24px;
  margin-bottom:14px;
  padding:22px;
  border:1px solid var(--cbm-linha);
  border-radius:var(--raio-pequeno);
  background:var(--cbm-white);
  box-shadow:var(--cbm-shadow-soft);
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca {
  display:grid;
  gap:10px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca label {
  color:var(--cbm-ink);
  font-size:13px;
  font-weight:700;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca > div {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca input {
  width:100%;
  min-height:50px;
  padding:0 16px;
  border:1px solid var(--cbm-linha);
  border-radius:var(--raio-pequeno);
  color:var(--cbm-ink);
  background:var(--cbm-white);
  font-family:inherit;
  font-size:14px;
  outline:none;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca input:focus {
  border-color:var(--cbm-verde-claro-cbm);
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca button {
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 22px;
  border:0;
  border-radius:999px;
  color:var(--cbm-white);
  background:var(--cbm-verde-claro-cbm);
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca button img {
  width:18px;
  height:18px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-filtro-chips {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-status {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 20px;
  color:var(--cbm-muted);
  font-size:13px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-status strong {
  color:var(--cbm-verde-claro-cbm);
  font-size:16px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-vazio {
  padding:28px;
  border-top:1px solid var(--cbm-linha);
  background:var(--cbm-white);
  text-align:center;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-vazio strong {
  display:block;
  color:var(--cbm-ink);
  font-size:20px;
}

.cbm-linha-tempo-secao .cbm-linha-tempo-vazio p {
  margin:8px 0 0;
  color:var(--cbm-muted);
  font-size:14px;
}

@media (max-width:980px) {
  .cbm-linha-tempo-secao .cbm-linha-tempo-filtro-painel {
    grid-template-columns:1fr;
  }
}

@media (max-width:760px) {
  .cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca > div {
    grid-template-columns:1fr;
  }

  .cbm-linha-tempo-secao .cbm-linha-tempo-filtro-busca button {
    width:100%;
  }
}


/* Paginação independente dos eventos da linha do tempo */
.cbm-linha-tempo-paginacao {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:20px 24px;
  border-top:1px solid var(--cbm-linha);
  background:var(--cbm-white);
}

.cbm-linha-tempo-paginacao[hidden] {
  display:none;
}


.cbm-linha-tempo-paginacao [data-timeline-page-numbers] {
  display:flex;
  align-items:center;
  gap:8px;
}


/* Correções finais da navegação horizontal */
.cbm-linha-tempo-node[hidden] {
  display:none !important;
}


/* Refinamento móvel do modo expandido */
@media (max-width: 760px) {
  .cbm-linha-tempo-secao {
    padding: 60px 0;
  }

  .cbm-linha-tempo-secao .cbm-secao-cabecalho h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .cbm-linha-tempo-secao .cbm-linha-tempo.is-expanded {
    padding: 16px;
  }

  .cbm-timeline__nodes.is-expanded {
    gap: 14px;
  }

  .cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node {
    padding: 18px;
  }

  .cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node > span:not(.cbm-linha-tempo-node__resumo):not(.cbm-linha-tempo-node__dot) {
    font-size: 18px;
    line-height: 1.32;
  }

  .cbm-timeline__nodes.is-expanded .cbm-linha-tempo-node__resumo {
    font-size: 14px;
    line-height: 1.58;
  }

  .cbm-linha-tempo-secao .cbm-period-tabs button,
  .cbm-linha-tempo-secao .cbm-linha-tempo-filtro-chips button {
    min-height: 40px;
    margin-top: 0;
    font-size: 12px;
  }
}

