/* git.loualiche.com — monospace variant, closer to loualiche.com */

html, body, div, span, h1, h2, h3, p, blockquote, pre, abbr, code, del, em,
img, dl, dt, dd, ol, ul, li, table, caption, tbody, thead, tr, th, td,
article, aside, footer, header, nav, section {
  margin: 0; padding: 0; border: 0; outline: 0;
  font-size: 100%; vertical-align: baseline; color: inherit;
}

html, body { margin: auto; height: 100%; }

body {
  font-size: 12px;
  line-height: 180%;
  font-family: "SF Mono", Menlo, Consolas, "Fira Code", "Courier New", monospace;
  text-align: left;
  color: #444;
  background-color: white;
  padding-left: 1.85em;
  padding-right: 1.85em;
  margin-top: 1px;
  min-width: 21em;
  max-width: 42em;
}

/* --- Typography --- */

h1, h2, h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

h1 { font-size: 1.6em; }
h2 { font-size: 1.4em; margin: 1.2em 0 0.5em; }
h3 { font-size: 1.1em; }

h1, h2 { margin-bottom: 0.6875em; }

p { margin-bottom: 0.6875em; }

a { text-decoration: none; color: #8B0000; }
a:link { color: #8B0000; }
a:visited { color: #8B0000; }
a:hover { color: #8B0000; text-decoration: underline; }

a.tlink { color: inherit; text-decoration: none; }
a.tlink .title { font-weight: bold; color: #000; }
a.tlink:hover { color: black; text-decoration: none; }
a.tlink:hover .title { text-decoration: underline; color: #8B0000; }
a .arrow { color: #8B0000; }

abbr { text-transform: uppercase; font-size: 0.875em; line-height: 100%; }
small { font-size: 0.875em; line-height: 100%; }

tt, code, pre { font-family: inherit; }
pre { margin-bottom: 0.6875em; }

ul, ol { margin-bottom: 0.6875em; line-height: 180%; }
ul { list-style: square inside; }

ul.spaced, ol.spaced { list-style: none; text-indent: 0; margin-left: 0; }
ul.spaced li, ol.spaced li { margin-bottom: 0.6875em; }

/* --- Header --- */

header {
  padding-top: 1.375em;
  padding-bottom: 0.625em;
  border-bottom: solid;
  border-width: 1px;
  border-color: #000;
  margin-bottom: 0.6875em;
}

header nav { display: inline-block; }

nav a { text-decoration: none; color: #000; }
nav a:hover { color: #8B0000; text-decoration: none; }
nav ul { list-style: none; margin: 0 1.375em 0 0; }
nav li { display: inline; }
nav .self { color: #8B0000; }

nav.sections {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  color: #000;
}

nav.sections li { margin-right: 0.75em; }

/* --- Section --- */

section { padding-top: 0.6875em; }
section h2:first-child { margin-top: 0; }

section a { color: #8B0000; }

/* --- Distribution / release links --- */

.distribution { list-style: none; margin-left: 0; }
.distribution time { font-size: 0.85em; color: #999; }
time { font-size: 0.938em; line-height: 100%; }

div.synopsis { font-size: 0.875em; line-height: 1.571em; color: #444; }

/* --- Install block --- */

pre.install {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1.375em;
  padding: 0.6875em;
  background: #f7f7f7;
  border-left: 3px solid #8B0000;
}

/* --- Footer --- */

footer {
  color: #A0A0A0;
  font-size: 9px;
  text-transform: uppercase;
  text-align: left;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #dedede;
}

/* --- Package list (index page) --- */

.package-list { list-style: none; margin-left: 0; }
.package-list li { margin-bottom: 0.6875em; }
.package-list .synopsis { font-size: 0.875em; line-height: 1.571em; }

/* --- stagit overrides --- */

body > table:first-of-type {
  border-collapse: collapse;
  margin-bottom: 0.3em;
}
body > table:first-of-type td {
  padding: 0.2em 0.5em 0.2em 0;
  vertical-align: middle;
}
body > table:first-of-type h1 {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.4em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}
body > table:first-of-type .desc {
  font-size: 0.875em;
  color: #999;
}
body > table:first-of-type a {
  text-decoration: none;
  color: #8B0000;
}
body > table:first-of-type a:hover {
  text-decoration: underline;
}

body > table:first-of-type tr:last-child td:last-child {
  font-size: 0.875em;
}
body > table:first-of-type tr:last-child td:last-child a {
  margin-right: 0.3em;
}

body > hr { border: none; border-top: 1px solid #000; margin: 0.6875em 0; }

#content { margin-top: 0.5em; }
#content h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  margin-top: 1.375em;
  margin-bottom: 0.4em;
}

/* Log, refs, branches, files tables */
#log, #branches, #tags, #files {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875em;
  line-height: 1.6;
}

/* Hide author column in log (single-author repos) */
#log td:nth-child(3), #log thead td:nth-child(3) { display: none; }

/* Hide mode column in files table */
#files td:first-child, #files thead td:first-child { display: none; }

#log thead td, #branches thead td, #tags thead td, #files thead td {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75em;
  color: #000;
  border-bottom: 1px solid #000;
  padding: 0.3em 0.5em;
}

#log tbody tr:nth-child(even),
#branches tbody tr:nth-child(even),
#tags tbody tr:nth-child(even),
#files tbody tr:nth-child(even) {
  background: #f7f7f7;
}

#log td, #branches td, #tags td, #files td {
  padding: 0.25em 0.5em;
  vertical-align: top;
}

#log td:first-child, #branches td:first-child, #tags td:first-child {
  white-space: nowrap;
  color: #999;
}

#log a, #branches a, #tags a, #files a {
  text-decoration: none;
  color: #8B0000;
}
#log a:hover, #branches a:hover, #tags a:hover, #files a:hover {
  text-decoration: underline;
}

td.num { text-align: right; color: #999; white-space: nowrap; }

/* Color additions/deletions in log */
#log td:nth-child(5) { color: #228B22; }  /* + green */
#log td:nth-child(6) { color: #8B0000; }  /* - red */

#log td:nth-child(2) { overflow-wrap: break-word; word-break: break-word; }

/* Diff / commit view */
span.i { color: #228B22; }
span.d { color: #8B0000; }
div.diff { margin: 1em 0; }
div.diff h3 {
  font-family: inherit;
  background: #f7f7f7;
  padding: 0.3em 0.5em;
  border-bottom: 1px solid #dedede;
  font-size: 1em;
  text-transform: none;
  letter-spacing: 0;
  color: #000;
}

/* File view */
#blob { width: 100%; }
#blob td {
  padding: 0 0.5em;
  font-size: 1em;
  line-height: 1.4;
}
#blob td:first-child {
  text-align: right;
  color: #999;
  user-select: none;
  width: 1%;
  white-space: nowrap;
}

/* Hide the logo image */
body > table:first-of-type img { display: none; }

/* Responsive */
@media only screen and (max-width: 768px) {
  body { font-size: 14px; padding: 0 10px; min-width: 0; max-width: none; }
}
