/* =====================================================
   NCLI — Custom Error Pages (404 / 403 / 500) styles
   Designed to be lightweight, on-brand, and accessible.
   ===================================================== */

.ncli-error-card {
  max-width: 720px;
  margin: 40px auto;
  padding: 36px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.dark .ncli-error-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ncli-error-illustration {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.ncli-error-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

body.dark .ncli-error-card h2 {
  color: #f1f5f9;
}

.ncli-error-card p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

body.dark .ncli-error-card p {
  color: #94a3b8;
}

.ncli-error-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.ncli-error-search input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

body.dark .ncli-error-search input[type="search"] {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.ncli-error-search input[type="search"]:focus {
  border-color: #2563eb;
}

.ncli-error-search .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ncli-error-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ncli-error-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.ncli-error-quick-links a:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

body.dark .ncli-error-quick-links a {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark .ncli-error-quick-links a:hover {
  background: #334155;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 540px) {
  .ncli-error-illustration { font-size: 72px; }
  .ncli-error-card { padding: 28px 18px; }
  .ncli-error-search { flex-direction: column; }
  .ncli-error-search .btn-primary { width: 100%; justify-content: center; }
}
