/* Novidades: linha do tempo minimalista. Cores só por variáveis do app.css (claro/escuro). */

.cl-head { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-6); }
.cl-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); }
.cl-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.cl-sub { margin: 0; max-width: 56ch; color: var(--text-2); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }

/* linha do tempo: data à esquerda (desktop), linha fina, conteúdo à direita */
.cl-timeline { list-style: none; margin: 0; padding: 0; }
.cl-entry {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  padding-bottom: 44px;
}
.cl-entry:last-child { padding-bottom: 0; }
.cl-entry::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 150px;
  width: 1px;
  background: var(--line-strong);
}
.cl-entry:last-child::before { bottom: auto; height: 12px; }

.cl-when {
  display: block;
  padding: 3px 28px 0 0;
  text-align: right;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.cl-date { display: block; }
.cl-time { display: block; }

.cl-dot {
  position: absolute;
  top: 6px;
  left: 150px;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-line);
  box-sizing: border-box;
}
.cl-dot-latest { background: var(--accent); border-color: var(--accent); }

/* cartão da novidade; a margem à esquerda deixa a linha do tempo (.cl-dot e ::before) livre */
.cl-body { min-width: 0; margin-left: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }

.cl-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cl-pill {
  --c: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1;
}
.cl-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
.cl-pill .icon { color: var(--text-3); }
.cl-kind-feature { --c: var(--accent); }
.cl-kind-improvement { --c: var(--ok); }
.cl-kind-fix { --c: var(--warn); }
.cl-kind-security { --c: var(--danger); }
.cl-kind-other { --c: var(--text-3); }
.cl-pill-system::before { display: none; }
.cl-pill-latest { background: var(--accent-soft); color: var(--accent-300); }
.cl-pill-latest::before { display: none; }

.cl-entry-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

.cl-prose {
  max-width: 66ch;
  color: var(--text-2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.cl-prose p { margin: 0 0 10px; }
.cl-prose p:last-child { margin-bottom: 0; }
.cl-prose ul { list-style: disc; padding-left: 1.2em; margin: 8px 0; }
.cl-prose ul li { margin: 4px 0; padding-left: 2px; }
.cl-prose ul li::marker { color: var(--text-3); }
.cl-prose strong { color: inherit; font-weight: 600; }
.cl-prose h3, .cl-prose h4, .cl-prose h5 { color: var(--text); font-size: 1rem; margin: 16px 0 6px; }
.cl-prose a { color: var(--accent-300); text-decoration: underline; text-underline-offset: 2px; }
.cl-prose code { font-size: 0.9em; overflow-wrap: anywhere; }
.cl-prose pre { overflow-x: auto; max-width: 100%; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); white-space: pre; }
.cl-prose .cl-fine { font-size: 0.72rem; color: var(--text-3); margin-top: var(--sp-4, 1rem); line-height: 1.4; }

.cl-pager { margin-top: var(--sp-5); }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .cl-dot { transition: transform 150ms var(--ease); }
  .cl-entry:hover .cl-dot { transform: scale(1.2); }
}

/* celular: data acima do título, em uma linha; linha à esquerda */
@media (max-width: 759px) {
  .cl-entry { grid-template-columns: minmax(0, 1fr); padding-left: 24px; }
  .cl-entry::before { left: 4px; }
  .cl-dot { left: 4px; }
  .cl-entry:last-child::before { height: 12px; }
  .cl-when { padding: 0 0 8px; text-align: left; }
  .cl-date { display: inline; }
  .cl-time { display: inline; }
  .cl-time::before { content: " · "; }
  .cl-body { margin-left: 0; }
}
