/* ============================================================================
   SDK MULTI – testnet SDK global styles
   Layout-safe, mobile-safe, page-agnostic
   ============================================================================ */

/* ===================== THEME VARIABLES ===================== */

body.crumb-style {
  --bg: #000;
  --panel: #111611;
  --border: #1b2a21;
  --border-light: #2dd4bf;
  --fg: #eafffb;
  --muted: #9ca3af;
  --accent: #2dd4bf;
  --accent-text: #000;
  --banner-bg: #2dd4bf;
  --banner-text: #000;
  --danger: #ef4444;
}

body.pi-style {
  --bg: #4a3474;
  --panel: #4a2f6f;
  --border: #3a295e;
  --border-light: #fed293;
  --fg: #feffff;
  --muted: #e6ddf3;
  --accent: #fbb44a;
  --accent-text: #251200;
  --banner-bg: #fbb44a;     /* gold */
  --banner-text: #251200;
  --danger: #ef4444;
}

/* ===================== BASE ===================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ===================== SDK HEADER ===================== */

.sdk-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
}

/* left / right containers */
.sdk-header-left,
.sdk-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* buttons */
.sdk-menu-btn,
.sdk-toggle {
  min-width: 48px;
  min-height: 48px;
  font-size: 24px;
  padding: 6px 14px;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
}

/* dropdown menu */
.sdk-menu {
  position: absolute;
  top: 64px;
  right: 14px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: none;
  min-width: 160px;
  z-index: 100;
}

.sdk-menu.open {
  display: block;
}

.sdk-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--fg);
}

.sdk-menu a:hover {
  background: rgba(255,255,255,0.06);
}

/* ===================== CARDS ===================== */

.card {
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
}

.card + .card {
  margin-top: 12px;
}

.card-top {
  background: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  font-weight: 600;
  padding: 10px;
}

.card-body {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ===================== LINKS ===================== */

a {
  color: var(--fg);
}
a:visited {
  color: var(--muted);
}
a:hover {
  color: var(--accent);
}

/* ===================== FOOTER ===================== */

footer {
  margin: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 1.9rem;
}
/* ===================== SDK PAGE LOGO ===================== */

.sdk-page-logo {
  display: flex;
  justify-content: center;
  margin: 18px 0 14px;
}

.sdk-page-logo img {
  height: 112px;        /* SMALL – adjust here if needed */
  width: auto;
  opacity: 0.95;
}

/* Constrain page content width on larger screens, center it */
.page {
  width: 100%;
  max-width: 1200px;          /* adjust to taste: 1100–1280px common */
  margin: 0 auto;             /* center horizontally */
  padding: 0 14px;            /* small side padding on wide views */
}

/* Ensure cards never exceed the constrained page */
.card {
  width: 100%;                /* full available width inside .page */
  max-width: 100%;            /* prevent overflow */
  margin-left: auto;
  margin-right: auto;
}

/* Optional: add subtle inner breathing room on very wide screens */
@media (min-width: 1200px) {
  .page {
    padding: 0 24px;
  }
}

/* Keep mobile happy – no extra constraints below ~768px */
@media (max-width: 768px) {
  .page {
    padding: 0 10px;
    max-width: none;          /* full bleed on small screens */
  }
}
#poolTable {
  width: 100%;
  min-width: 760px;   /* or 800px, tune as needed */
  border-collapse: collapse;
}

