/* Managed by Ansible (roles/githost/templates/cgit-about.css.j2).
   Styling for lowdown-rendered markdown on the cgit About tab AND in tree
   blob view (source-filter emits the same bare-HTML fragment; the blob page
   wraps it in a table.blob context instead of div#summary, so selectors cover
   both). Stock cgit.css only collapses tables (div#cgit table) — it draws no
   borders outside its own .list tables. Loaded via cgitrc css=/cgit-about.css;
   the @import pulls the stock theme first so these rules override it. */
@import url("/cgit-css/cgit.css");

div#cgit div#summary table,
div#cgit table.blob table,
div#cgit div.blob table {
	border-collapse: collapse;
	margin: 1em 0;
}

div#cgit div#summary th,
div#cgit div#summary td,
div#cgit table.blob th,
div#cgit table.blob td,
div#cgit div.blob th,
div#cgit div.blob td {
	border: 1px solid #ccc;
	padding: 0.35em 0.6em;
	text-align: left;
}

div#cgit div#summary pre,
div#cgit table.blob pre,
div#cgit div.blob pre {
	padding: 0.6em;
	background: #f5f5f5;
	overflow-x: auto;
}

div#cgit div#summary p code,
div#cgit div#summary li code,
div#cgit table.blob p code,
div#cgit table.blob li code,
div#cgit div.blob p code,
div#cgit div.blob li code {
	background: #f5f5f5;
	padding: 0 0.25em;
}

/* Mermaid diagrams (client-rendered; see cgit-head-mermaid.html.j2). */
div#cgit div.mermaid {
	text-align: center;
	margin: 1em 0;
}

div#cgit div.mermaid svg {
	max-width: 100%;
	height: auto;
}

div#cgit details.mermaid-source {
	margin: 0 0 1em 0;
}

div#cgit details.mermaid-source summary {
	cursor: pointer;
	color: #555;
}
