/* ========================================================================== 
   FILE: __core/coreCss/components.error-flow.css
   PURPOSE: Error-state surfaces rendered inside full pages or AJAX views.
   DEPENDS: tokens.css, base.css.
   ========================================================================== */

.efv-wrap,
.sev-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(320px, 62vh, 640px);
  padding: var(--sp-5);
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
}

.efv-card,
.sev-card {
  width: min(100%, 520px);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text);
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

.efv-icon,
.sev-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-bottom: var(--sp-3);
  color: var(--danger);
}

.efv-icon svg,
.sev-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.8;
}

.efv-title,
.sev-title {
  margin: 0 0 var(--sp-3);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.efv-msg,
.sev-body {
  margin: 0 0 var(--sp-4);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.efv-code,
.sev-code {
  margin-bottom: var(--sp-4);
  color: var(--text-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.efv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.efv-btn,
.sev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.efv-btn--primary,
.sev-btn {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.efv-btn--secondary {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.efv-btn:hover,
.sev-btn:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

.efv-btn:focus-visible,
.sev-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 575px) {
  .efv-wrap,
  .sev-wrap {
    min-height: 360px;
    padding: var(--sp-3);
  }

  .efv-card,
  .sev-card {
    padding: var(--sp-5) var(--sp-4);
  }

  .efv-actions {
    flex-direction: column;
  }

  .efv-btn,
  .sev-btn {
    width: 100%;
  }
}
