/* Brutalist cgit CSS - Matching Evan Cohen's website aesthetic */

div#cgit {
	padding: 0;
	margin: 0;
	font-family: "Kode Mono", monospace;
	font-size: 10pt;
	color: #2a4c3e;
	background: #b29270;
	padding: 1rem;
}

/* Links */
div#cgit a {
	color: #2a4c3e;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.1s ease;
}

div#cgit a:hover {
	text-decoration: none;
	border-bottom-color: #2a4c3e;
}

/* Tables */
div#cgit table {
	border-collapse: collapse;
}

/* Header */
div#cgit table#header {
	width: 100%;
	margin-bottom: 2rem;
	border-bottom: 3px solid #2a4c3e;
}

div#cgit table#header td.logo {
	display: none; /* Remove logo for brutalist aesthetic */
}

div#cgit table#header td.main {
	font-family: "Jacquard 24", serif;
	font-size: 3rem;
	padding: 1rem 0;
	text-transform: capitalize;
}

div#cgit table#header td.main a {
	color: #2a4c3e;
	border: none;
}

div#cgit table#header td.main a:hover {
	border: none;
}

div#cgit table#header td.form {
	text-align: right;
	vertical-align: bottom;
	padding-right: 0;
	padding-bottom: 1rem;
}

div#cgit table#header td.form form,
div#cgit table#header td.form input,
div#cgit table#header td.form select {
	font-family: "Kode Mono", monospace;
	font-size: 90%;
}

div#cgit table#header td.form input,
div#cgit table#header td.form select {
	background: #b29270;
	color: #2a4c3e;
	border: 2px solid #2a4c3e;
	padding: 0.25rem 0.5rem;
}

div#cgit table#header td.sub {
	color: #2a4c3e;
	border-top: none;
	padding: 0.5rem 0;
	font-family: "Kode Mono", monospace;
	text-transform: uppercase;
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Navigation tabs */
div#cgit table.tabs {
	border-bottom: 3px solid #2a4c3e;
	border-collapse: collapse;
	margin-top: 2rem;
	margin-bottom: 0;
	width: 100%;
}

div#cgit table.tabs td {
	padding: 0 1rem;
	vertical-align: bottom;
}

div#cgit table.tabs td a {
	padding: 0.5rem 1rem;
	color: #2a4c3e;
	font-family: "Space Mono", monospace;
	font-size: 1rem;
	text-transform: uppercase;
	border: none;
	display: inline-block;
	transition: background 0.1s ease;
}

div#cgit table.tabs td a:hover {
	background: #2a4c3e;
	color: #b29270;
	border: none;
}

div#cgit table.tabs td a.active {
	background: #2a4c3e;
	color: #b29270;
}

/* External link indicator - simplified */
div#cgit table.tabs a[href^="http://"]:after, 
div#cgit table.tabs a[href^="https://"]:after {
	content: " ↗";
	opacity: 0.5;
	margin-left: 0.25rem;
}

div#cgit table.tabs td.form {
	text-align: right;
}

div#cgit table.tabs td.form form {
	padding-bottom: 0.5rem;
	font-size: 90%;
}

/* Path */
div#cgit div.path {
	margin: 0;
	padding: 1rem 0;
	color: #2a4c3e;
	background: transparent;
	font-family: "Kode Mono", monospace;
	text-transform: uppercase;
	font-size: 0.8rem;
}

/* Content */
div#cgit div.content {
	margin: 0;
	padding: 2rem 0;
	border-bottom: none;
}

/* Lists */
div#cgit table.list {
	width: 100%;
	border: none;
	border-collapse: collapse;
}

div#cgit table.list tr {
	background: transparent;
	border-bottom: 1px solid #2a4c3e;
}

div#cgit table.list tr.logheader {
	background: transparent;
	border-bottom: 2px solid #2a4c3e;
}

div#cgit table.list tr:hover {
	background: rgba(42, 76, 62, 0.1);
}

div#cgit table.list tr.nohover,
div#cgit table.list tr.nohover:hover {
	background: transparent;
}

div#cgit table.list th {
	font-weight: bold;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
	padding: 0.5rem 0.5rem;
	vertical-align: baseline;
	text-align: left;
	border-bottom: 2px solid #2a4c3e;
}

div#cgit table.list td {
	border: none;
	padding: 0.5rem 0.5rem;
	font-family: "Kode Mono", monospace;
}

div#cgit table.list td.commitgraph {
	font-family: monospace;
	white-space: pre;
}

/* Simplified commit graph colors */
div#cgit table.list td.commitgraph .column1,
div#cgit table.list td.commitgraph .column2,
div#cgit table.list td.commitgraph .column3,
div#cgit table.list td.commitgraph .column4,
div#cgit table.list td.commitgraph .column5,
div#cgit table.list td.commitgraph .column6 {
	color: #2a4c3e;
}

div#cgit table.list td.logsubject {
	font-family: "Kode Mono", monospace;
	font-weight: bold;
}

div#cgit table.list td.logmsg {
	font-family: "Kode Mono", monospace;
	white-space: pre;
	padding: 0 0.5rem;
}

div#cgit table.list td a {
	color: #2a4c3e;
}

div#cgit table.list td a.ls-dir {
	font-weight: bold;
	color: #2a4c3e;
}

div#cgit table.list td a:hover {
	color: #2a4c3e;
	border-bottom-color: #2a4c3e;
}

/* Images */
div#cgit img {
	border: none;
	filter: grayscale(100%) contrast(120%);
}

/* Forms and inputs */
div#cgit input, 
div#cgit select,
div#cgit textarea {
	background: #b29270;
	color: #2a4c3e;
	border: 2px solid #2a4c3e;
	padding: 0.25rem 0.5rem;
	font-family: "Kode Mono", monospace;
}

div#cgit input:focus,
div#cgit select:focus,
div#cgit textarea:focus {
	outline: 3px solid #2a4c3e;
	outline-offset: 2px;
}

/* Summary and downloads */
div#cgit div#summary {
	vertical-align: top;
	margin-bottom: 2rem;
}

div#cgit table#downloads {
	float: right;
	border-collapse: collapse;
	border: 2px solid #2a4c3e;
	margin-left: 1rem;
	margin-bottom: 1rem;
}

div#cgit table#downloads th {
	background: #2a4c3e;
	color: #b29270;
	padding: 0.5rem 1rem;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
}

div#cgit table#downloads td {
	padding: 0.5rem 1rem;
}

/* Blob view */
div#cgit div#blob {
	border: 2px solid #2a4c3e;
}

div#cgit div.error {
	color: #2a4c3e;
	font-weight: bold;
	margin: 2rem 0;
	padding: 1rem;
	border: 2px solid #2a4c3e;
	background: rgba(42, 76, 62, 0.1);
}

/* File listing */
div#cgit a.ls-blob, 
div#cgit a.ls-dir, 
div#cgit .ls-mod {
	font-family: "Kode Mono", monospace;
}

div#cgit td.ls-size {
	text-align: right;
	font-family: "Kode Mono", monospace;
	width: 10em;
}

div#cgit td.ls-mode {
	font-family: "Kode Mono", monospace;
	width: 10em;
}

/* Code view */
div#cgit table.blob {
	margin-top: 1rem;
	border-top: 2px solid #2a4c3e;
}

div#cgit table.blob td.hashes,
div#cgit table.blob td.lines {
	margin: 0;
	padding: 0 0 0 0.5em;
	vertical-align: top;
	color: #2a4c3e;
}

div#cgit table.blob td.linenumbers {
	margin: 0;
	padding: 0 0.5em;
	vertical-align: top;
	text-align: right;
	border-right: 1px solid #2a4c3e;
	opacity: 0.5;
}

div#cgit table.blob pre {
	padding: 0;
	margin: 0;
	font-family: "Kode Mono", monospace;
}

div#cgit table.blob td.linenumbers a,
div#cgit table.ssdiff td.lineno a {
	color: #2a4c3e;
	text-align: right;
	text-decoration: none;
	border: none;
	opacity: 0.7;
}

div#cgit table.blob td.linenumbers a:hover,
div#cgit table.ssdiff td.lineno a:hover {
	opacity: 1;
	border: none;
}

/* Blame view */
div#cgit table.blame td.hashes,
div#cgit table.blame td.lines,
div#cgit table.blame td.linenumbers {
	padding: 0;
}

div#cgit table.blame div.alt:nth-child(even) {
	background: rgba(42, 76, 62, 0.05);
}

div#cgit table.blame div.alt:nth-child(odd) {
	background: transparent;
}

div#cgit table.blame .oid {
	font-family: "Kode Mono", monospace;
	font-size: 90%;
}

/* Commit info */
div#cgit table.commit-info {
	border-collapse: collapse;
	margin-top: 2rem;
}

div#cgit table.commit-info th {
	text-align: left;
	font-weight: bold;
	padding: 0.5rem 1rem 0.5rem 0;
	vertical-align: top;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
}

div#cgit table.commit-info td {
	font-weight: normal;
	padding: 0.5rem 1rem 0.5rem 0;
}

div#cgit div.commit-subject {
	font-family: "Space Mono", monospace;
	font-weight: bold;
	font-size: 1.25rem;
	margin: 2rem 0 1rem 0;
	padding: 0;
}

div#cgit div.commit-msg {
	white-space: pre;
	font-family: "Kode Mono", monospace;
	line-height: 1.5;
}

/* Diff stats */
div#cgit div.diffstat-header {
	font-weight: bold;
	padding-top: 2rem;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
}

div#cgit table.diffstat {
	border-collapse: collapse;
	border: 2px solid #2a4c3e;
	background: transparent;
	margin-top: 1rem;
}

div#cgit table.diffstat th {
	font-weight: bold;
	text-align: left;
	padding: 0.5rem 1rem;
	font-size: 100%;
	background: #2a4c3e;
	color: #b29270;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
}

div#cgit table.diffstat td {
	padding: 0.5rem 1rem;
	font-size: 100%;
	border: none;
	border-bottom: 1px solid #2a4c3e;
}

/* Simplified diff colors */
div#cgit table.diffstat td.add a,
div#cgit table.diffstat td.del a,
div#cgit table.diffstat td.upd a {
	color: #2a4c3e;
	font-weight: bold;
}

div#cgit table.diffstat td.graph {
	width: 500px;
	vertical-align: middle;
}

div#cgit table.diffstat td.graph table {
	border: none;
}

div#cgit table.diffstat td.graph td {
	padding: 0;
	border: 0;
	height: 10px;
}

div#cgit table.diffstat td.graph td.add {
	background-color: #2a4c3e;
}

div#cgit table.diffstat td.graph td.rem {
	background-color: transparent;
	border: 1px solid #2a4c3e;
}

/* Diff view */
div#cgit table.diff {
	width: 100%;
}

div#cgit table.diff td {
	font-family: "Kode Mono", monospace;
	white-space: pre;
	border-bottom: 1px solid rgba(42, 76, 62, 0.2);
}

div#cgit table.diff td div.head {
	font-weight: bold;
	margin-top: 1rem;
	color: #2a4c3e;
	padding: 0.5rem 0;
	border-bottom: 2px solid #2a4c3e;
}

div#cgit table.diff td div.hunk {
	color: #2a4c3e;
	background: rgba(42, 76, 62, 0.1);
	padding: 0.25rem 0.5rem;
	margin: 0.5rem 0;
}

div#cgit table.diff td div.add {
	background: rgba(42, 76, 62, 0.1);
	color: #2a4c3e;
	font-weight: bold;
}

div#cgit table.diff td div.del {
	color: #2a4c3e;
	text-decoration: line-through;
	opacity: 0.7;
}

/* Side-by-side diff */
div#cgit table.ssdiff {
	width: 100%;
}

div#cgit table.ssdiff td {
	font-size: 100%;
	font-family: "Kode Mono", monospace;
	white-space: pre;
	padding: 0.25rem 0.5rem;
	border-left: 1px solid #2a4c3e;
	border-right: 1px solid #2a4c3e;
}

div#cgit table.ssdiff td.add,
div#cgit table.ssdiff td.add_dark {
	background: rgba(42, 76, 62, 0.1);
	color: #2a4c3e;
}

div#cgit table.ssdiff td.del,
div#cgit table.ssdiff td.del_dark {
	color: #2a4c3e;
	opacity: 0.7;
	text-decoration: line-through;
}

div#cgit table.ssdiff td.changed,
div#cgit table.ssdiff td.changed_dark {
	background: rgba(42, 76, 62, 0.05);
	color: #2a4c3e;
}

div#cgit table.ssdiff td.lineno {
	color: #2a4c3e;
	background: transparent;
	text-align: right;
	width: 3em;
	min-width: 3em;
	opacity: 0.5;
	border-right: 2px solid #2a4c3e;
}

div#cgit table.ssdiff td.hunk {
	color: #2a4c3e;
	background: rgba(42, 76, 62, 0.1);
	border-top: 2px solid #2a4c3e;
	border-bottom: 2px solid #2a4c3e;
	font-weight: bold;
}

/* Footer */
div#cgit div.footer {
	margin-top: 2rem;
	text-align: center;
	font-size: 0.8rem;
	color: #2a4c3e;
	font-family: "Kode Mono", monospace;
	text-transform: uppercase;
	opacity: 0.7;
}

div#cgit div.footer a {
	color: #2a4c3e;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

div#cgit div.footer a:hover {
	border-bottom-color: #2a4c3e;
}

/* Branch/tag decorations - brutalist style */
div#cgit a.branch-deco,
div#cgit a.tag-deco,
div#cgit a.tag-annotated-deco,
div#cgit a.remote-deco,
div#cgit a.deco {
	color: #b29270;
	background: #2a4c3e;
	margin: 0 0.5rem;
	padding: 0.25rem 0.5rem;
	border: none;
	font-family: "Kode Mono", monospace;
	font-size: 0.8rem;
	text-transform: uppercase;
}

div#cgit a.branch-deco:hover,
div#cgit a.tag-deco:hover,
div#cgit a.tag-annotated-deco:hover,
div#cgit a.remote-deco:hover,
div#cgit a.deco:hover {
	opacity: 0.8;
}

/* Stats tables */
div#cgit table.stats {
	border: 2px solid #2a4c3e;
	border-collapse: collapse;
}

div#cgit table.stats th {
	text-align: left;
	padding: 0.5rem 1rem;
	background: #2a4c3e;
	color: #b29270;
	border: none;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
}

div#cgit table.stats td {
	text-align: right;
	padding: 0.5rem 1rem;
	border-bottom: 1px solid #2a4c3e;
}

div#cgit table.stats td.left {
	text-align: left;
}

/* Age indicators - all same color */
div#cgit span.age-mins,
div#cgit span.age-hours,
div#cgit span.age-days,
div#cgit span.age-weeks,
div#cgit span.age-months,
div#cgit span.age-years {
	color: #2a4c3e;
	opacity: 0.8;
}

div#cgit span.insertions,
div#cgit span.deletions {
	color: #2a4c3e;
	font-weight: bold;
}

/* Syntax highlighting - brutalist monochrome */
div#cgit table.blob .num { color: #2a4c3e; font-weight: bold; }
div#cgit table.blob .esc { color: #2a4c3e; }
div#cgit table.blob .str { color: #2a4c3e; font-style: italic; }
div#cgit table.blob .pps { color: #2a4c3e; }
div#cgit table.blob .slc { color: #2a4c3e; opacity: 0.7; font-style: italic; }
div#cgit table.blob .com { color: #2a4c3e; opacity: 0.7; font-style: italic; }
div#cgit table.blob .ppc { color: #2a4c3e; }
div#cgit table.blob .opt { color: #2a4c3e; }
div#cgit table.blob .lin { color: #2a4c3e; opacity: 0.5; }
div#cgit table.blob .kwa { color: #2a4c3e; font-weight: bold; text-transform: uppercase; }
div#cgit table.blob .kwb { color: #2a4c3e; font-weight: bold; }
div#cgit table.blob .kwc { color: #2a4c3e; font-weight: bold; text-transform: uppercase; }
div#cgit table.blob .kwd { color: #2a4c3e; font-weight: bold; }

/* Buttons */
div#cgit a.button {
	font-size: 0.9rem;
	padding: 0.5rem 1rem;
	background: #2a4c3e;
	color: #b29270;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
	border: none;
	display: inline-block;
}

div#cgit a.button:hover {
	opacity: 0.8;
	border: none;
}

/* Pager */
div#cgit ul.pager {
	list-style-type: none;
	text-align: center;
	margin: 2rem 0 0 0;
	padding: 0;
}

div#cgit ul.pager li {
	display: inline-block;
	margin: 0 0.5rem;
}

div#cgit ul.pager a {
	color: #2a4c3e;
	padding: 0.5rem 1rem;
	border: 2px solid #2a4c3e;
	display: block;
	font-family: "Space Mono", monospace;
	text-transform: uppercase;
}

div#cgit ul.pager a:hover {
	background: #2a4c3e;
	color: #b29270;
	border-color: #2a4c3e;
}

div#cgit ul.pager .current {
	font-weight: bold;
	background: #2a4c3e;
	color: #b29270;
	padding: 0.5rem 1rem;
}

/* Remove rounded corners and shadows for brutalist aesthetic */
div#cgit * {
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Ensure monospace for all code-related elements */
div#cgit pre,
div#cgit code,
div#cgit .oid {
	font-family: "Kode Mono", monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	div#cgit {
		padding: 0.5rem;
	}
	
	div#cgit table#header td.main {
		font-size: 2rem;
	}
	
	div#cgit table.diffstat td.graph {
		width: 200px;
	}
}
