/* Inter 4 variable, subset 2026-09-30: wght 400-800 (all weights the site uses), opsz kept, Latin + the symbols the pages print. Was the full 344 KB InterVariable.woff2 (kept for the OG renderers). */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/inter-latin-04b328f8.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0394,U+03BC,U+2000-206F,U+20AC,U+20BF,U+2122,U+2190-2199,U+2212,U+2215,U+2248,U+2260,U+2264-2265,U+2500,U+25B2,U+25BC,U+26A0,U+FEFF,U+FFFD}
/* SwanBluechip shared styles — design tokens + nav + page layout +
   reusable components. Mirrors the inline styles in index.html so new
   pages drop into the same dark/mint Hyperliquid theme without drift. */

:root {
  /* one spec for cards, controls and table cells (Kai 2026-10-02 design tidy) */
  --radius-card: 10px; --radius-ctl: 6px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  /* type scale (D1 2026-10-02, docs/design-system-2026-10-02/DESIGN-SYSTEM.md): nothing below --fs-xs */
  --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 28px; --fs-3xl: 40px;
  /* charts: one look for Chart.js and inline SVG (Swan.chartTheme) */
  --chart-grid: #142519; --chart-tick: #748a7f; --chart-line: 1.75px;
  --nav-font-size: 13px; --body-small: 14px; --control-height: 44px;
  --bg: #07110d;
  --surface: #0c1812;
  --surface-2: #102018;
  --border: #1a2c22;
  --border-strong: #284035;
  --text: #e9f1ec;
  --text-mid: #8ba398;
  --text-dim: #748a7f; /* AA: 5.2:1 on --bg, 4.6:1 on --surface-2 (was #54675c, 3.2:1) */
  --mint: #9df5cf;
  --mint-deep: #4fd4a8;
  --emerald: #1d6b53;
  --glow: rgba(157, 245, 207, .16);
  --amber: #e3ad52;
  --rose: #e08a8a;
  /* gain / loss for numbers, charts and sides (2026-09-28): vivid mint and rose, zero = --text-mid */
  --gain: #2ee8a0;
  --loss: #ff5f6d;
  --gain-rgb: 46, 232, 160;
  --loss-rgb: 255, 95, 109;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums; /* every figure on the site lines up (Kai 2026-10-02 design tidy) */
  overflow-x: hidden;
  position: relative;
}
/* Flat (Kai 2026-10-01): no body fade-in (it held first paint at opacity 0 and darkened
   screenshots) and no fixed light-well / grain layers behind the page. One flat --bg. */
a { color: inherit; text-decoration: none; }

/* ===== global polish: selection, scrollbar, focus, motion ===== */
::selection { background: rgba(157, 245, 207, .24); color: #fff; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; border-radius: 5px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 7px;
  border: 3px solid var(--bg); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ===== header + nav ===== */
header.swan {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 17, 13, .93); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.swan-header-in {
  max-width: 1200px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.swan-wordmark {
  font-size: 16px; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
}
.swan-wordmark .mk {
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--mint);
  border-radius: 50% 40% 50% 40%;
}
.swan-wordmark span.b {
  color: var(--text);
}

nav.swan-nav { display: flex; align-items: center; gap: var(--space-1); flex: 1; }
nav.swan-nav .navitem { position: relative; color: var(--text-mid); }
nav.swan-nav summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-1);
  padding: var(--space-2); min-height: var(--control-height); border-radius: 7px;
  font-size: var(--nav-font-size); font-weight: 500; white-space: nowrap;
}
nav.swan-nav summary::-webkit-details-marker { display: none; }
nav.swan-nav summary:hover, nav.swan-nav .navitem[open] summary { color: var(--text); background: var(--surface-2); }
nav.swan-nav .navitem.active summary, nav.swan-nav a[aria-current="page"] { color: var(--mint); }
nav.swan-nav .car { font-size: var(--fs-xs); }
nav.swan-nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 208px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: var(--space-2); z-index: 60;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
nav.swan-nav .navitem:last-child .dropdown { left: auto; right: 0; }
nav.swan-nav .dropdown a { display: flex; align-items: center; min-height: var(--control-height); padding: var(--space-2) var(--space-3); border-radius: 6px; font-size: var(--nav-font-size); }
nav.swan-nav .dropdown a:hover { color: var(--mint); background: var(--surface-2); }
@media (max-width: 1100px) {
  header.swan .swan-header-in { gap: var(--space-3); flex-wrap: wrap; }
  header.swan .swan-burger { display: block; margin-left: auto; min-height: var(--control-height); font-size: var(--body-small); }
  header.swan nav.swan-nav { display: none; position: static; flex: 0 0 100%; order: 5; max-height: 75dvh; overflow-y: auto; }
  header.swan nav.swan-nav.open { display: block; }
  header.swan nav.swan-nav summary { padding: var(--space-3); font-size: var(--body-small); }
  header.swan nav.swan-nav .dropdown { position: static; box-shadow: none; margin-bottom: var(--space-2); }
  header.swan .swan-cta-group { display: none; }
}

.swan-live {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--text-mid); display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.swan-live .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  animation: swanpulse 2.4s infinite;
}
/* Health colors set by Swan.checkHealth() — amber = some keys stale,
   red = at least one cache key missing or DB unavailable. */
.swan-live .pulse.amber { background: var(--amber); }
.swan-live .pulse.red   { background: var(--rose); }
@keyframes swanpulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.swan-burger {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text-mid); padding: 6px 10px; border-radius: 6px;
  font-size: 18px; cursor: pointer; line-height: 1;
}

.swan-cta-group {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.swan-join {
  background: var(--mint);
  color: #07110d; font-weight: 700; font-size: 12px; letter-spacing: -.005em;
  padding: 8px 13px; border-radius: 7px;
  transition: filter .14s, transform .1s;
  white-space: nowrap;
}
.swan-join:hover { filter: brightness(1.08); }
.swan-join:active { transform: translateY(1px); }

.swan-x {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text-mid); font-weight: 600; font-size: 12px;
  padding: 7px 11px; border-radius: 7px; white-space: nowrap;
  transition: color .14s, border-color .14s, background .14s, transform .1s;
}
.swan-x:hover {
  color: var(--mint); border-color: var(--mint-deep);
  background: rgba(157, 245, 207, .06);
}
.swan-x:active { transform: translateY(1px); }
.swan-x .swan-x-mk { display: inline-flex; align-items: center; opacity: .85; }
.swan-x:hover .swan-x-mk { opacity: 1; }

/* ===== funding alert banner (rendered at top by swan.js) ===== */
.swan-alert {
  background: rgba(227, 173, 82, .09);
  border-bottom: 1px solid rgba(227, 173, 82, .3);
  color: var(--amber);
  font-family: 'Inter', sans-serif; font-size: 12px;
  padding: 8px 28px; text-align: center;
}
.swan-alert a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }

/* ===== page layout primitives ===== */
/* h1 sized at 20px to sit one notch above the main page map h1 (19px) —
   close enough that pages feel like the same family, distinct enough
   that data pages read as their own surfaces. Same weight + tracking. */
.page-head { padding: 24px 0 14px; position: relative; }
.page-head h1 {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px;
}

/* "Data as of" badge — auto-injected by Swan.setUpdatedFrom() into .page-head.
   Sits above the h1 so users see *when* the numbers are from before
   reading the numbers themselves. Mint when fresh, amber when stale. */
main #content, main #summary:empty { min-height: 240px; }
.data-asof {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--text-mid); letter-spacing: .01em;
  background: rgba(157, 245, 207, .06);
  border: 1px solid rgba(157, 245, 207, .18);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 12px;
}
.data-asof-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  animation: swanpulse 2.4s infinite;
  flex-shrink: 0;
}
.data-asof-label {
  color: var(--text-dim); text-transform: none; letter-spacing: .01em;
  font-size: var(--fs-xs); font-weight: 600;
}
.data-asof-time { color: var(--text); font-weight: 600; }
.data-asof.stale {
  background: rgba(227, 173, 82, .08);
  border-color: rgba(227, 173, 82, .25);
}
.data-asof.stale .data-asof-dot {
  background: var(--amber);
}
.data-asof.stale::after {
  content: '· cached'; color: var(--amber); margin-left: 2px;
  font-size: var(--fs-xs); font-weight: 600;
}
@media (max-width: 640px) {
  .data-asof { font-size: var(--fs-xs); padding: 4px 9px; gap: 5px; margin-bottom: 10px; }
  .data-asof-label { font-size: var(--fs-xs); }
  .page-head { padding: 18px 0 10px; }
  .page-head h1 { font-size: 18px; }
  .page-head .desc { font-size: 12px; }
}
.page-head h1 .accent { color: var(--mint); }
.page-head .desc { font-size: 12.5px; color: var(--text-mid); line-height: 1.55; max-width: 720px; }
/* The page-head .meta line was previously the source of truth for updated
   time. We keep the slot for source notes ("Source: HL info endpoint") and
   move "last updated" to the footer per the page layout principle. */
.page-head .meta {
  margin-top: 8px;
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs); color: var(--text-dim);
}
.page-head .meta b { color: var(--text-mid); font-weight: 500; }

.section { padding: 16px 0 36px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 12px; font-weight: 700; letter-spacing: .01em; text-transform: none; }
.sec-head .ln { flex: 1; height: 1px; background: var(--border); }
.sec-head .meta { font-size: 11px; color: var(--text-dim); font-family: 'Inter', sans-serif; }

/* ===== card ===== */
/* Radius matches the main page map-box (16px) so cards across the site
   share one visual rhythm. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 18px 20px;
  transition: border-color .16s ease;
}
.card:hover { border-color: var(--border-strong); }
.card-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card .card-label {
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs);
  color: var(--text-dim); letter-spacing: .01em; text-transform: none;
}
.card .card-title { font-size: 15px; font-weight: 700; margin: 4px 0 10px; }
.card .stat {
  font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: -.01em; color: var(--text);
}
.card .stat-row {
  display: flex; align-items: baseline; gap: 8px; margin-top: 4px;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-mid);
}

/* ===== headline number (used on chain, tvl, stables pages) ===== */
.headline {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 28px; display: flex; flex-direction: column; gap: 6px;
}
.headline .label {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--text-dim); letter-spacing: .01em; text-transform: none;
}
.headline .num {
  font-family: 'Inter', sans-serif; font-size: 38px; font-weight: 800;
  letter-spacing: -.02em;
}
.headline .delta { font-family: 'Inter', sans-serif; font-size: 13px; }

/* ===== change pill ===== */
.delta-up { color: var(--mint); }
.delta-down { color: var(--rose); }
.delta-flat { color: var(--text-mid); }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.pill.up    { color: var(--mint);  border-color: rgba(157, 245, 207, .25); }
.pill.down  { color: var(--rose);  border-color: rgba(224, 138, 138, .25); }
.pill.flat  { color: var(--text-mid); }
.pill.warn  { color: var(--amber); border-color: rgba(227, 173, 82, .3); }

/* ===== table ===== */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  text-align: left; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .01em; text-transform: none; color: var(--text-dim);
  padding: 11px 12px; border-bottom: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .015);
  font-family: 'Inter', sans-serif;
}
.tbl thead th:first-child { border-top-left-radius: 9px; }
.tbl thead th:last-child { border-top-right-radius: 9px; }
.tbl thead th.r { text-align: right; }
.tbl tbody td.r { text-align: right; }
.tbl thead th.c, .tbl tbody td.c { text-align: center; }
.tbl tbody td {
  padding: 13px 12px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-mid);
  transition: background .12s ease, color .12s ease;
}
.tbl tbody td.num {
  font-family: 'Inter', sans-serif; text-align: right; color: var(--text);
}
.tbl tbody tr:hover td { background: rgba(157, 245, 207, .03); color: var(--text); }
.tbl tbody tr.flag td { background: rgba(227, 173, 82, .04); }
.tbl tbody tr.flag td:first-child {
  border-left: 2px solid var(--amber);
}

/* ===== filter chips ===== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-mid); font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-family: inherit; transition: all .14s; display: flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.on { background: var(--mint); color: var(--bg); border-color: var(--mint); font-weight: 600; }
.chip .ct { font-family: 'Inter', sans-serif; opacity: .55; font-size: 11px; }

/* ===== form ===== */
.swan-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px;
  padding: 14px 16px; border-radius: 10px; outline: none; transition: border-color .14s;
}
.swan-input:focus { border-color: var(--mint); }
.swan-input::placeholder { color: var(--text-dim); }
.swan-btn {
  background: var(--mint);
  color: var(--bg); font-weight: 700; border: 0;
  padding: 12px 20px; border-radius: var(--radius-ctl); cursor: pointer;
  font-size: 13px; transition: filter .14s;
}
.swan-btn:hover { filter: brightness(1.08); }
.swan-select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: var(--radius-ctl); font-family: inherit; font-size: 13px;
}

/* ===== loading + error states ===== */
.state {
  padding: 40px 24px; text-align: center;
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--text-dim);
}
.state.err {
  color: var(--amber);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.state .state-meta {
  font-size: 11px; color: var(--text-dim);
}
.swan-btn-retry {
  margin-top: 6px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 11.5px; font-weight: 600;
  padding: 7px 16px; border-radius: 6px; cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.swan-btn-retry:hover { border-color: var(--mint); color: var(--mint); }
.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: 7px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== footer ===== */
footer.swan {
  border-top: 1px solid var(--border); padding: 22px 0 40px;
  font-size: 11px; color: var(--text-dim); line-height: 1.6;
}

/* ===== inline bar ===== */
.ibar-wrap { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ibar { height: 4px; border-radius: 2px; background: var(--mint); flex-shrink: 0; transition: width .3s; }
.ibar.neg { background: #f87171; }
.ibar.bright { background: #bffce3; }

/* ===== change color intensity ===== */
.delta-intense-up { color: #bffce3; }
.delta-intense-down { color: #f87171; }
.bg-mint-tint { background: rgba(157, 245, 207, .10); }
.bg-rose-tint { background: rgba(248, 113, 113, .10); }

/* ===== signal type border ===== */
.sig-border-warn  { border-left: 3px solid var(--amber) !important; }
.sig-border-up    { border-left: 3px solid var(--mint) !important; }
.sig-border-down  { border-left: 3px solid #f87171 !important; }
.sig-border-info  { border-left: 3px solid #60a5fa !important; }

/* ===== risk badge ===== */
.risk-badge {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs); font-weight: 600;
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
.risk-badge.il  { background: rgba(227, 173, 82, .14); color: var(--amber); border: 1px solid rgba(227, 173, 82, .25); }
.risk-badge.low { background: rgba(157, 245, 207, .12); color: var(--mint); border: 1px solid rgba(157, 245, 207, .25); }
.risk-badge.stb { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }

/* ===== leverage badge ===== */
.lev-badge {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs); font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.lev-badge.warn  { background: rgba(227, 173, 82, .14); color: var(--amber); border: 1px solid rgba(227, 173, 82, .25); }
.lev-badge.danger { background: rgba(248, 113, 113, .10); color: #f87171; border: 1px solid rgba(248, 113, 113, .25); }

/* ===== peg gauge ===== */
.peg-gauge-wrap { margin-top: 12px; }
.peg-gauge-track {
  position: relative; height: 6px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.peg-gauge-center {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--mint); transform: translateX(-50%);
}
.peg-gauge-marker {
  position: absolute; top: -2px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--mint); border: 2px solid var(--bg);
  transform: translateX(-50%); transition: left .4s;
}
.peg-gauge-label {
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs); color: var(--text-dim);
  margin-top: 4px;
}

/* ===== chart container ===== */
.chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 18px;
}
.chart-wrap .chart-box { position: relative; height: 300px; }
.chart-title {
  font-size: 11px; font-weight: 700; letter-spacing: .01em; text-transform: none;
  color: var(--text-dim); margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

/* ===== article card ===== */
.article-card {
  padding: 22px 24px; cursor: pointer;
  transition: border-color .14s;
}
.article-card:hover { border-color: var(--mint); }
.article-card .a-meta {
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--text-dim); margin-bottom: 8px; display: flex; gap: 10px; align-items: center;
}
.article-card .a-tag {
  font-size: var(--fs-xs); background: rgba(157, 245, 207, .10); color: var(--mint);
  border: 1px solid rgba(157, 245, 207, .2); padding: 2px 7px; border-radius: 4px;
}
.article-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.article-card p { color: var(--text-mid); font-size: 13px; line-height: 1.6; }

/* ===== compare winner ===== */
.winner-a { background: rgba(157, 245, 207, .06); }
.winner-b { background: rgba(157, 245, 207, .06); }
.win-cell { color: var(--mint) !important; font-weight: 700 !important; }
.win-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(157, 245, 207, .14); color: var(--mint);
  border: 1px solid rgba(157, 245, 207, .3);
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs); font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
}
.insight-box {
  margin-top: 14px; padding: 14px 18px;
  background: rgba(157, 245, 207, .05); border: 1px solid rgba(157, 245, 207, .15);
  border-radius: 10px; font-size: 13px; color: var(--text-mid); line-height: 1.6;
}

/* ===== mobile ===== */
@media (max-width: 760px) {
  .wrap, .swan-header-in { padding-left: 14px; padding-right: 14px; }
  .swan-header-in { gap: 12px; }
  .swan-live { font-size: var(--fs-xs); }
  .swan-cta-group { gap: 6px; }
  .swan-join { padding: 6px 10px; font-size: 11px; }
  .swan-x { padding: 6px 8px; font-size: 0; gap: 0; }
  .swan-x .swan-x-mk svg { width: 13px; height: 13px; }
  .page-head h1 { font-size: 20px; }
  .page-head { padding: 22px 0 10px; }
  .headline { padding: 20px; }
  .headline .num { font-size: 30px; }
  .card { padding: 14px 16px; }
  .tbl thead th, .tbl tbody td { padding: 10px 8px; font-size: 12px; }
  .tbl thead th { font-size: var(--fs-xs); }
}

/* Newsletter signup — used on /weekly (top) and homepage (after FAQ).
   Submits via JS to Beehiiv magic link; see swan.js form binder. */
.nl-card {
  margin: 22px 0;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid rgba(157,245,207,.18);
  border-radius: 14px;
}
.nl-card .nl-eyebrow {
  font-family: 'Inter', sans-serif; font-size: var(--fs-xs);
  color: var(--mint); text-transform: none; letter-spacing: .01em;
  margin-bottom: 6px;
}
.nl-card h3 {
  font-size: 20px; font-weight: 800; letter-spacing: -.015em;
  color: var(--text); margin-bottom: 6px;
}
.nl-card .nl-sub {
  font-size: 13px; color: var(--text-mid); line-height: 1.6; max-width: 560px;
  margin-bottom: 14px;
}
.nl-form {
  display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px;
}
.nl-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 13.5px;
  outline: none; transition: border-color .15s;
}
.nl-form input[type="email"]:focus {
  border-color: var(--mint); box-shadow: 0 0 0 3px rgba(157,245,207,.08);
}
.nl-form input[type="email"]::placeholder { color: var(--text-dim); }
.nl-form button {
  padding: 11px 18px;
  background: var(--mint); color: #07110d;
  border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; letter-spacing: .01em;
  transition: filter .12s;
}
.nl-form button:hover { filter: brightness(1.06); }
.nl-msg {
  margin-top: 10px; font-size: 12.5px;
  font-family: 'Inter', sans-serif;
}
.nl-msg.nl-ok  { color: var(--mint); }
.nl-msg.nl-err { color: #e85d75; }
@media (max-width: 760px) {
  .nl-card { padding: 18px 18px; margin: 16px 0; }
  .nl-card h3 { font-size: 17px; }
  .nl-card .nl-sub { font-size: 12.5px; }
  .nl-form { flex-direction: column; gap: 8px; }
  .nl-form button { width: 100%; }
}

/* Source badge — fixed bottom-right on each page */
.src-badge {
  position: fixed; bottom: 16px; right: 16px; z-index: 200;
  background: #1a2e1a; border: 0.5px solid #9df5cf; border-radius: 7px;
  padding: 5px 10px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: var(--mint); white-space: nowrap;
  opacity: 0.8; transition: opacity .2s;
}
.src-badge:hover { opacity: 1; }
.src-badge.in-head { position: static; display: inline-block; margin-top: 8px; white-space: normal; }
/* Phones: small links and buttons in dense tables get a 32px tap height (audit T3.15). */
@media (max-width: 600px) {
  main table a, main table button, main .tr-ex a, main .bc-row a { display: inline-flex; align-items: center; min-height: 32px; }
}
.src-badge a { color: var(--mint); text-decoration: none; }
.src-badge a:hover { text-decoration: underline; }

.catalog-note { color: var(--text-mid); font-size: var(--body-small); line-height: 1.6; margin: var(--space-3) 0 var(--space-6); }
.catalog-note a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.directory-grid h3 { font-size: var(--body-small); }
.directory-grid a { font-size: var(--body-small); }

/* ---------- address hover card (assets/addr-card.js) ---------- */
.addr-hov { border-radius: 4px; transition: background-color .12s; }
.addr-hov.addr-same { background: rgba(157, 245, 207, .14); box-shadow: 0 0 0 2px rgba(157, 245, 207, .14); }
@media (hover: none) { .addr-hov { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
.ac-card { position: fixed; z-index: 60; width: 290px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-size: 12px; color: var(--text-mid); }
.ac-card[hidden] { display: none; }
.ac-addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); color: var(--text-dim); word-break: break-all; margin-bottom: 10px; }
.ac-l { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--text-dim); }
.ac-total { font-size: 22px; font-weight: 700; color: var(--mint); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.ac-split { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-dim); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.ac-split b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ac-items li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ac-badge { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 0; text-align: center; }
.ac-what { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-side.long { color: var(--gain); }
.ac-side.short { color: var(--loss); }
.ac-v { color: var(--text); font-variant-numeric: tabular-nums; }
.ac-more { margin: 8px 0 0; font-size: 11px; color: var(--text-dim); }
.ac-foot { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--text-dim); }
.ac-msg { margin: 6px 0 0; color: var(--text-mid); }
.ac-rule { border-bottom: 1px solid var(--border); margin: 10px 0 4px; }
.ac-sk { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: ac-sk 1.2s linear infinite; }
.ac-sk-in { display: inline-block; width: 44px; vertical-align: middle; }
@keyframes ac-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ac-sk { animation: none; } }

/* Fresh numbers get a brief background flash instead of a count-up (audit T3.21). */
.num-updated { animation: num-flash 1.2s ease-out; border-radius: 4px; }
@keyframes num-flash { from { background: rgba(157, 245, 207, .18); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .num-updated { animation: none; } }

/* ===== stale-data banner (swan.js noteFreshness, Cloudflare migration S3) ===== */
.swan-stale {
  background: rgba(227, 173, 82, .10);
  border-bottom: 1px solid rgba(227, 173, 82, .3);
  color: var(--amber);
  font-family: 'Inter', sans-serif; font-size: 12px;
  padding: 8px 16px; text-align: center;
}

/* Venue logomark + name (Swan.venueMark). One size and gap on every page. */
.vmark { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; }
.vmark-i { width: 20px; height: 20px; flex: none; object-fit: contain; display: block; }
.vmark-x { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--surface-2); color: var(--text-dim); font-size: 11px; font-weight: 700; }
.vmark a, .vmark-n { color: inherit; text-decoration: none; white-space: nowrap; }
.vmark a:hover { color: var(--mint); }

/* Commercial mode by scope (Kai 2026-10-02, assets/swan.js COMMERCIAL_SCOPES): [data-commercial]
   follows this page's scope, [data-commercial="main"] the main scope on any page,
   [data-noncommercial="main"] shows only while the main scope is off. */
html:not(.swan-commercial) [data-commercial]:not([data-commercial="main"]) { display: none !important; }
html:not(.swan-commercial-main) [data-commercial="main"] { display: none !important; }
html.swan-commercial-main [data-noncommercial="main"] { display: none !important; }

/* "Open {venue} →" (Swan.venueOpen): one outbound venue button everywhere */
.vopen-slot:empty { display: none; }
.vopen-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; vertical-align: middle; }
.vopen { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--mint); white-space: nowrap; transition: border-color .15s, background-color .15s; }
.vopen:hover { border-color: var(--mint); background: rgba(157, 245, 207, .06); }
.vopen-ref { font-size: 11px; color: var(--text-dim); }
.vopen-ref a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.vopen-ref a:hover { color: var(--text-mid); }

/* Block-level data attribution (Swan.dataSourceHtml / static markup), Kai 2026-10-01 */
.data-src { margin: var(--space-2, 8px) 0 0; font-size: 12px; line-height: 1.5; color: var(--text-mid); }
.data-src a { color: var(--mint); text-decoration: none; }
.data-src a:hover { text-decoration: underline; }

/* Wallet watch button + toast (Swan.watchButton, 2026-10-02) */
.swan-watch { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--border); background: none; color: var(--text-dim); cursor: pointer; white-space: nowrap; vertical-align: middle; }
.swan-watch:hover, .swan-watch:focus-visible { color: var(--mint); border-color: var(--mint-deep, var(--mint)); }
.swan-watch[aria-pressed="true"] { color: var(--mint); border-color: var(--mint-deep, var(--mint)); }
.swan-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.swan-toast[hidden] { display: none; }
.swan-toast a { color: var(--mint); margin-left: 4px; }

/* Term tooltips (assets/swan.js GLOSSARY, Kai 2026-10-02): dotted underline only, no layout change. */
.gl { text-decoration: underline dotted; text-decoration-color: var(--text-dim); text-underline-offset: 3px; cursor: help; }
.gl:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 2px; }
.gl-tip { position: fixed; z-index: 1000; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2); color: var(--text);
  font: 500 12.5px/1.45 'Inter', system-ui, sans-serif; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); pointer-events: none; }
.gl-tip[hidden] { display: none; }

/* Clickable data areas (Kai 2026-10-02, Swan.expandable / nextLook / factGrid) */
.xp-table tr.xp-row { cursor: pointer; transition: background-color .15s; }
.xp-table tr.xp-row:hover { background: rgba(157, 245, 207, .035); }
.xp-table tr.xp-row:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: -2px; }
.xp-table tr.xp-row[aria-expanded="true"] { background: rgba(157, 245, 207, .05); }
.xp-table tr.xp-detail > td { padding: 0 !important; background: var(--surface); border-bottom: 1px solid var(--border-strong); white-space: normal; text-align: left; }
.xp-body { padding: 14px 16px 16px; display: grid; gap: 12px; max-width: 100%; text-align: left; font-size: 13px; line-height: 1.55; color: var(--text-mid); white-space: normal; }
.xp-body p { margin: 0; }
.xp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 16px; margin: 0; }
.xp-facts div { min-width: 0; }
.xp-facts dt { font-size: 11px; color: var(--text-dim); text-transform: none; }
.xp-facts dd { margin: 2px 0 0; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.next-look { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
.next-look-h { color: var(--text-dim); font-size: 11px; letter-spacing: .02em; }
.next-look a { color: var(--mint); }
.next-look a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Popovers (Swan.popAttrs): numbers → basis + 7-day trend, badges → criteria */
[data-pop] { cursor: pointer; text-decoration: underline dotted rgba(139, 163, 152, .55); text-underline-offset: 3px; text-decoration-thickness: 1px; }
[data-pop]:hover { text-decoration-color: var(--mint); }
[data-pop]:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; border-radius: 3px; }
.swan-pop { position: absolute; z-index: 60; padding: 14px 16px 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-size: 12.5px; line-height: 1.5; color: var(--text-mid); display: grid; gap: 8px; text-align: left; white-space: normal; }
.swan-pop .pop-h { color: var(--text); font-weight: 600; font-size: 13px; padding-right: 20px; }
.swan-pop .pop-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; background: none; color: var(--text-mid); font-size: 18px; cursor: pointer; }
.swan-pop .pop-x:hover { color: var(--text); }
.swan-pop .pop-dim { color: var(--text-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.swan-pop .pop-spark { display: block; color: var(--mint); }
.swan-pop .next-look { padding-top: 8px; }

/* Loading skeleton (Kai 2026-10-02): swan.js turns a bare "Loading…" state into bars */
.state.is-loading { padding: 18px 16px; }
.skel-lines { display: grid; gap: 10px; width: 100%; max-width: 640px; margin: 0 auto; }
.skel { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 0%, #183026 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.skel:nth-child(2) { width: 86%; } .skel:nth-child(3) { width: 64%; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ===== D1 design system shared parts (docs/design-system-2026-10-02/DESIGN-SYSTEM.md) ===== */
/* badge: short fact about a row or number. neutral = default, .is-mint = best on a measure, .is-warn = data problem only */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--border-strong); color: var(--text-mid); white-space: nowrap; vertical-align: 1px; }
.badge.is-mint { color: var(--mint); border-color: rgba(157, 245, 207, .35); }
.badge.is-warn { color: var(--amber); border-color: rgba(227, 173, 82, .45); }
/* key number: big figure + plain label under it (venue header, detail pages) */
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-v { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.kpi-l { font-size: var(--fs-sm); color: var(--text-mid); }
.kpi-s { font-size: var(--fs-xs); color: var(--text-dim); }
@media (max-width: 600px) { .kpi-v { font-size: var(--fs-xl); } }
/* mini trend line (D2): one look for table sparklines and popover trends. Chart tokens, last point marked. */
.spark { display: block; overflow: visible; }
.spark .ln { fill: none; stroke: var(--spark-color, var(--mint)); stroke-width: var(--chart-line); stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .pt { fill: var(--spark-color, var(--mint)); }
/* empty / error states (D4): title in --text, detail dim, actions underneath. Amber only marks the error title. */
.state-box { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; max-width: 52ch; text-align: center; }
.state-t { font-size: var(--fs-base); font-weight: 600; color: var(--text-mid); }
.state-box.is-err .state-t { color: var(--amber); }
.state-d { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.5; }
.state-d a, .state-a a { color: var(--mint); }
.state-a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 4px; font-size: var(--fs-sm); }
.state-a .swan-btn-retry { margin-top: 0; }
/* /traders/ Cohort flows (C3) */
.cf-lead { max-width: 72ch; margin: 0 0 12px; font-size: var(--fs-base); color: var(--text-mid); line-height: 1.6; }
.cf-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cf-panels.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cf-panel { margin: 0; padding: 12px 8px 4px; min-width: 0; }
.cf-key { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px 8px; font-size: var(--fs-md); color: var(--text-mid); }
.cf-key i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; transform: translateY(-3px); }
.cf-key b { color: var(--text); font-weight: 650; }
.cf-whale i { background: var(--mint); }
.cf-smart_money i { background: var(--text); }
.cf-box { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); padding: 4px; margin-top: 8px; overflow: hidden; }
.cf-svg { display: block; max-width: 100%; }
