/* Post "Linha do tempo do risco operacional". Usa as variáveis de styles.css; sem estilos inline (CSP). */

/* Linha do tempo: Mundo | ano | Brasil */
.tl-section { padding: 16px 24px 40px; }
.tl-title { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 10px; text-align: center; }
.tl-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 28px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.tl-key::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.tl-key.mundo::before { background: var(--link); }
.tl-key.brasil::before { background: var(--heat-3); }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--rule); }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: start; gap: 0; margin: 0 0 14px; position: relative; }
.tl-year {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  background: var(--ink); color: var(--paper); font-weight: 800; font-size: 0.92rem;
  padding: 4px 10px; border-radius: 999px; margin-top: 12px;
}
.tl-item {
  grid-row: 1; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 16px;
}
.tl-item.mundo { grid-column: 1; border-right: 4px solid var(--link); text-align: right; }
.tl-item.brasil { grid-column: 3; border-left: 4px solid var(--heat-3); }
.tl-item h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; letter-spacing: -0.005em; }
.tl-item h3 a { color: var(--ink); text-decoration-color: var(--link); }
.tl-item h3 a:hover { color: var(--link); }
.tl-item p { margin: 0; font-family: var(--font-text); color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.tl-event .tl-item.mundo { border-right-color: var(--heat-5); background: #FBF1EE; }
.tl-event .tl-year { background: var(--heat-5); }
.tl-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 18px auto 0; max-width: 70ch; }

/* Trilha de leitura */
.reading { padding-bottom: 24px; }
.rd-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rd-step { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 8px; padding: 22px 22px 18px; }
.rd-n { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--heat-4); }
.rd-step h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -0.01em; }
.rd-why { margin: 0 0 14px; font-family: var(--font-text); color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.rd-list { list-style: none; margin: 0; padding: 0; }
.rd-list li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 600; line-height: 1.35; font-size: 0.97rem; }
.rd-list li > a { color: var(--ink); text-decoration-color: var(--link); }
.rd-list li > a:hover { color: var(--link); }
.rd-list span { display: block; margin-top: 4px; font-weight: 400; font-family: var(--font-text); color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.rd-films { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--heat-2); border-radius: 8px; padding: 22px 26px; max-width: 860px; }
.rd-films h3 { margin: 0 0 6px; font-size: 1.15rem; }
.rd-films p { margin: 0 0 10px; font-family: var(--font-text); color: var(--muted); line-height: 1.6; }
.rd-films ul { margin: 0; padding-left: 1.2em; font-family: var(--font-text); line-height: 1.6; }
.rd-films li { margin: 0 0 4px; }
.rd-films strong { font-family: var(--font-ui); }

/* Referências */
.refs { list-style: none; padding: 0 !important; font-size: 0.95rem; }
.refs li { margin: 0 0 0.7em; }

/* Responsivo */
@media (max-width: 960px) { .rd-steps { grid-template-columns: 1fr; max-width: 680px; } }
@media (max-width: 720px) {
  .timeline::before { left: 30px; }
  .tl-row { grid-template-columns: 60px minmax(0, 1fr); row-gap: 8px; }
  .tl-year { grid-column: 1; grid-row: 1 / span 2; margin-top: 10px; padding: 3px 8px; font-size: 0.85rem; }
  .tl-item.mundo, .tl-item.brasil { grid-column: 2; grid-row: auto; text-align: left; border-right: 1px solid var(--rule); border-left: 4px solid var(--link); }
  .tl-item.brasil { border-left-color: var(--heat-3); }
  .tl-event .tl-item.mundo { border-left-color: var(--heat-5); border-right-color: var(--rule); }
}

.films-first { padding-top: 8px; padding-bottom: 40px; }
.films-first .rd-films { margin: 0 auto; }
