/* core-jmp GitHub Projects — card grid ("брусчатка"), matches the theme's post cards.
   Inherits theme tokens via var(--token, fallback) so it looks native on core-jmp
   and still works on any theme. */
.cjgh{
  --gh-bg:var(--bg,#fff);
  --gh-alt:var(--bg-alt,#f6f7f9);
  --gh-ink:var(--ink,#16181d);
  --gh-soft:var(--ink-soft,#3b4048);
  --gh-mute:var(--ink-mute,#6b7280);
  --gh-line:var(--line,#e7e9ee);
  --gh-line2:var(--line-strong,#d5d8df);
  --gh-accent:var(--accent-ink,#8f1526);
  --gh-accent-soft:var(--accent-soft,#f7e6e9);
  --gh-chip:var(--chip,#eef0f4);
  --gh-mono:var(--mono,ui-monospace,"JetBrains Mono","SF Mono",Menlo,monospace);
  --gh-radius:var(--radius,10px);
  margin:8px 0;color:var(--gh-ink)
}
.cjgh *{box-sizing:border-box}

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

.cjgh-grid{display:grid;grid-template-columns:repeat(var(--cjgh-cols,3),minmax(0,1fr));
  background:var(--gh-bg);border:1px solid var(--gh-line);border-radius:var(--gh-radius);overflow:hidden}
@media (min-width:1361px){ .cjgh-grid{--cjgh-cols:4} }
@media (max-width:1000px){ .cjgh-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important} }
@media (max-width:640px){ .cjgh-grid{grid-template-columns:1fr!important} }

.cjgh-card{background:var(--gh-bg);display:flex;flex-direction:column;min-width:0;
  border-right:1px solid var(--gh-line);border-bottom:1px solid var(--gh-line);transition:background .15s}
.cjgh-card:hover{background:var(--gh-alt)}

.cjgh-cover{position:relative;display:block;aspect-ratio:2/1;overflow:hidden;background:#0e131c;
  border-bottom:1px solid var(--gh-line)}
.cjgh-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cjgh-cover .cjgh-wm{position:absolute;inset:0;display:none;place-items:center;font-family:var(--gh-mono);
  font-size:34px;font-weight:600;color:rgba(255,255,255,.5);letter-spacing:.02em}
.cjgh-cover.cjgh-noimg img{display:none}
.cjgh-cover.cjgh-noimg .cjgh-wm{display:grid}
.cjgh-cover .cjgh-badge{position:absolute;top:10px;right:10px;font-family:var(--gh-mono);font-size:10px;
  letter-spacing:.06em;text-transform:uppercase;color:#fff;background:rgba(10,12,18,.6);
  border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:3px 7px;backdrop-filter:blur(4px)}

.cjgh-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.cjgh-tags{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.cjgh-tag{font-family:var(--gh-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--gh-accent);background:var(--gh-accent-soft);border:1px solid rgba(178,30,53,.22);
  padding:3px 8px;border-radius:6px}
.cjgh-chip{font-family:var(--gh-mono);font-size:11px;color:var(--gh-soft);background:var(--gh-chip);padding:3px 8px;border-radius:6px}
.cjgh-name{font-size:19px;line-height:1.28;letter-spacing:-.015em;margin:1px 0 0;font-weight:700}
.cjgh-name a{color:var(--gh-ink);text-decoration:none}
.cjgh-name a:hover{color:var(--gh-accent)}
.cjgh-desc{margin:0;font-size:14.5px;line-height:1.5;color:var(--gh-soft)}
.cjgh-foot{margin-top:auto;padding-top:10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  font-family:var(--gh-mono);font-size:12px;color:var(--gh-mute)}
.cjgh-foot .cjgh-repo{margin-left:auto;color:var(--gh-accent);text-decoration:none}
.cjgh-foot .cjgh-repo:hover{text-decoration:underline}
.cjgh-foot .cjgh-live{color:var(--gh-soft);text-decoration:none}
.cjgh-foot .cjgh-live:hover{color:var(--gh-accent)}

.cjgh-note{font-family:var(--gh-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}
.cjgh-note a{color:inherit}
