/* /changelog (src/changelog.njk): a short dark band, then the weeks on the light ground. Each week is one row: its
   date on the left (sticky on wide screens), its notes on the right under New, Better and Fixed. */

/* == hero: the /download band, shorter and without the illustration == */
.theme-2026.brand-v2 .cl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid color-mix(in srgb, var(--v2-paper) 18%, transparent);
  color: var(--v2-paper);
  background:
    radial-gradient(70% 120% at 88% 20%, color-mix(in srgb, var(--v2-signal) 24%, var(--v2-band)), transparent 62%),
    linear-gradient(112deg, color-mix(in srgb, var(--v2-band) 96%, var(--v2-ink)) 0%, var(--v2-band) 58%, color-mix(in srgb, var(--v2-band) 88%, var(--v2-signal)) 100%);
}
.theme-2026.brand-v2 .cl-hero .home-eyebrow { color: color-mix(in srgb, var(--v2-paper) 76%, transparent); }
.theme-2026.brand-v2 .cl-hero__title { margin: 0; color: var(--v2-paper); font-size: clamp(40px, 5.2vw, 68px); font-weight: 300; line-height: 1.02; letter-spacing: -.038em; text-wrap: balance; }
.theme-2026.brand-v2 .cl-hero__title > span,
.theme-2026.brand-v2 .cl-hero__title > strong { display: block; }
.theme-2026.brand-v2 .cl-hero__title strong { color: var(--v2-signal-bright); font-weight: 500; }
.theme-2026.brand-v2 .cl-hero__lede { max-width: 560px; margin: 24px 0 0; color: color-mix(in srgb, var(--v2-paper) 78%, transparent); font-size: 19px; line-height: 1.55; text-wrap: pretty; }

/* == main == */
.theme-2026.brand-v2 .cl-main { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); background: var(--v2-ground); color: var(--v2-ink); }

/* Product switch: one pill holding a pill per product, the open one in ink. */
.theme-2026.brand-v2 .cl-products {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--v2-space-1);
  margin-bottom: clamp(32px, 4vw, 48px);
  padding: var(--v2-space-1);
  border: 1px solid var(--v2-rule);
  border-radius: var(--v2-radius-pill);
  background: var(--v2-paper);
}
.theme-2026.brand-v2 .cl-products[hidden] { display: none; }
.theme-2026.brand-v2 .cl-product {
  min-height: 44px;
  padding: 0 var(--v2-space-5);
  border: 0;
  border-radius: var(--v2-radius-pill);
  background: transparent;
  color: var(--v2-quiet);
  font: 500 15px/1 var(--display);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: background-color 200ms var(--v2-ease), color 200ms var(--v2-ease);
}
.theme-2026.brand-v2 .cl-product:hover { color: var(--v2-ink); }
.theme-2026.brand-v2 .cl-product[aria-selected="true"] { background: var(--v2-ink); color: var(--v2-paper); }
.theme-2026.brand-v2 .cl-product[hidden] { display: none; }

.theme-2026.brand-v2 .cl-panel[hidden] { display: none; }
.theme-2026.brand-v2 .cl-panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--v2-space-5) var(--v2-space-6); }
.theme-2026.brand-v2 .cl-panel__about { display: grid; gap: var(--v2-space-2); max-width: 560px; }
.theme-2026.brand-v2 .cl-panel__name { margin: 0; color: var(--v2-ink); font: 400 clamp(28px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.025em; }
.theme-2026.brand-v2 .cl-panel__blurb { margin: 0; color: var(--v2-quiet); font: 400 16px/1.5 var(--display); }

/* Platform filter: pill chips; the chosen one in Signal. */
.theme-2026.brand-v2 .cl-filter { display: flex; flex-wrap: wrap; gap: var(--v2-space-2); }
.theme-2026.brand-v2 .cl-chip {
  min-height: 36px;
  padding: 0 var(--v2-space-4);
  border: 1px solid var(--v2-rule-strong);
  border-radius: var(--v2-radius-pill);
  background: var(--v2-paper);
  color: var(--v2-ink);
  font: 500 14px/1 var(--display);
  cursor: pointer;
  transition: background-color 200ms var(--v2-ease), border-color 200ms var(--v2-ease), color 200ms var(--v2-ease);
}
.theme-2026.brand-v2 .cl-chip:hover { border-color: var(--v2-ink); }
.theme-2026.brand-v2 .cl-chip[aria-pressed="true"] { border-color: var(--v2-signal); background: var(--v2-signal); color: var(--v2-paper); }
.theme-2026.brand-v2 .cl-product:focus-visible,
.theme-2026.brand-v2 .cl-chip:focus-visible { outline: 2px solid var(--v2-signal); outline-offset: 2px; }

.theme-2026.brand-v2 .cl-updated { margin: var(--v2-space-5) 0 0; color: var(--v2-quiet); font: 400 14px/1.4 var(--display); font-variant-numeric: tabular-nums; }
.theme-2026.brand-v2 .cl-updated[hidden] { display: none; }

/* == weeks == */
.theme-2026.brand-v2 .cl-weeks { margin-top: clamp(24px, 3vw, 40px); }
.theme-2026.brand-v2 .cl-week { display: grid; gap: var(--v2-space-5); padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--v2-rule-strong); }
.theme-2026.brand-v2 .cl-week[hidden],
.theme-2026.brand-v2 .cl-group[hidden],
.theme-2026.brand-v2 .cl-note[hidden] { display: none; }
.theme-2026.brand-v2 .cl-week__title { margin: 0; color: var(--v2-ink); font: 400 24px/1.2 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.theme-2026.brand-v2 .cl-week__title span { display: block; margin-bottom: var(--v2-space-2); color: var(--v2-quiet); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.theme-2026.brand-v2 .cl-week__body { display: grid; gap: clamp(24px, 3vw, 36px); min-width: 0; max-width: 760px; }

/* Kind label: a small mono word with a dot, New in Signal, Better in Complete, Fixed in ink. */
.theme-2026.brand-v2 .cl-group__title { display: flex; align-items: center; gap: var(--v2-space-2); margin: 0 0 var(--v2-space-2); color: var(--v2-ink); font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.theme-2026.brand-v2 .cl-group__title::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--v2-quiet); }
.theme-2026.brand-v2 .cl-group[data-kind="new"] .cl-group__title::before { background: var(--v2-signal); }
.theme-2026.brand-v2 .cl-group[data-kind="better"] .cl-group__title::before { background: var(--v2-complete); }

.theme-2026.brand-v2 .cl-notes { display: grid; margin: 0; padding: 0; list-style: none; }
.theme-2026.brand-v2 .cl-note { display: grid; gap: 6px; margin: 0; padding: 14px 0; border-top: 1px solid var(--v2-rule); }
.theme-2026.brand-v2 .cl-note:first-child { border-top: 0; padding-top: var(--v2-space-2); }
.theme-2026.brand-v2 .cl-note__text { margin: 0; color: var(--v2-ink); font: 400 17px/1.55 var(--display); text-wrap: pretty; }
.theme-2026.brand-v2 .cl-note__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-2) var(--v2-space-3); margin: 0; }
.theme-2026.brand-v2 .cl-tag { color: var(--v2-quiet); font: 400 13px/1.4 var(--display); }
.theme-2026.brand-v2 .cl-tag--admins {
  padding: 2px 10px;
  border-radius: var(--v2-radius-pill);
  background: color-mix(in srgb, var(--v2-signal) 10%, transparent);
  color: color-mix(in srgb, var(--v2-signal) 82%, var(--v2-ink));
  font-weight: 500;
}

.theme-2026.brand-v2 .cl-message { display: grid; justify-items: start; gap: var(--v2-space-4); margin: var(--v2-space-6) 0 0; padding: var(--v2-space-6) 0; border-top: 1px solid var(--v2-rule-strong); color: var(--v2-quiet); font: 400 17px/1.5 var(--display); }
.theme-2026.brand-v2 .cl-message[hidden] { display: none; }
.theme-2026.brand-v2 .cl-message p { margin: 0; }
.theme-2026.brand-v2 .cl-retry[hidden] { display: none; }

/* Wide: the week's date in a left column that stays in view while its notes scroll. */
@media (min-width: 900px) {
  .theme-2026.brand-v2 .cl-week { grid-template-columns: 220px minmax(0, 1fr); gap: var(--v2-space-7); }
  .theme-2026.brand-v2 .cl-week__head { position: sticky; top: 104px; align-self: start; }
}

@media (max-width: 599px) {
  .theme-2026.brand-v2 .cl-products { display: flex; }
  .theme-2026.brand-v2 .cl-products:not([hidden]) .cl-product { flex: 1 1 0; padding: 0 var(--v2-space-3); }
  .theme-2026.brand-v2 .cl-note__text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-2026.brand-v2 .cl-product,
  .theme-2026.brand-v2 .cl-chip { transition: none; }
}
