/* Branded 404 / 410 error pages */
body.error-page {
  background: #f8f5ef;
  color: #0a1628;
  font-family: "DM Sans", "Plus Jakarta Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.error-page #navbar,
body.error-page #navbar.navbar--dark-surface,
body.error-page #navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
}

body.error-page #navbar .nav-link,
body.error-page #navbar .has-dropdown > .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

body.error-page #navbar .logo-img {
  /* White logo on navy bar (header.js sets data-src-white) */
  filter: none;
}

.error-hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, #0a1628 0%, #0f1e3a 55%, #f8f5ef 55%);
}

.error-hero .container {
  width: 100%;
}

.error-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  text-align: center;
  border-top: 4px solid #c9a84c;
}

.error-code {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.75rem;
}

.error-card h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #0a1628;
}

.error-card p {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.error-links a.primary {
  background: #c9a84c;
  color: #0a1628;
}

.error-links a.primary:hover {
  background: #e8c97a;
}

.error-links a.secondary {
  background: #f2ede4;
  color: #0a1628;
  border: 1px solid #e5e0d8;
}

.error-links a.secondary:hover {
  border-color: #c9a84c;
}

.error-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.error-note code {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  background: #f2ede4;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  word-break: break-all;
}
