/* ================================
   UA Administrative Codes Dataset Page
   ================================ */

/* DOI Badge */
.badge-doi {
  background: color-mix(in srgb, var(--md-sys-color-primary) 15%, transparent);
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  transition: background var(--md-sys-motion-duration-short);
}

.badge-doi:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 25%, transparent);
}

/* Paid schema rows */
.schema-row-paid {
  background: color-mix(in srgb, var(--md-sys-color-primary) 4%, transparent);
}

.schema-paid-badge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, #ff9800 15%, transparent);
  color: #ff9800;
  vertical-align: middle;
}

/* Stats Grid */
.ds-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.ds-stat-card {
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.ds-stat-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  margin-bottom: var(--space-md);
}

.ds-stat-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ds-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  font-size: 0.9375rem;
}

.ds-stat-row:last-child {
  border-bottom: none;
}

.ds-stat-row span {
  color: var(--md-sys-color-on-surface-variant);
}

.ds-stat-row strong {
  color: var(--md-sys-color-on-surface);
  font-weight: 700;
}

/* Author external identifiers (subtle) */
.ds-author-ids {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: 0.6875rem;
}

.ds-author-ids a {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity var(--md-sys-motion-duration-short);
}

.ds-author-ids a:hover {
  opacity: 0.8;
}

.ds-author-ids span {
  color: var(--md-sys-color-outline);
  opacity: 0.3;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
  .ds-stats-grid {
    grid-template-columns: 1fr;
  }
}
