/* Changelog pages (/changelog, /changelog/<week>): built 2026-11-17 from the Paper boards (file 01M7J8KB0JN38WM4YEWQ8J71PV),
   not a Webflow port. Linked only by web/src/pages/changelog/[...week].astro, so no other page loads it. Dark at all
   hours. Headings in the heading font (Forma DJR Text), text in the site's body font, labels in its mono. */
.cl {
  --cl-bg: #16161e;
  --cl-surface: #1f1f29;
  --cl-text: #f6f4f1;
  --cl-soft: #d0cec9;
  --cl-muted: #a8a6a3;
  --cl-line: rgba(246, 244, 241, 0.12);
  --cl-accent: #f66719;
  --cl-head: var(--_font---heading), 'Forma DJR Text', Arial, sans-serif;
  --cl-body: var(--_font---body), Arial, sans-serif;
  --cl-mono-font: var(--_font---font-secondary), 'JetBrains Mono', monospace;
  --cl-pad: 5rem;
  --cl-sticky: 8.5rem; /* below the fixed site navigation */
  background: var(--cl-bg);
  color: var(--cl-text);
  font-family: var(--cl-body);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
.cl :where(h1, h2, h3, p, ul, ol, li) { margin: 0; padding: 0; }
.cl :where(ul, ol) { list-style: none; }
.cl [hidden] { display: none !important; }
.cl :where(a) { color: inherit; text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.cl :where(a, button):focus-visible { outline: 2px solid var(--cl-accent); outline-offset: 2px; }
.cl-wrap { max-width: 90rem; margin: 0 auto; padding: 0 var(--cl-pad); }

/* type */
.cl-mono {
  font-family: var(--cl-mono-font);
  font-size: .8125rem;
  line-height: 1.125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cl-muted);
}
.cl-h1 { font-family: var(--cl-head); font-weight: 400; font-size: 3.75rem; line-height: 4.125rem; letter-spacing: -.01em; color: var(--cl-text); }
.cl-eyebrow { color: var(--cl-accent); }

/* hero */
.cl-hero { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 13.5rem; padding-bottom: 2.5rem; }
.cl-hero.is-week { padding-top: 12.5rem; padding-bottom: 3rem; }
.cl-lead { max-width: 40rem; font-size: 1.25rem; line-height: 1.75rem; color: var(--cl-muted); }
.cl-crumbs { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; font-size: .9375rem; line-height: 1.3125rem; color: var(--cl-muted); }
.cl-crumbs a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cl-crumbs a:hover { color: var(--cl-text); }
.cl-crumbs [aria-current] { color: var(--cl-text); }

/* module filter */
.cl-filter { padding-bottom: 3.5rem; }
.cl-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cl-chip {
  appearance: none;
  margin: 0;
  flex-shrink: 0;
  padding: .5rem 1rem;
  border: 1px solid var(--cl-line);
  border-radius: 999px;
  background: transparent;
  color: var(--cl-text);
  font: inherit;
  font-size: .9375rem;
  line-height: 1.25rem;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cl-chip:hover { border-color: var(--cl-muted); }
.cl-chip[aria-pressed='true'] { background: var(--cl-text); border-color: var(--cl-text); color: var(--cl-bg); }

/* a week: heading (or "In this week") beside its items */
.cl-week { border-top: 1px solid var(--cl-line); padding: 3.5rem 0; }
.cl-grid { display: grid; grid-template-columns: 17.5rem minmax(0, 50rem); column-gap: 5rem; align-items: start; }
.cl-week-head { position: sticky; top: var(--cl-sticky); display: flex; flex-direction: column; gap: .5rem; }
.cl-week-title { display: flex; flex-direction: column; gap: .5rem; font-weight: 400; }
.cl-week-date { font-family: var(--cl-head); font-size: 1.875rem; line-height: 2.25rem; color: var(--cl-text); }
.cl-week-date:hover { color: var(--cl-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cl-week-meta { font-size: 1rem; line-height: 1.375rem; color: var(--cl-muted); }
.cl-items { display: flex; flex-direction: column; gap: 4rem; min-width: 0; }
.cl-intro { font-size: 1.375rem; line-height: 2rem; color: var(--cl-text); padding-bottom: .5rem; }

/* "In this week" (week page) */
.cl-toc { position: sticky; top: var(--cl-sticky); display: flex; flex-direction: column; gap: .875rem; padding-top: .375rem; }
.cl-toc-list { display: flex; flex-direction: column; border-left: 1px solid var(--cl-line); }
.cl-toc-link { display: block; padding: .5rem 0 .5rem 1rem; border-left: 2px solid transparent; font-size: 1rem; line-height: 1.375rem; color: var(--cl-muted); }
.cl-toc-link:hover { color: var(--cl-text); }
.cl-toc-link[aria-current] { border-left-color: var(--cl-accent); color: var(--cl-text); }

/* an item */
.cl-item { position: relative; display: flex; flex-direction: column; gap: 1.125rem; }
/* #anchor targets sit above their update, clear of the fixed nav */
.cl-anchor { position: absolute; top: calc(-1 * var(--cl-sticky)); left: 0; width: 1px; height: 1px; pointer-events: none; }
.cl-meta { display: flex; align-items: center; gap: .75rem; min-height: 1.75rem; }
.cl-pill {
  display: inline-flex;
  padding: .25rem .625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .8125rem;
  line-height: 1.125rem;
  font-weight: 500;
  white-space: nowrap;
}
.cl-pill.is-new { background: rgba(246, 103, 25, .16); color: #ff8a4c; }
.cl-pill.is-improved { background: rgba(246, 244, 241, .08); color: var(--cl-text); }
.cl-pill.is-fixed { border-color: var(--cl-line); color: var(--cl-muted); }
.cl-copy { position: relative; margin-left: auto; display: inline-flex; padding: .375rem; border-radius: .5rem; color: var(--cl-muted); }
.cl-copy:hover { background: rgba(246, 244, 241, .08); color: var(--cl-text); }
.cl-copied {
  position: absolute;
  right: 0;
  bottom: calc(100% + .375rem);
  padding: .25rem .5rem;
  border-radius: .375rem;
  background: var(--cl-text);
  color: var(--cl-bg);
  font-size: .8125rem;
  line-height: 1.125rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.cl-copy.is-copied .cl-copied { opacity: 1; }
.cl-item-title { font-family: var(--cl-head); font-weight: 400; font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -.005em; color: var(--cl-text); }
.cl-summary { font-size: 1.125rem; line-height: 1.6875rem; color: var(--cl-soft); }
.cl-media { overflow: hidden; border: 1px solid var(--cl-line); border-radius: .875rem; background: var(--cl-surface); }
.cl-media img { display: block; width: 100%; height: auto; }
.cl-media.is-video { aspect-ratio: 16 / 9; }
.cl-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.cl-bullets { display: flex; flex-direction: column; gap: .625rem; }
.cl-bullets li { position: relative; padding-left: 1.125rem; font-size: 1.0625rem; line-height: 1.5rem; color: var(--cl-text); }
.cl-bullets li::before { content: ''; position: absolute; left: 0; top: .5625rem; width: 6px; height: 6px; border-radius: 999px; background: var(--cl-accent); }
.cl-guide {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.0625rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--cl-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cl-guide svg { flex-shrink: 0; transition: transform .15s ease; }
.cl-guide:hover { color: var(--cl-accent); }
.cl-guide:hover svg { transform: translateX(2px); }

/* improvements and fixes */
.cl-fixes { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 1rem; background: var(--cl-surface); }
.cl-fixes-title { padding-bottom: .5rem; font-family: var(--cl-head); font-weight: 400; font-size: 1.25rem; line-height: 1.75rem; color: var(--cl-text); }
.cl-fixes-list { display: flex; flex-direction: column; gap: .5rem; }
.cl-fix { display: flex; align-items: flex-start; gap: 1rem; padding: .875rem 0; border-top: 1px solid var(--cl-line); }
.cl-fix-label { display: flex; flex-shrink: 0; width: 6.5rem; }
.cl-fix-text { flex: 1; min-width: 0; font-size: 1.0625rem; line-height: 1.5rem; color: var(--cl-text); }

/* previous and next week */
.cl-pn { border-top: 1px solid var(--cl-line); padding: 2.5rem 0; }
.cl-pn-row { display: flex; justify-content: space-between; gap: 2rem; }
.cl-pn-link { display: flex; flex-direction: column; gap: .375rem; }
.cl-pn-link.is-next { align-items: flex-end; text-align: right; }
.cl-pn-title { font-family: var(--cl-head); font-size: 1.375rem; line-height: 1.75rem; color: var(--cl-text); }
.cl-pn-link:hover .cl-pn-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* closing call to action */
.cl-cta { border-top: 1px solid var(--cl-line); padding: 6rem 0 7.5rem; }
.cl-cta .cl-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.cl-cta-title { font-family: var(--cl-head); font-weight: 400; font-size: 2.75rem; line-height: 3.125rem; color: var(--cl-text); }
.cl-cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.cl-btn { display: inline-flex; padding: .875rem 1.375rem; border: 1px solid transparent; border-radius: 999px; font-size: 1.125rem; line-height: 1.375rem; color: var(--cl-text); }
.cl-btn.is-secondary { background: #3a3a3e; border-color: var(--cl-muted); }
.cl-btn.is-secondary:hover { background: #46464b; color: var(--cl-text); }
.cl-btn.is-primary { background: var(--cl-accent); }
.cl-btn.is-primary:hover { background: #ff7a30; color: var(--cl-text); }

/* laptops */
@media (max-width: 1199px) {
  .cl { --cl-pad: 2.5rem; }
  .cl-grid { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 3rem; }
}
/* tablets: the week heading and "In this week" sit above the items */
@media (max-width: 991px) {
  .cl { --cl-sticky: calc(8.5rem + var(--nav-banner-h, 0px)); } /* the hello bar sits above the nav here (Nav.astro) */
  .cl-hero, .cl-hero.is-week { padding-top: 8rem; }
  .cl-grid { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
  .cl-week-head, .cl-toc { position: static; }
}
/* phones */
@media (max-width: 767px) {
  .cl { --cl-pad: 1rem; }
  .cl-hero { padding-bottom: 1.5rem; }
  .cl-hero.is-week { padding-bottom: 2rem; }
  .cl-h1 { font-size: 2.5rem; line-height: 2.75rem; }
  .cl-lead { font-size: 1.125rem; line-height: 1.5625rem; }
  .cl-filter { max-width: none; padding: 0 0 2rem; overflow-x: auto; scrollbar-width: none; }
  .cl-filter::-webkit-scrollbar { display: none; }
  .cl-chips { flex-wrap: nowrap; width: max-content; padding: 0 var(--cl-pad); }
  .cl-week { padding: 2rem 0; }
  .cl-week-head { gap: .375rem; }
  .cl-week-title { gap: .375rem; }
  .cl-week-date { font-size: 1.75rem; line-height: 2.125rem; }
  .cl-week-meta { font-size: .9375rem; line-height: 1.3125rem; }
  .cl-items { gap: 2.75rem; }
  .cl-intro { font-size: 1.25rem; line-height: 1.875rem; }
  .cl-item-title { font-size: 1.625rem; line-height: 2rem; }
  .cl-pn-title { font-size: 1.125rem; line-height: 1.5rem; }
  .cl-cta { padding: 3rem 0 4rem; }
  .cl-cta-title { font-size: 2rem; line-height: 2.375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cl *, .cl *::before, .cl *::after { transition: none !important; }
}
