/* ════════════════════════════════════════════
   404Nfound Homepage
   ════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #D6DEE7;
  font-family: 'Arial Black', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ─── Top repeating "404" row ─── */
.deco-row {
  text-align: center;
  padding: 1.2rem 1rem 0.6rem;
  overflow: hidden;
  line-height: 1.4;
  word-break: break-all;
  user-select: none;
}

.deco-char {
  display: inline-block;
  font-weight: 900;
  font-size: 2.6rem;
  margin: 0 0.15rem;
  letter-spacing: 0.04em;
}

.deco-char.d-blue  { color: #0000FF; }
.deco-char.d-green { color: #00FF00; }
.deco-char.d-red   { color: #FF0000; }

/* ─── Page container ─── */
.page {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 5rem 2.5rem;
  text-align: center;
  min-height: calc(100vh - 6rem);
}

/* ─── Edge vertical 404 decorations ─── */
.edge-deco {
  position: fixed;
  top: 2rem;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  user-select: none;
}

.edge-left  { left: 0.6rem; }
.edge-right { right: 0.6rem; }

.edge-deco span {
  display: block;
  font-weight: 900;
  font-size: 7rem;
  line-height: 1;
}

.e-red   { color: #FF0000; }
.e-green { color: #00FF00; }
.e-blue  { color: #0000FF; }

/* ─── Logo ─── */
.logo-area {
  margin-bottom: 0.5rem;
}

.logo-img {
  width: 260px;
  max-width: 60vw;
  height: auto;
}

/* ─── Title ─── */
.title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2.5rem;
}

/* ─── Two-column layout ─── */
.columns {
  display: flex;
  gap: 12%;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 560px;
}

.col {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.col-heading {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.8rem;
}

.col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.col a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  color: #800080;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}

.col a:hover {
  color: #a000a0;
}

/* ─── Status badges ─── */
.status-badge {
  display: inline-block;
  margin-left: 0.45rem;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.5;
  opacity: 0.85;
}
.status-loading { color: #888; background: #eee; }
.status-up      { color: #1a7f3f; background: #d4edda; }
.status-warn    { color: #856404; background: #fff3cd; }
.status-down    { color: #721c24; background: #f8d7da; }
.status-ext     { opacity: 0; }

/* ─── Footer ─── */
.footer {
  text-align: right;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  color: #555;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  position: absolute;
  bottom: 0;
  left: 5rem;
  right: 5rem;
}

/* ════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .deco-char { font-size: 1.6rem; }
  .page { padding: 1.5rem 1.2rem 2.5rem; }
  .edge-deco span { font-size: 4rem; }
  .edge-left  { left: 0.15rem; }
  .edge-right { right: 0.15rem; }
  .logo-img { width: 180px; }
  .title { font-size: 1.3rem; margin-bottom: 1.5rem; }
  .columns { gap: 8%; }
  .footer { left: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
  .deco-row { padding: 0.6rem 0.3rem 0.4rem; }
  .deco-char { font-size: 1.2rem; margin: 0 0.06rem; }
  .edge-deco { display: none; }
  .page { padding: 1rem 1rem 2rem; }
  .logo-img { width: 140px; }
  .columns { flex-direction: column; gap: 1.2rem; max-width: 260px; }
  .footer { left: 1rem; right: 1rem; text-align: center; }
}
