/* Branded error shell — EFF dark theme; red/green as accents (topbar stays dark so the logo stays visible) */
:root {
  --eff-red: #ed1c24;
  --eff-red-dark: #c41e3a;
  --eff-red-deep: #c82333;
  --eff-green: #28a745;
  --eff-green-bright: #34ce57;
  --eff-green-dark: #218838;
  --eff-bg: #181a1b;
  --eff-text: #f1f1f1;
  --eff-card: #2c3136;
}

.eff-error-page {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--eff-bg);
  color: var(--eff-text);
  display: flex;
  flex-direction: column;
}

.eff-error-skip:focus {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0.35rem 0.75rem;
  background: var(--eff-red);
  color: #fff;
  border-radius: 0.25rem;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

.eff-error-topbar {
  background: linear-gradient(180deg, #252a2e 0%, #1e2124 100%);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 3px solid var(--eff-red);
  border-bottom: 3px solid var(--eff-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.eff-error-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--eff-text);
}

.eff-error-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.eff-error-brand span {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.eff-error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.eff-error-card {
  max-width: 32rem;
  width: 100%;
  background: var(--eff-card);
  border-radius: 0.75rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(40, 167, 69, 0.28);
  text-align: center;
}

.eff-error-code {
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--eff-green-bright);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.eff-error-card h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--eff-text);
}

.eff-error-card p {
  margin: 0 0 1.5rem;
  line-height: 1.55;
  color: rgba(241, 241, 241, 0.88);
  font-size: 0.98rem;
}

.eff-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.eff-error-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eff-error-actions .btn-primary-eff {
  background: linear-gradient(135deg, var(--eff-red) 0%, var(--eff-red-deep) 100%);
  color: #fff;
  border: 2px solid var(--eff-red);
}

.eff-error-actions .btn-primary-eff:hover {
  background: var(--eff-red-deep);
  border-color: var(--eff-red-deep);
  color: #fff;
}

.eff-error-actions .btn-outline-eff {
  background: transparent;
  color: var(--eff-green-bright);
  border: 2px solid var(--eff-green);
}

.eff-error-actions .btn-outline-eff:hover {
  background: rgba(40, 167, 69, 0.15);
  color: #d4edda;
  border-color: var(--eff-green-bright);
}

.eff-error-foot {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: rgba(241, 241, 241, 0.45);
}
