/* ============================================================
   Base — Root surfaces, buttons, a11y utilities
   ============================================================ */

body {
  background: var(--opx-bg);
  color: var(--opx-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Override EPrints auto-3.3.16.css body reset in dark mode */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #opxMain {
  background: var(--opx-bg);
  color: var(--opx-ink);
}

.opx-auth-actions .opx-hidden,
.opx-hidden {
  display: none;
}

.opx-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--opx-amber);
  color: var(--opx-navy-dark);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 999;
}
.opx-skip:focus { left: 0; }

.opx-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--opx-ink);
  background: var(--opx-pill-bg);
  border: 1px solid var(--opx-line);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.opx-btn-ghost:hover {
  background: var(--opx-surface);
  color: var(--opx-blue);
  border-color: #bfdbfe;
}

.opx-btn-sso {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #ffffff;
  background: var(--opx-blue);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.opx-btn-sso:hover {
  background: var(--opx-blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.opx-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--opx-blue), #4f46e5);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--opx-shadow-sm);
  white-space: nowrap;
}
.opx-btn-all:hover { filter: brightness(1.08); }
.opx-btn-all:link,
.opx-btn-all:visited,
.opx-btn-all:active { color: #ffffff; }

html[data-theme="dark"] .opx-btn-all {
  background: var(--opx-badge-bg);
  color: var(--opx-badge-fg);
}

.opx-pill-go:focus-visible,
.opx-btn-all:focus-visible,
.opx-nav a:focus-visible,
.opx-card:focus-visible {
  outline: 3px solid var(--opx-amber-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .opx-card, .opx-pill-go, .opx-btn-all { transition: none; }
}
