/* ============================================================
   AS201131 — public status pages
   Light minimal theme (status.css)
   Used by: index.php, node.php, subscribe.php
   Admin keeps style.css untouched.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --border: #e7e9ed;
  --border-strong: #d7dae0;
  --ink: #16191d;
  --ink-2: #3a3f47;
  --muted: #757b85;
  --faint: #9aa0a9;

  --up: #18935a;
  --up-soft: #e8f5ee;
  --warn: #b86314;
  --warn-soft: #fbf0e2;
  --down: #cf3026;
  --down-soft: #fbeae8;
  --accent: #2f6bff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 28, 42, 0.05);
  --shadow: 0 1px 3px rgba(20, 28, 42, 0.06), 0 6px 18px -10px rgba(20, 28, 42, 0.12);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* sticky footer: main grows, footer stays at the bottom on short pages */
body > main { flex: 1 0 auto; }
body > .foot { flex-shrink: 0; }

/* prevent long unbroken strings (URLs, IPs, messages) from forcing horizontal scroll */
p, .incident p, .upd p, .node-name, .res-name { overflow-wrap: anywhere; }
.node > *, .stat, .prefix, .kv, .kv .v { min-width: 0; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }

/* ---------- Layout ---------- */
.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--ink); }

.nav-btn {
  padding: 7px 13px !important;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}
.nav-btn:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- Hero status ---------- */
.hero { padding: 52px 0 28px; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-status .dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.hero-status h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  letter-spacing: -0.025em;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin: 0 0 14px;
}

/* status color helpers */
.is-up    { color: var(--up); }
.is-down  { color: var(--down); }
.is-degraded, .is-stale, .is-unknown, .is-watch, .is-setup { color: var(--warn); }
.dot.is-up { background: var(--up); }
.dot.is-down { background: var(--down); }
.dot.is-degraded, .dot.is-stale, .dot.is-unknown, .dot.is-setup { background: var(--warn); }

/* ping ring: ONLY on the hero dot, and never intercepts clicks */
.hero-status .dot.is-up::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--up);
  opacity: 0.45;
  pointer-events: none;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.5; } 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* country flags (flag-icons) sizing */
.flag {
  display: inline-block;
  width: 1.18em;
  height: 0.84em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 28, 42, 0.08);
  vertical-align: -1px;
  background-size: cover;
  background-position: center;
}
.loc-chip .flag, .group-head .flag { width: 1.3em; height: 0.92em; }

/* promo strip (SEO / ligahosting.com) */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f0f4ff, var(--surface) 60%);
  box-shadow: var(--shadow-sm);
}
.promo p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.promo p b { color: var(--ink); }
.promo .promo-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 18px 20px;
}
.stat .lbl {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 7px;
}
.stat .num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat .num small { font-size: 0.95rem; color: var(--faint); font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: 22px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 1.12rem; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; }
.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s ease;
}
.btn { background: var(--ink); color: #fff; }
.btn:hover { background: #000; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-danger { background: var(--down); color: #fff; }
.btn-danger:hover { filter: brightness(0.94); }

/* ---------- Status chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.sc-up { color: var(--up); background: var(--up-soft); }
.chip.sc-down { color: var(--down); background: var(--down-soft); }
.chip.sc-degraded, .chip.sc-stale, .chip.sc-unknown { color: var(--warn); background: var(--warn-soft); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.filters label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; }
.filters label span { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.filters input, .filters select, .date-input {
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  width: 100%;
}
.filters input:focus, .filters select:focus, .date-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.filters .filter-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* quick location chips */
.loc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: 0.15s;
}
.loc-chip:hover { border-color: var(--border-strong); }
.loc-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.loc-chip .cc { font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; }
.loc-chip .ldot { width: 7px; height: 7px; border-radius: 50%; }
.loc-chip .ldot.loc-up { background: var(--up); }
.loc-chip .ldot.loc-down { background: var(--down); }
.loc-chip .ldot.loc-degraded { background: var(--warn); }

/* ---------- Node groups & rows ---------- */
.group { margin-bottom: 22px; }
.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 2px 10px;
}
.group-head h3 { font-size: 0.95rem; }
.group-head .cc {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.group-head .meta { margin-left: auto; font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }

.node-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.node {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(180px, 1fr) minmax(120px, 0.7fr);
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.node:first-child { border-top: 0; }
.node:hover { background: var(--surface-2); }
.node.row-focus { background: rgba(47, 107, 255, 0.06); }

.node-id { min-width: 0; }
.node-name { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.node-host {
  font-size: 0.76rem;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.node-host .cc { color: var(--faint); }

.node-uptime { text-align: right; }
.node-uptime .u-val { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.node-uptime .u-lbl { display: block; font-size: 0.68rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* compact resource bars inside a node row */
.mini-bars { display: flex; flex-direction: column; gap: 5px; }
.mini-bar { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 8px; }
.mini-bar .mb-name { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.mini-bar .mb-track { height: 5px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.mini-bar .mb-fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.mini-bar .mb-val { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); text-align: right; }

.usage-ok { background: var(--up); }
.usage-warn { background: var(--warn); }
.usage-critical { background: var(--down); }
.usage-na { background: #d3d7dd; }
.t-ok { color: var(--up); }
.t-warn { color: var(--warn); }
.t-critical { color: var(--down); }

/* 7d / 30d heatmap strip */
.heat { display: grid; gap: 3px; }
.heat.h7 { grid-template-columns: repeat(7, 1fr); }
.heat.h30 { grid-template-columns: repeat(30, 1fr); }
.heat .cell { height: 26px; border-radius: 4px; background: #e4e7eb; }
.heat.tiny .cell { height: 16px; border-radius: 3px; }
.cell.ub-up { background: var(--up); }
.cell.ub-degraded { background: var(--warn); }
.cell.ub-down { background: var(--down); }
.cell.ub-unknown { background: #e0e3e8; }
.heat .cell:hover { outline: 2px solid rgba(0,0,0,0.12); outline-offset: 1px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 11px; font-size: 0.76rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- Incidents / announcements ---------- */
.incident {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.incident:first-child { border-top: 0; }
.incident-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.incident-head h3 { font-size: 0.98rem; }
.incident-head time { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); white-space: nowrap; }
.incident p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.9rem; }
.incident .win { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.tags { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

.badge {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge.lv-critical { background: var(--down-soft); color: var(--down); }
.badge.lv-degraded { background: var(--warn-soft); color: var(--warn); }
.badge.lv-maintenance { background: #e9eefc; color: var(--accent); }
.badge.lv-info { background: #eef0f3; color: var(--muted); }
.badge.lv-resolved { background: var(--up-soft); color: var(--up); }
.badge.tgt { background: #eef0f3; color: var(--ink-2); text-transform: none; font-weight: 500; }
.badge.pin { background: #fff7e6; color: #a96a0a; }

.upd-list { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.upd { display: flex; gap: 10px; align-items: baseline; }
.upd .us { font-family: var(--mono); font-size: 0.64rem; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: #eef0f3; color: var(--muted); text-transform: uppercase; }
.upd p { margin: 0; font-size: 0.85rem; }
.upd time { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }

/* pagination */
.pager { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2);
  background: var(--surface);
}
.pager a:hover { border-color: var(--border-strong); }
.pager a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Network / prefixes ---------- */
.tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.tabs button {
  padding: 6px 13px; border: 0; background: transparent; border-radius: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs button small { font-family: var(--mono); font-weight: 400; opacity: 0.7; }

.prefix-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prefix {
  background: var(--surface);
  padding: 13px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.prefix code { font-family: var(--mono); font-size: 0.85rem; color: var(--ink); font-weight: 500; }
.prefix .active { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--up); }

.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { font-family: var(--mono); font-size: 0.74rem; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }

/* small key-value rows (system info, node detail) */
.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.kv:first-child { border-top: 0; }
.kv .k { color: var(--muted); font-size: 0.85rem; }
.kv .v { color: var(--ink); font-weight: 500; text-align: right; font-size: 0.88rem; }
.kv .v.mono, .kv .v .mono { font-family: var(--mono); }

/* two-column card grid (node detail) */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-pad { padding: 18px 20px; }
.card-pad h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 12px; font-weight: 600;
}

/* big resource bars (node detail) */
.res { display: flex; flex-direction: column; gap: 14px; }
.res-row .res-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.res-row .res-name { font-size: 0.85rem; color: var(--ink-2); }
.res-row .res-name small { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; }
.res-row .res-val { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; }
.res-track { height: 8px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.res-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }

/* uptime panel header */
.up-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.up-badges { display: flex; gap: 10px; }
.up-badge { text-align: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.up-badge .b-lbl { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.up-badge .b-val { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: var(--ink); }

/* chart */
.chart-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chart-legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.date-form { display: flex; gap: 7px; }
#trendChart { width: 100%; display: block; }

/* node detail identity */
.nd-id { padding: 40px 0 22px; }
.nd-id .title { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.nd-id h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.nd-id .sub { margin-top: 8px; color: var(--muted); font-size: 0.86rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nd-id .sub .cc { font-family: var(--mono); font-size: 0.72rem; padding: 2px 7px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); }
.dotsep { color: var(--faint); }

/* ---------- Subscribe ---------- */
.narrow { width: min(480px, calc(100% - 40px)); margin: 56px auto; }
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; }
.alert.ok { background: var(--up-soft); color: #0f6b41; border: 1px solid #bfe6cf; }
.alert.err { background: var(--down-soft); color: #a02018; border: 1px solid #f3c9c5; }
.sub-tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 18px; }
.sub-tabs button { padding: 7px 16px; border: 0; background: transparent; border-radius: 7px; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.sub-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sub-section { display: none; }
.sub-section.is-visible { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 0.78rem; color: var(--muted); }
.field input {
  padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 0.92rem;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,0.12); }
.hint { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Empty / setup ---------- */
.empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
}
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.setup-steps article { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.setup-steps b { display: block; color: var(--ink); margin: 8px 0 4px; }
.setup-steps .n { font-family: var(--mono); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.75rem; }
.setup-steps p { margin: 0; font-size: 0.84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { margin-top: 36px; border-top: 1px solid var(--border); background: var(--surface); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 40px 0 30px;
}
.foot-about p { color: var(--muted); font-size: 0.85rem; margin: 10px 0 14px; max-width: 32ch; }
.foot b.flogo { font-family: var(--mono); font-size: 0.95rem; color: var(--ink); }
.foot h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.foot a, .foot .fitem { display: block; color: var(--ink-2); font-size: 0.86rem; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.foot .fitem { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.foot-status .dot { width: 9px; height: 9px; border-radius: 50%; }
.foot-legal {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.78rem; color: var(--faint);
}

/* ---------- Animations on load ---------- */
.reveal { animation: rise 0.5s ease both; }
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .setup-steps { grid-template-columns: 1fr; }
  .node {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'id status' 'bars bars' 'uptime uptime';
    gap: 12px;
  }
  .node-id { grid-area: id; }
  .node-status { grid-area: status; }
  .node-uptime { grid-area: uptime; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .node-uptime .u-lbl { display: inline; }
  .mini-bars { grid-area: bars; }
}
@media (max-width: 620px) {
  .nav .hide-sm { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
