:root {
  --paper: #fafafa;
  --paper-2: #f4f4f5;
  --ink: #09090b;
  --ink-2: #27272a;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --rule: #e4e4e7;
  --rule-2: #e4e4e7;
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --rose: #e11d48;
  --rose-bg: #ffe4e6;
  --amber: #d97706;
  --amber-bg: #fef3c7;
  --slate: #475569;
  --slate-bg: #f1f5f9;
  --indigo: #4f46e5;
  --indigo-bg: #eef2ff;
  --highlight: #fef9c3;
}

.origin--v6 { color: var(--emerald); }
.origin--v5 { color: var(--slate); }
.origin--local { color: var(--amber); }
.origin--unknown { color: var(--muted); }

/* Copy-to-clipboard button — używany w detail page i expand panelu listy */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-2);
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .1s;
}
.copy-btn:hover { color: var(--emerald); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: "zero" 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  background-image:
    linear-gradient(to right,  rgba(9,9,11,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9,9,11,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* TOPBAR */
.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
}
.topbar .brand-tiny {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.topbar .meta { display: flex; gap: 18px; align-items: center; }
.topbar .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
  margin-right: 6px;
  position: relative;
  top: -1px;
}
.topbar .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.55; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* TABS */
.tabs {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.tabs a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .12s;
}
.tabs a:hover { color: var(--ink); }
.tabs a.tab--active {
  color: var(--ink);
  border-bottom-color: var(--emerald);
  font-weight: 500;
}
.tabs a .count {
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.05em;
}

/* SECTION MARK */
.section-mark {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 44px 32px 20px;
  max-width: 1480px;
  margin: 0 auto;
}
.section-mark__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.section-mark__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0;
}
.section-mark__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  align-self: center;
}
.section-mark__aside {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
