@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #050807;
  --bg-raised: #090d0b;
  --panel: #0b100d;
  --panel-2: #0e1511;
  --line: #1d2a22;
  --line-bright: #304438;
  --text: #d7dfd8;
  --text-strong: #f1f6f2;
  --muted: #819087;
  --dim: #56645b;
  --green: #7dff9e;
  --green-dim: #2f9c55;
  --amber: #e0b65c;
  --danger: #e87979;
  --brand-red: #ff4048;
  --critical: #ff5c63;
  --high: #ff943d;
  --medium: #f1c84a;
  --low: #63dc87;
  --header-height: 72px;
  --footer-height: 44px;
  --sidebar-width: 320px;
  --toc-width: 230px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(125, 255, 158, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 158, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 38px 38px;
  font-family: var(--sans);
  font-size: 15px;
}

button, input { font: inherit; }
a { color: inherit; }
button { color: inherit; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .13;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,.025) 4px);
  mix-blend-mode: screen;
}

.site-shell { min-height: 100vh; }
.site-header {
  height: var(--header-height);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: rgba(5, 8, 7, .94);
  border-bottom: 1px solid var(--line-bright);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #101712;
  border: 1px solid var(--line-bright);
  box-shadow: inset 0 0 0 3px rgba(125,255,158,.03), 0 0 20px rgba(125,255,158,.04);
}
.brand-mark img { display: block; max-width: 29px; max-height: 29px; width: auto; height: auto; object-fit: contain; }
.brand-mark.logo-missing::after { content: 'Z'; color: var(--brand-red); font: 700 17px/1 var(--mono); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand-copy strong { display: inline-flex; align-items: baseline; color: var(--text-strong); font: 700 15px/1 var(--mono); letter-spacing: .08em; }
.brand-primary { color: var(--text-strong); }
.brand-accent { color: var(--brand-red); text-shadow: 0 0 16px rgba(255,64,72,.22); }
.brand-copy small { color: var(--dim); font: 500 9px/1.2 var(--mono); letter-spacing: .11em; }

.system-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 10px;
  color: var(--green);
  border: 1px solid rgba(125,255,158,.18);
  background: rgba(125,255,158,.035);
  font: 600 10px/1 var(--mono);
  letter-spacing: .08em;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(125,255,158,.08), 0 0 12px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .4; box-shadow: 0 0 0 2px rgba(125,255,158,.04); } }

.social-nav { display: flex; gap: 6px; min-width: 0; margin-left: auto; }
.social-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 12px;
  transition: .18s ease;
}
.social-nav a:hover { color: var(--green); border-color: var(--line-bright); background: var(--panel); }
.social-nav a[aria-label="Docker Hub"]:hover { color: #2496ed; }
.social-nav a[aria-label^="EMAIL"]:hover { color: var(--amber); }
.social-nav svg { width: 15px; height: 15px; flex: 0 0 auto; }
.social-nav a[aria-label="Docker Hub"] svg { width: 17px; height: 14px; }

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--green-dim); color: var(--green); }
.icon-button svg { width: 18px; height: 18px; }
.mobile-menu-button, .sidebar-close { display: none; }

.layout { min-height: 100vh; padding-top: var(--header-height); padding-bottom: var(--footer-height); }
.sidebar {
  position: fixed;
  z-index: 30;
  left: 0;
  top: var(--header-height);
  bottom: var(--footer-height);
  width: var(--sidebar-width);
  padding: 16px;
  overflow-y: auto;
  background: rgba(8, 12, 10, .96);
  border-right: 1px solid var(--line-bright);
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}
.sidebar-topline {
  position: relative;
  display: none;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  padding: 0 2px 12px;
  color: var(--dim);
  font: 600 10px/1 var(--mono);
  letter-spacing: .09em;
}
.sidebar-topline .sidebar-close { position: absolute; left: 2px; top: 0; }
.search-box {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #070a08;
}
.search-box:focus-within { border-color: var(--green-dim); box-shadow: 0 0 0 2px rgba(125,255,158,.04); }
.search-box svg { width: 16px; color: var(--dim); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); direction: ltr; font-size: 12px; }
.search-box input::placeholder { color: var(--dim); }
.search-box kbd { padding: 2px 6px; color: var(--dim); border: 1px solid var(--line); background: var(--panel); font: 500 10px var(--mono); }

.docs-nav { margin-top: 18px; }
.nav-group + .nav-group { margin-top: 7px; }
.nav-group-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  color: var(--amber);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.nav-group-toggle:hover,
.nav-group.open .nav-group-toggle {
  color: var(--text-strong);
  border-color: var(--line);
  background: rgba(255,255,255,.018);
}
.nav-group-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nav-group-meta { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.nav-group-count {
  min-width: 20px;
  padding: 1px 5px;
  color: var(--dim);
  border: 1px solid var(--line);
  text-align: center;
  font-size: 9px;
}
.nav-group-chevron {
  width: 13px;
  height: 13px;
  color: var(--dim);
  transition: transform .18s ease, color .18s ease;
}
.nav-group.open .nav-group-chevron { transform: rotate(90deg); color: var(--green); }
.nav-group-panel[hidden] { display: none; }
.nav-group-items { display: grid; gap: 3px; padding-top: 5px; }
.doc-link {
  min-height: 43px;
  display: grid;
  grid-template-columns: 27px 1fr 16px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 13px;
  transition: .16s ease;
}
.doc-link:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.015); }
.doc-link.active {
  color: var(--text-strong);
  border-color: var(--green-dim);
  background: linear-gradient(90deg, rgba(125,255,158,.08), rgba(125,255,158,.015));
  box-shadow: inset 2px 0 0 var(--green);
}
.doc-index { color: var(--dim); font: 500 9px var(--mono); }
.doc-title { direction: ltr; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.doc-link svg { width: 14px; height: 14px; color: var(--dim); }
.doc-link.active svg { color: var(--green); }
.nav-loading, .nav-error { padding: 20px 10px; color: var(--dim); font-size: 12px; text-align: center; }

.severity-panel {
  margin-top: 26px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(155deg, rgba(255,255,255,.018), transparent 52%), #080d0a;
}
.radar-status-chip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 10px 4px;
  padding: 7px 10px;
  color: var(--green);
  border: 1px solid rgba(125,255,158,.18);
  background: rgba(125,255,158,.035);
  font: 600 9px/1 var(--mono);
  letter-spacing: .08em;
}
.severity-heading { border-bottom: 0; }
.severity-heading svg { color: var(--muted); }
.severity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 9px 9px;
}
.severity-card {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 11px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  font-family: var(--mono);
}
.severity-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 13px currentColor;
}
.severity-card::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  right: -19px;
  top: -19px;
  border: 1px solid currentColor;
  opacity: .11;
  transform: rotate(45deg);
}
.severity-card span {
  color: currentColor;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}
.severity-card strong {
  color: var(--text-strong);
  font-size: 26px;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
}
.severity-critical { color: var(--critical); background: linear-gradient(135deg, rgba(255,92,99,.08), transparent 65%); }
.severity-high { color: var(--high); background: linear-gradient(135deg, rgba(255,148,61,.075), transparent 65%); }
.severity-medium { color: var(--medium); background: linear-gradient(135deg, rgba(241,200,74,.07), transparent 65%); }
.severity-low { color: var(--low); background: linear-gradient(135deg, rgba(99,220,135,.07), transparent 65%); }
.severity-panel.is-loading .severity-card strong { animation: blink 1.1s infinite; }
.severity-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font: 500 7px/1.25 var(--mono);
  letter-spacing: .035em;
  white-space: nowrap;
}
.severity-meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.severity-meta span:last-child { flex: 0 0 auto; color: var(--muted); }
.severity-panel.has-error { border-color: rgba(255,92,99,.38); }
.severity-panel.has-error .severity-meta { color: var(--critical); }

.visitor-panel {
  margin-top: 18px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(160deg, rgba(125,255,158,.035), transparent 55%), #080d0a;
}
.panel-heading {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: .06em;
}
.panel-heading > span:first-child { display: flex; align-items: center; gap: 7px; }
.panel-heading svg { width: 13px; color: var(--green); }
.live-label { color: var(--green); }
.visitor-grid { padding: 4px 10px 8px; }
.visitor-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.visitor-item:last-child { border: 0; }
.visitor-label { display: flex; align-items: center; gap: 6px; color: var(--dim); font: 500 8px/1 var(--mono); letter-spacing: .08em; }
.visitor-label svg { width: 12px; height: 12px; }
.visitor-item strong { display: block; margin-top: 7px; color: var(--text-strong); font: 500 12px/1.5 var(--mono); direction: auto; }
.visitor-time strong { color: var(--green); letter-spacing: .08em; }
.privacy-note { margin: 0; padding: 9px 10px; color: var(--dim); border-top: 1px solid var(--line); font-size: 9px; line-height: 1.7; direction: ltr; }
.skeleton-text { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.main-content {
  margin-left: var(--sidebar-width);
  margin-right: var(--toc-width);
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  padding: 30px clamp(18px, 4vw, 64px) 70px;
  overflow: auto;
}
.content-frame { max-width: 900px; margin: 0 auto; }
.article-statusbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: var(--dim);
  background: rgba(8,13,10,.7);
  font: 500 9px/1 var(--mono);
  letter-spacing: .05em;
}
.status-code b { color: var(--green); }
.markdown-body {
  min-height: 520px;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(circle at 80% 5%, rgba(125,255,158,.035), transparent 25%),
    rgba(8, 12, 10, .82);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.markdown-body[data-direction="rtl"] { direction: rtl; text-align: right; }
.markdown-body[data-direction="ltr"] { direction: ltr; text-align: left; }
.markdown-body[data-direction="auto"] { direction: auto; }

.markdown-body > :first-child { margin-top: 0 !important; }
.markdown-body > :last-child { margin-bottom: 0 !important; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { position: relative; color: var(--text-strong); line-height: 1.45; scroll-margin-top: 100px; }
.markdown-body h1 { margin: 0 0 32px; font-size: clamp(28px, 4vw, 44px); font-weight: 650; letter-spacing: -.03em; }
.markdown-body h1::after { content: ''; display: block; width: 62px; height: 2px; margin-top: 18px; background: var(--green); box-shadow: 18px 0 0 var(--green-dim), 36px 0 0 var(--line-bright); }
.markdown-body h2 { margin: 58px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 23px; }
.markdown-body h3 { margin: 36px 0 12px; font-size: 18px; }
.markdown-body h4 { margin: 28px 0 10px; color: var(--amber); font-size: 15px; }
.heading-anchor { position: absolute; inset-inline-start: -25px; color: var(--green-dim); text-decoration: none; opacity: 0; font: 500 13px var(--mono); }
.markdown-body h1:hover .heading-anchor, .markdown-body h2:hover .heading-anchor, .markdown-body h3:hover .heading-anchor { opacity: 1; }
.markdown-body p { margin: 0 0 18px; color: #b8c2bb; font-size: 15.5px; line-height: 2.05; }
.markdown-body strong { color: var(--text-strong); font-weight: 650; }
.markdown-body a { color: var(--green); text-decoration-color: rgba(125,255,158,.35); text-underline-offset: 4px; }
.markdown-body a:hover { text-decoration-color: var(--green); }
.external-icon { margin-inline-start: 4px; font: 500 10px var(--mono); }
.markdown-body ul, .markdown-body ol { margin: 0 0 22px; padding-inline-start: 25px; color: #b8c2bb; }
.markdown-body li { margin: 8px 0; line-height: 1.9; }
.markdown-body li::marker { color: var(--green-dim); }
.markdown-body blockquote { margin: 28px 0; padding: 14px 18px; border-inline-start: 3px solid var(--amber); background: rgba(224,182,92,.045); }
.markdown-body blockquote p { margin: 0; color: #c7bea9; }
.markdown-body hr { margin: 45px 0; border: 0; border-top: 1px solid var(--line); }
.markdown-body table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 13px; }
.markdown-body th, .markdown-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: start; }
.markdown-body th { color: var(--green); background: rgba(125,255,158,.035); font-family: var(--mono); font-size: 11px; }
.markdown-body code { direction: ltr; font-family: var(--mono); }
.markdown-body :not(pre) > code { padding: 2px 6px; color: #a4f9b9; border: 1px solid rgba(125,255,158,.16); background: rgba(125,255,158,.055); border-radius: 2px; font-size: .84em; }
.markdown-body pre { position: relative; margin: 0 0 26px; padding: 20px; overflow: auto; direction: ltr; text-align: left; border: 1px solid var(--line); border-top: 0; background: #040705; scrollbar-width: thin; }
.markdown-body pre code { display: block; color: #ccd5ce; line-height: 1.75; font-size: 12.5px; }
.code-toolbar { min-height: 34px; display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding: 0 9px 0 12px; direction: ltr; border: 1px solid var(--line); background: #0b100d; color: var(--dim); font: 500 9px var(--mono); text-transform: uppercase; }
.code-toolbar button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font: 500 10px var(--fa); }
.code-toolbar button:hover { color: var(--green); }
.code-toolbar svg { width: 13px; height: 13px; }

.hljs-keyword, .hljs-selector-tag, .hljs-built_in { color: #f0c36a; }
.hljs-string, .hljs-attr { color: #9be7ae; }
.hljs-number, .hljs-literal { color: #e49b9b; }
.hljs-comment { color: #526158; font-style: italic; }
.hljs-title, .hljs-section { color: #9fc9ff; }

.markdown-body[aria-busy="true"] { cursor: progress; }
.error-state { max-width: 640px; margin: 40px auto; padding: 24px; direction: ltr; border: 1px solid rgba(232,121,121,.35); background: rgba(232,121,121,.035); }
.error-state > span { color: var(--danger); font: 500 10px var(--mono); }
.error-state h1 { font-size: 25px; margin: 12px 0; }
.error-state code { display: block; margin-top: 16px; white-space: normal; }

/* Right-side document outline */
.toc-sidebar {
  position: fixed;
  z-index: 20;
  top: var(--header-height);
  right: 0;
  bottom: var(--footer-height);
  width: var(--toc-width);
  padding: 24px 18px;
  overflow-y: auto;
  border-left: 1px solid var(--line-bright);
  background: rgba(8, 12, 10, .88);
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}
.toc-heading {
  margin-bottom: 16px;
  padding-bottom: 11px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font: 650 9px/1 var(--mono);
  letter-spacing: .11em;
}
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  position: relative;
  display: block;
  padding: 7px 8px 7px 14px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  text-decoration: none;
  font: 500 10px/1.55 var(--mono);
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.toc-link::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: transparent;
}
.toc-link:hover { color: var(--text-strong); background: rgba(125,255,158,.025); }
.toc-link.active { color: var(--green); border-color: var(--green-dim); background: rgba(125,255,158,.04); }
.toc-link.active::before { background: var(--green); box-shadow: 0 0 8px rgba(125,255,158,.45); }
.toc-level-3 { padding-left: 25px; color: #6f7e75; font-size: 9px; }
.toc-level-4 { padding-left: 36px; color: var(--dim); font-size: 8.5px; }
.toc-empty { display: block; padding: 8px 0; color: var(--dim); font: 500 9px/1.6 var(--mono); }

/* Continuous The Hacker News ticker */
.news-ticker {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-height);
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line-bright);
  background: rgba(4, 7, 5, .98);
  box-shadow: 0 -10px 35px rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
}
.ticker-brand {
  position: relative;
  z-index: 2;
  min-width: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--text-strong);
  border-right: 1px solid var(--line-bright);
  background: #0b100d;
  box-shadow: 14px 0 24px rgba(0,0,0,.48);
  font: 750 12px/1 var(--mono);
  letter-spacing: .12em;
}
.ticker-brand strong { color: var(--amber); font: inherit; text-shadow: 0 0 13px rgba(255,190,74,.22); }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track {
  --ticker-duration: 90s;
  width: max-content;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  animation: tickerScroll var(--ticker-duration) linear infinite;
  will-change: transform;
}
.ticker-track.is-static { animation: none; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-segment { display: flex; align-items: center; flex-shrink: 0; }
.ticker-item { display: inline-flex; align-items: center; gap: 11px; padding-left: 20px; white-space: nowrap; color: inherit; text-decoration: none; font: 500 10px/1 var(--mono); }
.ticker-item:hover .ticker-paper-title { color: var(--amber); }
.ticker-paper-title { max-width: 520px; overflow: hidden; text-overflow: ellipsis; color: var(--text-strong); font-weight: 700; transition: color .16s ease; }
.ticker-description { max-width: 840px; overflow: hidden; text-overflow: ellipsis; color: #9ca9a0; }
.ticker-separator { margin-left: 10px; color: var(--line-bright); font-size: 7px; }
.ticker-loading { padding-left: 20px; color: var(--dim); font: 600 9px/1 var(--mono); letter-spacing: .08em; }
.ticker-error { color: var(--critical); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.sidebar-backdrop { display: none; }


/* Markdown and MDX-style image support */
.markdown-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.4rem auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
}

.markdown-body img[fullwidth="true"],
.markdown-body img[data-fullwidth="true"] {
  width: 100%;
}

.markdown-body img[align="left"] {
  margin-left: 0;
  margin-right: auto;
}

.markdown-body img[align="right"] {
  margin-left: auto;
  margin-right: 0;
}


@media (max-width: 1150px) {
  .toc-sidebar { display: none; }
  .main-content { margin-right: 0; }
}

@media (max-width: 900px) {
  :root { --header-height: 64px; }
  .mobile-menu-button { display: inline-grid; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .social-nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .social-nav::-webkit-scrollbar { display: none; }
  .social-nav a { width: 36px; padding: 0; justify-content: center; border-color: var(--line); }
  .social-nav a span { display: none; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 30px 0 80px rgba(0,0,0,.5); }
  .sidebar-topline { display: flex; min-height: 30px; padding-bottom: 10px; }
  .sidebar-close { display: inline-grid; width: 30px; height: 30px; }
  .sidebar-backdrop { position: fixed; z-index: 25; inset: var(--header-height) 0 var(--footer-height); display: block; opacity: 0; pointer-events: none; background: rgba(0,0,0,.68); transition: opacity .25s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .main-content { margin-left: 0; }
}

@media (max-width: 620px) {
  .header-inner { padding: 0 8px; gap: 7px; }
  .mobile-menu-button { width: 34px; height: 34px; flex: 0 0 auto; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
  .brand-mark img { max-width: 23px; max-height: 23px; }
  .brand-copy strong { font-size: 11px; }
  .social-nav { gap: 3px; }
  .social-nav a { width: 30px; min-height: 30px; }
  .social-nav svg { width: 13px; height: 13px; }
  .social-nav a[aria-label="Docker Hub"] svg { width: 15px; height: 12px; }
  .main-content { padding: 18px 10px 70px; }
  .markdown-body { padding: 32px 20px 46px; }
  .markdown-body h1 { font-size: 29px; }
  .markdown-body h2 { font-size: 21px; }
  .article-statusbar { overflow: hidden; white-space: nowrap; }
  .article-statusbar > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .status-code { display: none; }
  .ticker-brand { min-width: 86px; padding: 0 10px; font-size: 10px; }
  .ticker-item { gap: 8px; padding-left: 14px; font-size: 9px; }
  .ticker-paper-title { max-width: 260px; }
  .ticker-description { max-width: 420px; }
}

@media (max-width: 420px) {
  .brand-mark { display: none; }
  .brand { gap: 0; }
}

/* Copy feedback */
.code-toolbar button {
  min-width: 82px;
  justify-content: flex-end;
  border-radius: 2px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.code-toolbar button.is-copied {
  color: var(--green);
  background: rgba(125,255,158,.08);
  box-shadow: inset 0 0 0 1px rgba(125,255,158,.18);
}
.code-toolbar button.has-error {
  color: var(--danger);
  background: rgba(232,121,121,.08);
  box-shadow: inset 0 0 0 1px rgba(232,121,121,.2);
}

/* Per-document comment action */
.article-comment-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.comment-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  color: #e9ddff !important;
  border: 1px solid rgba(181,108,255,.46);
  background: linear-gradient(135deg, rgba(181,108,255,.14), rgba(102,79,255,.055));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015), 0 0 24px rgba(181,108,255,.08);
  text-decoration: none !important;
  font: 650 10px/1 var(--mono);
  letter-spacing: .08em;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.comment-button:hover {
  color: #fff !important;
  border-color: #c48aff;
  background: linear-gradient(135deg, rgba(181,108,255,.23), rgba(102,79,255,.09));
  box-shadow: 0 0 30px rgba(181,108,255,.16);
  transform: translateY(-1px);
}
.comment-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c48aff;
  box-shadow: 0 0 0 5px rgba(196,138,255,.09), 0 0 14px #b56cff;
  animation: commentPulse 1.65s infinite;
}
.comment-arrow { color: #c48aff; font-size: 12px; transition: transform .18s ease; }
.comment-button:hover .comment-arrow { transform: translate(2px, -2px); }
@keyframes commentPulse {
  50% { opacity: .45; box-shadow: 0 0 0 2px rgba(196,138,255,.04), 0 0 7px #b56cff; }
}

@media (max-width: 620px) {
  .article-comment-cta { margin-top: 42px; }
  .comment-button { width: 100%; justify-content: center; }
}

/* Interactive severity filters and Recent Incidents feed */
.severity-card {
  width: 100%;
  appearance: none;
  text-align: left;
  cursor: pointer;
  transition: border-color .17s ease, box-shadow .17s ease, background .17s ease, transform .17s ease;
}
.severity-card:hover {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent), 0 0 18px color-mix(in srgb, currentColor 8%, transparent);
  transform: translateY(-1px);
}
.severity-card.active {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 26%, transparent), 0 0 22px color-mix(in srgb, currentColor 11%, transparent);
}
.severity-card.active::before { height: 3px; }

.recent-incidents {
  border-top: 1px solid var(--line-bright);
  background: rgba(3, 6, 4, .42);
}
.recent-incidents-heading {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: var(--text-strong);
  border-bottom: 1px solid var(--line);
  font: 650 9px/1 var(--mono);
  letter-spacing: .075em;
}
.incident-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.incident-summary strong {
  color: currentColor;
  font-size: 12px;
  line-height: 1;
}
.incident-summary span { color: currentColor; }
.recent-incidents-list {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}
.incident-item {
  position: relative;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  min-height: 92px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.006);
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.incident-item:last-child { border-bottom: 0; }
.incident-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.025);
}
.incident-color-bar {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--incident-color, currentColor);
  box-shadow: 0 0 12px var(--incident-color, currentColor);
}
.incident-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 10px 12px 11px;
}
.incident-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.incident-cve-badge {
  max-width: 165px;
  padding: 4px 6px;
  overflow: hidden;
  color: #070a08;
  background: var(--incident-color, currentColor);
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 750 8px/1 var(--mono);
  letter-spacing: .035em;
}
.incident-topline time {
  flex: 0 0 auto;
  color: var(--dim);
  font: 600 7px/1 var(--mono);
  letter-spacing: .035em;
}
.incident-description {
  display: -webkit-box;
  overflow: hidden;
  color: #94a198;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font: 500 9px/1.55 var(--mono);
}
.incident-item:hover .incident-description { color: #b3beb6; }
.incident-loading,
.incident-empty {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--dim);
  text-align: center;
  font: 600 8px/1.6 var(--mono);
  letter-spacing: .055em;
}
.incident-critical { --incident-color: var(--critical); color: var(--critical); }
.incident-high { --incident-color: var(--high); color: var(--high); }
.incident-medium { --incident-color: var(--medium); color: var(--medium); }
.incident-low { --incident-color: var(--low); color: var(--low); }
.incident-unscored { --incident-color: var(--muted); color: var(--muted); }

@media (max-width: 900px) {
  .recent-incidents-list { max-height: 380px; }
}

/* Algolia documentation search */
.search-box.is-searching { border-color: var(--green-dim); }
.search-box.is-searching kbd {
  color: transparent;
  position: relative;
  min-width: 22px;
}
.search-box.is-searching kbd::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  inset: 50% auto auto 50%;
  border: 1px solid var(--dim);
  border-top-color: var(--green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: search-spin .7s linear infinite;
}
@keyframes search-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.search-hint {
  padding: 18px 10px;
  color: var(--dim);
  border: 1px dashed var(--line);
  font: 500 10px/1.65 var(--mono);
  letter-spacing: .04em;
  text-align: center;
}
.search-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 3px 8px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font: 600 9px/1 var(--mono);
  letter-spacing: .08em;
}
.search-results-summary strong { color: var(--green); font-weight: 600; }
.search-results-list { display: grid; gap: 7px; }
.search-result {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 11px 10px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.search-result::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--green-dim);
}
.search-result:hover {
  border-color: var(--green-dim);
  background: rgba(125,255,158,.035);
  transform: translateX(2px);
}
.search-result-kicker,
.search-result-path {
  color: var(--dim);
  font: 500 8.5px/1.4 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.search-result-title {
  color: var(--text-strong);
  font: 600 12px/1.35 var(--sans);
}
.search-result-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font: 400 10px/1.45 var(--sans);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.search-result-path { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-result mark {
  padding: 0 1px;
  color: #061008;
  background: var(--green);
}
