/* ============================================================================
   changelog.css — "/changelog".

   Source of truth: apps/editor/src/pages/resources/ChangelogPage.tsx. The page
   hero is PageShell/PageHero (marketing.css); this file is the timeline.

   NOTE ON THE SPINE GRADIENT: `bg-gradient-to-b from-… via-… to-…` routes
   through `--tw-gradient-*` custom properties, including the *-position ones
   that come from the bootstrap base.css deliberately omits (§5.7). Resolved by
   hand below — copying the utilities would have produced no gradient at all.
   ========================================================================= */

/* "max-w-4xl mx-auto px-6 pb-28" */
.chlog {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 7rem;
}
.chlog__timeline { position: relative; }

/* Spine: "absolute left-[7px] top-2 bottom-2 w-px bg-gradient-to-b
    from-indigo-500/60 via-indigo-500/20 to-transparent hidden sm:block" */
.chlog__spine { display: none; }
@media (min-width: 640px) {
  .chlog__spine {
    display: block;
    position: absolute;
    left: 7px;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background-image: linear-gradient(to bottom, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.2), transparent);
  }
}

/* "flex flex-col gap-14" */
.chlog__list { display: flex; flex-direction: column; gap: 3.5rem; }
/* "relative sm:pl-12" */
.chlog__release { position: relative; }
@media (min-width: 640px) { .chlog__release { padding-left: 3rem; } }

/* Node: "absolute left-0 top-1.5 w-[15px] h-[15px] rounded-full border-2
    hidden sm:block" + inline background/border/shadow. The newest release
    gets the filled gradient dot; the rest are hollow. */
.chlog__node { display: none; }
@media (min-width: 640px) {
  .chlog__node {
    display: block;
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 15px;
    height: 15px;
    border-radius: 9999px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    background: var(--mk-tile);
  }
  .chlog__node--latest {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
  }
}

/* "flex flex-wrap items-baseline gap-3 mb-4" */
.chlog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
/* "text-sm font-black px-2.5 py-1 rounded-lg" + background var(--mk-divider),
   or the gradient for the newest release. */
.chlog__version {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 900;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  color: #0f172a;
  background: var(--mk-divider);
}
.mk-dark .chlog__version { color: #fff; }
.chlog__version--latest,
.mk-dark .chlog__version--latest {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
/* "text-xl font-bold text-slate-900 dark:text-white" */
.chlog__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: #0f172a; }
.mk-dark .chlog__title { color: #fff; }

/* "rounded-2xl border border-slate-200/80 dark:border-white/6 divide-y
    divide-slate-200/70 dark:divide-white/5" + background var(--mk-card-grad).
   `dark:border-white/6` generates no rule (§5.1) — the slate border stays. */
.chlog__card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--mk-card-grad);
}
/* Tailwind's `divide-y` is a border-top on every child after the first. */
.chlog__item + .chlog__item { border-top: 1px solid rgba(226, 232, 240, 0.7); }
.mk-dark .chlog__item + .chlog__item { border-top-color: rgba(255, 255, 255, 0.05); }
/* "flex items-start gap-4 px-6 py-4" */
.chlog__item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.5rem; }
/* "text-[10px] font-bold px-2 py-0.5 rounded-full flex-shrink-0 mt-0.5 border"
   + the status-token colours, which are theme-switched by marketing.css. */
.chlog__tag {
  font-size: 10px;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border: 1px solid;
}
.chlog__tag--new { color: var(--mk-status-ok); background: var(--mk-status-ok-bg); border-color: var(--mk-status-ok-bd); }
.chlog__tag--improved { color: var(--mk-status-accent); background: var(--mk-status-accent-bg); border-color: var(--mk-status-accent-bd); }
.chlog__tag--fixed { color: var(--mk-status-warn); background: var(--mk-status-warn-bg); border-color: var(--mk-status-warn-bd); }
/* "text-sm text-[#444444] dark:text-slate-400 leading-relaxed" */
.chlog__text { font-size: 0.875rem; color: #444; line-height: 1.625; }
.mk-dark .chlog__text { color: #94a3b8; }

/* "text-center mt-16" + "text-sm text-slate-500 dark:text-slate-600" */
.chlog__foot { text-align: center; margin-top: 4rem; }
.chlog__foot p { font-size: 0.875rem; line-height: 1.25rem; color: #64748b; }
.mk-dark .chlog__foot p { color: #475569; }
/* "text-indigo-600 dark:text-indigo-400 hover:… font-medium" — the hover
   colour equals the resting colour, so there is deliberately no hover change. */
.chlog__foot a { color: #4f46e5; font-weight: 500; }
.mk-dark .chlog__foot a { color: #818cf8; }
