/* ============================================================
   MCHM References Block  —  css/references.css
   Used in: single posts (wp_enqueue via is_single())
   ============================================================ */

.mchm-refs {
  margin: 32px 0 0;
  padding: 0;
}

.mchm-refs__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.mchm-refs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ref-counter;
}

@media (max-width: 640px) {
  .mchm-refs__grid { grid-template-columns: 1fr; }
}

.mchm-refs__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #374151;
  transition: border-color .15s, box-shadow .15s;
}

.mchm-refs__item:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .08);
}

.mchm-refs__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #1d4ed8;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mchm-refs__body {
  flex: 1;
  min-width: 0;
}

.mchm-refs__authors {
  font-weight: 600;
  color: #111827;
}

.mchm-refs__journal {
  color: #6b7280;
  font-style: italic;
}

.mchm-refs__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px dashed #93c5fd;
}

.mchm-refs__link:hover {
  color: #1d4ed8;
  border-bottom-style: solid;
}

.mchm-refs__link svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
