/* Shared site surfaces and navigation, matched to the rig. */
body.site-shell {
  --void: #0B0F14;
  --crust: #10161E;
  --panel: #111821;
  --card: #182330;
  --line: #25313E;
  --line-2: #334253;
  --ink: #E5EDF6;
  --ink-mid: #9AAABB;
  --ink-dim: #8898AA;
  --control-fill: #26313E;
  --control-hover: #344252;
  --control-ink: #EDF2F7;
  --r-pill: 8px;
  --r-control: 8px;
  --r-panel: 12px;
  background: var(--void);
  font-family: var(--ui);
  letter-spacing: 0;
}
html:has(body.site-shell) { background: #0B0F14; }
.site-shell :is(.bg-grid, .bg-noise) { display: none; }

body.site-shell .top {
  height: 52px;
  min-height: 52px;
  padding: 8px 16px;
  gap: 16px;
  background: #0B0F14;
  border-bottom: 1px solid #202B38;
  backdrop-filter: none;
}
.site-shell .top .brand { gap: 10px; flex-shrink: 0; }
.site-shell .top .brand-word { font-size: 19px; letter-spacing: -.04em; }
.site-shell .top :is(.glyph, .mark) { filter: none; }
.site-shell .top .nav { gap: 4px; }
.site-shell .top .nav a { height: 36px; padding: 0 10px; font-size: 13px; font-weight: 450; color: #94A4B7; }
.site-shell .top .nav a:hover,
.site-shell .top .nav a.on { color: #EDF3FB; }
.site-shell .top .nav a.on::after { bottom: -9px; background: #8AB0DE; }
.site-shell .top .top-right { gap: 8px; }
body.site-shell .top :is(.connect-btn, #privyBtn, #addFundsBtn, #mobileLoginBtn, #mobileFundBtn) {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #465566;
  border-radius: 8px;
  background: var(--control-fill);
  color: var(--control-ink);
  font: 600 13px var(--ui);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
body.site-shell .top :is(.connect-btn, #privyBtn, #addFundsBtn, #mobileLoginBtn, #mobileFundBtn):hover { background: var(--control-hover); border-color: #64758A; box-shadow: none; }
.site-shell .top .menu-btn { border-radius: 8px; background: #111A25; border-color: #293748; }
.site-shell .top :is(a, button):focus-visible { outline: 2px solid #D5E7FF; outline-offset: 3px; }

/* Reading pages use the same controls, cards and type as the rig. */
.site-shell :is(.doc, .explore, .nf) :is(.connect-btn, .btn-primary, .ghost-btn, .xp-act, .pc-btn, .nf-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #465566;
  border-radius: 8px;
  background: var(--control-fill);
  color: var(--control-ink);
  font: 600 13px var(--ui);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  transition: background .15s, border-color .15s;
}
.site-shell :is(.doc, .explore, .nf) :is(.connect-btn, .btn-primary, .ghost-btn, .xp-act, .pc-btn, .nf-link):hover {
  background: var(--control-hover);
  border-color: #64758A;
  box-shadow: none;
  transform: none;
}
.site-shell :is(.doc, .explore) :is(input, textarea, select) {
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #151F2B;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
}
.site-shell :is(.doc-hero h1, .xp-hero h1, .nf h1) { font-weight: 650; letter-spacing: -.04em; }
.site-shell :is(.doc-hero h1, .nf h1) em { color: inherit; }
.site-shell .nf-code { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.site-shell :is(.doc-lede, .chapter p, .chapter ul, .faq-a p) { font-weight: 400; }
.site-shell :is(.doc-kicker, .ch-no, .faq-cat, .toc-title, .stat-k, .xp-k, .xp-h-k, .proof-k, .xp-rev-k, .nf-kicker) {
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}
.site-shell :is(.stat, .fact, .proof-link, .xp-stat, .xp-h-cell, .xp-revcard, .xp-led, .xp-round-live, .token-buy-panel, .proof-card, .verify-out, .xp-availability) {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
  clip-path: none;
}
.site-shell .proof-link:hover { border-color: var(--line-2); background: #182330; transform: none; }
.site-shell .callout { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 400; }
.site-shell .callout a { color: #BDD3F2; }
.site-shell .faq-item { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.site-shell .faq-item summary { min-height: 56px; padding: 16px 18px; font-size: 15px; font-weight: 500; }
.site-shell .faq-item .faq-a { padding: 0 18px 18px; }
.site-shell .faq-item[open] > summary { color: var(--ink); }
.site-shell .faq-item .faq-pm { color: var(--ink-mid); }
.site-shell .toc a { border-radius: 6px; font-family: var(--ui); letter-spacing: 0; }
.site-shell .toc a:hover,
.site-shell .toc a.on { color: #D5E7FF; background: #182330; }
.site-shell .xp-sub { min-height: 36px; font-size: 12px; text-transform: none; letter-spacing: 0; border-radius: 8px; }
.site-shell .xp-sub.on { color: var(--ink); background: var(--control-fill); border-color: #465566; }
.site-shell .xp-tab { font-weight: 500; letter-spacing: 0; }
.site-shell .xp-row { border-radius: 8px; }
.site-shell .xp-empty { border-style: solid; border-radius: 12px; background: var(--panel); }
.site-shell :is(.xp-foot, .fact-label) { font-family: var(--ui); letter-spacing: 0; }
.site-shell .spec-table th { font-family: var(--ui); letter-spacing: 0; background: var(--panel); }
.site-shell .foot { border-color: var(--line); background: var(--void); }
.site-shell :is(.doc, .explore, .nf) :is(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid #D5E7FF; outline-offset: 3px; }

@media (min-width: 761px) and (max-width: 1100px) {
  body.site-shell .top { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .site-shell .top .nav { gap: 0; }
  .site-shell .top .nav a { padding: 0 7px; font-size: 12px; }
}
@media (max-width: 760px) {
  body.site-shell .top { height: 60px; min-height: 60px; padding: 8px 12px; gap: 8px; }
  .site-shell .top .menu-btn { width: 44px; height: 44px; }
  .site-shell .top .bar-collapse { background: #0B0F14; border-color: #25313E; box-shadow: 0 16px 28px #0005; }
  .site-shell .top .nav { gap: 6px; }
  .site-shell .top .nav a { height: 44px; min-height: 44px; }
  body.site-shell .top :is(.connect-btn, #privyBtn, #addFundsBtn, #mobileLoginBtn, #mobileFundBtn) { height: 44px; min-height: 44px; }
  .site-shell :is(.doc, .explore, .nf) :is(.btn-primary, .xp-act, .pc-btn, .nf-link) { min-height: 44px; }
}
