/* Schoolastic | Revisao 16 | polimento das linhas de tempo de implantacao.
   Edicao isolada: somente as tres paginas de Sugestao de cronograma. */

.schoolastic-acervo .schedule-timeline-polished {
  display: block;
  margin: clamp(20px, 2.8vw, 30px) 0 26px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.schoolastic-acervo .modern-infographic > .schedule-timeline-polished {
  align-self: stretch;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-track {
  list-style: none;
  display: grid;
  width: 100%;
  max-width: none;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.1vw, 16px);
  position: relative;
  margin: 0;
  padding: 22px 24px 20px;
  min-height: 142px;
  box-sizing: border-box;
  border: 1px solid #d7e7e4;
  border-radius: 22px;
  background: linear-gradient(120deg, #fbfdfc 0%, #f3f8f7 100%);
  box-shadow: 0 10px 26px rgba(24, 66, 78, .045);
}
.schoolastic-acervo .schedule-timeline-polished .timeline-track::before {
  content: '';
  position: absolute;
  top: 81px;
  left: calc(10% + 18px);
  right: calc(10% + 18px);
  width: auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,#edc88a 0%,#abd9e4 25%,#beddd5 75%,#acc5d0 100%);
  box-shadow: none;
  pointer-events: none;
  z-index: 0;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-node {
  list-style: none;
  display: block;
  position: relative;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-stop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 40px 44px minmax(30px, auto);
  align-items: center;
  justify-items: center;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0 3px;
  color: #204653;
  text-decoration: none;
  border-radius: 13px;
  background: transparent;
  transition: background-color .18s ease;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-stop:hover {
  background: rgba(255,255,255,.70);
}
.schoolastic-acervo .schedule-timeline-polished .timeline-stop:focus-visible {
  outline: 2px solid #008fae;
  outline-offset: 3px;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-month {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0 0 5px;
  font-size: clamp(10px, .81vw, 12px);
  font-weight: 750;
  line-height: 1.23;
  letter-spacing: .005em;
  color: #466973;
  text-align: center;
  overflow-wrap: anywhere;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-dot {
  display: block;
  width: 25px;
  height: 25px;
  flex: none;
  align-self: center;
  margin: 0;
  border-radius: 50%;
  border: 3px solid #fbfdfc;
  box-sizing: border-box;
  background: #ecae45;
  box-shadow: 0 0 0 5px rgba(235,166,59,.15),0 2px 5px rgba(11,51,65,.10);
  transition: transform .18s ease;
  position: relative;
  z-index: 2;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-stop:hover .timeline-dot {transform: scale(1.10)}
.schoolastic-acervo .schedule-timeline-polished .timeline-stage {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 2px 0;
  color: #274f5b;
  font-size: clamp(10px, .75vw, 12px);
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  overflow-wrap: normal;
}
.schoolastic-acervo .schedule-timeline-polished .timeline-node:nth-child(1) .timeline-dot {background:#efad36;box-shadow:0 0 0 5px rgba(239,173,54,.16),0 2px 5px rgba(11,51,65,.10)}
.schoolastic-acervo .schedule-timeline-polished .timeline-node:nth-child(2) .timeline-dot {background:#1ba5cc;box-shadow:0 0 0 5px rgba(27,165,204,.16),0 2px 5px rgba(11,51,65,.10)}
.schoolastic-acervo .schedule-timeline-polished .timeline-node:nth-child(3) .timeline-dot {background:#ef645a;box-shadow:0 0 0 5px rgba(239,100,90,.16),0 2px 5px rgba(11,51,65,.10)}
.schoolastic-acervo .schedule-timeline-polished .timeline-node:nth-child(4) .timeline-dot {background:#57bf90;box-shadow:0 0 0 5px rgba(87,191,144,.16),0 2px 5px rgba(11,51,65,.10)}
.schoolastic-acervo .schedule-timeline-polished .timeline-node:nth-child(5) .timeline-dot {background:#193d52;box-shadow:0 0 0 5px rgba(25,61,82,.12),0 2px 5px rgba(11,51,65,.10)}

/* Cartoes respiram e os alvos correspondem as etapas do trilho acima. */
.schoolastic-acervo .modern-infographic .modern-steps {gap: 18px 20px; margin-top: 26px; align-items: stretch}
.schoolastic-acervo .modern-infographic .modern-step {
  padding: 22px 23px 21px;
  gap: 11px;
  scroll-margin-top: 118px;
  box-shadow: none;
  transition: box-shadow .18s ease,border-color .18s ease;
}
.schoolastic-acervo .modern-infographic .modern-step:target {
  border-color: #8bc6cf;
  box-shadow: 0 0 0 3px rgba(24,159,190,.12);
}
.schoolastic-acervo .modern-infographic .modern-step .step-period {
  font-size: 11px;
  letter-spacing: .035em;
  padding: 6px 11px;
  border-radius: 999px;
}
.schoolastic-acervo .modern-infographic .modern-step h3 {line-height: 1.25}
.schoolastic-acervo .modern-infographic .modern-step:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 780px);
  box-sizing: border-box;
  justify-self: center;
}

/* Em telas medias, mantem faixa completa, mas com rotulos compactos. */
@media (min-width: 721px) and (max-width: 1060px) {
  .schoolastic-acervo .schedule-timeline-polished .timeline-track {gap: 4px;padding: 17px 10px}
  .schoolastic-acervo .schedule-timeline-polished .timeline-track::before {top:79px}
  .schoolastic-acervo .schedule-timeline-polished .timeline-month {font-size:11px}
  .schoolastic-acervo .schedule-timeline-polished .timeline-stage {font-size:10px}
}

/* No celular, trilho vertical; sem recortes, sobreposicoes nem scroll horizontal. */
@media (max-width: 720px) {
  .schoolastic-acervo .schedule-timeline-polished {margin: 20px 0 24px}
  .schoolastic-acervo .schedule-timeline-polished .timeline-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 17px 17px 17px 16px;
    min-height: 0;
    border-radius: 18px;
  }
  .schoolastic-acervo .schedule-timeline-polished .timeline-track::before {
    display: block;
    left: 33px;
    right: auto;
    top: 35px;
    bottom: 34px;
    width: 2px;
    height: auto;
    background: #c6dbde;
  }
  .schoolastic-acervo .schedule-timeline-polished .timeline-stop {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    justify-items: stretch;
    min-height: 53px;
    padding: 5px 3px 5px 0;
    text-align: left;
  }
  .schoolastic-acervo .schedule-timeline-polished .timeline-month {
    grid-column: 2;
    grid-row: 1;
    display: block;
    text-align: left;
    padding: 0;
    width: auto;
    color: #345e69;
    font-size: 12px;
    line-height: 1.25;
  }
  .schoolastic-acervo .schedule-timeline-polished .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    align-self: center;
    width: 23px;
    height: 23px;
    margin-left: 6px;
    border-width: 3px;
  }
  .schoolastic-acervo .schedule-timeline-polished .timeline-stage {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.25;
    color: #627c84;
  }
  .schoolastic-acervo .modern-infographic .modern-steps {gap: 14px;margin-top: 21px}
  .schoolastic-acervo .modern-infographic .modern-step {padding: 19px 18px}
  .schoolastic-acervo .modern-infographic .modern-step:last-child:nth-child(odd) {grid-column: auto;width:100%}
}
@media (prefers-reduced-motion: reduce) {
  .schoolastic-acervo .schedule-timeline-polished .timeline-stop,
  .schoolastic-acervo .schedule-timeline-polished .timeline-dot,
  .schoolastic-acervo .modern-infographic .modern-step {transition:none}
}

/* Corrige heranca indevida das regras globais do menu mobile: a linha do tempo
   e um nav semantico, mas nao deve assumir a posicao absoluta do menu do topo. */
@media (max-width: 760px) {
  body.schoolastic-acervo nav.schedule-timeline-polished {
    display: block;
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-left: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: 0;
    transform: none;
  }
}
