/*
 * Brand tweaks on top of the Unfold admin theme (colours are set in
 * config/admin_theme.py). These rules are unlayered, so they win over the
 * theme's Tailwind utilities.
 */

/* The accent is a light amber, so text on it is dark rather than white. */
.bg-primary-600,
.bg-primary-600 .text-white {
  color: var(--color-base-900);
}

/* Keep the login artwork centred as its panel is cropped to fit. */
body.login .bg-cover {
  background-position: center;
}

::selection {
  background: rgb(242 166 90 / 0.3);
}

/* Dashboard (templates/admin/index.html) */
.mr-dashboard {
  display: grid;
  gap: 24px;
}

.mr-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.mr-eyebrow {
  margin-bottom: 10px;
  font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary-500);
}

.mr-greeting {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-base-100);
}

.mr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mr-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mr-stat {
  padding: 16px 18px;
}

.mr-stat-label {
  color: var(--color-base-400);
}

.mr-stat-value {
  margin-top: 6px;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-base-100);
}

.mr-showcase a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--color-base-800);
}

.mr-showcase li:first-child a {
  padding-top: 0;
  border-top: 0;
}

.mr-showcase li:last-child a {
  padding-bottom: 0;
}

.mr-index {
  font: 12px ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--color-base-500);
}

.mr-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.mr-name {
  font-weight: 500;
  color: var(--color-base-100);
  transition: color 0.15s;
}

.mr-showcase a:hover .mr-name,
.mr-empty a {
  color: var(--color-primary-500);
}

.mr-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-base-400);
}
