:root {
    --blue-50: #EEF4FF;
    --blue-100: #D9E6FF;
    --blue-200: #B3CDFF;
    --blue-300: #80ABFF;
    --blue-400: #4F8CFF;
    --blue-500: #2B6FE6;
    --blue-600: #1A56C4;
    --blue-700: #13429E;
    --gray-50: #F8F9FB;
    --gray-100: #F1F3F7;
    --gray-200: #E2E6ED;
    --gray-300: #C8CED9;
    --gray-400: #9AA2B1;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --accent-green: #10B981;
    --accent-amber: #F59E0B;
    --accent-violet: #8B5CF6;
    --accent-rose: #F43F5E;
    --surface-primary: #FAFAFB;
    --surface-card: #FFFFFF;
    --surface-dark: #0B1120;
    --surface-dark-card: #131C2E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 20px rgba(79, 140, 255, 0.25);
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --container-width: 1140px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--surface-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.changelog-content a {
    text-decoration: underline;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ============ PAGE HERO ============ */
.cl-page{
    padding: 140px 0 50px;
}

.changelog-hero {
    padding: 0 24px 48px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.changelog-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-600);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.changelog-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.changelog-hero-meta {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ============ LAYOUT ============ */
.changelog-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 48px 24px 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* ============ SIDEBAR TOC ============ */
.changelog-toc {
    position: sticky;
    top: 80px;
}

.changelog-toc-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.changelog-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.changelog-toc-list li a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    padding: 5px 10px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.changelog-toc-list li a:hover {
    color: var(--blue-500);
    background: var(--blue-50);
    border-left-color: var(--blue-300);
}

.changelog-toc-list li a.active {
    color: var(--blue-600);
    background: var(--blue-50);
    border-left-color: var(--blue-400);
    font-weight: 600;
}

/* ============ CONTENT ============ */
.changelog-content {
    min-width: 0;
}

.changelog-article {
    margin-bottom: 52px;
    scroll-margin-top: 80px;
}

.changelog-article-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.changelog-article-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--blue-400);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.changelog-article h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

/* Section headings (e.g. 1.1, 1.2) */
.changelog-section {
    margin-bottom: 20px;
}

.changelog-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.changelog-section p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 8px;
}

/* Lettered sub-lists */
.changelog-list {
    list-style: none;
    margin: 8px 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.changelog-list li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
}

.changelog-list li .list-marker {
    font-weight: 600;
    color: var(--blue-500);
    min-width: 22px;
    flex-shrink: 0;
    font-size: 13px;
}

/* Sub-sub lists (roman numerals) */
.changelog-sublist {
    list-style: none;
    margin: 6px 0 2px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.changelog-sublist li {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    padding-left: 8px;
}

.changelog-sublist li .list-marker {
    font-weight: 500;
    color: var(--gray-400);
    min-width: 28px;
    flex-shrink: 0;
}

/* Callout for ALL-CAPS legal disclaimers */
.changelog-callout {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--blue-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.65;
    font-weight: 500;
}

/* Contact card */
.changelog-contact-card {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 12px;
}

.changelog-contact-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
}

.changelog-contact-card a {
    color: var(--blue-500);
    font-weight: 600;
    transition: color 0.2s;
}

.changelog-contact-card a:hover {
    color: var(--blue-600);
}

/* Acceptance banner */
.changelog-acceptance {
    background: var(--surface-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.changelog-acceptance-icon {
    width: 36px;
    height: 36px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue-500);
}

.changelog-acceptance p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.changelog-acceptance strong {
    color: var(--gray-800);
}



.changelog-page .changelog-layout {
  grid-template-columns: 220px 1fr;
}

.changelog-month-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-entry {
  background: var(--surface-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.changelog-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.changelog-entry h3 {
  font-size: 16px;
  color: var(--gray-900);
  letter-spacing: -0.2px;
}

.changelog-entry time {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
}

.changelog-entry-list {
  margin-left: 18px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.changelog-entry-list li + li {
  margin-top: 4px;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 989px) {
  .changelog-layout {
      grid-template-columns: 1fr;
      gap: 32px;
      padding: 32px 20px 0;
  }

  .changelog-toc {
      position: static;
      background: var(--surface-card);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 16px 20px;
  }

  .cl-page{
      padding: 120px 0 50px;
  }

  .cl-page h1 {
      font-size: 32px;
  }

  .changelog-hero {
      padding: 0 20px 30px;
  }

  .changelog-acceptance {
      flex-direction: column;
      align-items: flex-start;
  }

  .changelog-article {
    margin-bottom: 0;
  }

  .changelog-entry-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .changelog-page .changelog-layout {
    grid-template-columns: 1fr;
  }
}