:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1f2430;
  --text-muted: #5b6472;
  --border: #e3e6ea;
  --accent: #2a5db0;
  --accent-soft: #eaf1fc;
  --fixed: #1e7d43;
  --fixed-soft: #e7f6ec;
  --improved: #a15c00;
  --improved-soft: #fdf1e0;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.wrap.with-sidebar {
  max-width: 960px;
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.sidebar {
  flex: 0 0 190px;
  position: sticky;
  top: 96px;
}

.sidebar h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sidebar a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.sidebar a.current {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    flex: 0 0 auto;
    width: 100%;
  }
  .sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 32px;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

header.site .brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

header.site .brand span {
  color: var(--accent);
}

header.site nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

header.site nav a:hover {
  color: var(--accent);
}

h1 {
  font-size: 1.7rem;
  margin: 0 0 4px;
}

.subtitle {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 0.98rem;
}

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--improved-soft);
  color: var(--improved);
  margin-left: 10px;
  vertical-align: middle;
}

.version-panel {
  margin-bottom: 24px;
}

.version-panel .version-name {
  font-size: 1.7rem;
  font-weight: 700;
}

.version-panel .version-status {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.version-panel .version-status .status-badge {
  margin-left: 0;
}

.version-panel .version-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-pills .pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}

.summary-pills .pill.fixed { background: var(--fixed-soft); color: var(--fixed); }
.summary-pills .pill.improved { background: var(--improved-soft); color: var(--improved); }

.highlights {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.highlights h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.highlights > p {
  margin: 0 0 12px;
  color: var(--text);
}

.highlights ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.highlights ul li {
  margin-bottom: 4px;
}

.highlights .note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-bottom: 28px;
  font-size: 0.88rem;
}

.section-nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}

.section-nav a:hover {
  background: var(--accent-soft);
}

.section-nav .sep {
  color: var(--text-muted);
}

.all-changes-heading {
  font-size: 1.15rem;
  margin: 8px 0 4px;
}

.release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}

.release-list a:hover {
  border-color: var(--accent);
}

.release-list .version {
  font-weight: 700;
  font-size: 1.05rem;
}

.release-list .date {
  color: var(--text-muted);
  font-size: 0.88rem;
}

section.group {
  margin: 30px 0;
}

section.group h2 {
  font-size: 1.02rem;
  margin: 0 0 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

section.group h2 svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.items li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.items .headline {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.items .detail {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.items .applies-to {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.items .applies-to strong {
  color: var(--text);
}

.tag {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.tag.fixed { background: var(--fixed-soft); color: var(--fixed); }
.tag.improved { background: var(--improved-soft); color: var(--improved); }

.items p {
  margin: 0;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.site a {
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --panel: #1c1f26;
    --text: #e7e9ee;
    --text-muted: #9aa2b1;
    --border: #2b2f38;
    --accent: #6fa4ec;
    --accent-soft: #1c2a3f;
    --fixed: #59d78c;
    --fixed-soft: #123321;
    --improved: #e3a94a;
    --improved-soft: #3a2a10;
  }
}
