/* e1even palette — pulled from /Users/ryan/Documents/Claude/Projects/landing-pages/styles.css */
:root {
  --lg-black:   #0a0a0a;
  --lg-black2:  #111111;
  --lg-black3:  #161616;
  --lg-border:  #1e1e1e;
  --lg-muted2:  #2a2a2a;
  --lg-muted:   #8a8a8a;
  --lg-white:   #f2f2f0;
  --lg-accent:  #c8f135;
  --lg-accent2: #a8d420;
  --lg-cyan:    #35e8c8;
  --lg-amber:   #f0c430;
  --lg-orange:  #f0844a;
  --lg-red:     #e03535;

  --lg-radius: 14px;
  --lg-radius-sm: 10px;
  --lg-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --lg-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "SF Mono", Menlo, monospace;
}

/* ============================================================== */
/* EMBED — everything below is scoped under .leadglobe-embed      */
/* ============================================================== */
.leadglobe-embed {
  position: relative;
  width: 100%;
  height: 720px;
  background: #05060A;
  overflow: hidden;
  font-family: var(--lg-font);
  color: var(--lg-white);
  isolation: isolate;
}
.leadglobe-embed--fullscreen {
  height: 100vh;
  height: 100dvh;
}
.leadglobe-embed * { box-sizing: border-box; }
.leadglobe-embed button { font: inherit; cursor: pointer; }

/* ---------- Globe ---------- */
.leadglobe-embed .lg-globe {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.leadglobe-embed .lg-globe canvas { display: block; }

/* ---------- Panels ---------- */
.leadglobe-embed .lg-panel {
  position: absolute;
  background: rgba(17,17,17,0.78);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 16px 14px;
  width: 280px;
  z-index: 20;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}
.leadglobe-embed .lg-panel--stats   { top: 20px; left: 20px; }
.leadglobe-embed .lg-panel--filters { top: 20px; right: 20px; width: 240px; max-height: calc(100% - 40px); overflow-y: auto; }

.leadglobe-embed .lg-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--lg-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-bottom: 12px;
}
.leadglobe-embed .lg-panel hr {
  border: 0;
  border-top: 1px solid var(--lg-border);
  margin: 12px 0;
}
.leadglobe-embed .lg-dot {
  width: 10px; height: 10px; border-radius: 999px; display: inline-block;
}
.leadglobe-embed .lg-dot--accent {
  background: var(--lg-accent);
  box-shadow: 0 0 12px var(--lg-accent);
}

/* ---------- Stats ---------- */
.leadglobe-embed .lg-stat { padding: 4px 0; }
.leadglobe-embed .lg-stat__label { font-size: 12px; color: var(--lg-muted); }
.leadglobe-embed .lg-stat__value {
  font-family: var(--lg-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lg-white);
  margin-top: 2px;
}
.leadglobe-embed .lg-stat--row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
}
.leadglobe-embed .lg-stat--row .lg-stat__value { font-size: 16px; margin: 0; }
.leadglobe-embed .lg-stat__value--g { color: var(--lg-accent); }
.leadglobe-embed .lg-stat__value--c { color: var(--lg-cyan); }
.leadglobe-embed .lg-stat__value--a { color: var(--lg-amber); }

/* ---------- Mix bar ---------- */
.leadglobe-embed .lg-mix__bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--lg-muted2);
  margin-bottom: 10px;
}
.leadglobe-embed .lg-mix__seg { display: block; height: 100%; transition: flex .25s; }
.leadglobe-embed .lg-mix__seg--g { background: var(--lg-accent); }
.leadglobe-embed .lg-mix__seg--c { background: var(--lg-cyan); }
.leadglobe-embed .lg-mix__seg--a { background: var(--lg-amber); }
.leadglobe-embed .lg-mix__seg--m { background: var(--lg-muted); }
.leadglobe-embed .lg-mix__legend {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  font-size: 12px;
  color: var(--lg-muted);
}
.leadglobe-embed .lg-mix__legend li { display: flex; align-items: center; gap: 6px; }
.leadglobe-embed .lg-mix__legend b { margin-left: auto; color: var(--lg-white); font-weight: 500; font-family: var(--lg-mono); }
.leadglobe-embed .lg-sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.leadglobe-embed .lg-sw--g { background: var(--lg-accent); }
.leadglobe-embed .lg-sw--c { background: var(--lg-cyan); }
.leadglobe-embed .lg-sw--a { background: var(--lg-amber); }
.leadglobe-embed .lg-sw--m { background: var(--lg-muted); }

/* ---------- Filters ---------- */
.leadglobe-embed .lg-group { margin-bottom: 10px; }
.leadglobe-embed .lg-group__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-bottom: 6px;
  font-family: var(--lg-mono);
}
.leadglobe-embed .lg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.leadglobe-embed .lg-chip {
  background: var(--lg-black);
  color: var(--lg-white);
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.leadglobe-embed .lg-chip:hover { border-color: var(--lg-muted2); }
.leadglobe-embed .lg-chip[aria-pressed="true"] {
  background: var(--lg-accent);
  color: var(--lg-black);
  border-color: var(--lg-accent);
}
.leadglobe-embed .lg-chips[data-group="liquidity"]  .lg-chip[aria-pressed="true"] { background: var(--lg-cyan);  border-color: var(--lg-cyan);  color: var(--lg-black); }
.leadglobe-embed .lg-chips[data-group="loanBucket"] .lg-chip[aria-pressed="true"] { background: var(--lg-amber); border-color: var(--lg-amber); color: var(--lg-black); }

/* Credit chip color bands */
.leadglobe-embed .lg-dotc {
  width: 8px; height: 8px; border-radius: 999px; display: inline-block;
}
.leadglobe-embed .lg-chip[data-band="g"] .lg-dotc { background: var(--lg-accent); box-shadow: 0 0 6px var(--lg-accent); }
.leadglobe-embed .lg-chip[data-band="c"] .lg-dotc { background: var(--lg-cyan);   box-shadow: 0 0 6px var(--lg-cyan); }
.leadglobe-embed .lg-chip[data-band="a"] .lg-dotc { background: var(--lg-amber);  box-shadow: 0 0 6px var(--lg-amber); }
.leadglobe-embed .lg-chip[data-band="o"] .lg-dotc { background: var(--lg-orange); box-shadow: 0 0 6px var(--lg-orange); }
.leadglobe-embed .lg-chip[data-band="r"] .lg-dotc { background: var(--lg-red);    box-shadow: 0 0 6px var(--lg-red); }

.leadglobe-embed .lg-chip[data-band="g"][aria-pressed="true"] { background: var(--lg-accent); border-color: var(--lg-accent); color: var(--lg-black); }
.leadglobe-embed .lg-chip[data-band="c"][aria-pressed="true"] { background: var(--lg-cyan);   border-color: var(--lg-cyan);   color: var(--lg-black); }
.leadglobe-embed .lg-chip[data-band="a"][aria-pressed="true"] { background: var(--lg-amber);  border-color: var(--lg-amber);  color: var(--lg-black); }
.leadglobe-embed .lg-chip[data-band="o"][aria-pressed="true"] { background: var(--lg-orange); border-color: var(--lg-orange); color: var(--lg-black); }
.leadglobe-embed .lg-chip[data-band="r"][aria-pressed="true"] { background: var(--lg-red);    border-color: var(--lg-red);    color: var(--lg-white); }
.leadglobe-embed .lg-chip[data-band="g"][aria-pressed="true"] .lg-dotc,
.leadglobe-embed .lg-chip[data-band="c"][aria-pressed="true"] .lg-dotc,
.leadglobe-embed .lg-chip[data-band="a"][aria-pressed="true"] .lg-dotc,
.leadglobe-embed .lg-chip[data-band="o"][aria-pressed="true"] .lg-dotc,
.leadglobe-embed .lg-chip[data-band="r"][aria-pressed="true"] .lg-dotc {
  background: var(--lg-black); box-shadow: none;
}

.leadglobe-embed .lg-ghost {
  background: transparent;
  border: 1px solid var(--lg-border);
  color: var(--lg-muted);
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}
.leadglobe-embed .lg-ghost:hover { color: var(--lg-white); border-color: var(--lg-muted2); }
.leadglobe-embed .lg-panel__actions { display: flex; gap: 6px; align-items: center; }
.leadglobe-embed .lg-filters-close { display: none; width: 26px; height: 26px; padding: 0; font-size: 16px; line-height: 0; border-radius: 999px; }

/* ---------- Legend ---------- */
.leadglobe-embed .lg-legend {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 15;
  background: rgba(17,17,17,0.78);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--lg-muted);
}
.leadglobe-embed .lg-legend__title {
  font-family: var(--lg-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-bottom: 6px;
}
.leadglobe-embed .lg-legend ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 12px;
}
.leadglobe-embed .lg-legend li { display: flex; align-items: center; gap: 6px; color: var(--lg-white); }
.leadglobe-embed .lg-hex {
  width: 12px; height: 12px;
  display: inline-block;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.leadglobe-embed .lg-hex--1 { background: rgba(200,241,53,0.20); }
.leadglobe-embed .lg-hex--2 { background: rgba(53,232,200,0.55); }
.leadglobe-embed .lg-hex--3 { background: var(--lg-cyan); }
.leadglobe-embed .lg-hex--4 { background: var(--lg-amber); }
.leadglobe-embed .lg-hex--5 { background: var(--lg-accent); box-shadow: 0 0 8px var(--lg-accent); }

/* ---------- Mobile filter toggle ---------- */
.leadglobe-embed .lg-mobile-filter-btn {
  display: none;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 25;
  background: var(--lg-black2);
  border: 1px solid var(--lg-border);
  color: var(--lg-white);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-family: var(--lg-mono);
  backdrop-filter: blur(10px);
}

/* ---------- Drawer ---------- */
.leadglobe-embed .lg-drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(560px, 48%);
  padding: 0;                              /* neutralize host page's section padding */
  background: var(--lg-black2);
  border-left: 1px solid var(--lg-border);
  z-index: 50;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .28s ease;
}
.leadglobe-embed .lg-drawer[aria-hidden="false"] { transform: translateX(0); }
.leadglobe-embed .lg-drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--lg-border);
}
.leadglobe-embed .lg-drawer__eyebrow {
  font-family: var(--lg-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lg-muted); margin-bottom: 4px;
}
.leadglobe-embed .lg-drawer__head h2 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.leadglobe-embed #lg-drawer-close {
  background: transparent; border: 1px solid var(--lg-border);
  width: 30px; height: 30px; border-radius: 999px;
  color: var(--lg-muted); font-size: 16px; line-height: 0;
}
.leadglobe-embed #lg-drawer-close:hover { color: var(--lg-white); border-color: var(--lg-muted2); }
.leadglobe-embed .lg-drawer__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--lg-border);
}
.leadglobe-embed .lg-drawer__stats .lg-ds {
  background: var(--lg-black3);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius-sm);
  padding: 10px 12px;
}
.leadglobe-embed .lg-drawer__stats .lg-ds__label { font-size: 10px; color: var(--lg-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.leadglobe-embed .lg-drawer__stats .lg-ds__value { font-family: var(--lg-mono); font-size: 16px; margin-top: 2px; }
.leadglobe-embed .lg-drawer__stats .lg-ds__value.g { color: var(--lg-accent); }
.leadglobe-embed .lg-drawer__stats .lg-ds__value.c { color: var(--lg-cyan); }
.leadglobe-embed .lg-drawer__stats .lg-ds__value.a { color: var(--lg-amber); }
/* Drawer list — table layout. Columns shared across head + rows. */
.leadglobe-embed .lg-drawer {
  --lg-row-cols: minmax(120px, 1.4fr) minmax(120px, 1.2fr) 64px 78px 86px;
  --lg-row-gap: 10px;
  --lg-row-pad-x: 14px;
}
.leadglobe-embed .lg-drawer__list-head {
  display: grid;
  grid-template-columns: var(--lg-row-cols);
  gap: var(--lg-row-gap);
  padding: 10px var(--lg-row-pad-x);
  font-family: var(--lg-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-muted);
  background: var(--lg-black2);
  border-bottom: 1px solid var(--lg-border);
}
.leadglobe-embed .lg-drawer__list {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;                          /* allow flex shrink so overflow-y actually scrolls */
  overscroll-behavior: contain;           /* don't chain wheel/touch scroll to the page */
  -webkit-overflow-scrolling: touch;
}
.leadglobe-embed .lg-lead-card {
  display: grid;
  grid-template-columns: var(--lg-row-cols);
  gap: var(--lg-row-gap);
  align-items: center;
  padding: 10px var(--lg-row-pad-x);
  border-bottom: 1px solid var(--lg-border);
  background: transparent;
  font-size: 12px;
  transition: background .15s ease;
}
.leadglobe-embed .lg-lead-card:hover { background: var(--lg-black3); }
.leadglobe-embed .lg-lead-card .lc-region {
  color: var(--lg-white);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leadglobe-embed .lg-lead-card .lc-product {
  font-family: var(--lg-mono);
  font-size: 12px;
  color: var(--lg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leadglobe-embed .lg-lead-card .lc-tags { display: contents; }
.leadglobe-embed .lg-lead-card .lc-tag {
  font-family: var(--lg-mono);
  font-size: 11px;
  border: 1px solid var(--lg-border);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--lg-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leadglobe-embed .lg-lead-card .lc-tag--credit-g { color: var(--lg-accent); border-color: rgba(200,241,53,0.4); }
.leadglobe-embed .lg-lead-card .lc-tag--credit-c { color: var(--lg-cyan);   border-color: rgba(53,232,200,0.4); }
.leadglobe-embed .lg-lead-card .lc-tag--credit-a { color: var(--lg-amber);  border-color: rgba(240,196,48,0.4); }
.leadglobe-embed .lg-lead-card .lc-tag--credit-o { color: var(--lg-orange); border-color: rgba(240,132,74,0.4); }
.leadglobe-embed .lg-lead-card .lc-tag--credit-r { color: var(--lg-red);    border-color: rgba(224,53,53,0.4); }
.leadglobe-embed .lg-lead-card .lc-tag--liq      { color: var(--lg-cyan);   border-color: rgba(53,232,200,0.4); }
.leadglobe-embed .lg-lead-card .lc-tag--loan     { color: var(--lg-amber);  border-color: rgba(240,196,48,0.4); }

/* ---------- Boot ---------- */
.leadglobe-embed .lg-boot {
  position: absolute; inset: 0;
  background: #05060A;
  z-index: 100;
  display: grid; place-items: center;
  transition: opacity .35s;
}
.leadglobe-embed .lg-boot[hidden] { opacity: 0; pointer-events: none; }
.leadglobe-embed .lg-boot__pulse {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--lg-accent);
  box-shadow: 0 0 32px var(--lg-accent);
  animation: lg-pulse 1.2s ease-in-out infinite;
}
.leadglobe-embed .lg-boot__label {
  position: absolute; bottom: 30%;
  font-family: var(--lg-mono); font-size: 12px;
  color: var(--lg-muted); letter-spacing: 0.06em;
}
@keyframes lg-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50%      { transform: scale(1.1);  opacity: 1; }
}

/* ---------- Globe tooltip ---------- */
.leadglobe-embed .scene-tooltip,
.scene-tooltip {
  font-family: var(--lg-mono) !important;
  font-size: 11px !important;
  background: rgba(10,10,10,0.92) !important;
  border: 1px solid var(--lg-border) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  color: var(--lg-white) !important;
  letter-spacing: 0.02em;
  pointer-events: none !important;
}
.leadglobe-embed .scene-tooltip:empty,
.scene-tooltip:empty { display: none !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.scene-tooltip .tt-title { color: var(--lg-accent); margin-bottom: 4px; }
.scene-tooltip .tt-row { color: var(--lg-muted); }
.scene-tooltip .tt-row b { color: var(--lg-white); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .leadglobe-embed { height: 640px; }
  .leadglobe-embed--fullscreen { height: 100vh; height: 100dvh; }

  /* Drawer goes full-width and the lead list stacks back to compact cards. */
  .leadglobe-embed .lg-drawer { width: 100%; }
  .leadglobe-embed .lg-drawer__list-head { display: none; }
  .leadglobe-embed .lg-lead-card {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 14px;
  }
  .leadglobe-embed .lg-lead-card .lc-region { grid-column: 1; grid-row: 1; }
  .leadglobe-embed .lg-lead-card .lc-product { grid-column: 2; grid-row: 1; text-align: right; }
  .leadglobe-embed .lg-lead-card .lc-tags {
    display: flex; gap: 6px; flex-wrap: wrap;
    grid-column: 1 / -1; grid-row: 2;
  }

  .leadglobe-embed .lg-panel--filters {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 65%;
    border-radius: var(--lg-radius) var(--lg-radius) 0 0;
    transform: translateY(100%);
    transition: transform .25s;
    overflow-y: auto;
    z-index: 40;
  }
  .leadglobe-embed .lg-panel--filters.is-open { transform: translateY(0); }
  .leadglobe-embed .lg-panel--stats {
    top: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 12px 14px 12px;
  }
  .leadglobe-embed .lg-stat__value { font-size: 22px; }
  .leadglobe-embed .lg-mobile-filter-btn { display: inline-block; }
  .leadglobe-embed .lg-legend { display: none; }
  .leadglobe-embed .lg-filters-close { display: inline-flex; align-items: center; justify-content: center; }
}
