/* xgit — Purple King · white + royal purple */

:root {
  --king: #6b21a8;
  --king-deep: #4c1d7a;
  --king-soft: #f3e8ff;
  --king-mid: #a855f7;
  --king-glow: rgba(107, 33, 168, 0.14);
  --ink: #1e1230;
  --muted: #6b5b7a;
  --line: #ebe4f2;
  --line-strong: #d8cce6;
  --surface: #ffffff;
  --surface-2: #fcfaff;
  --hover: #f7f0ff;
  --add: #15803d;
  --del: #be123c;
  --head: #5b21b6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(76, 29, 122, 0.04), 0 12px 32px rgba(76, 29, 122, 0.06);
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(168, 85, 247, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(107, 33, 168, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #faf7ff 45%, #ffffff 100%);
  background-attachment: fixed;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: auto -10% -20% auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 68%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes drift {
  from { transform: translate(-4%, 2%) scale(1); }
  to { transform: translate(-12%, -6%) scale(1.08); }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* —— Header —— */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  animation: rise 0.55s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  background: var(--king-soft);
  transform: translateY(-1px);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background:
    linear-gradient(145deg, var(--king-mid) 0%, var(--king) 55%, var(--king-deep) 100%);
  box-shadow: 0 6px 16px var(--king-glow);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 30% 34% 30%;
  background: #fff;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  opacity: 0.95;
}

.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--king);
  background: var(--king-soft);
  border: 1px solid #e9d5ff;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
}

.heading-block {
  text-align: right;
  min-width: 0;
  flex: 1 1 12rem;
}

.page-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--king-deep);
}

.subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* —— Repo about (GitHub-style) —— */
.repo-about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  animation: rise 0.55s ease 0.04s both;
}

.repo-desc {
  margin: 0;
  flex: 1 1 14rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.repo-homepage {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--king);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.repo-homepage:hover {
  color: var(--king-deep);
  text-decoration: underline;
}

.repo-homepage-icon {
  display: inline-flex;
  opacity: 0.85;
}

.repo-homepage-inline {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--king);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.repo-homepage-inline:hover {
  text-decoration: underline;
}

.repo-homepage-inline::before {
  content: "↗ ";
  font-size: 0.78rem;
}

/* —— Clone —— */
.clone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease 0.05s both;
}

.clone-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--king);
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
}

.clone code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  flex: 1 1 auto;
}

.copy-btn {
  appearance: none;
  border: 1px solid #e9d5ff;
  background: var(--king-soft);
  color: var(--king);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: var(--king);
  color: #fff;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: var(--king);
  color: #fff;
  border-color: var(--king);
}

.copy-btn-toggle {
  margin-left: 0.1rem;
}

.copy-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Nav —— */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease 0.1s both;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--king);
  background: var(--king-soft);
}

.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--king-mid), var(--king));
  box-shadow: 0 6px 14px var(--king-glow);
}

/* —— Content —— */
#content {
  animation: rise 0.55s ease 0.15s both;
}

#content > h2 {
  margin: 1.4rem 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--king);
}

a {
  color: var(--king);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--king-deep);
}

a:target {
  background: var(--king-soft);
  border-radius: 4px;
}

/* —— Tables —— */
#content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#content thead td {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

#content tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

#content tbody tr:last-child td {
  border-bottom: 0;
}

#branches tr:hover td,
#tags tr:hover td,
#index tr:hover td,
#log tr:hover td,
#files tr:hover td {
  background: var(--hover);
}

#content table td {
  white-space: nowrap;
}

#index tr td:nth-child(2),
#tags tr td:nth-child(4),
#branches tr td:nth-child(4),
#log tr td:nth-child(2) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#index tr td:first-child a,
#files tr td:first-child a,
#log tr td:nth-child(2) a {
  font-weight: 600;
  text-decoration: none;
}

#index tr td:first-child a:hover,
#files tr td:first-child a:hover,
#log tr td:nth-child(2) a:hover {
  text-decoration: underline;
}

.desc {
  color: var(--muted);
}

td.num {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.A,
td.A {
  color: var(--add);
  font-weight: 600;
}

.D,
td.D {
  color: var(--del);
  font-weight: 600;
}

/* scroll wrapper feel on small screens */
#content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— Code / blobs / diffs —— */
pre {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin: 0.85rem 0;
  overflow-x: auto;
}

#content > p {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin: 0 0 0.85rem;
}

#content > p code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--king-soft);
  color: var(--king-deep);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

#blob {
  tab-size: 4;
}

#blob a.line {
  color: #a394b3;
  text-decoration: none;
  display: inline-block;
  min-width: 2.6em;
  text-align: right;
  margin-right: 0.85em;
  user-select: none;
}

#blob a.line:hover {
  color: var(--king);
}

pre a.h {
  color: var(--head);
  text-decoration: none;
}

span.i,
pre a.i {
  color: var(--add);
  text-decoration: none;
}

span.d,
pre a.d {
  color: var(--del);
  text-decoration: none;
}

#diffstat {
  margin-bottom: 0.85rem;
}

/* —— Footer —— */
.foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.foot span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--king-mid);
  box-shadow: 0 0 0 3px var(--king-soft);
  vertical-align: middle;
}

/* —— File / markdown views —— */
.file-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.file-title {
  margin: 0 !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--king-deep) !important;
  font-family: var(--mono);
  font-weight: 600 !important;
  overflow-wrap: anywhere;
}

.view-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.view-toggle a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.view-toggle a:hover {
  color: var(--king);
  background: var(--king-soft);
}

.view-toggle a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--king-mid), var(--king));
}

.view-toggle a.download {
  color: var(--king);
}

.view-toggle a.download:hover {
  background: var(--king-soft);
}

.view-toggle .copy-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  box-shadow: none;
}

.view-toggle .copy-btn:hover {
  color: var(--king);
  background: var(--king-soft);
  transform: none;
}

.view-toggle .copy-btn.copied {
  color: #fff;
  background: linear-gradient(135deg, var(--king-mid), var(--king));
}

.badge {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--king);
  background: var(--king-soft);
  border: 1px solid #e9d5ff;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
}

.markdown {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
  overflow-wrap: anywhere;
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown > :last-child {
  margin-bottom: 0;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--king-deep);
  margin: 1.35em 0 0.5em;
  line-height: 1.25;
  text-transform: none;
}

.markdown h1 { font-size: 1.7rem; }
.markdown h2 {
  font-size: 1.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}
.markdown h3 { font-size: 1.1rem; }
.markdown h4 { font-size: 1rem; }

.markdown p {
  margin: 0.75em 0;
}

.markdown a {
  font-weight: 500;
}

.markdown ul,
.markdown ol {
  margin: 0.75em 0;
  padding-left: 1.4em;
}

.markdown li {
  margin: 0.25em 0;
}

.markdown blockquote {
  margin: 1em 0;
  padding: 0.15em 0 0.15em 1em;
  border-left: 3px solid var(--king-mid);
  color: var(--muted);
  background: linear-gradient(90deg, var(--king-soft), transparent);
  border-radius: 0 8px 8px 0;
}

.markdown hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5em 0;
}

.markdown code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--king-soft);
  color: var(--king-deep);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

.markdown pre {
  margin: 1em 0;
  padding: 1rem 1.1rem;
  background: #1e1230;
  color: #f3e8ff;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
  overflow-x: auto;
}

.markdown pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.84rem;
}

.markdown img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.markdown table.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.92rem;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.markdown table.md-table th,
.markdown table.md-table td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: normal;
}

.markdown table.md-table th {
  background: var(--king-soft);
  color: var(--king-deep);
  font-weight: 700;
}

.markdown strong {
  font-weight: 700;
  color: var(--ink);
}

.html-preview-wrap {
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.html-preview-label {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--king-soft);
  border-bottom: 1px solid var(--line);
}

.html-preview {
  padding: 1rem 1.1rem;
  background: #fff;
  color: #1a1028;
  overflow-x: auto;
}

.markdown .html-preview table {
  border-collapse: collapse;
}

.markdown .html-preview table th,
.markdown .html-preview table td {
  border: 1px solid #ddd;
  padding: 0.4rem 0.6rem;
}

.view-toggle a.download {
  color: var(--king);
}

.view-toggle a.download:hover {
  background: var(--king-soft);
}

/* —— Site nav —— */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--king);
  background: var(--king-soft);
}

.site-nav a.active {
  color: var(--king-deep);
  background: var(--king-soft);
  border-color: #e9d5ff;
}

/* —— Stats / profiles —— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-link {
  text-decoration: none;
  color: inherit;
}

.stat-link:hover {
  border-color: #e9d5ff;
  background: var(--hover);
}

.stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--king-deep);
  font-variant-numeric: tabular-nums;
}

.stat-val.A { color: var(--add); }
.stat-val.D { color: var(--del); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--king-mid), var(--king-deep));
  box-shadow: 0 8px 18px var(--king-glow);
}

.profile-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--king-deep);
}

.profile-email {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.bar-track {
  height: 0.45rem;
  background: var(--king-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--king-mid), var(--king));
  border-radius: 999px;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.leader {
  display: grid;
  grid-template-columns: minmax(6rem, 12rem) 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.leader .bar-track {
  margin: 0;
}

.leader a {
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-link {
  font-weight: 600;
  text-decoration: none;
}

.author-link:hover {
  text-decoration: underline;
}

/* —— Syntax highlighting —— */
pre.code.hl,
#blob.code {
  background: #1a1028;
  color: #ebe4f5;
  border-color: #2e2040;
  padding: 0.85rem 0;
  line-height: 1.55;
}

pre.code.hl code {
  font-family: var(--mono);
  font-size: 0.82rem;
  display: block;
}

.code-line {
  display: block;
  padding: 0 1rem 0 0;
}

.code-line:hover {
  background: rgba(168, 85, 247, 0.08);
}

pre.code.hl a.line,
#blob.code a.line {
  color: #7a6a8a;
  min-width: 2.8em;
  margin-right: 0.9em;
}

.tok-kw { color: #d4a5ff; font-weight: 600; }
.tok-str { color: #f0c674; }
.tok-comment { color: #8b7a9e; font-style: italic; }
.tok-num { color: #7dd3a8; }
.tok-fn { color: #8ec7ff; }

#authors tr:hover td,
#author-repos tr:hover td,
#author-log tr:hover td,
#stats-repos tr:hover td,
#stats-authors tr:hover td {
  background: var(--hover);
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .shell {
    width: min(100% - 1.25rem, 1080px);
    padding-top: 1.1rem;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .heading-block {
    text-align: left;
    width: 100%;
  }

  .nav {
    border-radius: var(--radius);
    width: 100%;
  }

  #content thead td,
  #content tbody td {
    padding: 0.7rem 0.75rem;
  }

  /* stack-ish denser log on phones: hide less critical cols */
  #log thead td:nth-child(3),
  #log tbody td:nth-child(3),
  #log thead td:nth-child(4),
  #log tbody td:nth-child(4) {
    display: none;
  }

  #index thead td:nth-child(3),
  #index tbody td:nth-child(3) {
    display: none;
  }

  #branches thead td:nth-child(3),
  #branches tbody td:nth-child(3),
  #tags thead td:nth-child(3),
  #tags tbody td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-tag {
    display: none;
  }

  .page-title {
    font-size: 1.35rem;
  }

  #log thead td:nth-child(5),
  #log tbody td:nth-child(5),
  #log thead td:nth-child(6),
  #log tbody td:nth-child(6) {
    display: none;
  }

  #index thead td:nth-child(4),
  #index tbody td:nth-child(4) {
    display: none;
  }

  pre,
  #content > p {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
  }

  #blob a.line {
    min-width: 2em;
    margin-right: 0.55em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
