@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --bg: #0b0c0e;
  --bg-2: #12141a;
  --card: #16181f;
  --line: #2a2d36;
  --ink: #ece7dc;
  --muted: #9a9486;
  --dim: #6d685c;
  --accent: #d4a017;
  --accent-2: #7dd3c0;
  --good: #7dce82;
  --bad: #e07a5f;
  --warn: #e8c547;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.rv-banner {
  background: #1c1810;
  border-bottom: 1px solid #3a3220;
  color: #e8d7a3;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}
.rv-banner strong { color: var(--accent); }

.rv-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,12,14,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rv-nav-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.rv-brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; letter-spacing: -0.03em; }
.rv-mark {
  width: 1.7rem; height: 1.7rem; border-radius: 4px;
  background: var(--accent); color: #1a1404;
  display: grid; place-items: center;
  font-family: "Newsreader", serif; font-weight: 600; font-size: 1.05rem;
}
.rv-links { display: flex; gap: 1.1rem; font-size: 0.86rem; color: var(--muted); flex-wrap: wrap; }
.rv-links a:hover, .rv-links a.active { color: var(--ink); }
.rv-cta {
  background: var(--accent); color: #1a1404; border: 0;
  padding: 0.45rem 0.85rem; border-radius: 4px; font-weight: 600; font-size: 0.82rem;
  cursor: pointer;
}
.rv-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: 0.45rem 0.85rem; border-radius: 4px; font-size: 0.82rem; cursor: pointer;
}

.rv-wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.kicker { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
h1, h2, .display {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 550; letter-spacing: -0.03em; line-height: 1.12;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.25rem 0 0.6rem; }
h2 { font-size: 1.7rem; margin: 0 0 0.75rem; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 42rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.pill {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.72rem; color: var(--muted);
}
.pill.hot { border-color: #4a3a12; color: var(--accent); background: #241c0a; }

table.explorer { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.explorer th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line);
  cursor: pointer; white-space: nowrap;
}
table.explorer td { padding: 0.8rem 0.75rem; border-bottom: 1px solid #22242c; vertical-align: top; }
table.explorer tr:hover td { background: #1b1e27; }
.num { font-variant-numeric: tabular-nums; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0; }
.filters input, .filters select {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.55rem 0.7rem;
}
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.35rem 0.7rem; cursor: pointer; font-size: 0.8rem;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.85rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }

.slider-row { display: grid; grid-template-columns: 8rem 1fr 3rem; gap: 0.6rem; align-items: center; margin: 0.45rem 0; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.toast {
  position: fixed; bottom: 1.2rem; right: 1.2rem; background: #222; border: 1px solid var(--line);
  padding: 0.7rem 0.9rem; border-radius: 6px; font-size: 0.85rem; display: none; z-index: 80;
}

.rv-field {
  display: grid; gap: .3rem; font-size: .86rem; color: var(--muted);
}
.rv-field input {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
  padding: .55rem; border-radius: 4px;
}
.rv-form { display: grid; gap: .75rem; }
.rv-err { color: var(--bad); font-size: .86rem; min-height: 1.1em; }

footer.rv-foot {
  border-top: 1px solid var(--line); color: var(--dim); font-size: 0.78rem;
  padding: 1.4rem 1.25rem 2.4rem; max-width: 1180px; margin: 0 auto;
}

@media (max-width: 760px) {
  .rv-links { display: none; }
  table.explorer { display: block; overflow-x: auto; }
}
