/* Changelog template — self-contained styling, no Tailwind / kit dependency.
 * `BlogLayout` (from @voltro/web) ships its own layout styles; this file
 * styles the changelog LIST and the rendered markdown body (release.html).
 * Want Tailwind + the shadcn palette instead? Swap this file for
 * `@import "@voltro/ui-shadcn/tokens.css";` + an `@source` (see frontend-docs). */

:root {
  --cl-fg: #18181b;
  --cl-muted: #71717a;
  --cl-border: rgba(127, 127, 127, 0.2);
  --cl-accent: #4f46e5;
  --cl-code-bg: #f4f4f5;
  --cl-tag-bg: rgba(79, 70, 229, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cl-fg: #fafafa;
    --cl-muted: #a1a1aa;
    --cl-code-bg: #18181b;
    --cl-accent: #818cf8;
    --cl-tag-bg: rgba(129, 140, 248, 0.16);
  }
}

body {
  margin: 0;
  color: var(--cl-fg);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
a { color: var(--cl-accent); }

/* Language switcher pinned in BlogLayout's headerRight slot. */
.cl-lang { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.cl-lang-label { color: var(--cl-muted); }
.cl-lang a[aria-current='true'] { font-weight: 600; }

/* Release meta + tags (list + detail). */
.changelog-meta { font-size: 0.85rem; color: var(--cl-muted); margin: 0 0 0.5rem; }
.changelog-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--cl-tag-bg);
  color: var(--cl-accent);
}

/* List entries. */
.changelog-entry { padding: 1.25rem 0; border-bottom: 1px solid var(--cl-border); }
.changelog-entry h2 { margin: 0.25rem 0; font-size: 1.25rem; }
.changelog-entry h2 a { text-decoration: none; }
.changelog-entry p:last-child { color: var(--cl-muted); margin: 0.25rem 0 0; }

/* Rendered markdown body (release.html from marked / shiki). */
.changelog-prose h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.changelog-prose h2 { font-size: 1.3rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.changelog-prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 0.4rem; }
.changelog-prose p, .changelog-prose li { color: var(--cl-fg); }
.changelog-prose ul { padding-left: 1.4rem; }
.changelog-prose code { background: var(--cl-code-bg); padding: 2px 5px; border-radius: 4px; font-size: 0.85em; }
/* `shiki` sets its own inline background on <pre class="shiki">; this is the
 * fallback for plain (un-highlighted) marked output. */
.changelog-prose pre { background: var(--cl-code-bg); padding: 1rem; border-radius: 8px; overflow-x: auto; }
.changelog-prose pre code { background: transparent; padding: 0; }
