/* EduZMS Examination Modules — custom overrides */
/* Synced from _shared/system.css: system.css loaded first; bg-blueprint-grid shared. */
:root {
  --color-accent: #3b82f6;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #334155;
  border-radius: 0 0 0.25rem 0;
  transform: translateY(-100%);
  transition: transform 0.15s ease-out;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Existing EduZMS utility reused for restrained page texture. */
.bg-blueprint-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Resource actions for IELTS downloads and hub links */
.resource-button {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  padding: 0.75rem 1rem;
  color: #bfdbfe;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.resource-button:hover {
  border-color: #3b82f6;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.85);
}

.resource-button-muted {
  color: #94a3b8;
  border-color: #1e293b;
  background: rgba(15, 23, 42, 0.45);
  cursor: default;
}

.resource-button-subnav {
  width: auto;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.resource-button-active {
  border-color: #3b82f6;
  background: rgba(30, 41, 59, 0.85);
  color: #dbeafe;
}

@media (max-width: 640px) {
  .resource-button {
    justify-content: flex-start;
  }
}

/* ========== Global dark theme fallback (post-migration) ========== */
/* Ensures pages don't render white when Tailwind CDN/base doesn't set background */
html,
body {
  background-color: #0b1220;
  color: #e2e8f0;
}
body {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
