/* node.zenon.nom.co */
:root {
  --bg: #0A0D0F; --surface: #11161A; --line: #1E272C; --text: #E8EDEA;
  --muted: #94A19B; --accent: #6FF34D; --aqua: #5CE1E6; --warn: #F2C94C; --bad: #FF6B6B;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column;
}
main { width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(32px, 8vw, 88px) 20px 40px; flex: 1; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
h1 { margin: 14px 0 10px; font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -.01em; }
.lead { margin: 0 0 32px; color: var(--muted); max-width: 36em; }

/* Mobile: one item per line. Wider screens: all on one line. */
.status {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 20px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  font-family: var(--mono); font-size: 14px;
}
.status .label { display: inline-block; min-width: 4.5em; color: var(--muted); margin-right: 8px; }
@media (min-width: 560px) {
  .status { flex-direction: row; align-items: center; gap: 28px; }
  .status .label { min-width: 0; }
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: var(--accent); box-shadow: 0 0 0 4px rgba(111,243,77,.15); }
.dot.sync { background: var(--warn); }
.dot.bad { background: var(--bad); }

.endpoint { margin-bottom: 18px; }
.endpoint h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.row {
  display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden;
}
/* Always one line: what does not fit fades out behind the Copy button. */
.row code {
  flex: 1; min-width: 0; padding: 15px 16px; font: 15px/1.4 var(--mono); color: var(--aqua);
  white-space: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.copy {
  flex: 0 0 auto; min-width: 76px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text);
  font: 600 14px/1 system-ui, sans-serif; cursor: pointer; padding: 0 14px; transition: background .15s, color .15s;
}
.copy:hover { background: #172025; }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.copy.done { color: var(--accent); }

details { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
summary { cursor: pointer; color: var(--muted); font-weight: 500; }
summary:hover { color: var(--text); }
.codebox { position: relative; margin-top: 14px; }
.codebox .copy-sm {
  position: absolute; top: 8px; right: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--muted); font: 600 12px/1 system-ui, sans-serif; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.codebox .copy-sm:hover { color: var(--text); border-color: #2C3A39; }
.codebox .copy-sm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.codebox .copy-sm.done { color: var(--accent); }
pre {
  margin: 0; padding: 16px; padding-top: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 13px/1.55 var(--mono); color: var(--text); overflow-x: auto;
}
footer { padding: 24px 20px 32px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
