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

/* ===== TOKENS ===== */
:root {
  --bg:           #07090f;
  --bg2:          #0c1018;
  --glass:        rgba(255,255,255,0.04);
  --glass-md:     rgba(255,255,255,0.07);
  --glass-hi:     rgba(255,255,255,0.11);
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.13);
  --text:         #dce3ee;
  --muted:        #7e8fa5;
  --faint:        #48576b;
  --accent:       #f97316;
  --accent-dim:   rgba(249,115,22,0.12);
  --accent-glow:  rgba(249,115,22,0.06);
  --accent2:      #818cf8;
  --accent2-dim:  rgba(129,140,248,0.10);
  --code-bg:      rgba(0,0,0,0.38);
  --code-border:  rgba(255,255,255,0.06);
  --hdr-bg:       rgba(7,9,15,0.82);
  --side-bg:      rgba(7,9,15,0.96);
  --sidebar-w:    264px;
  --content-max:  760px;
  --header-h:     56px;
  --r:            10px;
  --r-sm:         6px;
  --r-lg:         14px;
}

[data-theme="light"] {
  --bg:           #f5f0eb;
  --bg2:          #ffffff;
  --glass:        rgba(255,255,255,0.55);
  --glass-md:     rgba(255,255,255,0.75);
  --glass-hi:     rgba(255,255,255,0.92);
  --border:       rgba(0,0,0,0.06);
  --border-md:    rgba(0,0,0,0.12);
  --text:         #1a0f00;
  --muted:        #5c4a35;
  --faint:        #9a7f63;
  --accent:       #c2410c;
  --accent-dim:   rgba(194,65,12,0.10);
  --accent-glow:  rgba(194,65,12,0.05);
  --accent2:      #6366f1;
  --accent2-dim:  rgba(99,102,241,0.08);
  --code-bg:      rgba(0,0,0,0.04);
  --code-border:  rgba(0,0,0,0.08);
  --hdr-bg:       rgba(245,240,235,0.88);
  --side-bg:      rgba(245,240,250,0.97);
}

/* ===== BASE ===== */
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 10% 10%, rgba(249,115,22,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 88% 78%, rgba(129,140,248,0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 55% at 10% 10%, rgba(194,65,12,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 88% 78%, rgba(99,102,241,0.04) 0%, transparent 55%);
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
p { color: var(--muted); }
p strong { color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre { font-family: "IBM Plex Mono", "Fira Code", ui-monospace, monospace; font-size: 0.875em; }
code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--r-sm);
  padding: 0.15em 0.42em;
  font-size: 0.83em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  line-height: 1.55;
  margin: 0.85rem 0;
  font-size: 0.875rem;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; }

.doc-section ul,
.doc-section ol { padding-left: 1.35rem; color: var(--muted); margin: 0.65rem 0; }
.doc-section li { margin: 0.35rem 0; }
.doc-section li strong { color: var(--text); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--hdr-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

.header-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-logo span { color: var(--accent); }
.header-logo:hover { text-decoration: none; }

.header-spacer { flex: 1; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.header-nav a,
.header-nav button {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.32rem 0.6rem;
  border-radius: var(--r-sm);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.14s, background 0.14s;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav button:hover {
  color: var(--text);
  background: var(--glass-md);
  text-decoration: none;
}
.header-nav a.active { color: var(--text); font-weight: 600; }

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.14s;
}
.header-badge:hover { background: rgba(249,115,22,0.22); text-decoration: none; }
[data-theme="light"] .header-badge { border-color: rgba(194,65,12,0.3); }

.theme-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s;
}
.theme-btn:hover { color: var(--text); background: var(--glass-md); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--glass);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}
.menu-btn svg { display: block; }

/* ===== LANDING ===== */
.landing { position: relative; z-index: 1; padding-top: var(--header-h); }

.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(249,115,22,0.22);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
[data-theme="light"] .hero-eyebrow { border-color: rgba(194,65,12,0.28); }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-ctas { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #07090f;
  border-color: transparent;
}
.btn-primary:hover { background: #fb923c; text-decoration: none; color: #07090f; }
[data-theme="light"] .btn-primary { color: #fff; }
[data-theme="light"] .btn-primary:hover { color: #fff; background: #9a3412; }

.btn-ghost {
  background: var(--glass);
  border-color: var(--border-md);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-md); text-decoration: none; color: var(--text); }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.18s, background 0.18s;
}
.feature-card:hover { border-color: var(--border-md); background: var(--glass-md); }
.feature-icon { font-size: 1.35rem; margin-bottom: 0.65rem; }
.feature-card h3 { font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--text); }
.feature-card p { font-size: 0.845rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ===== SCREENSHOTS ===== */
.screenshots-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}
.screenshots-section > h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.screenshot-list { display: flex; flex-direction: column; gap: 1.25rem; }

.screenshot-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color 0.18s;
}
.screenshot-item:hover { border-color: var(--border-md); }
.screenshot-item:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.screenshot-item:nth-child(even) .screenshot-img { order: 2; }
.screenshot-item:nth-child(even) .screenshot-info { order: 1; }

.screenshot-img {
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.screenshot-img img { width: 100%; height: auto; display: block; transition: transform 0.25s; }
.screenshot-img:hover img { transform: scale(1.03); }
.screenshot-img::after {
  content: "Click to enlarge";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.screenshot-img:hover::after { opacity: 1; }

.screenshot-info h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.screenshot-info p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.85rem; }
.screenshot-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.screenshot-tag {
  font-size: 0.75rem;
  padding: 0.18em 0.55em;
  background: var(--accent-dim);
  border: 1px solid rgba(249,115,22,0.18);
  border-radius: 4px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--r);
  border: 1px solid var(--border-md);
  object-fit: contain;
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.75rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.14s;
}
.modal-close:hover { color: var(--text); }

/* ===== LANDING SECTION ===== */
.landing-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}
.landing-section > h2 { font-size: 1.35rem; margin-bottom: 1.1rem; color: var(--text); }

.docs-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.docs-card table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.docs-card th {
  background: var(--glass-md);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.docs-card td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.docs-card td strong { color: var(--text); }
.docs-card tr:last-child td { border-bottom: none; }
.docs-card tbody tr:hover td { background: var(--glass); }

/* ===== DOWNLOAD GRID ===== */
.download-section .download-lead {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 720px;
  margin: -0.35rem 0 1.35rem;
  line-height: 1.6;
}

.download-version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}

.download-version-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-version-select {
  min-width: min(100%, 22rem);
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  cursor: pointer;
}

.download-version-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.download-fetch-status {
  font-size: 0.8rem;
  color: var(--faint);
  margin: -0.5rem 0 1rem;
  max-width: 720px;
  line-height: 1.5;
}

.download-fetch-status a { font-weight: 500; }

.download-foot-note {
  margin-top: 0.35rem;
  opacity: 0.92;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.download-column {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.18s;
}
.download-column:hover { border-color: var(--border-md); }

.download-os {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.download-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--border-md);
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  line-height: 1.35;
}

a.dl-btn:hover { text-decoration: none; }

.dl-btn-primary {
  background: var(--accent);
  color: #07090f;
  border-color: transparent;
}
.dl-btn-primary:hover {
  background: #fb923c;
  color: #07090f;
}
[data-theme="light"] .dl-btn-primary { color: #fff; }
[data-theme="light"] .dl-btn-primary:hover { color: #fff; background: #9a3412; }

.dl-btn-soon {
  background: var(--glass);
  color: var(--faint);
  border-style: dashed;
  cursor: default;
  user-select: none;
}

.download-foot {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.download-foot a { font-weight: 500; }

/* ===== DOC LAYOUT (guide + standalone pages) ===== */
.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--side-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-md) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }

.sidebar-group { padding: 0 0.75rem; margin-bottom: 1.35rem; }

.sidebar-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0.55rem;
  margin-bottom: 0.35rem;
}

.sidebar-link {
  display: block;
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
  line-height: 1.4;
}
.sidebar-link:hover { color: var(--text); background: var(--glass-md); text-decoration: none; }
.sidebar-link.active { color: var(--accent); background: var(--accent-dim); font-weight: 500; }

.sidebar-divider { height: 1px; background: var(--border); margin: 0.85rem 0.75rem; }

.sidebar-ext { font-size: 0.8rem; color: var(--faint); }
.sidebar-ext::after { content: ' ↗'; }

.content {
  min-width: 0;
  padding: 2.25rem 2.25rem 4.5rem;
}

.content-inner { max-width: var(--content-max); }

.doc-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.doc-page-lead {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.doc-section {
  margin-bottom: 3.25rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.section-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--glass-md);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.doc-section h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1rem;
  color: var(--text);
}

.doc-section p { margin: 0.55rem 0; line-height: 1.65; }
.doc-section p + p { margin-top: 0.75rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0.25rem; }

.doc-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 0.2em 0.5em;
  background: var(--accent-dim);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 4px;
  color: var(--accent);
}
[data-theme="light"] .doc-tag { border-color: rgba(194,65,12,0.25); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

.doc-standalone {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

.doc-standalone .download-section { padding: 0; max-width: none; }
.doc-standalone .download-section > h2 { font-size: 1.65rem; }

.section-stack {
  margin-top: 4rem;
  padding-top: 0.5rem;
}

.landing .screenshots-section.section-stack {
  margin-top: 3.5rem;
}

.landing .landing-section.section-stack {
  margin-top: 3.5rem;
  padding-top: 0.75rem;
  padding-bottom: 3rem;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--faint);
  max-width: 1080px;
  margin: 0 auto;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: none; }

.doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--faint);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.doc-footer a { color: var(--muted); }
.doc-footer a:hover { color: var(--text); text-decoration: none; }

.changelog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.page-title { font-size: 1.75rem; margin-bottom: 0.4rem; }
.page-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

#changelog-body h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }
#changelog-body h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
#changelog-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.45rem;
}
#changelog-body p { margin: 0.55rem 0; color: var(--muted); font-size: 0.9rem; }
#changelog-body ul { padding-left: 1.25rem; color: var(--muted); font-size: 0.9rem; }
#changelog-body li { margin: 0.28rem 0; }
#changelog-body code { font-size: 0.8em; }
#changelog-body a { word-break: break-word; }

#changelog-status.banner {
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border-md);
  background: var(--glass);
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-w);
    z-index: 160;
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.4,0,0.2,1);
    padding-top: calc(var(--header-h) + 0.75rem);
    border-right: 1px solid var(--border-md);
  }
  .sidebar.open { transform: translateX(0); }

  .menu-btn { display: flex; }
  .content { padding: 1.65rem 1.2rem 3rem; }

  .hero h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .screenshot-item,
  .screenshot-item:nth-child(even) { grid-template-columns: 1fr; }
  .screenshot-item:nth-child(even) .screenshot-img,
  .screenshot-item:nth-child(even) .screenshot-info { order: 0; }
  .site-footer { max-width: 100%; padding: 1.5rem 1.25rem; }
  .landing-section { padding: 1rem 1.25rem 2rem; }
  .screenshots-section { padding: 1rem 1.25rem 0.5rem; }
  .feature-grid { padding: 1rem 1.25rem 1rem; }
  .doc-standalone { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.95rem; }
  .header-nav a:not(.header-badge) { display: none; }
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
}
