/* Standalone 404 — centered on viewport; overrides theme main/header layout rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
}

html,
body.staah-404-standalone {
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
}

body.staah-404-standalone {
  margin: 0 !important;
  padding: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  font-family: var(--font-family, system-ui, -apple-system, "Segoe UI", sans-serif);
  background: var(--color-body, #f5f5f5) !important;
  color: var(--color-desc, #333333);
  overflow-x: hidden;
}

/* Theme style.css often sets main { padding-top: 100px } — reset for 404 only */
body.staah-404-standalone main.not-found-shell {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto !important;
  padding: 0 !important;
  min-height: 0 !important;
  text-align: center;
}

.not-found-code {
  font-size: clamp(4rem, 20vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-brand, #c39b38);
  opacity: 0.75;
  margin: 0 0 0.35rem;
}

body.staah-404-standalone .not-found-shell h1 {
  font-size: clamp(1.125rem, 3.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--color-desc, #2a2a2a);
}

.not-found-line {
  display: block;
  width: 52px;
  height: 3px;
  margin: 0 auto 1.35rem;
  background: var(--color-brand, #c39b38);
  border: 0;
}

.not-found-message {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  color: var(--color-desc, #444444);
}

.not-found-home-btn {
  display: inline-block;
  padding: 0.8rem 2.25rem;
  background: var(--color-brand, #c39b38);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.not-found-home-btn:hover,
.not-found-home-btn:focus {
  color: #ffffff !important;
  filter: brightness(0.92);
  text-decoration: none;
}
