/* Botble wrappers — keep i365 chrome, do not leak Gerow/Bootstrap look */
.theme-i365cloud .ck-content > *:first-child { margin-top: 0; }
.theme-i365cloud .page-body { min-height: 40vh; }
.theme-i365cloud .post-article {
  max-width: var(--inner, 1150px);
  margin: 48px auto 80px;
  padding: 0 20px;
}
.theme-i365cloud .post-article h1 { margin: 0 0 16px; }
.theme-i365cloud .post-article .meta { color: #5b6770; margin-bottom: 24px; }
/* Error pages (404/403/405/500/503) — shared themed layout */
.theme-i365cloud .error-page {
  position: relative;
  padding: 96px 20px 120px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240,55,40,.06) 0%, transparent 55%),
    linear-gradient(180deg, #fafcfd 0%, #fff 100%);
  overflow: hidden;
}
.theme-i365cloud .error-page__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.theme-i365cloud .error-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  background: rgba(240,55,40,.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.theme-i365cloud .error-page__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: err-pulse 2s ease-in-out infinite;
}
@keyframes err-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(1.25); }
}
.theme-i365cloud .error-page__code {
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.theme-i365cloud .error-page h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 14px;
  color: var(--navy);
  line-height: 1.2;
}
.theme-i365cloud .error-page .lead {
  color: var(--grey);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 520px;
}
.theme-i365cloud .error-page__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.theme-i365cloud .error-page__actions .btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.theme-i365cloud .error-page__actions .btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1,27,38,.16);
}
.theme-i365cloud .error-page__actions .btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--off2);
}
.theme-i365cloud .error-page__actions .btn-ghost:hover {
  background: var(--off1);
  box-shadow: none;
}
@media (max-width: 560px) {
  .theme-i365cloud .error-page { padding: 60px 20px 80px; }
  .theme-i365cloud .error-page .lead { font-size: 14.5px; }
}
.theme-i365cloud .i365-nav,
.theme-i365cloud .nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
/* Mobile: hide the desktop mega-nav; the burger + drawer take over.
   Kept next to the original rule so specificity always wins over it.
   .header-tools stays visible on mobile too — it holds the compact
   login + market flag, mirroring the uniform pattern. */
@media (max-width: 980px) {
  .theme-i365cloud .i365-nav,
  .theme-i365cloud .nav { display: none !important; }
  .theme-i365cloud .header-tools { display: flex !important; }
  .theme-i365cloud .burger { display: block !important; }
}
.theme-i365cloud .i365-nav > a,
.theme-i365cloud .i365-nav > .drop > a,
.theme-i365cloud .nav > a,
.theme-i365cloud .nav > .drop > a { white-space: nowrap; }
