/* noctis — site stylesheet (landing + docs). No web fonts: system stacks only (no render-blocking requests). */
:root {
  --bg: #080b12;
  --bg-2: #0b1018;
  --panel: #0f1521;
  --panel-2: #121a28;
  --line: rgba(148, 178, 214, 0.12);
  --line-2: rgba(148, 178, 214, 0.2);
  --text: #e6edf6;
  --muted: #93a4ba;
  --dim: #8494aa;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --grad: linear-gradient(92deg, #2dd4bf 0%, #22d3ee 50%, #38bdf8 100%);
  --radius: 14px;
  --max: 1140px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
section { padding: 88px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 40px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 11, 18, .78); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .pill { color: var(--text); border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px; }
.nav-links .pill:hover { border-color: var(--teal); }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--teal); }
.btn-primary { background: var(--grad); color: #04121a; border: 0; box-shadow: 0 8px 30px rgba(34, 211, 238, .25); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(34, 211, 238, .38); }

/* ── hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 80px;
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(45, 212, 191, .14), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgba(56, 189, 248, .12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(56, 189, 248, .09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; text-wrap: balance; }
section h2 { text-wrap: balance; }
.hero p.sub { color: var(--muted); font-size: 19px; margin: 0 0 32px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.badge-new {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px 5px 6px; margin-bottom: 22px;
}
.badge-new b { background: var(--grad); color: #04121a; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.copy {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  background: rgba(15, 21, 33, .8); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 16px;
}
.copy .p { color: var(--teal); }
.copy span.cmd { overflow-x: auto; white-space: nowrap; min-width: 0; }
.copy button {
  border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: 7px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: var(--sans);
}
.copy button:hover { border-color: var(--teal); }

/* ── terminal ────────────────────────────────────────── */
.term {
  background: linear-gradient(180deg, #0f1622, #0b111b);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(45, 212, 191, .05), 0 0 60px rgba(34, 211, 238, .08);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3444; display: inline-block; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.term pre { margin: 0; padding: 18px 20px; font-size: 13.5px; line-height: 1.65; overflow-x: auto; color: #c9d6e6; }

/* syntax colours (hand-tagged) */
.c-p { color: var(--teal); } .c-cmd { color: #e6edf6; } .c-cm { color: #8494aa; }
.c-k { color: #7dd3fc; } .c-s { color: #a7f3d0; } .c-n { color: #fca5a5; } .c-b { color: #fbbf24; }
.c-crit { color: #f87171; font-weight: 600; } .c-v { color: #c4b5fd; }

/* ── stats ───────────────────────────────────────────── */
.stats { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ── steps / cards ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step, .card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover, .card:hover { border-color: rgba(45, 212, 191, .35); transform: translateY(-2px); }
.step::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); color: #04121a; font-weight: 800; margin-bottom: 16px;
}
.step h3, .card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.step p, .card p { margin: 0; color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .25); color: var(--teal);
}
.card .ic svg { width: 22px; height: 22px; }
.card code { font-size: 13px; color: var(--text); background: rgba(148, 178, 214, .1); padding: 1px 6px; border-radius: 5px; }

/* ── showcase ────────────────────────────────────────── */
.showcase { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.notes { list-style: none; padding: 0; margin: 22px 0 0; }
.notes li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.notes li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.notes b { color: var(--text); }

/* ── comparison ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: var(--panel); }
.cmp td:first-child { color: var(--muted); }
.cmp .us { background: rgba(45, 212, 191, .06); color: var(--text); font-weight: 600; }
.cmp thead .us { color: var(--teal); }
.cmp .meh { color: var(--dim); }

/* ── coverage chips ──────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel); }
.chip.hl { color: #bff7ec; border-color: rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .08); }
.chips-label { text-align: center; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 30px 0 14px; }

/* ── quickstart ──────────────────────────────────────── */
.qs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.qs h3 { margin: 0 0 12px; font-size: 17px; }

/* ── final CTA + footer ──────────────────────────────── */
.final {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(34, 211, 238, .14), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.final h2 { font-size: clamp(30px, 4.4vw, 46px); }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; margin-top: 30px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 46px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap, .split, .qs { grid-template-columns: minmax(0, 1fr); }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .tabs .wrap { padding-left: 2px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  .nav-links { gap: 16px; }
  .wrap { padding: 0 16px; }
}

/* ── a11y helpers ────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--grad); color: #04121a; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.nav-links a.current { color: var(--text); }

/* ── header search (all pages) ───────────────────────── */
.hsearch { position: relative; }
.hsearch-toggle { display: none; background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; }
.hsearch-toggle:hover { color: var(--text); }
.hsearch input {
  width: 190px; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); transition: width .2s ease;
}
.hsearch input::placeholder { color: var(--dim); }
.hsearch input:focus { outline: none; width: 240px; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, .15); }
.search-results {
  position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 32px); z-index: 30;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-height: 65vh; overflow-y: auto;
}
.search-results a { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: rgba(45, 212, 191, .07); text-decoration: none; }
.search-results a span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.search-results mark { background: rgba(45, 212, 191, .25); color: var(--text); border-radius: 3px; padding: 0 2px; }
.search-results a.sr-catalog { color: var(--teal); font-weight: 600; background: rgba(45, 212, 191, .04); }
.search-results .sr-none { margin: 0; padding: 11px 14px; color: var(--muted); font-size: 14px; }

/* ── docs: tab bar under the header ──────────────────── */
/* same container width as the landing page, so the header never moves between pages */
.tabs { border-top: 1px solid var(--line); }
.tabs .wrap { padding-left: 10px; display: flex; justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: stretch; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex; align-items: center; padding: 0 14px; white-space: nowrap;
  color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--teal); }

/* ── docs: content + "on this page" ──────────────────── */
.docs {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px;
}
.doc-main { padding: 44px 0 64px; min-width: 0; max-width: 820px; }
.toc { position: sticky; top: 112px; align-self: start; padding: 44px 0; font-size: 14px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.toc-list ul { list-style: none; margin: 0; padding: 0; }
.toc-list li a { display: block; padding: 4px 0 4px 12px; color: var(--muted); border-left: 1px solid var(--line-2); }
.toc-list li.sub a { padding-left: 24px; font-size: 13px; }
.toc-list li a:hover, .toc-list li a.active { color: var(--teal); border-left-color: var(--teal); text-decoration: none; }
.toc-inline { display: none; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.toc-inline summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.toc-inline .toc-list { padding: 0 14px 12px; }

/* ── prose ───────────────────────────────────────────── */
.prose { font-size: 16px; line-height: 1.75; color: #cdd8e6; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.025em; color: var(--text); margin: 0 0 18px; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; color: var(--text); margin: 48px 0 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 20px; color: var(--text); margin: 32px 0 10px; }
.prose h2, .prose h3 { scroll-margin-top: 130px; position: relative; }
.prose .anchor { position: absolute; margin-left: 10px; color: var(--dim); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; text-decoration: none; }
/* Hover-only link: on a narrow screen it would overflow a heading that fills its line. */
@media (max-width: 700px) { .prose .anchor { display: none; } }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose div.highlighter-rouge { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose a { color: var(--sky); text-decoration: underline; text-decoration-color: rgba(56, 189, 248, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--sky); }
.prose :not(pre) > code {
  font-size: .88em; color: var(--text); background: rgba(148, 178, 214, .1);
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); background: var(--panel); }
.prose blockquote { margin-left: 0; padding: 12px 18px; border-left: 3px solid var(--line-2); color: var(--muted); background: var(--panel); border-radius: 0 10px 10px 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote.note { border-left-color: var(--teal); background: rgba(45, 212, 191, .06); color: #cdd8e6; }
.prose blockquote.note::before { content: "Note"; display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }

/* code blocks (kramdown + rouge) */
.prose div.highlighter-rouge { position: relative; background: linear-gradient(180deg, #0f1622, #0b111b); border: 1px solid var(--line-2); border-radius: 12px; }
.prose div.highlighter-rouge pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; background: none; color: #c9d6e6; }
.code-copy {
  position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity .15s;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  border-radius: 7px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-family: var(--sans);
}
.prose div.highlighter-rouge:hover .code-copy, .code-copy:focus { opacity: 1; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp { color: #8494aa; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .nt, .highlight .na { color: #7dd3fc; }
.highlight .kc, .highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: #fca5a5; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sh, .highlight .se, .highlight .sx, .highlight .ss { color: #a7f3d0; }
.highlight .nb, .highlight .nf, .highlight .nx, .highlight .nv { color: #c4b5fd; }
.highlight .o, .highlight .p { color: #9fb1c7; }
.highlight .err { color: inherit; background: none; }

/* pager + edit */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font-weight: 600; }
.pager a:hover { border-color: rgba(45, 212, 191, .4); text-decoration: none; }
.pager a span { display: block; font-size: 12px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.pager .next { text-align: right; grid-column: 2; }
.edit { margin: 22px 0 0; font-size: 14px; }
.edit a { color: var(--muted); }

@media (max-width: 1100px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none !important; }
  .toc-inline { display: block; }
  .doc-main { max-width: none; }
}
@media (max-width: 760px) {
  .hsearch-toggle { display: inline-flex; }
  .hsearch-box { display: none; }
  .hsearch.open .hsearch-box {
    display: block; position: fixed; left: 0; right: 0; top: 64px; z-index: 40;
    padding: 10px 16px; background: rgba(8, 11, 18, .97); border-bottom: 1px solid var(--line);
  }
  .hsearch.open input, .hsearch.open input:focus { width: 100%; }
  .hsearch.open .search-results { position: static; width: 100%; max-width: none; margin-top: 8px; }
  .docs { padding: 0 16px; }
  .doc-main { padding-top: 28px; }
}

/* ── page shell: footer stays at the bottom of short pages ── */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > footer { margin-top: auto; }
.toc[hidden], .toc-inline[hidden] { display: none !important; }

/* ── 404 ── */
.hero.hero-404 .wrap { grid-template-columns: minmax(0, 1fr); }

/* ── wide docs page (no "on this page" column) ── */
.docs-wide { grid-template-columns: minmax(0, 1fr); }
.docs-wide .doc-main { max-width: none; }

/* ── feed catalog (docs/feeds/, generated by scripts/gen_feed_catalog.py) ── */
.sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; border: 1px solid currentColor; white-space: nowrap; }
.sev-critical { color: #f87171; }
.sev-high { color: #fb923c; }
.sev-medium { color: #facc15; }
.sev-low, .sev-info { color: var(--sky); }
.prose table.feed-meta { font-size: 14px; }
.prose table.feed-meta th { width: 120px; color: var(--dim); font-weight: 500; white-space: nowrap; }
.prose table.feed-meta th, .prose table.feed-meta td { padding: 6px 12px; }

.catalog-controls { margin: 0 0 18px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
#catalog-filter { width: 100%; padding: 12px 16px; border-radius: 12px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2); margin-bottom: 12px; }
#catalog-filter:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.chips-row-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); width: 76px; }
.fchip { font: inherit; font-size: 13px; cursor: pointer; padding: 4px 11px; border-radius: 999px;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line-2); }
.fchip span { color: var(--dim); font-size: 12px; margin-left: 2px; }
.fchip:hover { color: var(--text); border-color: var(--teal); }
.fchip[aria-pressed="true"] { color: #04121a; background: var(--grad); border-color: transparent; font-weight: 600; }
.fchip[aria-pressed="true"] span { color: #04121a; }
.fchip-sev { text-transform: capitalize; }
.fchip-sev.sev-critical:not([aria-pressed="true"]) { color: #f87171; }
.fchip-sev.sev-high:not([aria-pressed="true"]) { color: #fb923c; }
.fchip-sev.sev-medium:not([aria-pressed="true"]) { color: #facc15; }
.fchip-sev.sev-low:not([aria-pressed="true"]), .fchip-sev.sev-info:not([aria-pressed="true"]) { color: var(--sky); }
.catalog-count { margin: 6px 0 0 !important; font-size: 14px; color: var(--muted); }
.catalog-empty { color: var(--muted); }

.prose table.catalog { display: table; font-size: 14.5px; }
.prose table.catalog th button { all: unset; cursor: pointer; }
.prose table.catalog th button:hover { color: var(--text); }
.prose table.catalog th[aria-sort="ascending"] button::after { content: " ↑"; }
.prose table.catalog th[aria-sort="descending"] button::after { content: " ↓"; }
.prose table.catalog td { vertical-align: middle; }
.prose table.catalog td:first-child a { font-weight: 600; }
.prose table.catalog .num { text-align: right; width: 70px; }
.prose table.catalog .cves { font-family: var(--mono); font-size: 12.5px; color: var(--muted); max-width: 360px; }
.prose table.catalog .cve { display: inline-block; margin: 1px 6px 1px 0; white-space: nowrap; }
.prose table.catalog .cve.hit { color: #04121a; background: var(--teal); border-radius: 4px; padding: 0 4px; }
.prose table.catalog details.more { display: inline; }
.prose table.catalog details.more summary { display: inline; cursor: pointer; color: var(--teal); list-style: none; }
.prose table.catalog details.more summary::-webkit-details-marker { display: none; }
.prose table.catalog details.more[open] summary { display: none; }
.prose table.catalog .cats code { font-size: 12px; margin: 1px 4px 1px 0; display: inline-block; }
.prose table.catalog .dim { color: var(--dim); }
@media (max-width: 760px) {
  .prose table.catalog { display: block; overflow-x: auto; }
  .chips-row-label { width: 100%; }
}

/* ── product pages: breadcrumb, detection steps, feed source ── */
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose .how-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); margin: 22px 0 8px; }
.prose ol.how { padding-left: 22px; font-size: 15px; }
.prose ol.how li { margin: 4px 0; }
.prose ol.how li.more { list-style: none; color: var(--dim); }
.prose ol.how .fnd { color: var(--teal); font-weight: 600; }
.prose details.feed-src { margin: 0 0 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.prose details.feed-src summary { cursor: pointer; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.prose details.feed-src pre { margin: 0; padding: 14px; max-height: 520px; overflow: auto; font-size: 12.5px;
  border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

/* ── home: keyword kicker above the headline ── */
.hero h1 .kicker { display: block; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px; -webkit-text-fill-color: currentColor; }

/* ── comparison: label column stays visible while the table scrolls ── */
.cmp-table table th:first-child, .cmp-table table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.cmp-table table thead th:first-child { background: var(--panel); }
/* Long URLs, paths and patterns wrap instead of widening the page on a phone. */
.prose { overflow-wrap: break-word; }
.prose a, .prose :not(pre) > code { overflow-wrap: anywhere; }
