/* ============================================================
   InsiderTrack — trading terminal aesthetic
   Palette: deep slate-navy ground, semantic buy/sell, one cyan accent
   Type: Archivo (display, condensed feel) / Inter (body) / JetBrains Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600..800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ground */
  --bg:          #0b1220;
  --bg-soft:     #111b2e;
  --panel:       #131f33;
  --panel-2:     #18253c;
  --line:        #243349;
  --line-soft:   #1c293d;

  /* ink */
  --ink:         #e8eef7;
  --ink-2:       #aebacb;
  --ink-3:       #748196;
  --ink-faint:   #4d5a70;

  /* semantic */
  --buy:         #22d39a;   /* green — acquisitions / purchases */
  --buy-dim:     #0f5e47;
  --buy-bg:      rgba(34,211,154,.12);
  --sell:        #ff6b6b;   /* red — sales */
  --sell-dim:    #6e2b30;
  --sell-bg:     rgba(255,107,107,.12);
  --accent:      #4cc2ff;   /* cyan — links, focus, brand */
  --accent-dim:  #1b4a66;
  --amber:       #ffb84d;

  --radius:      12px;
  --radius-sm:   8px;
  --maxw:        1180px;
  --shadow:      0 1px 0 rgba(255,255,255,.03), 0 8px 30px rgba(0,0,0,.35);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, #14233c 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 0%, #0e1a2e 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.05rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--accent); color: #04121c; padding: 10px 16px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,18,32,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--buy); }
.brand-name { background: linear-gradient(90deg, var(--ink), var(--ink-2)); -webkit-background-clip: text; background-clip: text; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: .94rem; padding: 7px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.nav-search { margin-left: auto; display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nav-search input { background: transparent; border: 0; color: var(--ink); padding: 9px 12px; width: 210px; font-family: var(--font-body); font-size: .92rem; }
.nav-search input::placeholder { color: var(--ink-faint); }
.nav-search input:focus { outline: none; }
.nav-search button { background: transparent; border: 0; color: var(--ink-3); padding: 0 12px; cursor: pointer; display: flex; align-items: center; }
.nav-search button:hover { color: var(--accent); }
.nav-search:focus-within { border-color: var(--accent-dim); }

/* ---------- insider pulse panel ---------- */
.pulse { background: linear-gradient(180deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 80px; }
.pulse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pulse-head h2 { margin: 0; font-size: 1.15rem; }
.pulse-window { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.pulse-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line-soft); margin-bottom: 14px; }
.pulse-bar .pb-buy { background: linear-gradient(90deg, var(--buy-dim), var(--buy)); }
.pulse-bar .pb-sell { background: linear-gradient(90deg, var(--sell), var(--sell-dim)); }
.pulse-legend { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pl-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.pl-row .dot { width: 9px; height: 9px; border-radius: 50%; }
.pl-row .dot.buy { background: var(--buy); } .pl-row .dot.sell { background: var(--sell); }
.pl-row .pl-v { margin-left: auto; font-family: var(--font-mono); font-weight: 600; }
.pl-v.buy { color: var(--buy); } .pl-v.sell { color: var(--sell); }
.pulse-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pulse-counts > div { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px 12px; font-size: .85rem; color: var(--ink-3); }
.pulse-counts strong { font-family: var(--font-mono); font-size: 1.25rem; color: var(--ink); display: block; }
.pulse-top { margin-bottom: 14px; }
.pulse-top-label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: block; margin-bottom: 8px; }
.pulse-chips { display: flex; flex-direction: column; gap: 6px; }
.chip-buy { display: flex; justify-content: space-between; align-items: center; background: var(--buy-bg); border: 1px solid var(--buy-dim); border-radius: 8px; padding: 7px 11px; font-family: var(--font-mono); font-weight: 600; font-size: .85rem; color: var(--buy); }
.chip-buy span { color: var(--ink-2); font-weight: 500; }
.chip-buy:hover { text-decoration: none; background: rgba(34,211,154,.18); }
.pulse-note { font-size: .72rem; color: var(--ink-faint); line-height: 1.5; margin: 4px 0 0; }

/* ---------- leaderboard ---------- */
.lb { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.lb-head, .lb-row { display: grid; grid-template-columns: 48px 1fr 100px 110px 70px; gap: 12px; align-items: center; padding: 13px 16px; }
.lb-head { background: var(--bg-soft); color: var(--ink-3); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.lb-head .lb-num { text-align: right; }
.lb-row { border-top: 1px solid var(--line-soft); color: var(--ink); transition: background .12s ease; }
.lb-row:hover { background: var(--panel); text-decoration: none; }
.lb-rank { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--ink-3); text-align: center; }
.lb-rank.m1 { color: #ffd45e; } .lb-rank.m2 { color: #cfd8e6; } .lb-rank.m3 { color: #e3a766; }
.lb-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lb-name { font-weight: 600; color: var(--ink); }
.lb-cos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-tk { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; color: var(--accent); background: rgba(76,194,255,.1); border: 1px solid var(--accent-dim); border-radius: 5px; padding: 1px 6px; }
.lb-role { font-size: .78rem; color: var(--ink-3); }
.lb-num { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.lb-win { font-size: 1.05rem; }
.lb-trades { color: var(--ink-3); font-weight: 500; }
.lb-note { color: var(--ink-3); font-size: .82rem; margin-top: 14px; }

@media (max-width: 640px) {
  .lb-head, .lb-row { grid-template-columns: 32px 1fr 64px 64px; }
  .lb-head .lb-num:nth-child(4), .lb-row .lb-num:nth-child(4) { display: none; } /* hide avg return col on mobile, keep win rate + buys */
}

/* ---------- insider profile ---------- */
.insider-avatar { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--accent-dim), var(--panel-2)); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); flex-shrink: 0; }
.insider-cos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.insider-cos-label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.co-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 9px; padding: 7px 12px; color: var(--ink); }
.co-chip:hover { text-decoration: none; border-color: var(--line); background: var(--panel-2); }
.co-chip .cc-tk { font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: .85rem; }
.co-chip .cc-nm { color: var(--ink-2); font-size: .85rem; }

/* scorecard */
.scorecard { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.sc-main { background: linear-gradient(180deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.sc-main.sc-good { border-color: var(--buy-dim); background: linear-gradient(180deg, var(--buy-bg), var(--bg-soft)); }
.sc-main.sc-bad { border-color: var(--sell-dim); background: linear-gradient(180deg, var(--sell-bg), var(--bg-soft)); }
.sc-rate { font-family: var(--font-mono); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--ink); }
.sc-good .sc-rate { color: var(--buy); }
.sc-bad .sc-rate { color: var(--sell); }
.sc-rate-l { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.sc-wl { font-family: var(--font-mono); font-size: .85rem; margin-top: 12px; color: var(--ink-3); }
.sc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.sc-stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.sc-stat .l { font-size: .76rem; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }
.sc-stat .v { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; margin-top: 6px; color: var(--ink); }
.sc-stat .v.buy { color: var(--buy); } .sc-stat .v.sell { color: var(--sell); }
.sc-stat .v small { font-size: .6em; font-weight: 400; }

@media (max-width: 700px) {
  .scorecard { grid-template-columns: 1fr; }
}

/* holding-period horizon strip */
.hz { margin-top: 16px; }
.hz-label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 10px; }
.hz-label span { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.hz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hz-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.hz-card .l { font-size: .72rem; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }
.hz-card .v { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.hz-card .v.buy { color: var(--buy); }
.hz-card .v.sell { color: var(--sell); }
.hz-card .m { font-size: .76rem; color: var(--ink-3); }
.hz-empty .v { color: var(--ink-faint); }

/* ---------- hero ---------- */
.hero { padding: 46px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.hero-left { min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--buy); background: var(--buy-bg); border: 1px solid var(--buy-dim); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 0 var(--buy); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,154,.6);} 70%{ box-shadow: 0 0 0 7px rgba(34,211,154,0);} 100%{ box-shadow:0 0 0 0 rgba(34,211,154,0);} }
.hero h1 { max-width: 16ch; }
.hero-lede { color: var(--ink-2); font-size: 1.1rem; max-width: 56ch; margin: 14px 0 0; }
.hero-search { margin-top: 26px; display: flex; gap: 10px; max-width: 560px; position: relative; }
.hero-search input { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); padding: 15px 17px; font-size: 1.02rem; font-family: var(--font-body); }
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,194,255,.12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; border-radius: 12px; padding: 14px 22px; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--buy); color: #042018; }
.btn-primary:hover { background: #2ee0a6; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .n { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.hero-stat .l { font-size: .82rem; color: var(--ink-3); }

/* typeahead dropdown */
.typeahead { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; z-index: 30; display: none; }
.typeahead.open { display: block; }
.typeahead a { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.typeahead a:last-child { border-bottom: 0; }
.typeahead a:hover, .typeahead a.active { background: var(--panel-2); text-decoration: none; }
.typeahead .tk { font-family: var(--font-mono); font-weight: 600; color: var(--accent); min-width: 56px; }
.typeahead .nm { color: var(--ink-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- section frame ---------- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--ink-3); font-size: .9rem; }
.section-head .more { font-family: var(--font-mono); font-size: .82rem; }

/* tabs */
.tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.tabs a { padding: 7px 14px; border-radius: 7px; color: var(--ink-2); font-size: .88rem; font-weight: 500; }
.tabs a.active { background: var(--panel-2); color: var(--ink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- filings feed ---------- */
.feed { display: flex; flex-direction: column; gap: 9px; }
.filing {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color .15s ease, transform .08s ease;
}
.filing:hover { border-color: var(--line); transform: translateY(-1px); }
.filing-side { display: flex; align-items: center; justify-content: center; }
.tkr-chip { font-family: var(--font-mono); font-weight: 600; font-size: .8rem; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 4px; width: 52px; text-align: center; letter-spacing: -.02em; }
.filing-main { min-width: 0; }
.filing-co { font-weight: 600; color: var(--ink); font-size: .98rem; }
.filing-co a { color: var(--ink); }
.filing-meta { color: var(--ink-3); font-size: .85rem; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filing-meta .who { color: var(--ink-2); }
a.who:hover { color: var(--accent); text-decoration: none; }
.filing-amt { text-align: right; min-width: 150px; }
.filing-amt .v { font-family: var(--font-mono); font-weight: 600; font-size: 1.02rem; }
.filing-amt .v.buy { color: var(--buy); }
.filing-amt .v.sell { color: var(--sell); }
.filing-amt .d { font-size: .8rem; color: var(--ink-3); }

/* conviction bar — the signature element */
.conviction { height: 4px; border-radius: 999px; background: var(--line-soft); margin-top: 6px; overflow: hidden; }
.conviction > span { display: block; height: 100%; border-radius: 999px; }
.conviction > span.buy { background: linear-gradient(90deg, var(--buy-dim), var(--buy)); }
.conviction > span.sell { background: linear-gradient(90deg, var(--sell-dim), var(--sell)); }

/* badges */
.badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; letter-spacing: .01em; }
.badge-buy { color: var(--buy); background: var(--buy-bg); border: 1px solid var(--buy-dim); }
.badge-sell { color: var(--sell); background: var(--sell-bg); border: 1px solid var(--sell-dim); }
.badge-neutral { color: var(--accent); background: rgba(76,194,255,.1); border: 1px solid var(--accent-dim); }
.badge-muted { color: var(--ink-3); background: var(--panel-2); border: 1px solid var(--line); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th { background: var(--bg-soft); color: var(--ink-3); font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; position: sticky; top: 0; }
table.data tbody tr:hover { background: var(--panel); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--font-mono); }
table.data tr:last-child td { border-bottom: 0; }
.t-buy { color: var(--buy); }
.t-sell { color: var(--sell); }

/* ---------- company header card ---------- */
.cohero { background: linear-gradient(180deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin: 22px 0; }
.cohero-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cohero .tk { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--accent); background: rgba(76,194,255,.1); border: 1px solid var(--accent-dim); padding: 8px 14px; border-radius: 10px; }
.cohero h1 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.cohero .cik { color: var(--ink-3); font-family: var(--font-mono); font-size: .82rem; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.scard { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 15px; }
.scard .l { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-mono); }
.scard .v { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; margin-top: 5px; }
.scard .v.buy { color: var(--buy); } .scard .v.sell { color: var(--sell); }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }

/* ---------- prose / about ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 1.8em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose code { font-family: var(--font-mono); background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: .88em; color: var(--accent); }
.prose table.data { margin: 1em 0; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }
.callout strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { margin: 36px 0; max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.faq-item summary { padding: 15px 18px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--ink-3); font-size: 1.3rem; font-family: var(--font-mono); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); }
.faq-a p { margin: .4em 0; }

/* ---------- ads ---------- */
.ad-wrap { margin: 22px auto; text-align: center; min-height: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ad-label { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.ad-inline { margin: 14px 0; }

/* ---------- empty / error states ---------- */
.notice { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--ink-2); }
.notice strong { color: var(--ink); }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty svg { color: var(--ink-faint); margin-bottom: 12px; }

/* ---------- pills / filters ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { font-size: .85rem; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.pill.active { background: var(--buy-bg); color: var(--buy); border-color: var(--buy-dim); }
.pill:hover { text-decoration: none; border-color: var(--line); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 50px; padding: 40px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-col h3 { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--ink-2); font-size: .9rem; padding: 3px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-tag { color: var(--ink-3); font-size: .88rem; margin-top: 10px; }
.footer-disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: .82rem; line-height: 1.6; }
.footer-disclaimer strong { color: var(--ink-2); }

/* ---------- grid helpers ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mt-0 { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .cols-2 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-search input { width: 150px; }
}
@media (max-width: 560px) {
  .filing { grid-template-columns: 44px 1fr; }
  .filing-amt { grid-column: 2; text-align: left; min-width: 0; margin-top: 4px; }
  .hero-search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 15px; }
  .nav-search { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   REFINEMENT LAYER — premium polish pass
   (appended overrides: atmosphere, signature tape, motion,
    accent rails, sparklines, hairlines, scroll/selection)
   ============================================================ */

::selection { background: rgba(76,194,255,.28); color: #eaf6ff; }
html { scrollbar-color: #1c2a42 var(--bg); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2a42; border: 3px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #27395c; }

/* faint chart-grid atmosphere, strongest near the top */
body { position: relative; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(122,152,200,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,152,200,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(1000px 640px at 68% -6%, #000 28%, transparent 76%);
          mask-image: radial-gradient(1000px 640px at 68% -6%, #000 28%, transparent 76%);
}

/* header: market-line hairline */
.site-header { border-bottom-color: transparent; }
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(76,194,255,.45) 32%, rgba(34,211,154,.45) 62%, transparent 100%);
}

/* display type: more presence */
h1 { font-weight: 800; letter-spacing: -.032em; }
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); max-width: 17ch; }
.hero h1 .gx {
  background: linear-gradient(92deg, var(--buy) 0%, #7ef0c8 55%, var(--accent) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* primary button: gradient + glow */
.btn-primary {
  background: linear-gradient(135deg, #17bd8b, #33e2a8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 18px rgba(34,211,154,.16);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1bcf98, #46f0b7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 28px rgba(34,211,154,.28);
}

/* filing rows: buy/sell accent rail + lift + staggered entrance */
.filing { position: relative; padding-left: 22px; background: linear-gradient(180deg, rgba(255,255,255,.014), transparent 55%), var(--panel); }
.filing::before { content: ''; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 3px; border-radius: 4px; background: var(--line); }
.filing--buy::before  { background: linear-gradient(180deg, var(--buy), var(--buy-dim)); }
.filing--sell::before { background: linear-gradient(180deg, var(--sell), var(--sell-dim)); }
.filing:hover { border-color: #2c3f5d; box-shadow: 0 8px 26px rgba(0,0,0,.32), 0 0 0 1px rgba(76,194,255,.05); }

@keyframes rowrise { from { opacity: 0; transform: translateY(9px); } }
.feed .filing { animation: rowrise .5s cubic-bezier(.22,.9,.3,1) backwards; }
.feed .filing:nth-child(1)  { animation-delay: .03s; }
.feed .filing:nth-child(2)  { animation-delay: .06s; }
.feed .filing:nth-child(3)  { animation-delay: .09s; }
.feed .filing:nth-child(4)  { animation-delay: .12s; }
.feed .filing:nth-child(5)  { animation-delay: .15s; }
.feed .filing:nth-child(6)  { animation-delay: .18s; }
.feed .filing:nth-child(7)  { animation-delay: .21s; }
.feed .filing:nth-child(8)  { animation-delay: .24s; }
.feed .filing:nth-child(9)  { animation-delay: .27s; }
.feed .filing:nth-child(10) { animation-delay: .30s; }
.feed .filing:nth-child(11) { animation-delay: .33s; }
.feed .filing:nth-child(12) { animation-delay: .36s; }

/* premium hairlines on hero panels */
.pulse, .sc-main, .cohero { position: relative; overflow: hidden; }
.pulse::before, .cohero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--buy), var(--accent)); opacity: .65; z-index: 1;
}
.cohero { box-shadow: var(--shadow); }

/* leaderboard: faint metal tints on the podium */
.lb-row:has(.m1) { background: linear-gradient(90deg, rgba(255,212,94,.055), transparent 42%); }
.lb-row:has(.m2) { background: linear-gradient(90deg, rgba(207,216,230,.05),  transparent 42%); }
.lb-row:has(.m3) { background: linear-gradient(90deg, rgba(227,167,102,.055), transparent 42%); }
.lb-row:has(.m1):hover, .lb-row:has(.m2):hover, .lb-row:has(.m3):hover { background-color: var(--panel); }

/* footer hairline to match header */
.site-footer { border-top: 0; position: relative; }
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76,194,255,.35), rgba(34,211,154,.35), transparent);
}

/* ---------- signature: live ticker tape ---------- */
.tape {
  overflow: hidden; background: rgba(13,21,37,.72);
  border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tape-track { display: flex; align-items: center; gap: 34px; width: max-content; padding: 9px 0; animation: tape 46s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .78rem; white-space: nowrap; }
.tape-item .tt { color: var(--ink-2); font-weight: 600; letter-spacing: .02em; }
.tape-item .tv { font-weight: 600; }
.tape-item .tv.buy { color: var(--buy); }
.tape-item .tv.sell { color: var(--sell); }
.tape-item .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- sparklines ---------- */
.spark { display: block; }
.spark polyline { fill: none; stroke-width: 1.6; }
td.spk { padding-top: 7px; padding-bottom: 7px; }
.cohero-top { align-items: flex-start; }
.cohero-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cohero-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cohero-price .px { font-family: var(--font-mono); font-weight: 600; font-size: 1.65rem; line-height: 1; }
.cohero-price .chg { font-family: var(--font-mono); font-size: .84rem; }
@media (max-width: 640px) { .cohero-price { margin-left: 0; align-items: flex-start; } }

/* ---------- footer: recently tracked (registry internal links) ---------- */
.ft-track { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.ft-label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); white-space: nowrap; }
.ft-links { display: flex; gap: 7px; flex-wrap: wrap; }
.ft-links a { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 7px; padding: 4px 9px; }
.ft-links a:hover { color: var(--accent); border-color: var(--line); text-decoration: none; }
.ft-links a.ft-ins { font-family: var(--font-body); color: var(--ink-3); }
.ft-links a.ft-ins:hover { color: var(--accent); }

/* ============================================================
   MOBILE OVERHAUL — consolidated, authoritative (appended last)
   ============================================================ */
@media (max-width: 880px) {
  /* hero: single column, panel drops below headline */
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 30px 0 18px; }
  .pulse { position: static; }

  /* header: make room, shrink search */
  .header-inner { gap: 12px; height: 58px; }
  .nav-search input { width: 120px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }

  /* ---- mobile nav: hamburger reveals menu + search ---- */
  .header-inner { position: relative; }
  .main-nav, .nav-search { display: none; }
  .nav-toggle-label { display: inline-flex; align-items: center; margin-left: auto; color: var(--ink); cursor: pointer; padding: 6px; }
  .nav-toggle:checked ~ .mobile-menu { display: block; }
  .mobile-menu {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    margin: 0 -16px; padding: 12px 16px 18px;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(0,0,0,.5); z-index: 60;
  }
  .mobile-menu form { display: flex; gap: 8px; margin-top: 14px; padding-right: 2px; }
  .mobile-menu input { flex: 1; min-width: 0; }
  .mobile-menu button { flex: 0 0 auto; padding: 0 18px; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a {
    color: var(--ink); font-family: var(--font-display); font-weight: 600;
    font-size: 1.02rem; padding: 13px 6px; border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu nav a:hover { text-decoration: none; color: var(--accent); }
  .mobile-menu form { display: flex; gap: 8px; margin-top: 14px; }
  .mobile-menu input {
    flex: 1; background: var(--panel); border: 1px solid var(--line);
    border-radius: 10px; color: var(--ink); padding: 12px 14px; font-size: 1rem;
    font-family: var(--font-body);
  }
  .mobile-menu input:focus { outline: none; border-color: var(--accent); }
  .mobile-menu button {
    background: var(--buy); color: #042018; border: 0; border-radius: 10px;
    padding: 0 16px; font-weight: 600; font-family: var(--font-display); cursor: pointer;
  }

  /* hero type: dial back so it doesn't eat the screen */
  .hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.4rem); line-height: 1.08; max-width: none; }
  .hero-lede { font-size: 1rem; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 18px 24px; }

  /* pulse panel: keep everything inside the screen */
  .pulse-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pulse-chips .chip-buy { font-size: .82rem; }

  /* section headers wrap cleanly; tabs go full width */
  .section-head { align-items: stretch; }
  .tabs { width: 100%; justify-content: space-between; }
  .tabs a { flex: 1; text-align: center; }

  /* wide data tables: make horizontal scroll obvious, not broken */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(90deg, var(--bg) 30%, transparent) left / 24px 100% no-repeat,
      linear-gradient(90deg, transparent, var(--bg) 70%) right / 24px 100% no-repeat;
  }
  table.data th, table.data td { padding: 10px 12px; white-space: nowrap; }
  table.data { font-size: .86rem; }

  /* summary + score cards: 2-up, not cramped */
  .summary-cards { grid-template-columns: 1fr 1fr; }
  .scard .v { font-size: 1.25rem; }
  .hz-grid { grid-template-columns: 1fr 1fr; }
  .sc-stats { grid-template-columns: 1fr 1fr; }

  /* company hero price block sits under the name, left-aligned */
  .cohero { padding: 20px; }
  .cohero-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cohero-price { margin-left: 0; align-items: flex-start; width: 100%; }

  /* filing rows already collapse; tighten the amount block */
  .filing { padding-left: 18px; }
  .filing::before { left: 7px; }

  /* footer: stack to two tidy columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ft-track { gap: 10px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 1.95rem; }
  .summary-cards, .hz-grid, .sc-stats { grid-template-columns: 1fr; }
  .hero-stat .n { font-size: 1.15rem; }
  .brand-name { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* nav toggle: hidden on desktop, shown in the <=720px query above */
@media (min-width: 721px) { .nav-toggle-label { display: none; } }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
