/* Page styles for changelog.html */
:root {
      --primary: #1E3A8A;
      --primary-dark: #1D2C51;
      --primary-light: #E6F1FF;
      --foreground: #1f2937;
      --muted: #6b7280;
      --background: #fcfcfc;
      --card: #ffffff;
      --border: #e5e7eb;
      --secondary: #f3f4f6;
      --card-header: #f0f1f3;
      --green: #059669;
      --green-light: #D1FAE5;
    }

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

    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .top-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), #2563EB);
    }

    /* Header */
    .nav-links { display: flex; align-items: center; gap: 4px; }

    .nav-link {
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 5px;
      transition: background 0.15s, color 0.15s;
    }

    .nav-link:hover { background: var(--secondary); color: var(--foreground); }
    .nav-link.active { color: var(--primary); background: var(--primary-light); }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      padding: 8px 18px;
      border-radius: 5px;
      text-decoration: none;
      transition: background 0.15s;
    }

    .btn-primary:hover { background: var(--primary-dark); }

    /* Hero */
    .hero {
      background: linear-gradient(155deg, #0f1e42 0%, var(--primary) 55%, #1a4199 100%);
      padding: 80px 24px 72px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(37,99,235,0.2) 0%, transparent 65%);
      pointer-events: none;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.18);
      color: rgba(255,255,255,0.85);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 6px 14px;
      border-radius: 5px;
      margin-bottom: 24px;
    }

    .hero-badge svg { opacity: 0.8; }

    .hero h1 {
      font-size: clamp(32px, 5vw, 52px);
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.02em;
      margin-bottom: 16px;
      line-height: 1.15;
    }

    .hero p {
      font-size: 17px;
      color: rgba(255,255,255,0.72);
      max-width: 520px;
      margin: 0 auto 28px;
      line-height: 1.65;
    }

    .hero-meta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      color: rgba(255,255,255,0.45);
    }

    /* Stats bar */
    .stats-bar {
      border-bottom: 1px solid var(--border);
      background: #fff;
    }

    .stats-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
      padding: 28px 24px;
      text-align: center;
      border-right: 1px solid var(--border);
    }

    .stat-item:last-child { border-right: none; }

    .stat-value {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: -0.02em;
      line-height: 1;
      margin-bottom: 5px;
    }

    .stat-label {
      font-size: 12.5px;
      color: var(--muted);
      font-weight: 500;
    }

    /* Layout */
    .page-body {
      max-width: 1200px;
      margin: 0 auto;
      padding: 64px 24px 80px;
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 56px;
      align-items: start;
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: 80px;
    }

    .sidebar-label {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 10px;
    }

    .sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

    .sidebar-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 12px;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
      border: 1px solid transparent;
    }

    .sidebar-link:hover {
      background: var(--secondary);
      color: var(--foreground);
    }

    .sidebar-link.active {
      background: var(--primary-light);
      color: var(--primary);
      border-color: rgba(30,58,138,0.12);
      font-weight: 600;
    }

    .sidebar-link .version-tag {
      font-size: 11px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 3px;
      background: var(--primary-light);
      color: var(--primary);
    }

    .sidebar-link.active .version-tag {
      background: rgba(30,58,138,0.15);
    }

    .sidebar-divider {
      height: 1px;
      background: var(--border);
      margin: 14px 0;
    }

    .sidebar-info {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.55;
      padding: 12px;
      background: var(--secondary);
      border-radius: 5px;
      margin-top: 12px;
    }

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

    /* Section heading pill */
    .section-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--primary);
      background: var(--primary-light);
      border: 1px solid rgba(30,58,138,0.15);
      padding: 5px 12px;
      border-radius: 5px;
      margin-bottom: 18px;
    }

    /* Release Entry */
    .release {
      margin-bottom: 56px;
    }

    .release-header {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 24px;
    }

    .release-dot-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 6px;
      flex-shrink: 0;
    }

    .release-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--primary);
      border: 3px solid #fff;
      box-shadow: 0 0 0 2px var(--primary);
      flex-shrink: 0;
    }

    .release-dot.latest {
      background: var(--green);
      box-shadow: 0 0 0 2px var(--green);
    }

    .release-dot-col .timeline-line {
      width: 2px;
      background: var(--border);
      flex: 1;
      min-height: 24px;
      margin-top: 6px;
    }

    .release-meta { flex: 1; min-width: 0; }

    .release-top {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 4px;
    }

    .version-badge {
      font-size: 13px;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 5px;
      background: var(--primary);
      color: #fff;
      letter-spacing: 0.01em;
    }

    .version-badge.latest-badge {
      background: var(--green);
    }

    .latest-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--green);
      background: var(--green-light);
      border: 1px solid rgba(5,150,105,0.2);
      padding: 3px 10px;
      border-radius: 5px;
    }

    .latest-pill::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
    }

    .release-date {
      font-size: 13.5px;
      color: var(--muted);
      font-weight: 500;
    }

    .release-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--foreground);
      letter-spacing: -0.01em;
    }

    /* Release card */
    .release-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
      margin-left: 36px;
    }

    .release-card-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .release-card-header-left {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--foreground);
    }

    .change-count {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--muted);
      background: var(--border);
      padding: 2px 9px;
      border-radius: 3px;
    }

    .release-card-body { padding: 24px; }

    .changes-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .change-item {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      padding: 13px 14px;
      border-radius: 5px;
      background: var(--background);
      border: 1px solid var(--border);
    }

    .change-icon {
      width: 28px;
      height: 28px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: var(--primary-light);
    }

    .change-icon svg { color: var(--primary); }

    .change-text { min-width: 0; }

    .change-title {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--foreground);
      line-height: 1.35;
    }

    .change-desc {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
      line-height: 1.45;
    }

    .release-footnote {
      margin-top: 16px;
      padding: 13px 16px;
      background: var(--primary-light);
      border: 1px solid rgba(30,58,138,0.12);
      border-radius: 5px;
      font-size: 13px;
      color: var(--primary);
      display: flex;
      align-items: flex-start;
      gap: 9px;
      line-height: 1.5;
    }

    .release-footnote svg { flex-shrink: 0; margin-top: 1px; }

    /* Ongoing section */
    .ongoing-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }

    .ongoing-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--foreground);
    }

    .ongoing-body { padding: 24px; }

    .ongoing-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .ongoing-item:last-child { border-bottom: none; padding-bottom: 0; }
    .ongoing-item:first-child { padding-top: 0; }

    .ongoing-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-top: 7px;
      flex-shrink: 0;
    }

    .ongoing-dot.blue { background: var(--primary); }
    .ongoing-dot.green { background: var(--green); }
    .ongoing-dot.amber { background: #d97706; }

    .ongoing-text { flex: 1; }

    .ongoing-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--foreground);
      margin-bottom: 3px;
    }

    .ongoing-desc {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }

    /* Transparency section */
    .transparency-section { margin-top: 48px; }

    .transparency-cards {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-top: 20px;
    }

    .transparency-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
    }

    .transparency-card-header {
      background: var(--card-header);
      border-bottom: 1px solid var(--border);
      padding: 12px 18px;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--foreground);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .transparency-card-body {
      padding: 18px;
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.6;
    }

    .transparency-card-body strong { color: var(--foreground); }

    /* Closing callout */
    .closing-callout {
      margin-top: 48px;
      background: linear-gradient(135deg, var(--primary-dark), #1E3A8A);
      border-radius: 5px;
      padding: 36px 40px;
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .closing-callout-icon {
      width: 52px;
      height: 52px;
      background: rgba(255,255,255,0.1);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .closing-callout-text { flex: 1; }

    .closing-callout h3 {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 6px;
    }

    .closing-callout p {
      font-size: 14px;
      color: rgba(255,255,255,0.65);
      line-height: 1.55;
    }



    @media (max-width: 900px) {
      .nav-links { display: none; }
      .page-body { grid-template-columns: 1fr; gap: 32px; }
      .sidebar { position: static; display: none; }
      .stats-inner { grid-template-columns: repeat(2, 1fr); }
      .stat-item:nth-child(2) { border-right: none; }
      .changes-grid { grid-template-columns: 1fr; }
      .transparency-cards { grid-template-columns: 1fr; }
      .closing-callout { flex-direction: column; gap: 16px; padding: 28px 24px; }
    }

    @media (max-width: 480px) {
      .stats-inner { grid-template-columns: 1fr; }
      .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
      .stat-item:last-child { border-bottom: none; }
      .release-card { margin-left: 0; }
      .hero { padding: 52px 16px 44px; }
      .page-body { padding: 36px 16px 60px; }
    }

    /* Development Phase sections */
    .section-pill-dev {
      color: #92400e;
      background: #fef3c7;
      border-color: rgba(217,119,6,0.2);
    }

    .release-dot.dev-dot {
      background: #d97706;
      box-shadow: 0 0 0 2px #d97706;
    }

    .version-badge.dev-badge {
      background: #d97706;
    }

    .dev-focus-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 16px;
    }

    .dev-focus-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 5px;
      background: var(--background);
      border: 1px solid var(--border);
      font-size: 13px;
      font-weight: 500;
      color: var(--foreground);
    }

    .dev-focus-item::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #d97706;
      flex-shrink: 0;
    }

    .dev-phase-desc {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 4px;
    }

    .dev-footnote {
      margin-top: 16px;
      padding: 13px 16px;
      background: #fef3c7;
      border: 1px solid rgba(217,119,6,0.2);
      border-radius: 5px;
      font-size: 13px;
      color: #92400e;
      display: flex;
      align-items: flex-start;
      gap: 9px;
      line-height: 1.5;
    }

    .dev-footnote svg { flex-shrink: 0; margin-top: 1px; }

    @media (max-width: 600px) {
      .dev-focus-list { grid-template-columns: 1fr; }
    }
