/* ------------------------------------------------------------------
   cgit skin for git.serrahima.dev
   drop-in replacement for /usr/share/webapps/cgit/cgit.css
   light + dark via prefers-color-scheme, no JS, no external assets.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #fcfcfa;
  --surface: #ffffff;
  --surface-2: #f4f4f0;
  --text: #1b1b1e;
  --muted: #5d5d66;
  --faint: #8a8a92;
  --border: #e3e3dd;
  --accent: #aa0000;
  --link: #981b1b;
  --link-hover: #c02b2b;
  --add-bg: #e9f6ec;
  --add-fg: #1f6b34;
  --del-bg: #fdecea;
  --del-fg: #a32626;
  --code-bg: #f7f7f3;
  --radius: 9px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #17171a;
    --surface-2: #1e1e22;
    --text: #e7e7ea;
    --muted: #a2a2ac;
    --faint: #7f7f89;
    --border: #2a2a30;
    --accent: #e35555;
    --link: #ff9691;
    --link-hover: #ffb4af;
    --add-bg: #15261a;
    --add-fg: #7fd08f;
    --del-bg: #2a1719;
    --del-fg: #f0948f;
    --code-bg: #1b1b1f;
  }
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 { margin: 1.6em 0 .55em; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.06rem; }

p, ul, ol { margin: .7em 0; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.75rem 0; }

code, pre, kbd, samp { font-family: var(--mono); font-size: .88em; }
code { background: var(--code-bg); border: 1px solid var(--border); border-radius: 5px; padding: .08em .34em; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; overflow-x: auto; line-height: 1.5; }
blockquote { margin: .8em 0; padding: .1rem 1rem; border-left: 3px solid var(--border); color: var(--muted); }

table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(170, 0, 0, .18); }
@media (prefers-color-scheme: dark) { ::selection { background: rgba(255, 150, 145, .22); } }

#cgit { max-width: 1040px; margin: 0 auto; padding: 1.6rem clamp(1rem, 3.5vw, 2.25rem) 3rem; }

/* ---------- header ---------- */

table#header {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
table#header td { border: 0; padding: 0; vertical-align: middle; }
table#header td.logo { padding-right: 1rem; white-space: nowrap; }
table#header td.logo img { display: block; height: 32px; width: auto; max-width: none; }
table#header td.main { color: var(--faint); font-size: .92rem; }
table#header td.main a { color: var(--text); font-weight: 600; }
table#header td.main a:hover { color: var(--accent); text-decoration: none; }
table#header td.main:not(:has(a)) { color: var(--text); font-size: 1.18rem; font-weight: 650; letter-spacing: -.012em; }
table#header td.form { text-align: right; white-space: nowrap; }
table#header td.form form { display: flex; gap: .35rem; align-items: center; justify-content: flex-end; }
table#header td.sub { padding-top: .4rem; color: var(--muted); font-size: .83rem; }
table#header td.sub.right { text-align: right; color: var(--faint); font-size: .8rem; }
@media (prefers-color-scheme: dark) {
  table#header td.logo img { filter: brightness(1.55) saturate(1.1); }
}

/* ---------- form controls ---------- */

select, input[type=search], input[type=text], input[type=submit], button {
  font: inherit;
  font-size: .82rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .3rem .5rem;
}
select:hover, input[type=submit]:hover, button:hover { border-color: var(--accent); }
input[type=search] { min-width: 7.5rem; }
input[type=submit], button { color: var(--muted); cursor: pointer; }
input[type=submit]:hover, button:hover { color: var(--text); }

/* ---------- tabs + page tools ---------- */

table.tabs {
  display: flex;
  align-items: stretch;
  margin: .55rem 0 1.35rem;
  border-bottom: 1px solid var(--border);
}
table.tabs tbody, table.tabs tr { display: contents; }
table.tabs td { display: flex; align-items: stretch; padding: 0; border: 0; }
table.tabs td.form { margin-left: auto; align-items: center; padding: 0 0 .35rem .75rem; }
table.tabs td.form form { display: flex; gap: .3rem; align-items: center; }
table.tabs td a {
  display: flex;
  align-items: center;
  padding: .5rem .68rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 500;
}
table.tabs td a:hover { color: var(--text); background: var(--surface-2); border-radius: 6px 6px 0 0; text-decoration: none; }
table.tabs td a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

/* ---------- list tables ---------- */

table.list { width: 100%; font-size: .92rem; }
table.list th, table.list td { padding: .5rem .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
table.list tr.nohover th { padding: .15rem .5rem .4rem; color: var(--faint); font-size: .71rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
table.list tr.nohover th a { color: inherit; }
table.list tr.nohover th a:hover { color: var(--accent); text-decoration: none; }
table.list tr:not(.nohover):hover td { background: var(--surface-2); }
table.list td.right, table.list th.right { text-align: right; }
table.list td:first-child { white-space: nowrap; }
table.list td.right, table.list .sha1, table.list [class^='age-'] { white-space: nowrap; }

[class^='age-'] { color: var(--faint); font-variant-numeric: tabular-nums; }
span.insertions { color: var(--add-fg); }
span.deletions { color: var(--del-fg); }

/* repo index */
td.toplevel-repo { white-space: nowrap; }
td.toplevel-repo > a { color: var(--text); font-weight: 650; font-size: 1rem; letter-spacing: -.01em; }
td.toplevel-repo > a:hover { color: var(--accent); }
td.toplevel-repo + td > a { color: var(--muted); font-size: .9rem; }
td.sublevel-repo { padding-left: 1.6rem; }
td.reposection { padding-top: 1.1rem; color: var(--faint); font-size: .73rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

/* cgit only fills the index "idle" column when repos carry info/web/last-modified,
   which nothing writes here, so the column is just an empty gap. drop it. */
table.list:has(td.toplevel-repo) td:nth-child(3),
table.list:has(td.toplevel-repo) tr.nohover th:nth-child(3) { display: none; }

a.button, a.primary, a.secondary {
  display: inline-block;
  margin: .05rem .15rem .05rem 0;
  padding: .1rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
}
a.button:hover, a.primary:hover, a.secondary:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }

/* tree */
td.ls-mode { width: 1%; color: var(--faint); font-family: var(--mono); font-size: .75rem; white-space: nowrap; }
td.ls-size { width: 1%; color: var(--faint); font-family: var(--mono); font-size: .75rem; text-align: right; white-space: nowrap; }
a.ls-dir { color: var(--text); font-weight: 600; }
a.ls-dir::after { content: "/"; color: var(--faint); font-weight: 400; }
a.ls-dir:hover { color: var(--accent); }
a.ls-blob { color: var(--link); font-family: var(--mono); font-size: .87rem; }

/* refs / decorations */
.decoration { margin-left: .35rem; }
a.deco, a.branch-deco, a.tag-deco, a.tag-annotated-deco, a.remote-deco {
  display: inline-block;
  margin-left: .15rem;
  padding: .05rem .42rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .67rem;
  font-weight: 600;
  vertical-align: .08em;
}
a.deco:hover, a.branch-deco:hover, a.tag-deco:hover, a.tag-annotated-deco:hover, a.remote-deco:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
a.branch-deco { color: var(--text); }

/* pager */
ul.pager { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 1rem 0 0; padding: 0; font-size: .84rem; }
ul.pager:empty { display: none; }
ul.pager a, ul.pager .current { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--border); border-radius: 6px; }
ul.pager .current { border-color: var(--accent); color: var(--text); }

/* ---------- summary / about ---------- */

div.path { margin-bottom: .6rem; color: var(--muted); font-family: var(--mono); font-size: .8rem; }

#cgit .markdown-body { font-family: var(--sans); font-size: .95rem; color: var(--text); }
#cgit .markdown-body h1, #cgit .markdown-body h2 { border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
#cgit .markdown-body h1, #cgit .markdown-body h2, #cgit .markdown-body h3,
#cgit .markdown-body h4, #cgit .markdown-body h5, #cgit .markdown-body h6 { color: var(--text); }
#cgit .markdown-body a { color: var(--link); }
/* the md filter injects its own `div#cgit ... h1 a.toclink { color: black }` after our css */
#cgit .markdown-body a.toclink { color: inherit !important; }
#cgit .markdown-body a.toclink:hover { color: var(--accent) !important; text-decoration: none; }
#cgit .markdown-body code, #cgit .markdown-body tt { background: var(--code-bg); border: 1px solid var(--border); border-radius: 5px; padding: .08em .34em; font-family: var(--mono); font-size: .86em; }
#cgit .markdown-body pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; overflow-x: auto; }
#cgit .markdown-body pre code { background: none; border: 0; padding: 0; }
#cgit .markdown-body blockquote { border-left: 3px solid var(--border); color: var(--muted); padding: 0 1rem; }
#cgit .markdown-body table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
#cgit .markdown-body th, #cgit .markdown-body td { border: 1px solid var(--border); padding: .35rem .6rem; }
#cgit .markdown-body img { max-width: 100%; }
#cgit .markdown-body hr { background: none; border: 0; border-top: 1px solid var(--border); height: 0; margin: 1.75rem 0; }
/* the injected markdown css also hardcodes light table rows and a white .highlight wrapper */
#cgit .markdown-body table tr { background-color: transparent; border-top: 1px solid var(--border); }
#cgit .markdown-body table tr:nth-child(2n) { background-color: var(--surface-2); }
#cgit .markdown-body table th { background-color: var(--surface-2); }
#cgit .markdown-body .highlight { background: none; }

/* ---------- commit ---------- */

table.commit-info { width: 100%; margin: 0 0 1.1rem; font-size: .9rem; }
table.commit-info th { width: 1%; padding: .3rem 1rem .3rem 0; text-align: left; vertical-align: top; white-space: nowrap; color: var(--faint); font-size: .71rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
table.commit-info td { padding: .3rem 0; }
table.commit-info td.right { text-align: right; color: var(--muted); font-size: .82rem; white-space: nowrap; }
table.commit-info td.sha1, .sha1 { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }

.commit-subject { margin: .3rem 0 .4rem; font-size: 1.18rem; font-weight: 650; letter-spacing: -.01em; }
.commit-msg { margin: 0 0 1.2rem; color: var(--muted); font-size: .92rem; white-space: pre-wrap; }

div.diffstat-header { margin: 1.3rem 0 .4rem; color: var(--faint); font-size: .71rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
div.diffstat-header a { color: var(--faint); }
div.diffstat-summary { margin: .2rem 0 .6rem; color: var(--muted); font-size: .85rem; }

table.diffstat { width: 100%; font-size: .86rem; }
table.diffstat td, table.diffstat th { padding: .3rem .5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.diffstat td.mode { width: 1%; color: var(--faint); font-family: var(--mono); font-size: .74rem; white-space: nowrap; }
table.diffstat td.add a, table.diffstat td.del a, table.diffstat td.upd a { font-family: var(--mono); font-size: .82rem; }
table.diffstat td.right { width: 1%; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.diffstat td.graph { width: 32%; min-width: 7rem; }
table.diffstat td.graph table { width: 100%; height: .5rem; }
table.diffstat td.graph td { border: 0; padding: 0; }
table.diffstat td.graph td.add { background: var(--add-fg); opacity: .55; }
table.diffstat td.graph td.rem { background: var(--del-fg); opacity: .55; }

/* unified diff */
table.diff { width: 100%; margin: .4rem 0 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.diff td { padding: 0; vertical-align: top; }
table.diff td > div { padding: 0 1rem; font-family: var(--mono); font-size: .8rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
table.diff td > div.head { padding: .6rem 1rem; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
table.diff td > div.hunk { padding: .3rem 1rem; color: var(--faint); background: var(--surface-2); }
table.diff td > div.add { background: var(--add-bg); }
table.diff td > div.del { background: var(--del-bg); }

/* side-by-side diff (diff mode: ssdiff) */
table.ssdiff { width: 100%; font-family: var(--mono); font-size: .78rem; }
table.ssdiff td { padding: 0 .5rem; vertical-align: top; white-space: pre-wrap; }
table.ssdiff td.add { background: var(--add-bg); }
table.ssdiff td.del { background: var(--del-bg); }
table.ssdiff td.changed { background: var(--surface-2); }
table.ssdiff td.lineno { color: var(--faint); text-align: right; user-select: none; }
table.ssdiff td.hunk, table.ssdiff td.head { color: var(--muted); background: var(--surface-2); }

/* diff options panel */
.cgit-panel { margin: 0 0 1.4rem; padding: .75rem .95rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: .82rem; }
.cgit-panel b { display: block; margin-bottom: .4rem; color: var(--faint); font-size: .71rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.cgit-panel table { border-collapse: collapse; }
.cgit-panel th, .cgit-panel td { padding: .12rem .6rem .12rem 0; border: 0; text-align: left; }
.cgit-panel td.label { color: var(--muted); }
.cgit-panel td.ctrl select { padding: .15rem .3rem; font-size: .78rem; }

/* ---------- blobs ---------- */

div.content { font-size: .92rem; }

table.blob { width: 100%; table-layout: fixed; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.blob td { padding: 0; vertical-align: top; border: 0; }
table.blob td.linenumbers { width: 4.2rem; background: var(--surface-2); border-right: 1px solid var(--border); color: var(--faint); text-align: right; user-select: none; }
table.blob td.linenumbers pre { margin: 0; padding: .8rem .65rem; background: none; border: 0; line-height: 1.55; }
table.blob td.linenumbers a { color: inherit; }
table.blob td.linenumbers a:hover { color: var(--accent); text-decoration: none; }
table.blob td.lines pre { margin: 0; padding: .8rem 1rem; background: none; border: 0; border-radius: 0; line-height: 1.55; }
table.blob code { background: none; border: 0; padding: 0; font-size: inherit; }
table.blob .highlight, table.blob .highlight pre { margin: 0; padding: 0; background: none; border: 0; }

table.bin-blob { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.bin-blob th, table.bin-blob td { padding: .5rem .7rem; border-bottom: 1px solid var(--border); }

/* pygments emits a light-only inline <style>; keep tokens legible on dark */
@media (prefers-color-scheme: dark) {
  #cgit :is(table.blob, .markdown-body) .highlight .c,
  #cgit :is(table.blob, .markdown-body) .highlight .ch,
  #cgit :is(table.blob, .markdown-body) .highlight .cm,
  #cgit :is(table.blob, .markdown-body) .highlight .cp,
  #cgit :is(table.blob, .markdown-body) .highlight .cpf,
  #cgit :is(table.blob, .markdown-body) .highlight .c1,
  #cgit :is(table.blob, .markdown-body) .highlight .cs { color: #9198a6; }
  #cgit :is(table.blob, .markdown-body) .highlight .k,
  #cgit :is(table.blob, .markdown-body) .highlight .kc,
  #cgit :is(table.blob, .markdown-body) .highlight .kd,
  #cgit :is(table.blob, .markdown-body) .highlight .kn,
  #cgit :is(table.blob, .markdown-body) .highlight .kp,
  #cgit :is(table.blob, .markdown-body) .highlight .kr,
  #cgit :is(table.blob, .markdown-body) .highlight .o,
  #cgit :is(table.blob, .markdown-body) .highlight .ow { color: #ff8a80; }
  #cgit :is(table.blob, .markdown-body) .highlight .kt,
  #cgit :is(table.blob, .markdown-body) .highlight .kv { color: #82b1ff; }
  #cgit :is(table.blob, .markdown-body) .highlight .s,
  #cgit :is(table.blob, .markdown-body) .highlight .s1,
  #cgit :is(table.blob, .markdown-body) .highlight .s2,
  #cgit :is(table.blob, .markdown-body) .highlight .sa,
  #cgit :is(table.blob, .markdown-body) .highlight .sb,
  #cgit :is(table.blob, .markdown-body) .highlight .sc,
  #cgit :is(table.blob, .markdown-body) .highlight .sd,
  #cgit :is(table.blob, .markdown-body) .highlight .se,
  #cgit :is(table.blob, .markdown-body) .highlight .sh,
  #cgit :is(table.blob, .markdown-body) .highlight .si,
  #cgit :is(table.blob, .markdown-body) .highlight .sr,
  #cgit :is(table.blob, .markdown-body) .highlight .ss,
  #cgit :is(table.blob, .markdown-body) .highlight .sx,
  #cgit :is(table.blob, .markdown-body) .highlight .dl { color: #9ad7a8; background: transparent; }
  #cgit :is(table.blob, .markdown-body) .highlight .m,
  #cgit :is(table.blob, .markdown-body) .highlight .mb,
  #cgit :is(table.blob, .markdown-body) .highlight .mf,
  #cgit :is(table.blob, .markdown-body) .highlight .mh,
  #cgit :is(table.blob, .markdown-body) .highlight .mi,
  #cgit :is(table.blob, .markdown-body) .highlight .mo,
  #cgit :is(table.blob, .markdown-body) .highlight .il { color: #d7b3ff; }
  #cgit :is(table.blob, .markdown-body) .highlight .na,
  #cgit :is(table.blob, .markdown-body) .highlight .nb,
  #cgit :is(table.blob, .markdown-body) .highlight .bp,
  #cgit :is(table.blob, .markdown-body) .highlight .nc,
  #cgit :is(table.blob, .markdown-body) .highlight .nd,
  #cgit :is(table.blob, .markdown-body) .highlight .ne,
  #cgit :is(table.blob, .markdown-body) .highlight .nf,
  #cgit :is(table.blob, .markdown-body) .highlight .fm,
  #cgit :is(table.blob, .markdown-body) .highlight .nl,
  #cgit :is(table.blob, .markdown-body) .highlight .nn,
  #cgit :is(table.blob, .markdown-body) .highlight .nt,
  #cgit :is(table.blob, .markdown-body) .highlight .nv,
  #cgit :is(table.blob, .markdown-body) .highlight .nx,
  #cgit :is(table.blob, .markdown-body) .highlight .py { color: #8fd3ff; }
  #cgit :is(table.blob, .markdown-body) .highlight .err { color: #ffb4ae; background: transparent; }
  #cgit :is(table.blob, .markdown-body) .highlight .gd { color: #ffb4ae; background: transparent; }
  #cgit :is(table.blob, .markdown-body) .highlight .gi { color: #9ad7a8; background: transparent; }
  #cgit :is(table.blob, .markdown-body) .highlight .hll { background: #26262c; }
}
/* light mode: drop pygments' pink string background */
#cgit :is(table.blob, .markdown-body) .highlight .s,
#cgit :is(table.blob, .markdown-body) .highlight .s1,
#cgit :is(table.blob, .markdown-body) .highlight .s2,
#cgit :is(table.blob, .markdown-body) .highlight .sa,
#cgit :is(table.blob, .markdown-body) .highlight .sb,
#cgit :is(table.blob, .markdown-body) .highlight .sc,
#cgit :is(table.blob, .markdown-body) .highlight .sd,
#cgit :is(table.blob, .markdown-body) .highlight .se,
#cgit :is(table.blob, .markdown-body) .highlight .sh,
#cgit :is(table.blob, .markdown-body) .highlight .si,
#cgit :is(table.blob, .markdown-body) .highlight .sr,
#cgit :is(table.blob, .markdown-body) .highlight .ss,
#cgit :is(table.blob, .markdown-body) .highlight .sx,
#cgit :is(table.blob, .markdown-body) .highlight .dl { background: transparent; }

/* ---------- misc pages ---------- */

div.error { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--del-bg); border: 1px solid var(--del-fg); border-radius: var(--radius); }

table#downloads { margin: 1rem 0; }
table#downloads th { padding: .3rem 1rem .3rem 0; text-align: left; color: var(--faint); font-size: .71rem; text-transform: uppercase; letter-spacing: .07em; }
table#downloads td { padding: .2rem 1rem .2rem 0; }

table.stats, table.vgraph, table.hgraph { width: 100%; font-size: .86rem; }
table.stats th, table.stats td, table.vgraph th, table.vgraph td, table.hgraph th, table.hgraph td { padding: .3rem .5rem; border-bottom: 1px solid var(--border); text-align: left; }
table.stats td.total, table.stats td.sum { font-weight: 600; }
table.vgraph div.bar, table.hgraph div.bar { height: .6rem; background: var(--accent); opacity: .35; }

table.blame { width: 100%; font-family: var(--mono); font-size: .8rem; }
table.blame td.linenumbers { width: 4.2rem; color: var(--faint); text-align: right; user-select: none; }
table.blame td.lines div.alt, table.blame td.linenumbers div.alt { background: var(--surface-2); }
table.blame td.lines > div > pre { margin: 0; padding: 0 .5rem; background: none; border: 0; }

div.notes-header, div.notes-footer { margin: 1rem 0 .3rem; color: var(--faint); font-size: .71rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
div.notes { margin: 0 0 1rem; padding: .6rem .8rem; background: var(--surface-2); border-radius: var(--radius); font-size: .88rem; }

div.footer { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--faint); font-size: .78rem; }
div.footer a { color: var(--faint); }
div.footer a:hover { color: var(--text); }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  #cgit { padding: .9rem .85rem 2rem; }
  table#header td.logo img { height: 26px; }
  table#header td.logo { padding-right: .7rem; }
  table#header td.main { font-size: .85rem; }
  table#header td.form { white-space: normal; }
  table#header td.form form { flex-wrap: wrap; }

  table.tabs { flex-wrap: wrap; }
  table.tabs td { flex-wrap: wrap; }
  table.tabs td.form { margin-left: 0; width: 100%; padding: .1rem 0 .45rem; }
  table.tabs td.form form { flex-wrap: wrap; }

  table.list { font-size: .86rem; }
  table.list th, table.list td { padding: .45rem .35rem; }
  table.list:has(td.toplevel-repo) td:last-child,
  table.list:has(td.toplevel-repo) tr.nohover th:last-child { display: none; }
  table.list:has(td.ls-mode) td.ls-mode,
  table.list:has(td.ls-mode) tr.nohover th:first-child { display: none; }
  table.commit-info td.right { white-space: normal; }
  table.diffstat td.graph { display: none; }
  table.diffstat td.mode { display: none; }
  table.blob td.linenumbers { width: 2.8rem; }
  table.blob td.lines pre, table.blob td.linenumbers pre { font-size: .78rem; }
}
