/* banban.trade: the desks' dark theme (Raydium Daily / Jupiter Signal Desk palette), Inter. */
:root {
  --bg: #0B0E13; --bg2: #0E1116; --card: #141921; --line: #1F2632; --line2: #2A3342;
  --ink: #E8EAED; --muted: #9AA3B2; --faint: #6B7484;
  --accent: #6C7CFF; --accent2: #8FB0FF; --ice: #6FD3F7;
  --radius: 12px; --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11,14,19,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topin { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand.small { font-size: 15px; }
.mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--ice)); color: #0B0E13; }
.nav { display: flex; gap: 6px; flex: 1; }
.navlink { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.navlink:hover { color: var(--ink); background: var(--card); }
.navlink.on { color: var(--ink); background: var(--card); }
.x { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 8px; font-weight: 700; color: var(--muted); }
.x:hover { color: var(--ink); }

/* home */
.hero { padding: 64px 0 28px; background: radial-gradient(1200px 300px at 20% -10%, rgba(108,124,255,.18), transparent); }
.hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.08; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0; }
.homegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 48px; }
.deskcard, .latest { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.deskcard:hover { border-color: var(--line2); }
.dhead { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.dname { font-size: 20px; font-weight: 700; }
.dk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dk b { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }
.latest ul { margin: 10px 0 0; padding-left: 18px; }
.latest li { margin: 8px 0; color: var(--muted); }
.latest a:hover { color: var(--ink); }

/* analytics page */
.crumbs { display: flex; gap: 8px; color: var(--faint); font-size: 13px; padding-top: 22px; }
.crumbs a:hover { color: var(--ink); }
.phead { display: flex; gap: 14px; align-items: center; margin: 14px 0 18px; }
.phead h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.phead p { margin: 2px 0 0; }
.plogo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, #8B5CF6, #22D3EE); color: #0B0E13; flex: none; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: var(--radius); }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--accent); color: #0B0E13; }
.tabhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 14px; flex-wrap: wrap; }
.tabhead h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.asof { color: var(--faint); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kval { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }

/* chart card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; scroll-margin-top: 80px; min-width: 0; }
.ph { color: var(--faint); padding: 40px 0; text-align: center; }
.chead { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.ctitle { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.csub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cheadline { margin: 12px 0 2px; font-size: 15px; font-weight: 600; }
.cbody { margin: 0 0 6px; color: var(--muted); font-size: 14px; max-width: 820px; }
.tools { display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button, .btn { font: 600 12px var(--font); color: var(--muted); background: transparent; border: 0; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #0B0E13; }
.btn { border: 1px solid var(--line); background: var(--bg2); }
.btn:hover, .seg button:hover:not(.on) { color: var(--ink); }
.chart { width: 100%; height: 420px; margin-top: 6px; }
.cfoot { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; padding-top: 4px; }
.tablewrap { overflow-x: auto; margin-top: 10px; }
table.dt, table.md { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.dt th, table.dt td, table.md th, table.md td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.dt th:first-child, table.dt td:first-child, table.md th:first-child, table.md td:first-child { text-align: left; }
table.dt tr.b td { font-weight: 700; border-top: 1px solid var(--line2); }
table.md td { white-space: normal; text-align: left; }
.hidden { display: none; }

/* the desks' own chart card (build_deck.css: chart-card, chart-head, @banbannard signature), inside the site card */
.deck .chart-card { width: 100%; background: transparent; border: 0; padding: 4px 0 0; position: relative; }
.deck .chart-card::after { content: "@banbannard"; position: absolute; top: 6px; right: 4px; font-size: 13px; font-weight: 500; color: #727A87; }
.deck .chart-head { padding: 0 8px 2px 2px; }
.deck .chart-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; padding-right: 120px; }
.deck .chart-sub { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.deck .chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.deck .chart-legend .leg { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.deck .chart-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.deck .js-plotly-plot, .deck .plotly-graph-div { max-width: 100%; }
.deck { overflow: hidden; }
.card .cheadline { margin: 0 0 2px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card .cbody { margin: 0 0 12px; }
.cfoot { align-items: center; padding-top: 8px; }
.cfoot .tools .btn { padding: 5px 9px; }

.xcard { display: none; width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 700px) {   /* phones: the X card (made for small screens), not the deck chart */
  .card .deck { display: none; }
  .card .xcard { display: block; }
}

/* embed */
.embedbody { background: var(--card); }
.card.embed { border: 0; border-radius: 0; }

/* prose (methodology) */
.prose { max-width: 860px; padding-top: 30px; padding-bottom: 60px; }
.prose h2 { font-size: 26px; margin-top: 8px; } .prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: #C9CED6; }
.prose code { background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 13px; }
.prose a { color: var(--accent2); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 20px; margin-top: 20px; background: var(--bg2); }
.footin { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footcol { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footcol a:hover { color: var(--ink); }
.copy { color: var(--faint); font-size: 12px; padding-top: 22px; }

@media (max-width: 820px) {
  .homegrid, .footin { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .chart { height: 340px; }
  .nav { gap: 2px; } .navlink { padding: 7px 8px; }
  .topin { gap: 12px; }
}
@media (max-width: 420px) {
  .dk { grid-template-columns: 1fr 1fr; }
  .kval { font-size: 22px; }
}
