.bib-intro {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.bib-intro .lead {
  color: var(--text-dim);
  line-height: 1.7;
}

.bib-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.bib-stat {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-width: 120px;
}

.bib-stat-number {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.bib-stat-label {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.bib-section {
  margin-bottom: 2.5rem;
}

.bib-section-header {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.bib-entry {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(58, 58, 64, 0.3);
  line-height: 1.65;
  font-size: 0.92rem;
}

.bib-entry:last-child {
  border-bottom: none;
}

.bib-entry .author {
  color: var(--text-bright);
  font-weight: 600;
}

.bib-entry .title {
  font-style: italic;
}

.bib-entry .article-title {
  font-style: normal;
}

.bib-entry .pub-info {
  color: var(--text-dim);
}

.bib-tag {
  display: inline-block;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.bib-tag-primary {
  background: rgba(112, 160, 112, 0.15);
  color: var(--green);
  border: 1px solid rgba(112, 160, 112, 0.3);
}

.bib-tag-aar {
  background: rgba(201, 160, 80, 0.15);
  color: var(--amber);
  border: 1px solid rgba(201, 160, 80, 0.3);
}

.bib-tag-official {
  background: rgba(124, 157, 219, 0.15);
  color: var(--accent);
  border: 1px solid rgba(124, 157, 219, 0.3);
}

/* Search/filter */
.bib-filter {
  margin-bottom: 1.5rem;
}

.bib-filter input {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  width: 100%;
  max-width: 28rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.bib-filter input::placeholder {
  color: var(--text-dim);
}

.bib-filter input:focus {
  border-color: var(--accent-dim);
}

.bib-count {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* Sidebar stats */
.bib-sidebar-stat {
  text-align: center;
  padding: 0.75rem 0;
}

.bib-sidebar-number {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.bib-sidebar-label {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.bib-sidebar-count {
  float: right;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 400;
}

@media (max-width: 600px) {
  .bib-stats { flex-direction: column; gap: 0.75rem; }
}
