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

:root {
  --text: #1a1a2e;
  --text-light: #555770;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --border: #dde0e6;
  --accent: #0f52ba;
  --accent-light: #e8eff9;
  --red: #c0392b;
  --red-bg: #fdf2f1;
  --red-border: #e6b0aa;
  --green: #1a8754;
  --code-bg: #0d1117;
  --code-text: #c9d1d9;
  --nav-bg: #0d1117;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.topnav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topnav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.brand-icon { color: var(--accent); font-size: 12px; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 36px;
  flex: 1;
}

.nav-link {
  color: #8b8fa3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.nav-link:hover { color: #c9d1d9; }

.nav-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.advisory {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb span { margin: 0 4px; }

.advisory-header { margin-bottom: 36px; }

.cve-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.advisory-header h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.severity-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.severity-high {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.meta-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-light);
}

.meta-date {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}

.section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}

.section p code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}

.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--text);
  margin-top: 16px;
}

.callout strong { font-weight: 600; }

.version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.version-table th {
  text-align: left;
  font-weight: 600;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.version-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

.note {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

.code-block {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #30363d;
}

.code-header {
  background: #161b22;
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8b949e;
  font-weight: 500;
}

.copy-btn {
  background: transparent;
  border: 1px solid #30363d;
  color: #8b949e;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}

.copy-btn:hover { background: #21262d; color: #c9d1d9; }

.code-block pre {
  background: var(--code-bg);
  padding: 14px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--code-text);
  line-height: 1.55;
}

.expected {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.expected strong {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.expected pre {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  overflow-x: auto;
}

.expected code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  line-height: 1.5;
}

.mitigation-list {
  list-style: none;
  font-size: 14px;
}

.mitigation-list li {
  padding: 8px 0 8px 20px;
  position: relative;
}

.mitigation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mitigation-list li strong { font-weight: 600; }

.mitigation-list li code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.timeline-table td {
  padding: 6px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--bg-soft);
}

.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-light);
  width: 110px;
  white-space: nowrap;
}

.ref-list {
  list-style: none;
  font-size: 14px;
}

.ref-list li { padding: 4px 0; }

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

.ref-note {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-light);
}

.footer a { color: var(--text-light); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .advisory-header h1 { font-size: 22px; }
  .meta-date { margin-left: 0; }
}
