/* CarHelpMate v8.0.3 — generic 404 / inaccessible-resource page.
   Same visual and HTTP response for missing and private-without-access topics. */

body.chm-error-page {
  --error-card-max: 760px;
  --error-radius: 28px;
  --error-title-size: 30px;
  --error-copy-size: 15px;
}

.chm-error-shell {
  width: 100%;
  min-height: clamp(520px, 68vh, 760px);
  display: grid;
  place-items: center;
  padding: 48px 24px 72px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 18%, rgba(37,99,235,.075), transparent 31%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}

.chm-error-card {
  position: relative;
  width: min(100%, var(--error-card-max));
  padding: 48px 54px 44px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  border: 1px solid #dce7f3;
  border-radius: var(--error-radius);
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(28,55,90,.10), inset 0 1px 0 rgba(255,255,255,.95);
}

.chm-error-visual {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.chm-error-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 50%;
}
.chm-error-ring-a { inset: 5px; }
.chm-error-ring-b { inset: 17px; background: rgba(239,246,255,.86); border-color: rgba(37,99,235,.22); }

.chm-error-icon {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #2563eb;
  background: #fff;
  border: 1px solid #d7e5fa;
  box-shadow: 0 8px 24px rgba(37,99,235,.12);
}

.chm-error-code {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  color: #7f93ae;
}

.chm-error-kicker {
  margin: 0 0 10px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .16em;
  color: #4f73a0;
}

.chm-error-card h1 {
  margin: 0 !important;
  font-family: Manrope, Inter, sans-serif;
  font-size: var(--error-title-size) !important;
  line-height: 1.12 !important;
  font-weight: 750 !important;
  letter-spacing: -.028em !important;
  color: #10223a;
}

.chm-error-copy {
  max-width: 570px;
  margin: 17px auto 0;
  font-family: Inter, sans-serif;
  font-size: var(--error-copy-size);
  line-height: 1.65;
  font-weight: 400;
  color: #60728c;
}

.chm-error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.chm-error-btn {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.chm-error-hint {
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e3ebf4;
  border-radius: 999px;
  background: #f8fafc;
  color: #8291a7;
  font-family: Inter, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

@media (max-width: 700px) {
  .chm-error-shell {
    min-height: calc(100svh - 78px);
    padding: 24px 14px 36px;
  }
  .chm-error-card {
    padding: 38px 20px 30px;
    border-radius: 22px;
  }
  .chm-error-visual {
    width: 78px;
    height: 78px;
    margin-bottom: 16px;
  }
  .chm-error-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }
  .chm-error-code {
    top: 17px;
    right: 19px;
    font-size: 11px;
  }
  .chm-error-card h1 {
    font-size: 30px !important;
  }
  .chm-error-copy {
    font-size: 14px;
    line-height: 1.58;
  }
  .chm-error-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 23px;
  }
  .chm-error-btn {
    width: 100%;
    min-width: 0;
  }
  .chm-error-hint {
    border-radius: 14px;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .chm-error-shell { padding-inline: 10px; }
  .chm-error-card { padding-inline: 16px; }
  .chm-error-kicker { font-size: 10px; letter-spacing: .12em; }
  .chm-error-copy { font-size: 13px; }
}
