/* ============================================================
   Brigg — Nytt i Brigg (the marketing changelog feed)
   Sits on top of legal.css (nav, doc-head, footer) and the tokens in
   colors_and_type.css. A month is a section; a launch is a row with
   the date in a rail and the card beside it. Source of the entries:
   packages/landing-site/changelog/ (see the `changelog` skill).
   ============================================================ */

.changelog .doc-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ── Month ── */
.cl-month { padding: clamp(18px, 2.6vw, 28px) 0 clamp(6px, 1vw, 10px); }
.cl-month + .cl-month { border-top: 1px solid var(--line); }
.cl-month-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 0 0 18px;
}
.cl-month-head h2 {
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-3); margin: 0;
}
.cl-count {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid var(--accent-soft-line);
  border-radius: var(--radius-full); padding: 2px 10px;
}

/* ── Launch rows ── */
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-item {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px;
  padding: 0 0 22px;
}
.cl-item:last-child { padding-bottom: 8px; }
.cl-date {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-3);
  padding-top: 22px; white-space: nowrap;
}

/* ── Card ── */
.cl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.cl-title {
  font-size: 20px; font-weight: 600; letter-spacing: -0.014em;
  line-height: 1.25; margin: 0 0 4px; text-wrap: balance;
}
.cl-title a { color: var(--ink); }
.cl-title a:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }
.cl-sub { font-size: 15px; color: var(--ink-3); margin: 0 0 12px; line-height: 1.45; }
.cl-body { margin: 0; color: var(--ink-2); max-width: 62ch; }
.cl-body em { font-style: italic; }
.cl-body strong { color: var(--ink); font-weight: 600; }
.cl-body code {
  font-family: var(--font-mono); font-size: .92em;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1px 5px;
}
.cl-body a {
  color: var(--accent-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: border-color .14s ease;
}
.cl-body a:hover { border-bottom-color: var(--accent); }

/* ── Screenshot: a cropped DETAIL at 2×, laid out at half its pixels
      and never wider than the card. `height:auto` keeps the aspect
      ratio when the width clamps on a phone. ── */
.cl-shot { margin: 18px 0 0; }
.cl-shot img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.cl-shot figcaption {
  font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.5;
}

@media (max-width: 640px) {
  .cl-item { grid-template-columns: 1fr; gap: 6px; padding-bottom: 18px; }
  .cl-date { padding-top: 0; }
  .cl-card { padding: 16px 18px 18px; }
  .cl-title { font-size: 18px; }
}
