/* Fixer's Forge — resilient branded not-found page */
#error-not-found.ff-not-found-page {
  width: min(100% - 32px, 1480px);
  max-width: 1480px;
  margin: 28px auto 72px;
  padding: 0;
}

.ff-not-found-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 22px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 64px);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 36px;
  background:
    radial-gradient(circle at 100% 100%, rgba(24, 160, 80, .14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,250,246,.82));
  box-shadow: 0 28px 70px rgba(17, 41, 32, .12), inset 0 1px 0 rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.ff-not-found-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto auto -120px -90px;
  width: 320px;
  aspect-ratio: 1;
  border: 58px solid rgba(255, 202, 0, .15);
  border-radius: 50%;
}

.ff-not-found-copy { align-self: center; min-width: 0; }

.ff-not-found-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(30, 132, 72, .13);
  border-radius: 999px;
  color: #18733f;
  background: rgba(229, 247, 236, .8);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ff-not-found-code {
  margin: clamp(22px, 4vw, 46px) 0 -12px;
  color: transparent;
  background: linear-gradient(130deg, #0c3325, #159c4a 62%, #ffca00 63%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(78px, 12vw, 168px);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: .72;
}

.ff-not-found-copy h1 {
  max-width: 760px;
  margin: 28px 0 12px;
  color: #0d1c17;
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}

.ff-not-found-intro {
  max-width: 670px;
  margin: 0;
  color: #5d7169;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
}

.ff-not-found-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 18px 0 0;
  color: #72847d;
  font-size: 12px;
}

.ff-not-found-path span { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ff-not-found-path code { max-width: 100%; overflow-wrap: anywhere; color: #385348; }

.ff-not-found-search { max-width: 720px; margin: 30px 0 0; }
.ff-not-found-search label { display: block; margin: 0 0 9px; color: #1c392e; font-size: 13px; font-weight: 850; }
.ff-not-found-search > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(23, 66, 49, .13);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 15px 35px rgba(19, 45, 35, .08), inset 0 1px 0 #fff;
}
.ff-not-found-search > div > i { color: #658078; }
.ff-not-found-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #14251f;
  background: transparent;
  font-size: 16px;
}
.ff-not-found-search button,
.ff-not-found-primary,
.ff-not-found-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ff-not-found-search button,
.ff-not-found-primary { color: #fff; background: #0e4a35; box-shadow: 0 12px 24px rgba(14,74,53,.18); }
.ff-not-found-secondary { color: #173c2e; border: 1px solid rgba(20,77,56,.16); background: rgba(255,255,255,.7); }
.ff-not-found-search button:hover,
.ff-not-found-primary:hover,
.ff-not-found-secondary:hover { transform: translateY(-2px); }
.ff-not-found-search button:hover,
.ff-not-found-primary:hover { color: #fff; background: #11613f; box-shadow: 0 16px 30px rgba(14,74,53,.24); }
.ff-not-found-secondary:hover { color: #0e4a35; background: #fff; }

.ff-not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.ff-not-found-guide {
  align-self: stretch;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 28px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 22px 55px rgba(13,52,38,.1), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}
.ff-not-found-orbit {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(11,51,36,.2);
  border-radius: 50%;
  color: #0d1b17;
  background: #e6f2fa;
  box-shadow: 0 12px 30px rgba(13,52,38,.12);
}
.ff-not-found-orbit span { font-family: Georgia, serif; font-size: 38px; font-weight: 800; }
.ff-not-found-guide h2 { margin: 0 0 20px; color: #10251d; font-size: clamp(24px, 2.2vw, 36px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; }
.ff-not-found-guide > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid rgba(19,61,44,.1);
  color: #19372c;
  text-decoration: none;
}
.ff-not-found-guide > a > span { display: grid; width: 44px; aspect-ratio: 1; place-items: center; border-radius: 14px; color: #127442; background: #e9f7ee; }
.ff-not-found-guide strong { min-width: 0; font-size: 15px; }
.ff-not-found-guide small { display: block; margin-top: 3px; color: #72857e; font-size: 12px; font-weight: 500; }
.ff-not-found-guide > a > i { color: #18934b; transition: transform .2s ease; }
.ff-not-found-guide > a:hover > i { transform: translateX(4px); }

@media (max-width: 991.98px) {
  .ff-not-found-shell { grid-template-columns: 1fr; }
  .ff-not-found-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ff-not-found-guide h2, .ff-not-found-orbit { grid-column: 1 / -1; }
  .ff-not-found-guide > a { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; border: 1px solid rgba(19,61,44,.1); border-radius: 18px; }
  .ff-not-found-guide > a > i { display: none; }
}

@media (max-width: 767.98px) {
  #error-not-found.ff-not-found-page { width: calc(100% - 24px); margin: 18px auto 34px; }
  .ff-not-found-shell { gap: 16px; padding: 18px; border-radius: 26px; }
  .ff-not-found-code { margin-top: 30px; font-size: clamp(78px, 30vw, 116px); }
  .ff-not-found-copy h1 { margin-top: 24px; font-size: clamp(34px, 11.5vw, 50px); }
  .ff-not-found-intro { font-size: 15px; }
  .ff-not-found-search > div { grid-template-columns: auto minmax(0, 1fr) 50px; gap: 9px; padding-left: 14px; border-radius: 17px; }
  .ff-not-found-search button { width: 50px; min-width: 50px; padding: 0; font-size: 0; }
  .ff-not-found-search button i { font-size: 14px; }
  .ff-not-found-actions { display: grid; grid-template-columns: 1fr; }
  .ff-not-found-primary, .ff-not-found-secondary { width: 100%; }
  .ff-not-found-guide { display: block; padding: 20px; border-radius: 22px; }
  .ff-not-found-guide > a { margin-top: 9px; }
  body.ff-storefront .ff-mobile-dock { position: fixed !important; z-index: 10050 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-not-found-search button,
  .ff-not-found-primary,
  .ff-not-found-secondary,
  .ff-not-found-guide > a > i { transition: none; }
}
