/* Match the main site's plain-text directory on cgit 1.2.3. */
@import url("/cgit.css");

body {
  margin: 1.5rem 2rem 5rem;
  background: #fff;
}

div#cgit {
  box-sizing: border-box;
  max-width: 84ch;
  padding: 0;
  color: #111;
  background: #fff;
  font: 1rem/1.5 "Nimbus Sans", Helvetica, Arial, sans-serif;
}

div#cgit a {
  color: #0645ad;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

div#cgit a:hover { color: #123980; }
div#cgit a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.site-name {
  margin: 0 0 1rem;
  color: #666;
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.site-name a,
.site-name a:visited { color: inherit; text-underline-offset: 0.15em; }
.site-name a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

div#cgit table#header {
  width: 100%;
  margin: 0;
}

div#cgit table#header td.logo { display: none; }

div#cgit table#header td.main {
  padding: 0;
  color: #111;
  font: 500 clamp(1.85rem, 3.2vw, 2.3rem)/1.2 "Nimbus Sans", Helvetica, Arial, sans-serif;
  letter-spacing: -0.025em;
  white-space: normal;
  overflow-wrap: anywhere;
}

div#cgit table#header td.main a { color: inherit; }

div#cgit table#header td.sub {
  padding: 0.4rem 0 0;
  border: 0;
  color: #555;
  font-size: 0.95rem;
}

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

div#cgit table.tabs {
  width: 100%;
  margin: 1.7rem 0 0;
  border-top: 1px dashed #aaa;
  border-bottom: 1px solid #d0d0d0;
}

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

div#cgit table.tabs td a {
  display: inline-block;
  margin-right: 1.1rem;
  padding: 0;
  color: #0645ad;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

div#cgit table.tabs td a.active {
  color: #111;
  background: none;
  font-weight: bold;
  text-decoration: none;
}

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

div#cgit table.tabs a[href^="http://"]:after,
div#cgit table.tabs a[href^="https://"]:after { content: " ↗"; opacity: 1; margin: 0; }

div#cgit input,
div#cgit select {
  max-width: 100%;
  padding: 0.15rem 0.3rem;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

div#cgit input[type="search"] { width: 20ch; }
div#cgit input[type="submit"] { cursor: pointer; }

div#cgit div.path {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid #d0d0d0;
  color: #555;
  background: none;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

div#cgit div.path:before { content: "$ "; color: #666; }

div#cgit div.content {
  margin: 0;
  padding: 0.8rem 0 0;
  border: 0;
  overflow-x: auto;
}

div#cgit table.list { width: 100%; }

div#cgit table.list tr,
div#cgit table.list tr:nth-child(even),
div#cgit table.list tr:nth-child(odd),
div#cgit table.list tr:hover,
div#cgit table.list tr.nohover,
div#cgit table.list tr.logheader { background: #fff; }

div#cgit table.list th {
  padding: 0.3rem 0.65rem 0.4rem 0;
  border-bottom: 1px solid #d9d9d9;
  color: #777;
  font: 0.72rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: left;
}

div#cgit table.list th a,
div#cgit table.list th a:hover {
  color: inherit;
  text-decoration: none;
}

div#cgit table.list td {
  padding: 0.55rem 0.65rem 0.55rem 0;
  border-bottom: 1px solid #e9e9e9;
  vertical-align: top;
  font-size: 0.875rem;
}

div#cgit table.list td a,
div#cgit table.list td a.ls-dir,
div#cgit table.list td a:hover { color: #0645ad; }

div#cgit table.list td.toplevel-repo a,
div#cgit table.list td a.ls-dir { font-weight: bold; }

div#cgit table.list td.logsubject,
div#cgit table.list td.logmsg,
div#cgit table.list td.ls-mode,
div#cgit table.list td.ls-size {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

div#cgit a.button { font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

div#cgit div#blob,
div#cgit table.blob,
div#cgit table.bin-blob,
div#cgit table.diffstat,
div#cgit table.stats {
  border-color: #d0d0d0;
  background: #fff;
}

div#cgit table.blob td.linenumbers { border-right-color: #d0d0d0; }
div#cgit table.blob td.linenumbers a { color: #777; }
div#cgit div.commit-subject { font-size: 1.1rem; }
div#cgit div.diffstat-summary { color: #666; }
div#cgit table.diff td div.hunk { color: #555; }
div#cgit table.diff td div.add { color: #216c32; }
div#cgit table.diff td div.del { color: #a12d2d; }

div#cgit div.footer {
  margin-top: 4rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9e9e9;
  color: #666;
  text-align: left;
  font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

div#cgit div.footer a { color: #555; text-decoration: underline; }

@media (max-width: 45rem) {
  div#cgit table#header,
  div#cgit table#header tbody,
  div#cgit table#header tr,
  div#cgit table#header td,
  div#cgit table.tabs,
  div#cgit table.tabs tbody,
  div#cgit table.tabs tr,
  div#cgit table.tabs td { display: block; width: 100%; }

  div#cgit table#header td.form { padding: 0.75rem 0 0; text-align: left; }
  div#cgit table.tabs td.form { padding-top: 0; text-align: left; }
  div#cgit table.list { min-width: 35rem; }
}

@media (max-width: 32rem) {
  body { margin: 1rem; }
}
