/* Theme tokens - dark palette is the default look (:root), overridden by
   a light palette both automatically (prefers-color-scheme) and explicitly
   (data-theme, set by the toggle in the header - see script.js), so an
   explicit choice always wins over the system preference in either
   direction. Keep every themeable color as a variable here rather than a
   hardcoded hex/rgba value elsewhere in this file, so both themes stay in
   sync from one place. */
:root {
  --bg: #14141a;
  --bg-alt: #191922;
  --panel: #1e1e29;
  --border: #2b2b38;
  --text: #e8e6f0;
  --text-dim: #a5a3b5;
  --muted: #6b6879;
  --accent: #7c5cff;
  --accent-hover: #9077ff;
  --header-bg: rgba(20, 20, 26, 0.92);
  --mobile-nav-bg: rgba(20, 20, 26, 0.98);
  --overlay-bg: rgba(10, 10, 14, 0.92);
  --code-bg: rgba(124, 92, 255, 0.14);
  --code-text: #cfc4ff;
  --hero-glow: rgba(124, 92, 255, 0.12);
  --label-added-bg: rgba(52, 199, 89, 0.15);   --label-added-fg: #5de08a;
  --label-changed-bg: rgba(124, 92, 255, 0.18); --label-changed-fg: #a78bfa;
  --label-fixed-bg: rgba(255, 179, 71, 0.15);   --label-fixed-fg: #ffbe6a;
  --label-removed-bg: rgba(255, 69, 69, 0.15);  --label-removed-fg: #f28b82;
  --label-breaking-bg: rgba(255, 69, 69, 0.2);  --label-breaking-fg: #f28b82;
  --label-security-bg: rgba(255, 179, 71, 0.15);--label-security-fg: #ffbe6a;
  --error-fg: #d98c8c;
  --max-width: 1080px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f7f6fb; --bg-alt: #efedf7; --panel: #ffffff; --border: #ddd9ea; --text: #201e29; --text-dim: #55536a; --muted: #86839a; --accent: #6947e0; --accent-hover: #5636c4; --header-bg: rgba(247, 246, 251, 0.92); --mobile-nav-bg: rgba(255, 255, 255, 0.98); --overlay-bg: rgba(20, 20, 26, 0.6); --code-bg: rgba(105, 71, 224, 0.1); --code-text: #4a34ad; --hero-glow: rgba(105, 71, 224, 0.1); --label-added-bg: rgba(31, 150, 68, 0.14); --label-added-fg: #1f8f44; --label-changed-bg: rgba(105, 71, 224, 0.14); --label-changed-fg: #6947e0; --label-fixed-bg: rgba(184, 106, 0, 0.14); --label-fixed-fg: #a35e00; --label-removed-bg: rgba(200, 40, 40, 0.14); --label-removed-fg: #b3312f; --label-breaking-bg: rgba(200, 40, 40, 0.18); --label-breaking-fg: #b3312f; --label-security-bg: rgba(184, 106, 0, 0.14); --label-security-fg: #a35e00; --error-fg: #b3312f; }
}
:root[data-theme="light"] { --bg: #f7f6fb; --bg-alt: #efedf7; --panel: #ffffff; --border: #ddd9ea; --text: #201e29; --text-dim: #55536a; --muted: #86839a; --accent: #6947e0; --accent-hover: #5636c4; --header-bg: rgba(247, 246, 251, 0.92); --mobile-nav-bg: rgba(255, 255, 255, 0.98); --overlay-bg: rgba(20, 20, 26, 0.6); --code-bg: rgba(105, 71, 224, 0.1); --code-text: #4a34ad; --hero-glow: rgba(105, 71, 224, 0.1); --label-added-bg: rgba(31, 150, 68, 0.14); --label-added-fg: #1f8f44; --label-changed-bg: rgba(105, 71, 224, 0.14); --label-changed-fg: #6947e0; --label-fixed-bg: rgba(184, 106, 0, 0.14); --label-fixed-fg: #a35e00; --label-removed-bg: rgba(200, 40, 40, 0.14); --label-removed-fg: #b3312f; --label-breaking-bg: rgba(200, 40, 40, 0.18); --label-breaking-fg: #b3312f; --label-security-bg: rgba(184, 106, 0, 0.14); --label-security-fg: #a35e00; --error-fg: #b3312f; }
:root[data-theme="dark"] { --bg: #14141a; --bg-alt: #191922; --panel: #1e1e29; --border: #2b2b38; --text: #e8e6f0; --text-dim: #a5a3b5; --muted: #6b6879; --accent: #7c5cff; --accent-hover: #9077ff; --header-bg: rgba(20, 20, 26, 0.92); --mobile-nav-bg: rgba(20, 20, 26, 0.98); --overlay-bg: rgba(10, 10, 14, 0.92); --code-bg: rgba(124, 92, 255, 0.14); --code-text: #cfc4ff; --hero-glow: rgba(124, 92, 255, 0.12); --label-added-bg: rgba(52, 199, 89, 0.15); --label-added-fg: #5de08a; --label-changed-bg: rgba(124, 92, 255, 0.18); --label-changed-fg: #a78bfa; --label-fixed-bg: rgba(255, 179, 71, 0.15); --label-fixed-fg: #ffbe6a; --label-removed-bg: rgba(255, 69, 69, 0.15); --label-removed-fg: #f28b82; --label-breaking-bg: rgba(255, 69, 69, 0.2); --label-breaking-fg: #f28b82; --label-security-bg: rgba(255, 179, 71, 0.15); --label-security-fg: #ffbe6a; --error-fg: #d98c8c; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h2 {
  font-size: 1.8rem;
  margin: 0 0 24px;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Dev-mode banner - hidden by default, revealed by dev-config.js (see
   dev-server.py) when running locally via dev-server.sh/.bat. Same
   env-banner treatment as Stuxs.Tools - fixed colors, not theme tokens,
   since it's a deliberately loud, theme-independent alert bar. */
.env-banner { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.4rem 1rem; text-align: center; flex-wrap: wrap; }
.env-banner[hidden] { display: none; }
.env-banner a { color: inherit; text-decoration: underline; }
.env-banner-title { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.env-banner-detail { display: block; font-size: 0.65rem; font-weight: 500; opacity: 0.85; line-height: 1.3; }
.env-banner-dev { background: #F59E0B; color: #1A1200; }

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-gate-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 480px;
  text-align: center;
}
.age-gate-logo { max-width: 220px; margin-bottom: 20px; }
.age-gate-terms { color: var(--text-dim); font-size: 0.85rem; margin-top: 12px; }
.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-logo { height: 28px; width: auto; display: block; }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { color: var(--text-dim); font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff !important;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
}
.nav-gh:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.site-nav a.active { color: var(--text); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle i { display: none; }
:root[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
:root[data-theme="light"] .theme-toggle .fa-moon { display: inline; }
:root:not([data-theme]) .theme-toggle .fa-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .fa-sun { display: inline; }
  :root:not([data-theme]) .theme-toggle .fa-moon { display: none; }
}

/* Groups the theme toggle and hamburger together as one flex item, so
   .header-inner's justify-content: space-between always resolves to just
   brand | nav | controls - without this, hiding .site-nav on mobile
   (display: none removes it from the flex flow) leaves the theme toggle
   as its own flex child and space-between strands it in the middle of
   the header instead of next to the hamburger. */
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: radial-gradient(ellipse at top, var(--hero-glow), transparent 60%);
}
.hero-logo { max-width: 340px; width: 100%; margin-bottom: 28px; }
.hero-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 auto 12px;
  max-width: 760px;
}
.hero-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-meta { margin-bottom: 10px; }
.profiles-hero .hero-meta { margin-bottom: 12px; }
.hero-warning {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 4px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-lede {
  color: var(--text-dim);
  max-width: 640px;
  margin: -8px 0 28px;
}
.section-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 20px;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

.platform-grid { margin-top: 28px; }

/* Legal pages */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.legal-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.legal-card:hover { border-color: var(--accent); text-decoration: none; }
.legal-card h3 { margin-bottom: 4px; color: var(--text); }
.legal-card p { color: var(--text-dim); margin: 0; font-size: 0.9rem; }

.legal-prose { max-width: 720px; }
.legal-prose h2 { font-size: 1.25rem; margin: 40px 0 14px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li { color: var(--text-dim); }
.legal-prose ul { padding-left: 22px; margin: 12px 0; }
.legal-prose li { margin-bottom: 6px; }
.legal-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: -8px 0 28px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps p { color: var(--text-dim); margin: 0; }

/* Profiles chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Code block */
.code-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  max-width: 560px;
}
.code-block code {
  background: none;
  color: var(--text);
  padding: 0;
  font-size: 0.9rem;
  white-space: pre;
}

.get-started-actions { margin-top: 32px; justify-content: flex-start; }

/* Profiles page */
.page-title { font-size: 2rem; margin: 0 0 16px; }
.profiles-hero { padding: 56px 0 40px; }
.profile-status {
  color: var(--text-dim);
  margin-bottom: 24px;
}
.profile-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
}
.profile-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.profile-card header { margin-bottom: 8px; }
.profile-card h3 { margin: 0; }
.profile-card p { color: var(--text-dim); margin: 6px 0; font-size: 0.92rem; }
.profile-window code { font-size: 0.82em; }
.profile-error { color: var(--error-fg); }
.profile-source-link { margin-top: 12px; }
.profile-source-link a { font-size: 0.85rem; }

.profiles-add-card { margin-top: 12px; }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* Changelog page */
.cl-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.cl-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 18px;
  cursor: pointer;
  margin-bottom: -1px;
  border-radius: 0;
  transition: color 0.15s;
}
.cl-tab:hover { color: var(--text); }
.cl-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-ver { font-size: 0.78em; opacity: 0.65; margin-left: 5px; }

.cl-panel { display: none; }
.cl-panel.active { display: block; }

.cl-loading { color: var(--text-dim); }
.cl-error { color: var(--error-fg); }

.cl-block {
  border-left: 3px solid var(--border);
  padding: 0 0 4px 20px;
  margin-bottom: 36px;
}
.cl-block:first-child { margin-top: 4px; }

.cl-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  font-family: "Consolas", "Fira Mono", monospace;
}

.cl-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin: 10px 0 6px;
}
.cl-label-added    { background: var(--label-added-bg);    color: var(--label-added-fg); }
.cl-label-changed  { background: var(--label-changed-bg);  color: var(--label-changed-fg); }
.cl-label-fixed    { background: var(--label-fixed-bg);    color: var(--label-fixed-fg); }
.cl-label-removed  { background: var(--label-removed-bg);  color: var(--label-removed-fg); }
.cl-label-breaking { background: var(--label-breaking-bg); color: var(--label-breaking-fg); }
.cl-label-security { background: var(--label-security-bg); color: var(--label-security-fg); }
.cl-label-other    { background: var(--panel); color: var(--text-dim); }

.cl-list {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
}
.cl-list li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.5;
}
.cl-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.cl-list li.cl-sub { padding-left: 32px; }
.cl-list li.cl-sub::before { left: 14px; color: var(--border); }
.cl-list li strong { color: var(--text); font-weight: 600; }
.cl-list li code { font-size: 0.85em; }

.cl-prose {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

/* Releases page */
.release-status {
  color: var(--text-dim);
  margin-bottom: 24px;
}
.release-error { color: var(--error-fg); }

.release-list { display: flex; flex-direction: column; gap: 20px; }

.release-card { padding: 22px 24px; }
.release-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.release-version {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  font-family: "Consolas", "Fira Mono", monospace;
}
.release-date { color: var(--text-dim); font-size: 0.85rem; }
.release-badge-pre { background: var(--label-fixed-bg); color: var(--label-fixed-fg); }

.release-body p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 8px; }
.release-body a { color: var(--accent); }

.release-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px;
}
.release-asset { padding: 8px 16px; font-size: 0.88rem; }

.release-source-link { font-size: 0.85rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}
.footer-icon { width: 20px; height: 20px; }
.footer-tagline {
  color: var(--text-dim);
  margin: 8px 0 0;
  max-width: 32ch;
}
.footer-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 10px 0 0;
}
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-col a i { width: 14px; text-align: center; color: var(--text-dim); font-size: 0.85em; flex-shrink: 0; }
.footer-avatar { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.footer-note + .footer-note { margin-top: 6px; }
.footer-note a { color: var(--muted); text-decoration: none; }
.footer-note a:hover { color: var(--text-dim); text-decoration: underline; }

/* Tablet */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Nav collapse - a wider breakpoint than the rest of the "Mobile" block
   below: the full nav (8 links + GitHub pill + theme toggle) needs ~850px
   to lay out on one line without squeezing/wrapping, well above the point
   the rest of the page's content actually needs to reflow. Switching this
   later than that would leave a visibly cramped in-between zone where the
   desktop nav is still shown but doesn't have room for it. */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    backdrop-filter: blur(6px);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 11px 24px;
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-gh {
    margin: 8px 24px 0;
    text-align: center;
    border-radius: 6px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .grid-3, .grid-2, .legal-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  h2 { font-size: 1.5rem; }
  .hero-logo { max-width: 220px; }
  .hero-tagline { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
  .get-started-actions { justify-content: center; flex-direction: column; align-items: center; }
  .get-started-actions .btn { width: 100%; max-width: 280px; text-align: center; }
  .code-block { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .page-title { font-size: 1.6rem; }

  /* Changelog tabs scroll on small screens */
  .cl-tabs { overflow-x: auto; padding-bottom: 1px; }
  .cl-tab { white-space: nowrap; }
}
