/* detections.uig.me. Tokens match uig.me, lab.uig.me and honeypot.uig.me. */
:root {
  --bg: #fbfbfa; --surface: #ffffff; --text: #1f2328; --muted: #5d646d; --border: #e3e4e6;
  --accent: #0b6bcb; --chip: #eef1f4; --code-bg: #f3f4f6; --radius: 8px;
  --high: #b3261e; --medium: #8a5a00; --low: #3d6a2f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --surface: #181c21; --text: #e4e7eb; --muted: #9aa3ad; --border: #2b3139;
    --accent: #5aa9f5; --chip: #232931; --code-bg: #1f242b;
    --high: #ff8a80; --medium: #f0b44c; --low: #8fd17a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418; --surface: #181c21; --text: #e4e7eb; --muted: #9aa3ad; --border: #2b3139;
  --accent: #5aa9f5; --chip: #232931; --code-bg: #1f242b;
  --high: #ff8a80; --medium: #f0b44c; --low: #8fd17a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-weight: 700; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer .credit { margin: 8px 0 0; }

main.wrap { padding-top: 32px; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.lead { color: var(--muted); max-width: 700px; margin: 0; }
.subnav { margin: 0 0 16px; font-size: 14px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
p.meta { display: block; margin-top: 8px; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px; min-width: 150px; flex: 1 1 150px; display: flex; flex-direction: column; }
.stat .num { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: 14px; }

.pipeline { padding-left: 1.4em; max-width: 760px; }
.pipeline li { margin: 6px 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; }
.table-wrap { overflow-x: auto; }
table.coverage { width: 100%; border-collapse: collapse; font-size: 15px; }
.coverage th, .coverage td { text-align: left; padding: 8px 12px 8px 0; border-top: 1px solid var(--border); vertical-align: top; }
.coverage thead th { border-top: 0; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.coverage tbody th { font-weight: 600; white-space: nowrap; }
.coverage td.tech a { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.coverage .tech-name { display: block; color: var(--muted); font-size: 13px; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.rule-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 600; }
.rule p { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }

.chip { font-family: var(--mono); font-size: 12.5px; background: var(--chip); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 6px; color: var(--text); }
.kind { font-size: 12.5px; color: var(--muted); }
.level { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.level.high, .level.critical { color: var(--high); }
.level.medium { color: var(--medium); }
.level.low { color: var(--low); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.05rem; margin: 24px 0 6px; }
pre.code { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0; }
pre.code code { background: none; padding: 0; font-size: inherit; }

@media (max-width: 720px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-header nav { gap: 16px; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 2px; }
  h1 { font-size: 1.6rem; }
}
