/* cgit.css — krypt/sh
 * Structure from kernel.org cgit, palette from krypt.sh
 */

html, body {
  background: #0c1220;
  color: #e2e8f4;
  margin: 0;
  padding: 0;
}

div#cgit {
  padding: 0;
  margin: 0;
  font-family: sans-serif;
  font-size: 10pt;
  color: #e2e8f4;
  background: #0c1220;
}

div#cgit a { color: #70d8f8; text-decoration: none; }
div#cgit a:hover { color: #a0e8ff; text-decoration: underline; }
div#cgit table { border-collapse: collapse; }

/* ── Header ── */
div#cgit table#header { width: 100%; margin-bottom: 1em; }
div#cgit table#header td.logo { width: 96px; vertical-align: top; }
div#cgit table#header td.main { font-size: 250%; padding-left: 10px; white-space: nowrap; }
div#cgit table#header td.main a { color: #e2e8f4; }
div#cgit table#header td.form {
  text-align: right; vertical-align: bottom;
  padding-right: 1em; padding-bottom: 2px; white-space: nowrap;
}
div#cgit table#header td.form form,
div#cgit table#header td.form input,
div#cgit table#header td.form select {
  font-size: 90%; background: #0b1120; color: #b8c8da; border: 1px solid #1a2840;
}
div#cgit table#header td.sub {
  color: #607080; border-top: solid 1px #141e30; padding-left: 10px;
}

/* ── Tabs ── */
div#cgit table.tabs {
  border-bottom: solid 3px #141e30; border-collapse: collapse;
  margin-top: 2em; margin-bottom: 0; width: 100%;
}
div#cgit table.tabs td { padding: 0 1em; vertical-align: bottom; }
div#cgit table.tabs td a { padding: 2px 0.75em; color: #607080; font-size: 110%; }
div#cgit table.tabs td a.active { color: #e2e8f4; background-color: #141e30; }
div#cgit table.tabs td.form { text-align: right; }
div#cgit table.tabs td.form form { padding-bottom: 2px; font-size: 90%; white-space: nowrap; }
div#cgit table.tabs td.form input,
div#cgit table.tabs td.form select {
  font-size: 90%; background: #0b1120; color: #b8c8da; border: 1px solid #1a2840;
}

/* ── Path ── */
div#cgit div.path {
  margin: 0; padding: 5px 2em 2px 2em;
  color: #e2e8f4; background-color: #0b1120;
}

/* ── Content ── */
div#cgit div.content {
  margin: 0; padding: 2em; border-bottom: solid 3px #141e30;
}

/* ── List table ── */
div#cgit table.list { width: 100%; border: none; border-collapse: collapse; }
div#cgit table.list tr                          { background: #0c1220; }
div#cgit table.list tr.logheader                { background: #0b1120; }
div#cgit table.list tr:nth-child(even)          { background: #0c1220; }
div#cgit table.list tr:nth-child(odd)           { background: #0d1628; }
div#cgit table.list tr:hover                    { background: #0f1e34; }
div#cgit table.list tr.nohover                  { background: #0c1220; }
div#cgit table.list tr.nohover:hover            { background: #0c1220; }
div#cgit table.list tr.nohover-highlight:hover:nth-child(even) { background: #0c1220; }
div#cgit table.list tr.nohover-highlight:hover:nth-child(odd)  { background: #0d1628; }

div#cgit table.list th {
  font-weight: bold; color: #607080;
  padding: 0.1em 0.5em 0.05em 0.5em; vertical-align: baseline;
}
div#cgit table.list td { border: none; padding: 0.1em 0.5em; color: #b8c8da; }

div#cgit table.list td.commitgraph { font-family: "Source Code Pro","JetBrains Mono",monospace; white-space: pre; }
div#cgit pre { font-family: "Source Code Pro","JetBrains Mono",monospace; }

div#cgit table.list td.commitgraph .column1 { color: #e06060; }
div#cgit table.list td.commitgraph .column2 { color: #44dd44; }
div#cgit table.list td.commitgraph .column3 { color: #ddcc00; }
div#cgit table.list td.commitgraph .column4 { color: #4488ff; }
div#cgit table.list td.commitgraph .column5 { color: #cc66ff; }
div#cgit table.list td.commitgraph .column6 { color: #70d8f8; }

div#cgit table.list td.logsubject { font-family: "Source Code Pro","JetBrains Mono",monospace; font-weight: bold; }
div#cgit table.list td.logmsg     { font-family: "Source Code Pro","JetBrains Mono",monospace; white-space: pre; padding: 0 0.5em; }
div#cgit table.list td a          { color: #b8c8da; }
div#cgit table.list td a.ls-dir   { font-weight: bold; color: #70d8f8; }
div#cgit table.list td a:hover    { color: #70d8f8; }

div#cgit img { border: none; }

/* ── Blob ── */
div#cgit div#blob { border: solid 1px #1a2840; }
div#cgit table.blob { margin-top: 0.5em; border-top: solid 1px #1a2840; }
div#cgit table.blob td.hashes,
div#cgit table.blob td.lines { margin: 0; padding: 0 0 0 0.5em; vertical-align: top; color: #e2e8f4; }
div#cgit table.blob td.linenumbers {
  margin: 0; padding: 0 0.5em; vertical-align: top;
  text-align: right; border-right: 1px solid #1a2840;
}
div#cgit table.blob pre { padding: 0; margin: 0; }
div#cgit table.blob td.linenumbers a,
div#cgit table.ssdiff td.lineno a { color: #2a3a4a; text-decoration: none; }
div#cgit table.blob td.linenumbers a:hover,
div#cgit table.ssdiff td.lineno a:hover { color: #607080; }

/* ── Blame ── */
div#cgit table.blame td.hashes,
div#cgit table.blame td.lines,
div#cgit table.blame td.linenumbers { padding: 0; }
div#cgit table.blame td.hashes div.alt,
div#cgit table.blame td.lines div.alt { padding: 0 0.5em; }
div#cgit table.blame td.linenumbers div.alt { padding: 0 0.5em 0 0; }
div#cgit table.blame div.alt:nth-child(even) { background: #0c1220; }
div#cgit table.blame div.alt:nth-child(odd)  { background: #0d1628; }
div#cgit table.blame td.lines > div { position: relative; }
div#cgit table.blame td.lines > div > pre { padding: 0 0 0 0.5em; position: absolute; top: 0; }

/* ── Bin blob ── */
div#cgit table.bin-blob { margin-top: 0.5em; border: solid 1px #1a2840; }
div#cgit table.bin-blob th { font-family: "Source Code Pro",monospace; white-space: pre; border: solid 1px #1a2840; padding: 0.5em 1em; color: #607080; }
div#cgit table.bin-blob td { font-family: "Source Code Pro",monospace; white-space: pre; border-left: solid 1px #1a2840; padding: 0 1em; color: #b8c8da; }

/* ── Commit info ── */
div#cgit table.commit-info { border-collapse: collapse; margin-top: 1.5em; }
div#cgit table.commit-info td { color: #b8c8da; }

/* ── cgit panel ── */
div#cgit div.cgit-panel { float: right; margin-top: 1.5em; }
div#cgit div.cgit-panel table { border-collapse: collapse; border: solid 1px #1a2840; background-color: #0b1120; }
div#cgit div.cgit-panel th { text-align: center; color: #607080; }
div#cgit div.cgit-panel td { color: #b8c8da; }

/* ── Diff (inline) ── */
div#cgit table.diff td div.head  { color: #e2e8f4; }
div#cgit table.diff td div.hunk  { color: #70d8f8; }
div#cgit table.diff td div.add   { color: #44dd44; }
div#cgit table.diff td div.del   { color: #cc4444; }

/* ── Diffstat ── */
div#cgit table.diffstat { border: solid 1px #1a2840; background-color: #0b1120; }
div#cgit table.diffstat td span.modechange { color: #cc6666; }
div#cgit table.diffstat td.add a   { color: #44dd44; }
div#cgit table.diffstat td.del a   { color: #cc4444; }
div#cgit table.diffstat td.upd a   { color: #70d8f8; }
div#cgit table.diffstat td.graph td.add { background-color: #1a5a1a; }
div#cgit table.diffstat td.graph td.rem { background-color: #5a1a1a; }
div#cgit div.diffstat-summary { color: #607080; }

/* ── Side-by-side diff ── */
div#cgit table.ssdiff td          { border-left-color: #1a2840; border-right-color: #1a2840; }
div#cgit table.ssdiff td.add      { color: #e2e8f4; background: #0d2e0d; }
div#cgit table.ssdiff td.add_dark { color: #e2e8f4; background: #061806; }
div#cgit table.ssdiff span.add    { background: #061806; }
div#cgit table.ssdiff td.del      { color: #e2e8f4; background: #2e0d0d; }
div#cgit table.ssdiff td.del_dark { color: #e2e8f4; background: #180606; }
div#cgit table.ssdiff span.del    { background: #180606; }
div#cgit table.ssdiff td.changed  { color: #e2e8f4; background: #2e2a0d; }
div#cgit table.ssdiff td.changed_dark { color: #e2e8f4; background: #181406; }
div#cgit table.ssdiff td.lineno   { color: #e2e8f4; background: #0b1120; }
div#cgit table.ssdiff td.hunk     { color: #e2e8f4; background: #0a1e38; border-color: #1a2840; }
div#cgit table.ssdiff td.head     { border-color: #1a2840; }
div#cgit table.ssdiff td.head div.head { color: #e2e8f4; }
div#cgit table.ssdiff td.foot     { border-top-color: #1a2840; }

/* ── Decorations ── */
div#cgit a.branch-deco          { color:#fff; background:#1a4a1a; border:1px solid #2a7a2a; padding:0 4px; font-size:85%; }
div#cgit a.tag-deco             { color:#fff; background:#4a3800; border:1px solid #aa8800; padding:0 4px; font-size:85%; }
div#cgit a.tag-annotated-deco   { color:#fff; background:#3a2800; border:1px solid #886030; padding:0 4px; font-size:85%; }
div#cgit a.remote-deco          { color:#fff; background:#0a2848; border:1px solid #2a5888; padding:0 4px; font-size:85%; }
div#cgit a.deco                 { color:#fff; background:#4a1010; border:1px solid #882020; padding:0 4px; font-size:85%; }

div#cgit a.branch-deco:hover,
div#cgit table.list td a.branch-deco:hover,
div#cgit a.tag-deco:hover,
div#cgit table.list td a.tag-deco:hover,
div#cgit a.tag-annotated-deco:hover,
div#cgit table.list td a.tag-annotated-deco:hover,
div#cgit a.remote-deco:hover,
div#cgit table.list td a.remote-deco:hover,
div#cgit a.deco:hover,
div#cgit table.list td a.deco:hover { color: #fff; }

/* ── Age ── */
div#cgit span.age-mins   { color: #44dd44; }
div#cgit span.age-hours  { color: #44dd44; }
div#cgit span.age-days   { color: #88cc88; }
div#cgit span.age-weeks  { color: #b8c8da; }
div#cgit span.age-months { color: #607080; }
div#cgit span.age-years  { color: #3a4a5a; }

/* ── Insertions / deletions ── */
div#cgit span.insertions { color: #44dd44; }
div#cgit span.deletions  { color: #cc4444; }

/* ── Pager ── */
div#cgit ul.pager a { color: #607080; }

/* ── Repo section ── */
div#cgit table.list td.reposection { color: #607080; }

/* ── Stats ── */
div#cgit table.stats           { border: solid 1px #1a2840; }
div#cgit table.stats th        { background-color: #0b1120; border: solid 1px #1a2840; color: #607080; }
div#cgit table.stats td        { border: solid 1px #1a2840; color: #b8c8da; }
div#cgit table.stats td.sum    { color: #70d8f8; }

/* ── Notes ── */
div#cgit div.notes { border: solid 2px #665500; background-color: #1a1400; padding: 0.5em; }

/* ── Downloads ── */
div#cgit table#downloads         { float: right; border: solid 1px #1a2840; margin-left: 0.5em; margin-bottom: 0.5em; }
div#cgit table#downloads th      { background-color: #0b1120; color: #607080; }

/* ── Footer ── */
div#cgit div.footer { color: #2a3a4a; padding: 1em; text-align: center; font-size: 9pt; }
div#cgit div.footer a { color: #2a3a4a; }

/* ── Error ── */
div#cgit div.error { color: #cc4444; font-weight: bold; margin: 1em 2em; }

/* ── ls / tree ── */
div#cgit a.ls-blob,
div#cgit a.ls-dir,
div#cgit .ls-mod { font-family: "Source Code Pro","JetBrains Mono",monospace; }
div#cgit td.ls-size { text-align: right; font-family: "Source Code Pro","JetBrains Mono",monospace; width: 10em; color: #607080; }
div#cgit td.ls-mode { font-family: "Source Code Pro","JetBrains Mono",monospace; width: 10em; color: #3a4a5a; }

/* ── nowrap ── */
div#cgit table.nowrap td { white-space: nowrap; }

/* ── Syntax highlighting ── */
body.hl { background-color: #0b1120; }
pre.hl  { color: #e2e8f4; background-color: #0b1120; font-size: 10pt; font-family: "Source Code Pro",monospace; }
.hl.num { color: #ffcc44; }
.hl.esc { color: #ff44ff; }
.hl.str { color: #ff7766; }
.hl.pps { color: #aaaa00; }
.hl.slc { color: #607080; font-style: italic; }
.hl.com { color: #607080; font-style: italic; }
.hl.ppc { color: #44dd44; }
.hl.opt { color: #e2e8f4; }
.hl.ipl { color: #70d8f8; }
.hl.lin { color: #2a3a4a; }
.hl.kwa { color: #e2e8f4; font-weight: bold; }
.hl.kwb { color: #70d8f8; }
.hl.kwc { color: #e2e8f4; font-weight: bold; }
.hl.kwd { color: #a0c8ff; }

/* ── Tree action links (log / stats / plain / blame) ── */
div#cgit table.list td.link a,
div#cgit table.list td.links a {
  margin-right: 0.6em;
  color: #607080;
  font-size: 90%;
}
div#cgit table.list td.link a:hover,
div#cgit table.list td.links a:hover {
  color: #70d8f8;
  text-decoration: none;
}
/* ── Consecutive links fix (log stats plain blame) ── */
div#cgit table.list td a + a { margin-left: 0.5em; }
div#cgit table.list td a + a::before { content: ""; }

/* ── Column header alignment ── */
div#cgit table.list th.left  { text-align: left;   padding: 0.3em 0.8em; }
div#cgit table.list th.right { text-align: right;  padding: 0.3em 0.8em; }
div#cgit table.list th       { padding: 0.3em 0.8em; }

/* ── Column cell padding ── */
div#cgit table.list td { padding: 0.25em 0.8em; }

/* ── Tree view: keep columns tidy ── */
div#cgit table.list td.ls-mode { white-space: nowrap; padding-right: 1.2em; }
div#cgit table.list td.ls-name { padding-right: 1.2em; }
div#cgit table.list td.ls-size { white-space: nowrap; padding-right: 1.2em; }
div#cgit table.list td.ls-age  { white-space: nowrap; padding-right: 0.8em; }

/* ── Log view: age/author/files columns ── */
div#cgit table.list td.right { text-align: right; padding-right: 1em; }
