/* Custom CSS tweaks for GNNTheory blueprint */

div.theorem_thmcontent {
	border-left: .15rem solid black;
}

div.proposition_thmcontent {
	border-left: .15rem solid black;
}

div.lemma_thmcontent {
	border-left: .1rem solid black;
}

div.corollary_thmcontent {
	border-left: .1rem solid black;
}

div.proof_content {
	border-left: .08rem solid grey;
}

/* Inline Lean 4 Spec and Proof cards */
.lean-spec-card,
.lean-proof-card {
	margin: 0.75rem 0 0.5rem 0;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
	overflow: hidden;
	font-size: 0.9rem;
}

.lean-proof-card {
	border-color: #bbf7d0;
}

.lean-proof-card .lean-spec-header {
	background: #f0fdf4;
	border-bottom-color: #bbf7d0;
}

.lean-spec-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.75rem;
	background: #eef2f7;
	border-bottom: 1px solid #cbd5e1;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 0.82rem;
	color: #334155;
}

.lean-spec-header code {
	background: transparent;
	padding: 0;
	font-size: 0.8rem;
	color: #1e293b;
}

.lean-proof-loc {
	color: #475569;
}

.lean-spec-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.lean-audit-badge {
	display: inline-block;
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 600;
	white-space: nowrap;
}

.lean-audited {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

.lean-pending {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}

a.lean-action-btn {
	display: inline-block;
	padding: 0.12rem 0.52rem;
	border-radius: 4px;
	font-size: 0.74rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease, border-color 0.12s ease;
}

a.lean-btn-approve {
	background: #ffffff;
	color: #15803d;
	border: 1px solid #86efac;
}

a.lean-btn-approve:hover {
	background: #dcfce7;
	border-color: #4ade80;
}

a.lean-btn-dispute {
	background: #ffffff;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

a.lean-btn-dispute:hover {
	background: #fee2e2;
	border-color: #f87171;
}

pre.lean-spec-code {
	margin: 0;
	padding: 0.7rem 0.85rem;
	overflow-x: auto;
	background: #f8fafc;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.84rem;
	line-height: 1.48;
	border: none;
}

pre.lean-spec-code code {
	background: transparent;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
}

/* Lean 4 syntax highlighting */
.ln-kw { color: #7c3aed; font-weight: 600; }
.ln-ty { color: #0369a1; }
.ln-op { color: #b45309; }
.ln-cm { color: #64748b; font-style: italic; }

/* Keep depgraph modal readable when Lean spec is inside */
.dep-modal-content .lean-spec-card {
	text-align: left;
	max-width: 100%;
}
