/* RustOxideVPS — ARCH-10 Dark Crimson-Rust (Ops Diagnostics HUD) */
:root {
  --rox-bg: #120a09;
  --rox-surface: #1e110f;
  --rox-surface-alt: #170d0c;
  --rox-ink: #fff7ed;
  --rox-muted: #cbd5e1;
  --rox-accent: #ea580c;
  --rox-accent-hover: #f97316;
  --rox-accent-soft: #431407;
  --rox-border: #451a14;
  --rox-ok: #34d399;
  --rox-warn: #fbbf24;
  --rox-danger: #f87171;
  --rox-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rox-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--rox-bg); color: var(--rox-ink);
  font-family: var(--rox-sans); font-size: 16px; line-height: 1.62;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: #fb923c; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rox-ink); }
img, svg { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--rox-mono); }

.rox-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rox-accent); color: #120a09;
  padding: 0.55rem 1rem; font-weight: 800; z-index: 100;
}
.rox-skip:focus { left: 0.75rem; top: 0.75rem; }
.rox-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.rox-hud-strip {
  background: #0b0504; border-bottom: 1px solid var(--rox-border);
  font-family: var(--rox-mono); font-size: 0.75rem; color: var(--rox-muted);
  padding: 0.38rem 0;
}
.rox-hud-strip-inner {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  justify-content: space-between; align-items: center;
}
.rox-hud-badge { color: var(--rox-ok); font-weight: 700; }
.rox-hud-alert { color: #fb923c; font-weight: 700; }

.rox-masthead { border-bottom: 1px solid var(--rox-border); background: var(--rox-surface-alt); }
.rox-masthead-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem 1.25rem; padding: 0.85rem 0;
}
.rox-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--rox-ink); font-weight: 800; font-size: 1.08rem;
}
.rox-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 6px;
  background: var(--rox-accent-soft); border: 1.5px solid var(--rox-accent);
  color: #fb923c; font-family: var(--rox-mono); font-size: 0.85rem; font-weight: 800;
}
.rox-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1rem; }
.rox-nav a { color: var(--rox-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.25rem 0.2rem; }
.rox-nav a[aria-current="page"], .rox-nav a:hover { color: #fb923c; }
.rox-disclosure-bar {
  border-top: 1px solid var(--rox-border); background: var(--rox-bg);
  padding: 0.42rem 1.25rem; font-size: 0.8rem; color: var(--rox-muted); text-align: center;
}

.rox-main { padding: 1.5rem 0 5.5rem; }
.rox-article { max-width: 1080px; margin: 0 auto; }
.rox-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  font-size: 0.82rem; color: var(--rox-muted); margin-bottom: 1rem;
  font-family: var(--rox-mono);
}

.rox-hero-hud {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 1.2rem; align-items: start;
  padding-bottom: 1.3rem; border-bottom: 1px solid var(--rox-border); margin-bottom: 1.4rem;
}
.rox-hero { padding-bottom: 1.2rem; border-bottom: 1px solid var(--rox-border); margin-bottom: 1.35rem; }
.rox-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  font-family: var(--rox-mono); font-size: 0.77rem; color: #fb923c;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.rox-eyebrow time {
  color: var(--rox-muted); padding: 0.1rem 0.5rem;
  border: 1px solid var(--rox-border); border-radius: 999px; background: var(--rox-surface);
}
h1 { font-size: clamp(1.62rem, 3.2vw, 2.28rem); line-height: 1.18; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.55rem); line-height: 1.26;
  margin: 1.85rem 0 0.75rem; border-left: 3px solid var(--rox-accent); padding-left: 0.75rem;
}
h3 { font-size: 1.06rem; line-height: 1.35; margin: 1.15rem 0 0.42rem; color: var(--rox-ink); }
.rox-lead { font-size: 1.02rem; color: var(--rox-ink); margin: 0 0 0.65rem; }
.rox-muted { color: var(--rox-muted); margin: 0; }
.rox-mono { font-family: var(--rox-mono); font-size: 0.84rem; color: #fb923c; }

.rox-hud-rail {
  background: var(--rox-surface); border: 1.5px solid var(--rox-accent);
  border-radius: 10px; padding: 1rem;
}
.rox-hud-rail h2 { margin: 0 0 0.65rem; border-left: 0; padding-left: 0; font-size: 0.95rem; font-family: var(--rox-mono); color: #fb923c; text-transform: uppercase; }
.rox-spec-list { list-style: none; padding: 0; margin: 0; }
.rox-spec-list li {
  display: flex; justify-content: space-between; gap: 0.6rem;
  padding: 0.42rem 0; border-bottom: 1px solid var(--rox-border); font-size: 0.84rem;
}
.rox-spec-list li:last-child { border-bottom: 0; }
.rox-spec-list span { color: var(--rox-muted); }
.rox-spec-list strong { font-family: var(--rox-mono); color: var(--rox-ink); }

.rox-deal-board {
  background: var(--rox-surface-alt); border: 1px solid var(--rox-border);
  border-radius: 10px; padding: 1rem 1.1rem; margin: 1rem 0 1.5rem;
}
.rox-deal-board h2 { margin-top: 0; }

.rox-hud-panel {
  background: var(--rox-surface); border: 1.5px solid var(--rox-border);
  border-radius: 12px; padding: 1.2rem; margin: 1.3rem 0 1.8rem;
}
.rox-hud-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.2rem; margin-top: 0.95rem; align-items: start;
}
.rox-pane {
  background: var(--rox-surface-alt); border: 1px solid var(--rox-border);
  border-radius: 10px; padding: 1.05rem;
}
.rox-pane-accent { border-color: var(--rox-accent); }
.rox-pane-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.5rem; padding-bottom: 0.65rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--rox-border); font-family: var(--rox-mono);
  font-size: 0.8rem; color: #fb923c; font-weight: 700;
}

.rox-preset-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 1rem; }
.rox-btn {
  background: var(--rox-bg); color: var(--rox-ink); border: 1px solid var(--rox-border);
  border-radius: 7px; padding: 0.42rem 0.78rem; font-family: var(--rox-mono);
  font-size: 0.79rem; font-weight: 600; cursor: pointer;
}
.rox-btn[aria-pressed="true"], .rox-btn:hover {
  background: var(--rox-accent-soft); border-color: var(--rox-accent); color: #fb923c;
}
.rox-btn-primary {
  display: inline-block; background: var(--rox-accent); color: #120a09;
  border: 1px solid var(--rox-accent); border-radius: 8px; padding: 0.56rem 1.05rem;
  font-weight: 800; font-size: 0.9rem; text-decoration: none; cursor: pointer;
}
.rox-btn-primary:hover { background: var(--rox-accent-hover); color: #120a09; }
.rox-btn-secondary {
  display: inline-block; background: var(--rox-bg); color: var(--rox-ink);
  border: 1px solid var(--rox-border); border-radius: 8px; padding: 0.56rem 1.05rem;
  font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer;
}
.rox-btn-secondary:hover { border-color: var(--rox-accent); color: #fb923c; }

.rox-controls-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem 0.95rem; margin-bottom: 0.9rem;
}
.rox-field label { display: block; font-size: 0.81rem; font-weight: 700; color: var(--rox-muted); margin-bottom: 0.3rem; }
.rox-field input, .rox-field select {
  width: 100%; background: var(--rox-bg); color: var(--rox-ink);
  border: 1px solid var(--rox-border); border-radius: 7px;
  padding: 0.48rem 0.65rem; font-family: var(--rox-mono); font-size: 0.88rem;
}

.rox-kpi-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem; margin-bottom: 0.9rem;
}
.rox-kpi {
  background: var(--rox-bg); border: 1px solid var(--rox-border);
  border-radius: 8px; padding: 0.7rem 0.85rem;
}
.rox-kpi-label { font-family: var(--rox-mono); font-size: 0.72rem; color: var(--rox-muted); text-transform: uppercase; }
.rox-kpi-val { font-family: var(--rox-mono); font-size: 1.08rem; font-weight: 800; color: #fb923c; margin-top: 0.2rem; }
.rox-meter-wrap { margin-bottom: 0.9rem; font-family: var(--rox-mono); font-size: 0.79rem; color: var(--rox-muted); }
.rox-meter-wrap progress { width: 100%; height: 10px; accent-color: var(--rox-accent); }

.rox-code-box {
  background: #0b0504; border: 1px solid var(--rox-border); border-radius: 8px;
  padding: 0.85rem; font-family: var(--rox-mono); font-size: 0.79rem;
  line-height: 1.48; color: #fed7aa; overflow-x: auto; white-space: pre;
  max-height: 330px; margin: 0 0 0.85rem;
}
.rox-cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin-top: 0.85rem; }

.rox-table-wrap { overflow-x: auto; margin: 0.9rem 0 1.2rem; border: 1px solid var(--rox-border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: var(--rox-surface); font-size: 0.89rem; }
th, td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rox-border); text-align: left; }
th { background: var(--rox-surface-alt); color: #fb923c; font-family: var(--rox-mono); font-size: 0.78rem; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.rox-figure {
  margin: 1.2rem 0; background: var(--rox-surface); border: 1px solid var(--rox-border);
  border-radius: 10px; padding: 0.85rem;
}
.rox-figure figcaption { margin-top: 0.55rem; font-size: 0.84rem; color: var(--rox-muted); }

.rox-card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem; margin: 0.95rem 0 1.45rem;
}
.rox-card {
  background: var(--rox-surface); border: 1px solid var(--rox-border);
  border-radius: 10px; padding: 1rem;
}
.rox-card h3 { margin-top: 0; font-size: 1rem; }
.rox-card-meta { font-family: var(--rox-mono); font-size: 0.76rem; color: #fb923c; margin-bottom: 0.38rem; }

.rox-note-box {
  background: var(--rox-accent-soft); border-left: 3px solid var(--rox-accent);
  border-radius: 8px; padding: 0.9rem 1rem; margin: 1.1rem 0;
}

.rox-footer {
  border-top: 1px solid var(--rox-border); background: var(--rox-surface-alt);
  padding: 1.8rem 0 5.5rem; font-size: 0.86rem; color: var(--rox-muted);
}
.rox-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.rox-footer-links { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.rox-footer-links li { margin-bottom: 0.35rem; }
.rox-footer strong { color: var(--rox-ink); }

.mob-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(18, 10, 9, 0.96); border-top: 1px solid var(--rox-accent);
  padding: 0.58rem 1rem; display: flex; align-items: center;
  justify-content: space-between; gap: 0.75rem;
}
.mob-sticky-text { font-family: var(--rox-mono); font-size: 0.79rem; color: var(--rox-ink); }
.mob-sticky-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.mob-sticky-cta {
  background: var(--rox-accent); color: #120a09; text-decoration: none;
  font-weight: 800; font-size: 0.81rem; padding: 0.45rem 0.85rem; border-radius: 7px; white-space: nowrap;
}
.mob-sticky-alt {
  color: var(--rox-ink); padding: 0.42rem 0.75rem; border-radius: 7px; font-weight: 700;
  font-size: 0.8rem; text-decoration: none; border: 1px solid var(--rox-border); white-space: nowrap;
}
.mob-sticky-alt:hover { border-color: var(--rox-accent); color: #fb923c; }

@media (max-width: 880px) {
  .rox-hero-hud, .rox-hud-split { grid-template-columns: 1fr; }
}
