/* ==========================================================================
   Armaxcoin "Quantum Lattice" design system
   Shared by armax_web (armax-coin.cloud) and armax-explorer (*.explorer.*).
   Self-hosted fonts only (no third-party requests, zero-tracking policy).
   ========================================================================== */

/* --- Fonts (SIL OFL 1.1, see /fonts/OFL-*.txt) --- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens: dark (default) --- */
:root {
  color-scheme: dark;

  --bg: #090c1b;
  --bg-subtle: #0c1024;
  --surface: #10152d;
  --surface-2: #151b38;
  --surface-hover: #1b2246;
  --surface-glass: rgba(16, 21, 45, 0.78);
  --border: rgba(148, 160, 255, 0.14);
  --border-subtle: rgba(148, 160, 255, 0.08);
  --border-strong: rgba(148, 160, 255, 0.26);
  --border-focus: #4fd1e8;

  --text: #e9ebf8;
  --text-muted: #a3aacb;
  --text-dim: #7c84aa;
  --text-inverse: #0b0d1a;

  /* Brand gold (from the logo) and live-data cyan */
  --brand: #f2c14e;
  --brand-strong: #e0a82e;
  --brand-ink: #1a1302;
  --brand-subtle: rgba(242, 193, 78, 0.12);
  --brand-border: rgba(242, 193, 78, 0.38);
  --data: #4fd1e8;
  --data-subtle: rgba(79, 209, 232, 0.12);
  --data-border: rgba(79, 209, 232, 0.34);

  /* Legacy aliases kept for page scripts that reference --accent */
  --accent: var(--data);
  --accent-hover: #7ddff0;
  --accent-subtle: var(--data-subtle);

  --success: #3ddc97;
  --success-subtle: rgba(61, 220, 151, 0.12);
  --success-border: rgba(61, 220, 151, 0.34);
  --warning: #f5a524;
  --warning-subtle: rgba(245, 165, 36, 0.12);
  --warning-border: rgba(245, 165, 36, 0.36);
  --danger: #ff5c7a;
  --danger-subtle: rgba(255, 92, 122, 0.12);
  --danger-border: rgba(255, 92, 122, 0.36);
  --violet: #a78bfa;
  --violet-subtle: rgba(167, 139, 250, 0.14);
  --live: var(--success);

  --lattice-dot: rgba(148, 160, 255, 0.16);
  --lattice-line: rgba(148, 160, 255, 0.045);
  --glow-data: 0 0 0 1px var(--data-border), 0 8px 28px rgba(79, 209, 232, 0.12);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(3, 5, 18, 0.45);
  --shadow-lg: 0 24px 64px rgba(3, 5, 18, 0.6);

  --container-max: 1320px;
  --navbar-height: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Tokens: light --- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f6fc;
  --bg-subtle: #eef0f9;
  --surface: #ffffff;
  --surface-2: #f3f4fb;
  --surface-hover: #e9ebf7;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --border: rgba(30, 38, 92, 0.13);
  --border-subtle: rgba(30, 38, 92, 0.07);
  --border-strong: rgba(30, 38, 92, 0.24);
  --border-focus: #0a7e93;

  --text: #121530;
  --text-muted: #4a5078;
  --text-dim: #646a90;
  --text-inverse: #ffffff;

  --brand: #8f6200;
  --brand-strong: #6f4b00;
  --brand-ink: #ffffff;
  --brand-subtle: rgba(181, 128, 0, 0.1);
  --brand-border: rgba(143, 98, 0, 0.36);
  --data: #0a7e93;
  --data-subtle: rgba(10, 126, 147, 0.09);
  --data-border: rgba(10, 126, 147, 0.32);
  --accent-hover: #075f6f;

  --success: #0c8a57;
  --success-subtle: rgba(12, 138, 87, 0.1);
  --success-border: rgba(12, 138, 87, 0.3);
  --warning: #a35f00;
  --warning-subtle: rgba(198, 120, 0, 0.11);
  --warning-border: rgba(163, 95, 0, 0.32);
  --danger: #c2183f;
  --danger-subtle: rgba(194, 24, 63, 0.09);
  --danger-border: rgba(194, 24, 63, 0.3);
  --violet: #6d4fd8;
  --violet-subtle: rgba(109, 79, 216, 0.1);

  --lattice-dot: rgba(30, 38, 92, 0.13);
  --lattice-line: rgba(30, 38, 92, 0.035);
  --glow-data: 0 0 0 1px var(--data-border), 0 8px 24px rgba(10, 126, 147, 0.1);
  --shadow-md: 0 10px 30px rgba(20, 26, 70, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 26, 70, 0.14);
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Lattice field: a fixed grid of lattice points behind every page (the brand motif,
   a nod to the lattice cryptography behind ML-DSA-65). Fades out down the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, var(--lattice-dot) 1.2px, transparent 0),
    linear-gradient(var(--lattice-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lattice-line) 1px, transparent 1px);
  background-size: 32px 32px, 128px 128px, 128px 128px;
  -webkit-mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 30%, transparent 85%);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
svg {
  flex-shrink: 0;
}

a {
  color: var(--data);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 0.95rem; }

p {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 1;
}
code {
  font-size: 0.86em;
  padding: 0.08em 0.38em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--brand-subtle);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 3000;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}
.skip-link:focus {
  top: 0.75rem;
  color: var(--brand-ink);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.main-content {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 1.75rem 1.25rem 3.5rem;
  flex: 1;
}

.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.row { display: flex; align-items: center; gap: var(--gap, 0.75rem); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-data { color: var(--data); }
.text-brand { color: var(--brand); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.76rem; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-5); }
.hidden { display: none !important; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--data);
}

/* --- Testnet / mainnet strip --- */
.testnet-strip {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand-subtle), transparent 60%), var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.testnet-strip.is-mainnet {
  background: linear-gradient(90deg, var(--violet-subtle), transparent 60%), var(--bg-subtle);
}
.testnet-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 36px;
  padding-block: 0.35rem;
}
.testnet-strip-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  min-width: 0;
}
.testnet-strip-text code {
  font-size: 0.76rem;
}
.strip-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--brand-subtle);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}
.is-mainnet .strip-pill {
  background: var(--violet-subtle);
  color: var(--violet);
  border-color: var(--violet);
}
.strip-link {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.strip-dismiss {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
}
.strip-dismiss:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--navbar-height);
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand-text {
  height: 15px;
  width: auto;
}
.net-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--data);
  background: var(--data-subtle);
  border: 1px solid var(--data-border);
  white-space: nowrap;
}
.net-badge.is-mainnet {
  color: var(--violet);
  background: var(--violet-subtle);
  border-color: var(--violet);
}
.net-badge.is-soon {
  color: var(--brand);
  background: var(--brand-subtle);
  border-color: var(--brand-border);
}

.global-search-form {
  flex: 1 1 320px;
  max-width: 460px;
  display: flex;
  align-items: center;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.global-search-form:focus-within {
  border-color: var(--data-border);
  box-shadow: 0 0 0 3px var(--data-subtle);
}
.global-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.85rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}
.global-search-input::placeholder {
  color: var(--text-dim);
}
.global-search-btn {
  width: 38px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border-left: 1px solid var(--border-subtle);
}
.global-search-btn:hover {
  color: var(--data);
}

.nav-desktop {
  margin-left: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -15px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.pool-pill,
.node-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.pool-pill:hover {
  border-color: var(--brand-border);
  color: var(--text);
}
.network-switch-pill {
  color: var(--violet);
  border-color: var(--violet-subtle);
}
.network-switch-pill.to-testnet {
  color: var(--brand);
  border-color: var(--brand-border);
}
.node-status-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.node-status-pill.is-offline {
  color: var(--danger);
  border-color: var(--danger-border);
}
.status-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}
.status-dot.is-live,
.live-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-subtle);
  animation: pulse 2.4s ease-in-out infinite;
}
.status-dot.is-offline {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-subtle);
  animation: none;
}
.status-dot.is-soon {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-subtle);
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.theme-toggle-btn,
.mobile-menu-btn {
  display: inline-grid;
  place-items: center;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.theme-toggle-btn:hover,
.mobile-menu-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.mobile-menu-btn {
  display: none;
  grid-auto-flow: column;
  gap: 0.35rem;
  padding: 0 0.6rem;
  font-size: 0.78rem;
}

.mobile-quick-nav {
  display: none;
  border-top: 1px solid var(--border-subtle);
}
.mobile-quick-nav-inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.5rem;
  scrollbar-width: none;
}
.mobile-quick-nav-inner::-webkit-scrollbar {
  display: none;
}
.mobile-quick-pill {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.mobile-quick-pill.active {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: var(--brand);
}

.mobile-nav-drawer {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.25rem 1.1rem;
  background: var(--surface);
}
.mobile-search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mobile-search-form .global-search-input {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.mobile-nav-links {
  display: grid;
  gap: 0.15rem;
}
.mobile-nav-links .nav-link {
  width: 100%;
  height: 40px;
}
.mobile-nav-links .nav-link.active::after {
  display: none;
}
.mobile-nav-links .nav-link.active {
  background: var(--brand-subtle);
  color: var(--brand);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 1.05rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  height: 48px;
  padding: 0 1.4rem;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--brand-ink);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  color: var(--text);
}
.btn-accent {
  background: var(--data-subtle);
  color: var(--data);
  border-color: var(--data-border);
}
.btn-accent:hover {
  background: var(--data);
  color: var(--text-inverse);
}
.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.btn.is-active {
  background: var(--data-subtle);
  color: var(--data);
  border-color: var(--data-border);
}
.btn-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dim);
}
.btn-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.btn-copy-mini {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  color: var(--text-dim);
  vertical-align: middle;
}
.btn-copy-mini:hover {
  color: var(--data);
  background: var(--data-subtle);
}
.btn-copy-mini svg {
  width: 13px;
  height: 13px;
}
.btn-copy-mini.copied {
  color: var(--success);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.badge-success { color: var(--success); background: var(--success-subtle); border-color: var(--success-border); }
.badge-warning { color: var(--warning); background: var(--warning-subtle); border-color: var(--warning-border); }
.badge-danger { color: var(--danger); background: var(--danger-subtle); border-color: var(--danger-border); }
.badge-info { color: var(--data); background: var(--data-subtle); border-color: var(--data-border); }
.badge-brand { color: var(--brand); background: var(--brand-subtle); border-color: var(--brand-border); }
.badge-violet { color: var(--violet); background: var(--violet-subtle); border-color: var(--violet-subtle); }
.badge-get { color: var(--success); background: var(--success-subtle); border-color: var(--success-border); }
.badge-post { color: var(--brand); background: var(--brand-subtle); border-color: var(--brand-border); }

/* --- Panels & cards --- */
.panel,
.table-panel,
.chart-card,
.stat-card,
.endpoint-card,
.notice-box,
.wallet-address-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
/* Lattice corner node: a small brand accent on primary surfaces */
.panel::before,
.table-panel::before,
.chart-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 28px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.85;
}
.panel {
  padding: 1.25rem;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin-top: 0.35rem;
}
.page-header p {
  max-width: 64ch;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}
.page-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: var(--data-border);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-dim);
}
.stat-label,
.chart-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-value {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-value.is-data {
  color: var(--data);
}
.stat-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Network status ribbon on the explorer */
.net-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.net-ribbon-item {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border-subtle);
  min-width: 0;
}
.net-ribbon-item:last-child {
  border-right: none;
}
.net-ribbon-value {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.net-ribbon-value.is-data {
  color: var(--data);
}

/* --- Charts --- */
.charts-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.chart-card {
  padding: 1rem 1.1rem 0.85rem;
}
.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.chart-card-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.chart-card-note {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
}
.chart-svg-wrap {
  position: relative;
  width: 100%;
  height: 72px;
  margin-top: 0.5rem;
  cursor: crosshair;
}
.chart-svg-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sparkline-canvas {
  width: 100%;
  height: 100%;
}
.sparkline-tooltip {
  position: absolute;
  top: -28px;
  right: 0;
  z-index: 10;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.15s, transform 0.15s;
}
.sparkline-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tabs, filters, controls --- */
.explorer-controls-bar {
  position: sticky;
  top: var(--navbar-height);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 -1.25rem 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.view-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.view-tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.tab-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--surface-hover);
  color: var(--text-muted);
}
.controls-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.privacy-badge,
.auto-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-subtle);
}
.privacy-badge {
  color: var(--data);
  border-color: var(--data-border);
  background: var(--data-subtle);
}
.auto-refresh-pill .btn {
  height: 24px;
  padding: 0 0.5rem;
  font-size: 0.7rem;
}
.auto-refresh-pill .live-dot.is-paused {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}
.filter-pill-group {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.btn-filter-pill,
.fee-preset-pill {
  height: 28px;
  padding: 0 0.7rem;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-filter-pill:hover,
.fee-preset-pill:hover {
  color: var(--text);
}
.btn-filter-pill.active,
.fee-preset-pill.active {
  background: var(--data-subtle);
  color: var(--data);
  border-color: var(--data-border);
}
.fee-val {
  font-family: var(--font-mono);
}

.milestone-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-dim);
}
.milestone-bar-label {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

/* --- Tables --- */
.table-panel {
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.table-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.table-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}
.table-panel-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
}
.table-panel-footer {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.table-compact {
  font-size: 0.84rem;
}
.table-compact th {
  padding: 0.6rem 1.1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-compact td {
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  vertical-align: middle;
  white-space: nowrap;
}
.table-compact tbody tr {
  transition: background 0.12s;
}
.table-compact tbody tr:hover {
  background: var(--surface-hover);
}
.table-compact tbody tr:last-child td {
  border-bottom: none;
}
.table-compact td.table-empty {
  padding: 2.25rem 1rem;
  text-align: center;
  color: var(--text-dim);
  white-space: normal;
}
.hash-cell,
.mono-cell {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.hash-cell a,
.link-accent {
  color: var(--data);
}
.hash-cell a:hover,
.link-accent:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.block-age-cell,
.transfer-age-cell {
  text-align: right;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.block-age-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.block-conf-cell,
.transfer-conf-cell {
  font-variant-numeric: tabular-nums;
}
.amount-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.param-table {
  font-size: 0.86rem;
}
.param-table th,
.param-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.param-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-subtle);
}

/* --- Pagination --- */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.pagination-bar:empty {
  display: none;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.btn-page-nav,
.btn-page-num {
  min-width: 32px;
  height: 32px;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--surface);
}
.btn-page-nav:hover:not(:disabled),
.btn-page-num:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-page-num.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-ellipsis {
  padding: 0 0.25rem;
  color: var(--text-dim);
}
.page-jump-input {
  width: 64px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* --- Forms --- */
.form-field {
  display: grid;
  gap: 0.4rem;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--data-border);
  box-shadow: 0 0 0 3px var(--data-subtle);
}
.input.mono,
.form-field input.mono {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.input-hint-error,
.input-hint-success {
  font-size: 0.78rem;
}
.input-hint-error { color: var(--danger); }
.input-hint-success { color: var(--success); }

.explorer-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.explorer-search-box:focus-within {
  border-color: var(--data-border);
  box-shadow: var(--glow-data);
}
.explorer-search-box svg {
  color: var(--text-dim);
}
.explorer-search-box input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
}
.explorer-search-box input::placeholder {
  color: var(--text-dim);
}

/* --- Callouts & banners --- */
.notice-banner,
.state-banner,
.alert-box,
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.state-banner.is-offline,
.alert-box.is-danger,
.callout.is-danger {
  border-color: var(--danger-border);
  background: var(--danger-subtle);
  color: var(--danger);
}
.state-banner.is-syncing,
.callout.is-warning {
  border-color: var(--warning-border);
  background: var(--warning-subtle);
  color: var(--warning);
}
.callout.is-info {
  border-color: var(--data-border);
  background: var(--data-subtle);
}
.callout.is-brand {
  border-color: var(--brand-border);
  background: linear-gradient(120deg, var(--brand-subtle), transparent 70%), var(--surface);
}
.callout-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--brand-subtle);
  color: var(--brand);
}
.callout-body {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 320px;
  min-width: 0;
}
.callout-title {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.callout-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.callout-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.notice-box {
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.node-offline-alert {
  display: none;
}
.node-offline-alert.show {
  display: flex;
}

/* --- Upgrade banner (auto-release) --- */
.armax-upgrade-banner {
  position: relative;
  z-index: 70;
  background: linear-gradient(90deg, var(--brand-subtle), var(--data-subtle));
  border-bottom: 1px solid var(--brand-border);
}
.armax-upgrade-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  flex-wrap: wrap;
}
.armax-upgrade-banner-icon {
  color: var(--brand);
  display: grid;
  place-items: center;
}
.armax-upgrade-banner-content {
  flex: 1 1 280px;
  min-width: 0;
}
.armax-upgrade-banner-text {
  font-size: 0.84rem;
  color: var(--text);
}
.armax-upgrade-banner-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.armax-upgrade-banner-btn {
  height: 30px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.armax-upgrade-banner-btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.armax-upgrade-banner-btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.armax-upgrade-banner-dismiss {
  color: var(--text-dim);
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
}

/* --- Skeletons & empty states --- */
.skeleton,
.skeleton-line {
  display: inline-block;
  min-height: 0.9em;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-hover) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  vertical-align: middle;
}
.skeleton-line {
  width: 90px;
  height: 1em;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-dim);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem;
  overflow-y: auto;
  background: rgba(4, 6, 18, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-overlay.show,
.modal-overlay.active,
.modal-overlay.open {
  display: flex;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 880px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.4rem 1.5rem;
}
.modal-content.is-narrow {
  max-width: 480px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

/* Key/value detail lists (block, tx, address views) */
.kv-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.kv-list > dt,
.kv-list > dd {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}
.kv-list > dt {
  color: var(--text-dim);
  background: var(--bg-subtle);
  font-weight: 500;
}
.kv-list > dd {
  color: var(--text);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* --- Code / terminal --- */
.code-block,
.terminal-block,
pre {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #070914;
  color: #dfe3ff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}
:root[data-theme="light"] .code-block,
:root[data-theme="light"] .terminal-block,
:root[data-theme="light"] pre {
  background: #121530;
  color: #e5e8ff;
}
pre code,
.code-block code,
.terminal-block code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.terminal-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  height: 26px;
  padding: 0 0.55rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8bfe6;
  font-family: var(--font-sans);
  font-size: 0.72rem;
}
.terminal-copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Toasts --- */
.toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2500;
  display: grid;
  gap: 0.5rem;
  max-width: min(380px, calc(100vw - 2rem));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  color: var(--text);
  animation: toast-in 0.2s var(--ease);
}
.toast-icon {
  color: var(--success);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* --- Dropdown --- */
.dropdown-menu {
  position: absolute;
  z-index: 80;
  min-width: 200px;
  display: none;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dropdown-menu.show {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.dropdown-item:hover {
  color: var(--text);
  background: var(--surface-hover);
}

/* --- Steps (faucet / wallet flows) --- */
.step-nav-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.step-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.step-nav-btn.active {
  border-color: var(--brand-border);
  color: var(--text);
  background: var(--brand-subtle);
}
.step-circle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.active > .step-circle,
.step-circle.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* --- Faucet & wallet layouts --- */
.faucet-grid-container,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}
.wallet-address-panel {
  padding: 1.1rem 1.2rem;
  overflow-wrap: anywhere;
}
.version-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.online { color: var(--success); }
.offline { color: var(--danger); }

/* --- API documentation --- */
.api-container {
  display: grid;
  gap: 1rem;
}
.api-header {
  margin-bottom: 0.5rem;
}
.api-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.endpoint-card {
  padding: 1rem 1.15rem;
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}
.endpoint-card:target {
  box-shadow: var(--glow-data);
}
.endpoint-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.endpoint-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.docs-nav-link {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.docs-nav-link:hover,
.docs-nav-link.active {
  color: var(--text);
  background: var(--surface-hover);
}
.api-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.api-nav {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.api-nav-group {
  padding: 0.6rem 0.6rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- Coming-soon (mainnet) hero --- */
.coming-soon {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.coming-soon-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 30px rgba(242, 193, 78, 0.25));
}
.coming-soon p {
  max-width: 58ch;
  margin: 0.75rem auto 1.5rem;
}
.gate-list {
  display: grid;
  gap: 0.5rem;
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: left;
}
.gate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.85rem;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 2.5rem;
  padding-block: 2.75rem 2rem;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.footer-brand-row img:first-child {
  width: 26px;
  height: 26px;
}
.footer-wordmark {
  height: 14px;
  width: auto;
}
.footer-desc {
  font-size: 0.84rem;
  max-width: 44ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  display: grid;
  gap: 0.45rem;
}
.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--brand);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 1560px) {
  .global-search-form {
    max-width: 300px;
  }
  .web3-connect-pill,
  .network-switch-pill {
    display: none;
  }
}

@media (max-width: 1180px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-grid;
  }
  .global-search-form {
    margin-left: auto;
  }
  .net-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .net-ribbon-item:nth-child(3n) {
    border-right: none;
  }
  .net-ribbon-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 900px) {
  .faucet-grid-container,
  .split-grid,
  .api-layout {
    grid-template-columns: 1fr;
  }
  .api-nav {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pool-pill:not(.web3-connect-pill),
  .network-switch-pill {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --navbar-height: 58px;
  }
  .global-search-form,
  .web3-connect-pill,
  .node-status-pill {
    display: none;
  }
  .navbar-actions {
    margin-left: auto;
  }
  .mobile-quick-nav {
    display: block;
  }
  .main-content {
    padding: 1.25rem 1rem 2.5rem;
  }
  .container {
    padding-inline: 1rem;
  }
  .explorer-controls-bar {
    position: static;
    margin-inline: 0;
    padding-inline: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
  }
  .net-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .net-ribbon-item {
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
  .net-ribbon-item:nth-child(2n) {
    border-right: none;
  }
  .net-ribbon-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kv-list {
    grid-template-columns: 1fr;
  }
  .kv-list > dt {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }
  .modal-content {
    padding: 1rem;
  }
  .table-compact th,
  .table-compact td {
    padding-inline: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Site layer (armax-coin.cloud): docs, whitepaper, roadmap, downloads,
   treasury. Generated from the previous stylesheet, remapped to tokens.
   ========================================================================== */

@keyframes testnetMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.stats-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  font-family: var(--font-mono);
  background: var(--success-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--success-border);
}
@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
.stat-icon {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  stroke-width: 1.5;
}
.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.section-block {
  margin-bottom: 2.75rem;
}
.section-head {
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-head p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: border-color 0.15s ease;
}
.feature-card:hover {
  border-color: var(--border-focus);
}
.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.feature-icon-box svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.quickstart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.quickstart-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.quickstart-tab {
  padding: 0.65rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.quickstart-tab:hover {
  color: var(--text);
}
.quickstart-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
}
.quickstart-content {
  padding: 1.25rem;
}
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.paper-container {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
  margin-top: 1.5rem;
  position: relative;
}
.toc-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.toc-sidebar::-webkit-scrollbar {
  width: 5px;
}
.toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.toc-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.toc-item {
  position: relative;
}
.toc-link {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all 0.15s ease-in-out;
  line-height: 1.35;
}
.toc-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.toc-text {
  flex: 1;
}
.toc-link:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-left-color: var(--border-focus);
}
.toc-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-left-color: var(--accent);
  font-weight: 600;
}
.toc-link.active .toc-num {
  color: var(--accent);
  font-weight: 700;
}
.toc-sublist {
  list-style: none;
  margin: 0.15rem 0 0.35rem 0.9rem;
  padding-left: 0.65rem;
  border-left: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.toc-sublink {
  font-size: 0.77rem;
  padding: 0.28rem 0.5rem;
  color: var(--text-dim);
}
.toc-sublink:hover {
  color: var(--text);
}
.toc-sublink.active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-left-color: var(--accent);
  font-weight: 600;
}
.paper-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  min-width: 0;
}
.paper-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.paper-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.paper-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.25rem 0 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--navbar-height) + 24px);
}
.paper-content section:first-of-type h2,
.paper-content > h2:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}
.paper-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1.5rem 0 0.5rem;
  scroll-margin-top: calc(var(--navbar-height) + 24px);
}
.paper-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.paper-content ul,
.paper-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.paper-content li {
  margin-bottom: 0.35rem;
}
.formula-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin: 1rem 0;
  overflow-x: auto;
  line-height: 1.6;
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-menu.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 130px;
  }
  .stats-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
  .downloads-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
  .paper-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .toc-sidebar {
    display: none;
  }
  .paper-content {
    padding: 1.25rem 1rem;
  }
  .paper-h1 {
    font-size: 1.45rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }
}
@keyframes pulseSync {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.testnet-bar.dismissed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
}
@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
.armax-upgrade-banner.dismissed {
  display: none !important;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tooltip-term {
  position: relative;
  border-bottom: 1px dotted var(--text-dim);
  cursor: help;
  display: inline-block;
}
.tooltip-term:hover .tooltip-box,
.tooltip-term:focus .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateY(-4px);
}
.tooltip-box {
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  font-weight: normal;
}
.tooltip-box strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--surface-2) transparent transparent transparent;
}
.docs-hero p.lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.docs-mobile-quicknav {
  display: none;
  position: sticky;
  top: var(--navbar-height);
  z-index: 95;
  background: var(--bg);
  padding: 0.65rem 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.docs-mobile-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.docs-mobile-menu-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}
.docs-sidebar-close {
  display: none;
}
.api-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  margin-top: 1.5rem;
  scroll-margin-top: calc(var(--navbar-height) + 2rem);
  transition: all 0.2s ease;
}
.api-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--data-subtle);
}
.api-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}
.api-endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}
.note-box {
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1.25rem 0;
}
.note-box.warning {
  border-left-color: var(--warning);
}
.toc-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all 0.15s ease;
  line-height: 1.35;
}
.toc-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.toc-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: 600;
}
.roadmap-hero {
  position: relative;
  padding: 2.25rem 0 1.5rem 0;
  margin-bottom: 2rem;
}
.roadmap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--data-subtle);
  border: 1px solid var(--data-border);
  color: var(--accent);
  margin-bottom: 1rem;
}
.roadmap-hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: heroPulse 2s infinite ease-in-out;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.roadmap-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.roadmap-hero-gradient {
  background: linear-gradient(135deg, var(--data) 0%, var(--violet) 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.roadmap-hero p.lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.status-panel {
  background: linear-gradient(145deg, rgba(18, 25, 34, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.status-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.status-item-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.status-item-value.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.progress-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--data), var(--violet), var(--violet));
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.pillars-section {
  margin-bottom: 3.5rem;
}
.section-header {
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.section-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 780px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--data-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.pillar-top {
  margin-bottom: 0.85rem;
}
.pillar-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--data-subtle);
  color: var(--accent);
  border: 1px solid var(--data-subtle);
  margin-bottom: 0.85rem;
}
.pillar-icon-box.purple {
  background: var(--violet-subtle);
  color: var(--violet);
  border-color: var(--violet-subtle);
}
.pillar-icon-box.green {
  background: var(--success-subtle);
  color: var(--success);
  border-color: var(--success-border);
}
.pillar-card h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.pillar-card p {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.85rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pillar-link:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}
.filter-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-tab {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
  font-family: inherit;
}
.filter-tab:hover {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: var(--surface-hover) !important;
}
.filter-tab.active {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 2px 10px var(--data-border);
}
.filter-count {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}
.filter-tab.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}
.accordion-toggle-all {
  font-size: 0.78rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  font-family: inherit;
}
.accordion-toggle-all:hover {
  background: var(--accent-subtle);
}
.timeline-container {
  position: relative;
  margin: 1.5rem 0 3.5rem 0;
}
.timeline-spine {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--success) 0%, var(--accent) 45%, var(--border) 100%);
  z-index: 1;
}
.timeline-card-item {
  position: relative;
  margin-bottom: 1.75rem;
  padding-left: 54px;
  z-index: 2;
}
.timeline-node {
  position: absolute;
  left: 10px;
  top: 1.25rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.timeline-node.completed {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
  box-shadow: 0 0 10px var(--success-subtle);
}
.timeline-node.in-progress {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 14px var(--data-subtle);
  animation: activeNodePulse 2s infinite ease-in-out;
}
@keyframes activeNodePulse {
  0%, 100% { box-shadow: 0 0 10px var(--data-subtle); }
  50% { box-shadow: 0 0 20px var(--data-subtle); }
}
.timeline-node.scheduled {
  border-color: var(--violet);
  background: var(--surface);
}
.timeline-node.planned {
  border-color: var(--text-dim);
  background: var(--surface);
}
.timeline-node.research {
  border-color: var(--text-dim);
  border-style: dashed;
  background: var(--surface);
}
.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phase-card.is-active-phase {
  border-color: var(--data-border);
  box-shadow: 0 4px 20px var(--data-subtle);
}
.phase-card-header {
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  user-select: none;
  background: transparent !important;
  border: none !important;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
  font-family: inherit;
  color: inherit;
}
.phase-card-header:hover {
  background: var(--surface-hover) !important;
}
.phase-header-left {
  flex: 1;
}
.phase-number-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.phase-number {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.phase-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.phase-summary {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 820px;
}
.phase-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-completed {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
}
.badge-in-progress {
  background: var(--data-subtle);
  color: var(--accent);
  border: 1px solid var(--data-border);
}
.badge-planned {
  background: rgba(100, 116, 139, 0.14);
  color: var(--text-dim);
  border: 1px solid rgba(100, 116, 139, 0.25);
}
.badge-research {
  background: transparent;
  color: var(--text-dim);
  border: 1px dashed rgba(100, 116, 139, 0.4);
}
.phase-progress-mini {
  font-size: 0.73rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.chevron-icon {
  transition: transform 0.25s ease;
  color: var(--text-dim);
}
.phase-card.expanded .chevron-icon {
  transform: rotate(180deg);
}
.phase-body {
  display: none;
  padding: 0 1.35rem 1.25rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}
.phase-card.expanded .phase-body {
  display: block;
}
.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.milestone-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.milestone-icon.done {
  color: var(--success);
}
.milestone-icon.active {
  color: var(--accent);
}
.milestone-icon.pending {
  color: var(--text-dim);
}
.milestone-text {
  flex: 1;
}
.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--data-subtle);
  text-decoration: none;
  margin-left: 0.35rem;
}
.proof-badge:hover {
  background: var(--data-subtle);
}
@media (max-width: 992px) {
  .docs-mobile-quicknav {
    display: block !important;
  }
  .paper-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .toc-sidebar {
    display: none;
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-height: none !important;
    height: calc(100vh - var(--navbar-height)) !important;
    z-index: 1000;
    border-radius: 0 !important;
    background: var(--bg) !important;
    padding: 1.25rem 1rem !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: none !important;
  }
  .toc-sidebar.mobile-open,
  .docs-sidebar.mobile-open {
    display: block !important;
  }
  .docs-sidebar-close {
    display: inline-flex !important;
  }
  .paper-content {
    padding: 1.25rem 1rem !important;
  }
  .paper-h1 {
    font-size: 1.45rem !important;
  }
  .api-card {
    padding: 1rem !important;
  }
}
@media (min-width: 993px) {
  .docs-mobile-quicknav {
    display: none !important;
  }
  .docs-sidebar-close {
    display: none !important;
  }
  .toc-sidebar {
    display: block !important;
  }
}
@media (max-width: 768px) {
  .phase-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }
  .phase-header-right {
    align-items: flex-start !important;
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  .filter-bar-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
  }
  .filter-tab {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
  .roadmap-hero {
    padding: 1.25rem 0 1rem 0;
  }
  .status-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.page-shell {
  width: 100%;
  max-width: var(--container-max, 1320px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.toc-sidebar {
  top: 164px;
  max-height: calc(100vh - 180px);
}
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header-wrap .header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-header-wrap .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}
.brand-wordmark {
  font-size: 1.38rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: var(--text);
}
.network-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--warning-border);
  background: var(--warning-subtle);
  color: var(--warning);
}
.site-header-wrap .navigation {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.header-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.header-link:hover {
  color: var(--text);
}
.header-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.header-pill-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.header-pill-btn.is-connected {
  border-color: var(--success-subtle);
  background: var(--success-subtle);
}
.wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.wallet-dot.is-connected {
  background: var(--success);
}
.site-tabs {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  gap: 1.75rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-tabs::-webkit-scrollbar {
  display: none;
}
@media (max-width: 760px) {
  .site-header-wrap .header {
    min-height: 72px;
  }
  .header-link {
    display: none;
  }
}
@media (max-width: 640px) {
  .site-tabs {
    gap: 0.45rem;
    padding: 0.45rem 0;
  }
}
.hero-editorial {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 58px;
  align-items: center;
  padding: 68px 0 36px;
}
.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hero-copy h1 {
  font-size: clamp(2.85rem, 5.6vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-copy h1 .accent-span {
  color: var(--accent-bright);
}
.hero-description {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}
.hero-actions .btn {
  min-height: 50px;
  padding: 12px 19px;
  border-radius: 7px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.hero-actions .btn:hover {
  transform: translateY(-2px);
}
.hero-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.hero-identity {
  display: flex;
  justify-content: center;
}
.identity-frame {
  width: 100%;
  max-width: 410px;
  min-height: 382px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, rgba(18, 25, 34, 0.96), var(--data-subtle));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(4deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.identity-frame:hover {
  transform: rotate(1.5deg) translateY(-3px);
}
.identity-topline,
.identity-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.identity-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.identity-logo {
  width: 196px;
  height: 196px;
  border-radius: 24%;
  object-fit: contain;
  transform: rotate(-8deg);
  filter: drop-shadow(0 12px 28px var(--data-subtle));
}
@media (max-width: 960px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 0 24px;
  }
  .identity-frame {
    transform: none;
    max-width: 100%;
    min-height: 220px;
  }
  .identity-logo {
    width: 112px;
    height: 112px;
    transform: none;
  }
}
.ecosystem-section {
  padding: 28px 0 36px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-heading h2 {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-heading p {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}
.resource-card {
  padding: 27px 28px 25px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.resource-card.community-card {
  background: linear-gradient(145deg, var(--bg-elevated), var(--data-subtle));
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resource-icon {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform 0.18s ease, color 0.18s ease;
}
.resource-card:hover .card-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-bright);
}
.resource-card h3 {
  font-size: 1.32rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.resource-card p {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-muted);
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-bright);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.explorer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.explorer-link {
  min-height: 60px;
  padding: 11px 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.explorer-link:hover {
  border-color: var(--line-strong);
}
.explorer-link-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.explorer-link-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.release-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 16px 0;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.release-bar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.release-version {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--line-strong);
}
.release-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.84rem;
  font-weight: 500;
}
.release-bar-right a {
  color: var(--accent-bright);
}
.release-bar-right a:hover {
  text-decoration: underline;
}
.site-footer .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.site-footer .footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer .footer-right a:hover {
  color: var(--accent-bright);
}
.web3-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.web3-modal-overlay[hidden] {
  display: none !important;
}
.web3-modal-card {
  width: 100%;
  max-width: 500px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.web3-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow-sm {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 0.25rem;
}
.web3-modal-head h3 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text);
}
.web3-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.web3-modal-body {
  padding: 1.25rem 1.4rem 1.4rem;
}
.web3-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   Landing page (index.html): project introduction. Prefix lp- avoids clashes
   with the generated site layer above.
   ========================================================================== */
.lp-main {
  width: 100%;
  flex: 1;
}
.lp-section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--border-subtle);
}
.lp-section-head {
  max-width: 720px;
  margin-bottom: 2.25rem;
}
.lp-section-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
}
.lp-section-head p {
  margin-top: 0.75rem;
  font-size: 1.02rem;
}

/* Hero */
.lp-hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(242, 193, 78, 0.16), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(79, 209, 232, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="light"] .lp-hero::after {
  opacity: 0.6;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.lp-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lp-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, #ffe39a 55%, var(--data) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .lp-hero h1 em {
  background: linear-gradient(100deg, var(--brand) 10%, #b8860b 55%, var(--data) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.lp-hero-lead {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}
.lp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}
.lp-hero-meta span::before {
  content: "\25C6";
  margin-right: 0.45rem;
  color: var(--brand);
  font-size: 0.6rem;
  vertical-align: 1px;
}
.lp-release-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lp-release-pill:hover {
  border-color: var(--brand-border);
  color: var(--text);
}

/* Lattice artwork (inline SVG) */
.lp-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.lp-art svg {
  width: 100%;
  height: 100%;
}
.lp-art .lat-edge { stroke: var(--border-strong); stroke-width: 1; }
.lp-art .lat-edge.hot { stroke: var(--data); stroke-opacity: 0.55; }
.lp-art .lat-node { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1; }
.lp-art .lat-node.hot { fill: var(--data); stroke: none; }
.lp-art .lat-node.gold { fill: var(--brand); stroke: none; }
.lp-art .lat-ring { fill: none; stroke: var(--brand); stroke-opacity: 0.4; stroke-width: 1.2; stroke-dasharray: 3 7; }
.lp-art-logo {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 58%, transparent 72%);
}
.lp-art-logo img {
  width: 80%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(242, 193, 78, 0.35));
}
.lp-art-card {
  position: absolute;
  min-width: 170px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.lp-art-card.tl { top: 6%; left: -2%; }
.lp-art-card.br { bottom: 7%; right: -2%; }
.lp-art-card .net-ribbon-value {
  font-size: 1.1rem;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-art .lat-pulse {
    animation: lat-pulse 3.2s ease-in-out infinite;
  }
  .lp-art .lat-ring {
    animation: lat-spin 80s linear infinite;
    transform-origin: 260px 260px;
  }
}
@keyframes lat-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes lat-spin {
  to { transform: rotate(360deg); }
}

/* Live network band */
.lp-live {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.lp-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.lp-live-head .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--success);
}
.lp-live-head .live-indicator.is-offline {
  color: var(--danger);
}
.lp-live .net-ribbon {
  margin-bottom: 0;
}
.lp-supply-bar {
  height: 4px;
  margin-top: 0.45rem;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.lp-supply-bar span {
  display: block;
  height: 100%;
  width: 0.1%;
  background: linear-gradient(90deg, var(--brand), var(--data));
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.lp-live .stat-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pillars */
.lp-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.lp-pillar {
  position: relative;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-subtle));
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.lp-pillar:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
}
.lp-pillar-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-subtle);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}
.lp-pillar h3 {
  margin-top: 1.1rem;
  font-size: 1.08rem;
}
.lp-pillar p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.lp-spec {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--data);
}

/* Release highlights */
.lp-release {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: start;
}
.lp-release-list {
  display: grid;
  gap: 0.6rem;
}
.lp-release-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.lp-release-item .badge {
  justify-self: start;
  align-self: start;
  margin-top: 0.15rem;
}
.lp-release-item h4 {
  font-size: 0.96rem;
}
.lp-release-item p {
  margin-top: 0.25rem;
  font-size: 0.86rem;
}

/* Ecosystem */
.lp-eco {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.lp-eco-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-eco-card:hover {
  color: var(--text);
  border-color: var(--data-border);
  box-shadow: var(--glow-data);
}
.lp-eco-card .eyebrow {
  color: var(--text-dim);
}
.lp-eco-card h3 {
  font-size: 1.05rem;
}
.lp-eco-card p {
  font-size: 0.88rem;
  flex: 1;
}
.lp-go {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--data);
}

/* Fair launch / treasury */
.lp-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}
.lp-split {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.lp-split-bar {
  display: flex;
  height: 44px;
  margin: 1.1rem 0 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.lp-split-bar span {
  display: flex;
  align-items: center;
  padding-inline: 0.85rem;
  white-space: nowrap;
}
.lp-split-bar .miner {
  flex: 80;
  background: var(--brand);
  color: var(--brand-ink);
}
.lp-split-bar .treasury {
  flex: 20;
  background: var(--data-subtle);
  color: var(--data);
  border: 1px solid var(--data-border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.lp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.lp-fact {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}
.lp-fact .net-ribbon-value {
  font-size: 1.05rem;
}
.lp-alloc {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.lp-alloc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.lp-alloc-row strong {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
}
.lp-alloc-track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.lp-alloc-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}
.lp-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Road to mainnet */
.lp-road {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.lp-road-step {
  position: relative;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.lp-road-step.is-current {
  border-color: var(--brand-border);
  background: linear-gradient(180deg, var(--brand-subtle), var(--surface) 60%);
}
.lp-road-step h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.05rem;
}
.lp-road-step p {
  font-size: 0.87rem;
}
.lp-gates {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.lp-gate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Get started */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.lp-step {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.lp-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.lp-step h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.02rem;
}
.lp-step p {
  font-size: 0.87rem;
  margin-bottom: 0.9rem;
  flex: 1;
}
.lp-step .terminal-block {
  font-size: 0.74rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
}
.lp-step .btn {
  align-self: flex-start;
}
.lp-community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(110deg, var(--data-subtle), transparent 60%), var(--surface);
}

@media (max-width: 1080px) {
  .lp-hero-grid,
  .lp-release,
  .lp-launch {
    grid-template-columns: 1fr;
  }
  .lp-art {
    max-width: 420px;
  }
  .lp-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-eco,
  .lp-road,
  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .lp-pillars,
  .lp-eco,
  .lp-road,
  .lp-steps,
  .lp-facts {
    grid-template-columns: 1fr;
  }
  .lp-release-item {
    grid-template-columns: 1fr;
  }
  .lp-art-card.tl { left: 0; }
  .lp-art-card.br { right: 0; }
  .lp-split-bar span {
    padding-inline: 0.5rem;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Roadmap page (roadmap.html), rendered from roadmapData.js. Prefix rm-.
   ========================================================================== */
.rm-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.rm-summary > div {
  padding: 1rem 1.15rem;
  border-right: 1px solid var(--border-subtle);
}
.rm-summary > div:last-child {
  border-right: none;
}
.rm-progress {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  border-right: none !important;
}
.rm-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.rm-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.rm-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--data));
}
.rm-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}
.rm-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.rm-pillar h3 {
  font-size: 1rem;
}
.rm-pillar p {
  font-size: 0.86rem;
  flex: 1;
}
.rm-timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding-left: 2rem;
}
.rm-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--brand), var(--data) 55%, var(--border) 85%);
  border-radius: 2px;
}
.rm-phase {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.rm-phase::before {
  content: "";
  position: absolute;
  left: calc(-2rem + 3px);
  top: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--text-dim);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.rm-phase.is-completed::before { background: var(--success); }
.rm-phase.is-in-progress::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-subtle); }
.rm-phase.is-active {
  border-color: var(--brand-border);
}
.rm-phase > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}
.rm-phase > summary::-webkit-details-marker {
  display: none;
}
.rm-phase-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
}
.rm-phase-title h3 {
  font-size: 1.05rem;
}
.rm-phase-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.rm-phase-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}
.rm-phase-meta .rm-bar {
  width: 80px;
}
.rm-phase-summary {
  grid-column: 1 / -1;
  font-size: 0.88rem;
}
.rm-phase-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--border-subtle);
}
.rm-milestones {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.75rem;
}
.rm-milestone {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-subtle);
}
.rm-milestone:last-child {
  border-bottom: none;
}
.rm-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.rm-milestone.is-done .rm-icon { background: var(--success-subtle); border-color: var(--success-border); color: var(--success); }
.rm-milestone.is-in-progress .rm-icon { background: var(--brand-subtle); border-color: var(--brand-border); color: var(--brand); }
.rm-milestone.is-done { color: var(--text); }
.rm-proof {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--data-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--data);
  white-space: nowrap;
}
.rm-sub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.rm-sub-card {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}
.rm-sub-card h4 {
  font-size: 0.9rem;
}
.rm-sub-card .rm-phase-num {
  display: block;
  margin: 0.2rem 0 0.4rem;
}
.rm-sub-card p {
  font-size: 0.84rem;
}
@media (max-width: 760px) {
  .rm-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rm-summary > div:nth-child(2n) {
    border-right: none;
  }
  .rm-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .rm-phase > summary {
    grid-template-columns: 1fr;
  }
  .rm-timeline {
    padding-left: 1.5rem;
  }
  .rm-phase::before {
    left: calc(-1.5rem + 3px);
  }
}
.rm-pillar .badge {
  align-self: flex-start;
}

/* ==========================================================================
   Header fixes
   ========================================================================== */
/* layout.js injects the header into #site-chrome-top. As a normal box that host is
   exactly as tall as the header, so position: sticky had no room to stick. With
   display: contents the header's sticky container becomes <body>. */
#site-chrome-top,
#site-chrome-footer {
  display: contents;
}

/* Legacy variable names used by the generated site layer, mapped to theme tokens
   so they follow light/dark mode. */
:root {
  --line: var(--border);
  --line-strong: var(--border-strong);
  --bg-elevated: var(--surface);
  --bg-surface: var(--surface);
  --accent-bright: var(--data);
  --accent-soft: var(--data-subtle);
}

/* Site header: themed glass background (was hardcoded dark) */
.site-header-wrap {
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header-wrap .header {
  min-height: 72px;
  border-bottom: 1px solid var(--border-subtle);
}
.site-header-wrap .brand-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.site-header-wrap .network-label {
  border-color: var(--brand-border);
  background: var(--brand-subtle);
  color: var(--brand);
}
.site-header-wrap .header-link:hover {
  color: var(--brand);
}

/* Section tabs */
.site-tabs {
  min-height: 48px;
  gap: 0.25rem;
  border-bottom: none;
}
.site-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.site-tab svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
.site-tab:hover {
  color: var(--text);
}
.site-tab.active {
  color: var(--text);
}
.site-tab.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
}
.site-tab.active svg {
  color: var(--brand);
  opacity: 1;
}
@media (max-width: 640px) {
  .site-tabs {
    padding: 0;
  }
  .site-tab {
    padding: 0 0.55rem;
  }
}
