/* PatchRadar — refined dark technical theme (Arial-like sans, softened) */
:root {
    --bg: #0e1420; --panel: #161d2b; --panel2: #1b2434; --line: #263149; --line2: #1e2839;
    --text: #cdd6e4; --head: #eef2f8; --muted: #8593a8; --dim: #5b6980;
    --green: #45d17f; --blue: #6ea8ff; --amber: #e0a53a;
    --act: #f8716a; --act-bg: rgba(248,113,106,.13); --high: #e8a04a; --high-bg: rgba(232,160,74,.13);
    --med: #d8cc54; --med-bg: rgba(216,204,84,.12); --low: #8593a8; --low-bg: rgba(133,147,168,.12);
    --radius: 8px;
    --sans: Arial, "Helvetica Neue", Helvetica, system-ui, "Segoe UI", sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 13px 22px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; color: var(--green); letter-spacing: -.2px; }
.brand span { color: var(--head); }
.hsearch { flex: 1 1 260px; }
.hsearch input { width: 100%; padding: 9px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.hsearch input:focus { outline: none; border-color: var(--green); }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); font-weight: 600; }
.site-header nav a:hover { color: var(--head); text-decoration: none; }

main.wrap { padding-top: 26px; padding-bottom: 48px; }
h1 { font-size: 27px; margin: 4px 0 12px; color: var(--head); font-weight: 800; letter-spacing: -.4px; }
h2 { font-size: 18px; margin: 30px 0 12px; color: var(--head); font-weight: 700; }
h2 .sub { color: var(--muted); font-weight: 400; font-size: 14px; }
.lead { color: var(--muted); font-size: 16px; max-width: 74ch; }
.lead strong { color: var(--text); }

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; flex: 1 1 auto; }
.stat b { display: block; font-size: 23px; color: var(--head); font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line2); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: var(--panel2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.desc, .desc { color: var(--muted); }
.cveid a { color: var(--blue); font-weight: 700; font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }

/* soft pill badges */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.p-act { color: var(--act); background: var(--act-bg); } .p-high { color: var(--high); background: var(--high-bg); }
.p-med { color: var(--med); background: var(--med-bg); } .p-low { color: var(--low); background: var(--low-bg); }
.sev { font-weight: 700; }
.sev-CRITICAL { color: var(--act); } .sev-HIGH { color: var(--high); } .sev-MEDIUM { color: var(--med); } .sev-LOW { color: var(--low); }
.kev-tag { color: var(--act); font-weight: 700; font-size: 12px; }
.up { color: var(--act); font-weight: 700; }

.btn { display: inline-block; background: var(--green); color: #06210c; border: 1px solid var(--green); border-radius: var(--radius);
       padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-sec { background: transparent; color: var(--text); border-color: var(--line); }
.btn-sec:hover { border-color: var(--green); color: var(--green); }
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.filters label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.filters input, .filters select { padding: 9px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--green); }

/* CVE detail */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.metric .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.metric .v { font-size: 22px; font-weight: 800; color: var(--head); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.reflist { list-style: none; padding: 0; margin: 0; }
.reflist li { padding: 6px 0; border-bottom: 1px solid var(--line2); word-break: break-all; font-size: 13.5px; }
.cvss-table td { font-size: 13.5px; }
.cvss-table .code { font-family: var(--mono); color: var(--green); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 20px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline .date { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.vector { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.pager { display: flex; gap: 10px; margin: 18px 0; align-items: center; color: var(--muted); }
.mono { font-family: var(--mono); }
.feeds { font-size: 13px; color: var(--muted); }
.feeds a { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; padding: 22px 22px 48px; }
.site-footer a { color: var(--muted); }
