/* core-jmp Exploits Pulse — table (type / edb-id / platform / exploit / date) + filters.
   Inherits theme tokens via var(--token, fallback). */
.cjex{
  --cx-bg:var(--bg,#fff);
  --cx-alt:var(--bg-alt,#f6f7f9);
  --cx-ink:var(--ink,#16181d);
  --cx-soft:var(--ink-soft,#3b4048);
  --cx-mute:var(--ink-mute,#6b7280);
  --cx-line:var(--line,#e7e9ee);
  --cx-line2:var(--line-strong,#d5d8df);
  --cx-accent:var(--accent-ink,#8f1526);
  --cx-mono:var(--mono,ui-monospace,"JetBrains Mono","SF Mono",Menlo,monospace);
  --cx-radius:var(--radius,10px);
  /* exploit-type colors */
  --t-remote:#b3261e; --t-local:#d64510; --t-webapps:#b7791f; --t-dos:#3a6ea5; --t-shellcode:#7c5cbf; --t-other:#8a919e;
  margin:8px 0;color:var(--cx-ink)
}
.cjex *{box-sizing:border-box}

.cjex-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--cx-line2)}
.cjex-title{font-family:var(--cx-mono);font-size:15px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin:0;color:var(--cx-ink)}
.cjex-title .cjex-addr{color:var(--cx-accent)}
.cjex-more{font-family:var(--cx-mono);font-size:13px;color:var(--cx-mute);text-decoration:none}
.cjex-more:hover{color:var(--cx-accent)}

/* filter bar */
.cjex-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.cjex-search{display:flex;align-items:center;gap:8px;border:1px solid var(--cx-line);border-radius:9px;
  padding:0 12px;background:var(--cx-bg);flex:1 1 260px;min-width:200px;max-width:380px}
.cjex-search svg{width:15px;height:15px;color:var(--cx-mute);flex:none}
.cjex-q{border:0;outline:0;background:transparent;font-family:inherit;font-size:14px;color:var(--cx-ink);padding:9px 0;width:100%}
.cjex-typebtns{display:flex;gap:6px;flex-wrap:wrap}
.cjex-fb{font-family:var(--cx-mono);font-size:11.5px;line-height:1;border:1px solid var(--cx-line);
  background:var(--cx-bg);color:var(--cx-soft);border-radius:8px;padding:7px 11px;cursor:pointer;
  display:inline-flex;gap:7px;align-items:center;transition:border-color .12s,background .12s,color .12s}
.cjex-fb::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--cx-mute);flex:none}
.cjex-fb[data-type="all"]::before{display:none}
.cjex-fb[data-type="remote"]::before{background:var(--t-remote)}
.cjex-fb[data-type="local"]::before{background:var(--t-local)}
.cjex-fb[data-type="webapps"]::before{background:var(--t-webapps)}
.cjex-fb[data-type="dos"]::before{background:var(--t-dos)}
.cjex-fb[data-type="shellcode"]::before{background:var(--t-shellcode)}
.cjex-fb b{color:var(--cx-mute);font-weight:600}
.cjex-fb:hover{border-color:var(--cx-line2)}
.cjex-fb.is-on{background:var(--cx-ink);color:#fff;border-color:var(--cx-ink)}
.cjex-fb.is-on b{color:rgba(255,255,255,.72)}

/* table */
.cjex-feed{border:1px solid var(--cx-line);border-radius:var(--cx-radius);overflow:hidden;background:var(--cx-bg)}
.cjex-thead{display:grid;grid-template-columns:82px 108px 126px 90px minmax(0,1fr) 96px;gap:14px;
  padding:11px 16px;border-bottom:1px solid var(--cx-line);background:var(--cx-alt);
  font-family:var(--cx-mono);font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--cx-mute)}
.cjex-thead span:nth-child(6){text-align:right}
.cjex-row{display:grid;grid-template-columns:82px 108px 126px 90px minmax(0,1fr) 96px;gap:14px;align-items:center;
  padding:12px 16px;border-bottom:1px solid var(--cx-line);border-left:3px solid var(--t-other);
  color:var(--cx-ink);text-decoration:none;transition:background .12s;cursor:pointer}
.cjex-row:last-child{border-bottom:0}
.cjex-row:hover{background:var(--cx-alt);text-decoration:none}
.cjex-row a{text-decoration:none}
.cjex-type{font-family:var(--cx-mono);font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  text-align:center;padding:4px 6px;border-radius:6px;color:#fff;background:var(--t-other);white-space:nowrap}
.cjex-id{font-family:var(--cx-mono);font-size:13px;font-weight:600;color:var(--cx-accent);white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.cjex-id:hover{text-decoration:underline}
.cjex-cve{font-family:var(--cx-mono);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cjex-cve a{color:var(--cx-accent)}
.cjex-cve a:hover{text-decoration:underline}
.cjex-dash{color:var(--cx-mute)}
.cjex-ok{color:#3f7d55;font-weight:700}
.cjex-plat{font-family:var(--cx-mono);font-size:12px;color:var(--cx-soft);background:var(--cx-alt);border:1px solid var(--cx-line);
  border-radius:6px;padding:2px 7px;justify-self:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cjex-desc{font-size:14px;color:var(--cx-soft);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.cjex-date{font-family:var(--cx-mono);font-size:11.5px;color:var(--cx-mute);text-align:right;white-space:nowrap}

/* type coloring: left stripe + pill */
.cjex-t-remote{border-left-color:var(--t-remote)} .cjex-t-remote .cjex-type{background:var(--t-remote)}
.cjex-t-local{border-left-color:var(--t-local)} .cjex-t-local .cjex-type{background:var(--t-local)}
.cjex-t-webapps{border-left-color:var(--t-webapps)} .cjex-t-webapps .cjex-type{background:var(--t-webapps)}
.cjex-t-dos{border-left-color:var(--t-dos)} .cjex-t-dos .cjex-type{background:var(--t-dos)}
.cjex-t-shellcode{border-left-color:var(--t-shellcode)} .cjex-t-shellcode .cjex-type{background:var(--t-shellcode)}

.cjex-empty{padding:26px 14px;text-align:center;color:var(--cx-mute);font-size:14px}
.cjex-note{font-family:var(--cx-mono,monospace);font-size:13px;color:#8f1526;background:#f7e6e9;
  border:1px solid rgba(178,30,53,.25);border-radius:8px;padding:10px 14px;margin:8px 0}
.cjex-note a{color:inherit}

@media (max-width:720px){
  .cjex-thead{display:none}
  .cjex-row{grid-template-columns:auto minmax(0,1fr);gap:3px 10px;padding:11px 13px}
  .cjex-type{grid-column:1;grid-row:1/span 3;align-self:start}
  .cjex-id{grid-column:2;grid-row:1}
  .cjex-cve{display:none}
  .cjex-plat{grid-column:2;grid-row:2;justify-self:start}
  .cjex-desc{grid-column:2;grid-row:3;white-space:normal}
  .cjex-date{display:none}
}
